regex: port to non-glibc/lock-using systems
[gnulib.git] / ChangeLog
1 2013-08-05  Jim Meyering  <meyering@fb.com>
2
3         regex: port to non-glibc/lock-using systems
4         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
5         system with GNULIB_LOCK would fail due to absence of the
6         included "glthread/lock.h".  This would affect any package
7         for which the "lock" module is used only by the regex module,
8         and not explicitly used.
9         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
10         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
11         Add a dependency on the "lock" module.
12
13 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14
15         localecharset: make locale_charset thread-safe on Mac OS X
16         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
17         instead of MB_CUR_MAX.
18
19 2013-07-20  Daiki Ueno  <ueno@gnu.org>
20
21         gettext: update to version 0.18.3
22         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
23         require AC_PROG_SED to allow user to specify custom sed command when
24         generating en@quot PO file.
25
26 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
27
28         bootstrap: use correct source when copying build-aux files
29         * build-aux/bootstrap (gnulib_extra_files): This variable is
30         relative to upstream gnulib layout, not downstream.
31
32 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
33
34         tmpdir: fix bug in VMS port
35         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
36         See Steven M. Schweda in
37         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
38
39 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40
41         tmpdir: port to VMS, to // != /, and to long dirs
42         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
43         __secure_getenv, so that we're more like the glibc version.
44         All uses changed.
45         (path_search): Don't put slash after directory if __VMS.
46         Problem reported by Steven M. Schweda in
47         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
48         Simplify code to add slash; no need for a loop.
49         Do not remove trailing slash from "//".
50         Do not assume dlen <= INT_MAX.
51
52 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53
54         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
55         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
56         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
57         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
58
59         accept4, dup3, pipe2: port to Cygwin
60         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
61         * lib/accept4.c (accept4) [O_BINARY]:
62         * lib/dup3.c (dup3) [O_BINARY]:
63         * lib/pipe2.c (pipe2) [O_BINARY]:
64         Use set_binary_mode, not setmode.
65         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
66         * modules/binary-io (Depends-on): Remove module indicator.
67         These last two bits undo the previous change to pipe2 and binary-io.
68
69 2013-07-09  Pádraig Brady  <P@draigBrady.com>
70
71         mountlist: add support for deallocating returned list entries
72         * lib/mountlist.c (free_mount_entry): A new exported function
73         to deallocate a mount list entry.
74         (read_file_system_list): Refactor to use the new deallocation function.
75         Suggested by Anton Ovchinnikov.
76
77 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78
79         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
80         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
81         * lib/stdalign.in.h (_Alignas, _Alignof):
82         Port to FreeBSD 9.1, and to C11 and C++11.
83         (_Alignas): Also support ICC.
84         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
85         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
86
87 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
88
89         fnmatch: don't goto over declaration
90         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
91         undefined behavior for goto over a declaration.
92         Problem reported by Charlie Brown in
93         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
94
95         pipe2: decouple from binary-io a bit
96         This is for Emacs, which needs pipe2 but not binary-io.
97         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
98         * modules/binary-io (Depends-on): Add module indicator.
99
100 2013-07-03  Eric Blake  <eblake@redhat.com>
101
102         mgetgroups: relax license to LGPLv2+
103         * modules/getugroups (License): Change from GPLv3+.
104         * modules/mgetgroups (License): Likewise.
105         * modules/getgroups (License): Change from LGPLv3+.
106
107         xalloc-oversized: relax license to LGPLv2+
108         * modules/xalloc-oversized (License): Change from GPLv3+.
109
110         nproc: relax license to LGPLv2+
111         * modules/nproc (License): Change from LGPLv3+.
112
113         bootstrap: honor --no-git
114         * build-aux/bootstrap: Don't even try to use git when user is
115         pointing to a static checkout.
116
117 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118
119         ignore-value: port to gcc -pedantic
120         * lib/ignore-value.h (ignore_value):
121         Port to gcc -pedantic, by using __extension__.
122         Reindent as per usual gnulib style nowadays.
123         Simplify GCC version check.
124
125 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
126
127         extern-inline: port to gcc -std=c89
128         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
129         Do not use __gnu_inline__ if pedantic and pre-C99.
130
131 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
132
133         doc: document extern-inline
134         * doc/extern-inline.texi: New file.
135         * doc/gnulib.texi (alloca-opt): Include it.
136         * m4/extern-inline.m4: Move some comments to documentation,
137         and others closer to what they describe.
138
139         doc: chatter less
140         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
141         (updated-stamp): Use it.  This causes 'make' to output just
142         one file name rather than zillions.
143
144         fflush, fseeko: port to musl cross-compiles
145         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
146         on some implementation that (1) is not known to be buggy,
147         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
148         cross-compiled to so we can't easily check for lack of
149         conformance.  This is for cross-compiling to musl.
150         Reported by Rich Felker in
151         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
152         * m4/fclose.m4 (gl_FUNC_FCLOSE):
153         * m4/fflush.m4 (gl_FUNC_FFLUSH):
154         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
155         Adjust to above change.
156         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
157         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
158         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
159         known not to work, or unknown.
160
161 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
162
163         msvc-inval: port to mingw-w64
164         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
165         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
166         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
167
168 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
169
170         getcwd-lgpl: port to Tru64
171         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
172         Problem reported by Steven M. Schweda in
173         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
174
175         tests: port large-fd POSIX spawn tests to OS X
176         Problem reported by Daiki Ueno in
177         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
178         * tests/test-posix_spawn_file_actions_addclose.c:
179         * tests/test-posix_spawn_file_actions_adddup2.c:
180         * tests/test-posix_spawn_file_actions_addopen.c:
181         Include <limits.h>, for OPEN_MAX, if available.
182         (big_fd): New static function.
183         (main): Use it.
184
185 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
186
187         tests/nap.h: use an adaptive delay to avoid ctime update issues
188         The recent change in nap.h (5191133e) decreased the probability of lost
189         races to about a third, however such problems could still be observed
190         in virtual machines and openSUSE's OBS.
191         Before, nap() detected the needed time once empirically and then used
192         that delay (together with a small correction multiplier) in further
193         calls.  This problem has been reported and discussed several times,
194         including guesses about possible kernel issues:
195         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
196         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
197         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
198         http://bugs.gnu.org/12820
199         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
200         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
201         Now, nap() avoids the race alltogether by verifying on a reference
202         file whether a timestamp difference has happened.
203         * tests/nap.h (nap_fd): Define file descriptor variable for the
204         witness file.
205         (nap_works): Change return value to bool.  Change passing
206         the old file's status by value instead of by reference as this function
207         does no longer update that timestamp; rename the function argument from
208         st to old_st.  Remove the local variables cdiff and mdiff because that
209         function now returns true/false instead of the precise delay.
210         (guess_delay): Remove function.
211         (clear_tmp_file): Add new function to close and unlink the witness file.
212         (nap): Instead of re-using the delay which has been calculated during
213         the first call, avoid the race by actually verifying that a timestamp
214         difference can be observed on the current file system.  Use an adaptive
215         approach for the delay to minimize execution time.  Assert that the
216         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
217         = 2^31 - 1 = 2.1s.
218         Use atexit to call clear_tmp_file when the process terminates.
219
220 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
221
222         sig2str: port to C++
223         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
224         Reported by Daniel J Sebald in
225         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
226
227 2013-05-30  Eric Blake  <eblake@redhat.com>
228
229         docs: mention cygwin shortcoming in <sys/un.h>
230         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
231
232         vasnprintf: silence mingw compiler warning
233         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
234
235 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
236
237         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
238         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
239         This fixes a porting bug I recently reintroduced in regex, and
240         some other instances that I discovered while testing the fix.
241         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
242         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
243         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
244         with an empty argument if this is a pedantic pre-C99 GCC.
245         * lib/verify.h: Do not use _Static_assert if this is a pedantic
246         pre-C11 GCC.
247
248         regex: adapt to locking regime instead of depending on pthread
249         Instead of depending on pthread, adapt to whatever thread
250         modules are in use.  Problem reported by Ludovic Courtès in
251         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
252         and by Mats Erik Andersson in
253         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
254         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
255         Support either the 'lock' module, or the 'pthread' module, or
256         no module.
257         (lock_lock, lock_unlock): New macros.
258         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
259         * modules/lock, modules/pthread (configure.ac): Add module indicator.
260         * modules/regex (Depends-on): Remove pthread.
261
262 2013-05-22  Eric Blake  <eblake@redhat.com>
263
264         getgroups: document portability issues
265         * doc/glibc-functions/initgroups.texi (initgroups): Mention
266         multithread safety.
267         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
268         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
269         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
270         getugroups.
271         * doc/posix-functions/getgroups.texi (getgroups): Mention
272         multithread safety and mgetgroups.
273
274 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
275
276         test-lchown, test-chown: also skip test if chown fails with EPERM
277         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
278         skip this test, to handle FAT file systems.
279         * tests/test-chown.h (test_chown): Likewise.
280
281 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
282
283         regex: fix dfa race in multithreaded uses
284         Problem reported by Ludovic Courtès in
285         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
286         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
287         New macros.  All uses of __libc_lock_define, __libc_lock_init
288         changed to use the first two of these.
289         (__libc_lock_lock, __libc_lock_unlock): New macros, for
290         non-glibc platforms.
291         (struct re_dfa_t): Define the lock unconditionally.
292         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
293         '#ifdef _LIBC"s.
294         * modules/regex (Depends-on): Add pthread, if we use the
295         included regex.
296
297         * lib/regcomp.c: Do actions that are not needed for glibc,
298         but may be needed elsewhere.
299         (regfree, re_compile_internal): Destroy the lock.
300         (re_compile_internal): Check for lock-initialization failure.
301
302         malloca: port to compilers that reject size-zero arrays
303         This fixes a bug introduced in my previous patch.
304         * lib/malloca.c (struct preliminary_header): Use an int
305         rather than a character array of size int; that's simpler.
306         (struct header): Remove, replacing with ...
307         (union header): New type.  This avoids the need for declaring a
308         character array of size zero, which is not allowed on some platforms.
309         All uses changed.
310
311 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
312
313         parse-datetime, tests: don't use "string" + int
314         Recent versions of 'clang' complain about C source code that
315         uses expressions of the form '"string literal" + integer',
316         I guess on the theory that it's confusing for readers who are
317         used to C++.  On those grounds I suppose it's OK to make this
318         minor style change.
319         * lib/parse-datetime.y (parse_datetime):
320         * tests/test-fchdir.c (main):
321         * tests/test-snprintf-posix.h (test_function):
322         * tests/test-snprintf.c (main):
323         * tests/test-vasnprintf-posix.c (test_function):
324         * tests/test-vasnprintf.c (test_function):
325         * tests/test-vsnprintf.c (main):
326         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
327         Rewrite '"str" + E' to '&"str"[E]'.
328
329 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
330
331         argmatch: port to C++
332         * lib/argmatch.h [__cplusplus]: Add extern "C".
333
334         argp: typo fix
335         * lib/argp-help.c: Typo in comment.
336
337 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
338
339         manywarnings: update for GCC 4.8.0
340         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
341         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
342         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
343         -Wmissing-noreturn, as they are duplicates of other warnings.
344         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
345         was documented to be flaky in earlier versions of GCC.
346
347         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
348         * tests/test-spawn.c (main):
349         * tests/test-sys_socket.c (main):
350         * tests/test-sys_wait.c (main):
351         Don't have a switch value that isn't covered by a case.
352
353         getaddrinfo-tests: port --enable-gcc-warnings to clang
354         * tests/test-getaddrinfo.c (simple):
355         Avoid casts from looser to stricter-aligned pointers.
356
357         thread: port --enable-gcc-warnings to clang
358         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
359         Include <signal.h>, to pacify a warning about pthread_sigmask.
360
361         stdio: use __REDIRECT for fwrite, fwrite_unlocked
362         * lib/stdio.in.h (fwrite):
363         When working around bug 11959, use __REDIRECT rather than '#define
364         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
365         fix the -Wunused-value issue with clang, and it works with GCC too.
366         Problem with targeting reported by Eric Blake in
367         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
368         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
369         debugging the fwrite issue.
370
371         stdio: port --enable-gcc-warnings to clang
372         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
373         since the GCC workaround for fwrite does not pacify clang.
374
375         sig2str: port --enable-gcc-warnings to clang
376         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
377
378         obstack: port --enable-gcc-warnings to clang
379         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
380         Avoid casts from looser to stricter-aligned pointers.
381
382         memchr2: port --enable-gcc-warnings to clang
383         * lib/memchr2.c (memchr2):
384         Avoid casts from looser to stricter-aligned pointers.
385
386         mbsstr: port --enable-gcc-warnings to clang
387         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
388         Avoid casts from looser to stricter-aligned pointers.
389
390         malloca: port --enable-gcc-warnings to clang
391         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
392         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
393
394         inttostr: port --enable-gcc-warnings to clang
395         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
396
397         warnings: port to clang
398         Problem reported by Daniel P. Berrange via Eric Blake in
399         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
400         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
401         (gl_WARN_ADD): Use it.
402
403 2013-05-11  Jim Meyering  <meyering@fb.com>
404
405         quotearg: do not read beyond end of buffer
406         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
407         end of an ARG for which no length was specified.  With an N-byte
408         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
409         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
410         via coreutils' misc/sort-debug-keys.sh test and detected by running
411         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
412         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
413         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
414         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
415         characters correctly."
416
417 2013-05-11  Daiki Ueno  <ueno@gnu.org>
418
419         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
420         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
421         compilation target is Mac OS X 10.6.
422         Problem reported by parafin and Andoni Morales in
423         <http://savannah.gnu.org/bugs/?37844> and
424         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
425
426 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
427
428         mkdir-p: remove assumptions about umask and mode
429         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
430         umask is 0, or that MODE is a subset of MODE_BITS.
431
432 2013-05-10  Eric Blake  <eblake@redhat.com>
433
434         maint.mk: catch more abuse of HAVE_DECL in syntax-check
435         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
436
437 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
438
439         deps: require Automake >= 1.9.6 in generated Makefile fragments
440
441         That is the same minimal version required in the DEPENDENCIES file.
442         Moreover, the old code generated a requirement of Automake >= 1.5,
443         and that is an insanely outdated version.
444
445         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
446         * tests/havelib/rpathlx/Makefile.am: Likewise.
447         * tests/havelib/rpathly/Makefile.am: Likewise.
448         * tests/havelib/rpathlyx/Makefile.am: Likewise.
449         * tests/havelib/rpathlz/Makefile.am: Likewise.
450         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
451         * tests/havelib/rpathx/Makefile.am: Likewise.
452         * tests/havelib/rpathy/Makefile.am: Likewise.
453         * tests/havelib/rpathz/Makefile.am: Likewise.
454
455 2013-05-08  Eric Blake  <eblake@redhat.com>
456
457         bootstrap: AC_INIT may have more than four parameters
458         * build-aux/bootstrap (extract_package_name): Correctly extract
459         non-empty tarname field.  Avoid range in regex.
460         Based on a report by Sami Kerola <kerolasa@iki.fi>.
461
462 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
463
464         qacl: port to MS-Windows port of GNU Emacs
465         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
466         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
467         port of GNU Emacs.  Problem reported by Eli Zaretskii in
468         <http://bugs.gnu.org/14295#14>.
469
470 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
471
472         acl: include quote.h
473         * lib/copy-acl.c: Include quote.h.
474         * lib/set-acl.c: Likewise.
475
476 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
477
478         fchownat, renameat, unlinkat: update statat dependencies
479         These modules use statat and lstatat, not fstatat; so depend on
480         the statat module, which was split out recently from fstatat.
481         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
482         * modules/renameat: Likewise.  Also delete fstat.
483         URL: http://bugs.gentoo.org/468790
484
485 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
486
487         Assume gnulib is checked out from Git, not CVS
488
489         In fact, access to the gnulib repository through CVS has been
490         disabled, or more precisely, got broken and was never restored; see:
491         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
492
493         Note that support for CVS is not removed completely and unthinkingly
494         by this change: only support for CVS checkouts of gnulib itself is
495         removed.  For example, the 'bootstrap' script still cater to .cvsingore
496         files and CVS directories, for the benefit of those poor gnulib clients
497         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
498
499         * gnulib-tool: Simplify accordingly.
500         * posix-modules: Likewise.
501         * MODULES.html.sh: Likewise.
502         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
503         repository.
504         * doc/gnulib-intro.texi: Likewise.
505         * doc/gnulib-readme.texi: Likewise.
506         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
507         sample '.gitignore' file rather than a sample '.cvsignore'.
508         * NEWS: Update.
509         * m4/extensions.m4: While at it, remove a comment mistakenly referring
510         to "CVS Autoconf" rather than "git Autoconf".
511
512 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
513
514         utimensat-tests, etc.: try to fix some races
515         Problem reported by Bernhard Voelker in
516         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
517         I don't know whether this patch fixes that race condition, but it
518         fixes *some* race conditions, so it should be a win.
519         * modules/chown-tests (Depends-on):
520         * modules/fchownat-tests (Depends-on):
521         * modules/fdutimensat-tests (Depends-on):
522         * modules/futimens-tests (Depends-on):
523         * modules/lchown-tests (Depends-on):
524         * modules/stat-time-tests (Depends-on):
525         * modules/utimens-tests (Depends-on):
526         * modules/utimensat-tests (Depends-on):
527         Depend on nanosleep, not usleep.
528         * modules/chown-tests (test_chown_LDADD):
529         * modules/lchown-tests (test_lchown_LDADD):
530         * modules/stat-time-tests (test_stat_time_LDADD):
531         New macro.
532         * modules/fchownat-tests (test_fchownat_LDADD):
533         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
534         * modules/futimens-tests (test_futimens_LDADD):
535         * modules/utimens-tests (test_utimens_LDADD):
536         * modules/utimensat-tests (test_utimensat_LDADD):
537         Add $(LIB_NANOSLEEP).
538         * modules/stat-time-tests (Files): Add tests/nap.h.
539         * tests/nap.h: Include <limits.h>, for INT_MAX.
540         (lt_mtime): Remove.
541         (diff_timespec): New function.
542         (get_stat): Rename from get_mtime.  All callers changed.
543         (nap_works): Determine the needed delay by inspecting the
544         file system's timestamp jumps; this should be more reliable.
545         Look at both mtime and ctime, and take the maximum of the two jumps.
546         (nap_works, guess_delay):
547         Return a nanosecond cound, not a microsecond count.
548         All callers changed.
549         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
550         failure.
551         (nap): Multiply the guess by 1.125, to accommodate the case where
552         the file system's clock is a bit slower than nanosleep's clock.
553         * tests/test-stat-time.c (BASE): New macro.
554         Include nap.h.
555         (nap): Remove; nap.h now defines this.  This removes a duplicate
556         implementation of 'nap'.
557
558         utimens, utimensat: work around Solaris UTIME_OMIT bug
559         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
560         Linux kernel 2.6.32 does.  Work around it in the same way.
561         * doc/posix-functions/futimens.texi (futimens):
562         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
563         * lib/utimens.c (fdutimens, lutimens):
564         * lib/utimensat.c (rpl_utimensat): Work around the bug.
565
566         gettext: now it's your responsibility to add -I$(top_builddir)/intl
567         Formerly, it was your responsibility to do this for all Makefile.ams
568         other than Gnulib's.  Now it's your responsibility to do it for
569         Gnulib's Makefile.am, too.
570         * NEWS: Document this.
571         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
572
573         acl: include errno.h to get errno
574         Reported by Daiki Ueno in
575         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
576         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
577
578 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
579
580         tests: don't assume getdtablesize () <= 10000000
581         * modules/cloexec-tests:
582         * modules/dup2-tests:
583         * modules/dup3-tests:
584         * modules/nonblocking-tests:
585         * modules/posix_spawn_file_actions_addclose-tests:
586         * modules/posix_spawn_file_actions_adddup2-tests:
587         * modules/posix_spawn_file_actions_addopen-tests:
588         * modules/unistd-safer-tests:
589         Depend on the getdtablesize module.
590         * tests/test-cloexec.c:
591         * tests/test-dup-safer.c:
592         * tests/test-dup2.c:
593         * tests/test-dup3.c:
594         * tests/test-fcntl.c:
595         * tests/test-nonblocking.c:
596         * tests/test-posix_spawn_file_actions_addclose.c:
597         * tests/test-posix_spawn_file_actions_adddup2.c:
598         * tests/test-posix_spawn_file_actions_addopen.c:
599         Don't assume getdtablesize () <= 10000000.
600
601 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
602
603         extern-inline: work around bug in Sun c99
604         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
605         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
606
607 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
608
609         qacl: new module, broken out from the acl module
610         This is for GNU Emacs, which wants the acl functions but does
611         not want 'error' invoked when they fail.
612         * lib/acl-internal.h: Do not include error.h, quote.h.
613         (ENOSYS, ENOTSUP): Remove; no longer needed.
614         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
615         * lib/acl.h: Include <stdbool.h>.
616         (acl_errno_valid): New function.
617         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
618         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
619         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
620         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
621         (ACL_INTERNAL_INLINE): Remove; no longer needed.
622         * lib/file-has-acl.c (file_has_acl):
623         * lib/qcopy-acl.c (qcopy_acl):
624         * lib/qset-acl.c (qset_acl):
625         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
626         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
627         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
628         lib/file-has-acl.c, m4/acl.m4 to qacl module.
629         Add lib/set-acl.c.
630         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
631         Add qacl.
632         (configure.ac): Move gl_FUNC_ACL to qacl module.
633         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
634         Rename set-mode-acl.c to set-acl.c.
635         * lib/acl-errno-valid.c: New file.
636         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
637         copy_acl function remains in copy-acl.c.
638         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
639         (_): Remove; not needed.
640         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
641         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
642         * modules/qacl: New file, moved from the old modules/acl.
643         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
644         Remove set-mode-acl.c, copy-acl.c.
645         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
646
647         alignof, intprops, malloca: port better to IBM's C compiler
648         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
649         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
650         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
651
652 2013-04-25  Daiki Ueno  <ueno@gnu.org>
653
654         wctype-h: fix gettext link error on mingw
655         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
656         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
657         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
658         rpl_towupper and rpl_towupper.
659
660 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
661
662         regex-tests, regex: allow glibc re_search behavior
663         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
664         re_search input data to make the multi-character collating element
665         in it clearly visible, and treat re_search return code 0 as valid.
666         * m4/regex.m4 (gl_REGEX): Likewise.
667
668 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
669
670         stdalign: doc fix
671         * doc/posix-headers/stdalign.texi (stdalign.h):
672         Gnulib doesn't support '_Alignof expr'.
673
674 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
675
676         stdalign: port to stricter ISO C11
677         ISO C11 says that _Alignof's operand must be a parenthesized type.
678         Problem reported by Eli Zaretskii in
679         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
680         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
681         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
682
683 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
684
685         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
686         Problem reported by Marco Atzeri in
687         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
688         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
689         Simply delegate to the system <sys/select.h> in this case too.
690         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
691         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
692         be needed on Solaris either.
693         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
694         Simply delgate to the system <sys/time.h> in this case.
695
696 2013-03-19  Karl Berry  <karl@gnu.org>
697
698         * build-aux/gnupload: check for erroneous (with gnupload) use of
699         ftp-upload.gnu.org, tweak help.
700
701 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
702
703         copy-file, rpmatch: fix problems found by cppcheck
704         Reported by Arno Onken in
705         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
706         * lib/rpmatch.c (try): Fix memory leak.
707         * lib/copy-file.c: Include "ignore-value.h".
708         (qcopy_file_preserving): Ignore chown value.
709         * modules/copy-file (Depends-on): Add ignore-value.
710
711 2013-01-27  Jim Meyering  <jim@meyering.net>
712
713         prefix-gnulib-mk: give better diagnostics
714         * build-aux/prefix-gnulib-mk: Don't just "die".
715         Give better diagnostics upon failure.
716
717 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
718
719         putenv: port to Solaris 10
720         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
721         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
722         is not what is wanted here.
723         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
724         declaration, not for its existence.
725
726 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
727
728         mktime: fix configure typo
729         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
730
731 2013-03-12  Eric Blake  <eblake@redhat.com>
732
733         regex-tests: skip UTF-8 test on mingw
734         * modules/regex-tests (Depends-on): Add localcharset.
735         * tests/test-regex.c (main): Use it to skip test on mingw.
736
737 2013-03-11  Eric Blake  <eblake@redhat.com>
738
739         tests: make it easier to bypass alarm time in debugger
740         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
741         * tests/test-memmem.c (main): Likewise.
742         * tests/test-passfd.c (main): Likewise.
743         * tests/test-ptsname.c (main): Likewise.
744         * tests/test-ptsname_r.c (main): Likewise.
745         * tests/test-strcasestr.c (main): Likewise.
746         * tests/test-strstr.c (main): Likewise.
747
748         regex: port to mingw's recent addition of undeclared alarm
749         * doc/posix-functions/alarm.texi (alarm): Document that alarm
750         exists but still doesn't work in newer mingw.
751         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
752         not existence.  Ensure SIGALRM is not trapped.
753         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
754         * m4/regex.m4 (gl_REGEX): Likewise.
755         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
756         * tests/test-regex.c (main): Use correct probe for alarm.
757
758         putenv: avoid compilation warning on mingw
759         * lib/putenv.c (_unsetenv): Protect variable declaration.
760         (putenv): Fix indentation.
761
762 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
763
764         unistd: don't prevent Tru64 Unix from using gnulib strtod.
765         * lib/unistd.in.h: be careful not to include un-needed system
766         stdlib.h from here, because that prevents gnulib stdlib.h from
767         defining rpl_strtod correctly.
768
769 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
770
771         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
772         changesets, but for the 'precision 0' test.
773         * tests/test-vasprintf-posix.c (test_function): Don't insist on
774         round-to-even, since POSIX says rounding is implementation-defined
775         and OS X 10.8.2 rounds 1.51 to 1 here.
776
777         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
778         changeset.
779         * tests/test-vasprintf-posix.c (test_function): Don't insist on
780         round-to-even, since POSIX says rounding is implementation-defined
781         and OS X 10.8.2 rounds 1.5 to 1 here.
782
783 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
784
785         vasnprintf-posix-tests: allow rounding 1.5 to 1
786         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
787         round-to-even, since POSIX says rounding is implementation-defined
788         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
789         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
790
791         bootstrap: port to FreeBSD
792         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
793         that treat '--' differently.  Reported by Mats Erik Andersson in
794         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
795
796 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
797
798         regex: rename remaining __attribute calls to __attribute__.
799         2012-02-25 changed definition of __attribute, but left some uses
800         unchanged, preventing compilation of regex module on most non-gcc
801         environments.
802         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
803         (lookup_collation_sequence_value, build_range_exp)
804         (build_collating_symbol): Set attributes with newly renamed
805         __attribute__ decorator.
806         * lib/regex_internal.c (re_string_peek_byte_case)
807         (re_node_set_compare, re_node_set_contains): Likewise.
808         * lib/regexec.c (acquire_init_state_context): Likewise.
809
810 2013-03-06  Bruno Haible  <bruno@clisp.org>
811
812         execute: Revert last change, but use a different condition.
813         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
814         on Windows.
815
816 2013-03-05  Eric Blake  <eblake@redhat.com>
817
818         execute: drop dead code
819         * lib/execute.c (nonintr_close, nonintr_open): Delete.
820
821 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
822
823         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
824         * m4/non-recursive-gnulib-prefix-hack.m4
825         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
826         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
827         <http://bugs.gnu.org/10305#237>.
828
829 2013-03-04  Eric Blake  <eblake@redhat.com>
830
831         test-getsockopt: avoid compiler warning
832         * tests/test-getsockopt.c (includes): Ensure close is declared.
833
834 2013-03-02  Bruno Haible  <bruno@clisp.org>
835
836         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
837         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
838
839 2013-03-02  Bruno Haible  <bruno@clisp.org>
840
841         gettext: Update to version 0.18.2.
842         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
843         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
844                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
845
846 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
847
848         regex: merge patches from libc
849
850         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
851         * lib/regex_internal.h (__attribute__): Rename from __attribute.
852         All uses changed.
853         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
854         (re_string_wchar_at, re_string_elem_size_at):
855         Mark function as possibly unused.
856
857         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
858         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
859         elements compare against the byte sequence of it, not its name.
860
861 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
862
863         putenv: port better to native Windows
864         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
865         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
866         (_unsetenv): Use _putenv if available.
867         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
868         a bit less likely to cause damage.
869         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
870         Fix the wrong value with SetEnvironmentVariable.
871         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
872         code better.
873
874 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
875
876         regex: ignore old-style-definition warnings
877         * lib/regex.c: Add pragma to ignore these warnings.
878         Problem reported for GNU tar by Pavel Raiskup.
879
880 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
881
882         getcwd: support coreutils better
883         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
884         but this might not be correct in coreutils, which disables
885         the raw decl checks.  Problem reported by Nagendra in
886         <http://bugs.gnu.org/10305#192>.
887         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
888         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
889         Test the getcwd function, not any macro, since getcwd.c wants the
890         function.
891         * m4/getcwd.m4 (gl_FUNC_GETCWD):
892         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
893         compile, as might happen if there's a macro but no function.
894
895         strtod: support coreutils better
896         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
897         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
898         disables the raw decl checks.  This assumes there is an underlying
899         strtod, but that's a safe assumption these days.
900         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
901
902         mountlist: port to HP NonStop
903         Reported by Joachim Schmitz in
904         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
905         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
906         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
907
908 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
909
910         extern-inline: avoid compilation error with HP-UX cc
911         Reported by Richard Lloyd in
912         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
913         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
914         Suppress extern inline with HP-UX cc.  This should be safe,
915         though it may hurt performance.  Perhaps someone with some HP-UX
916         experience can come up with a higher-performance fix.
917
918 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
919
920         putenv: fix heap corruption with mixed putenv/_putenv
921         Problem reported by Michael Goffioul in
922         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
923         * lib/putenv.c (putenv) [HAVE__PUTENV]:
924         Rely on _putenv to allocate the new environment.
925         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
926         * modules/putenv (configure.ac): Use it.
927
928 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
929
930         unsetenv etc.: port to Solaris 11 + GNU Emacs
931         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
932         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
933         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
934         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
935         idea but is too painful to fix right now), and without this gnulib
936         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
937         compiling unsetenv.c on Solaris 11.  Fix the problem for
938         unsetenv.c, and fix other similar occurrences.
939
940 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
941
942         secure_getenv: fix C++ declaration typo
943         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
944         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
945         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
946
947 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
948
949         careadlinkat: stop exporting careadlinkatcwd
950         Only Emacs used it directly, and Emacs no longer needs it.
951         * NEWS: Document this simplification.
952         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
953         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
954         for readlink.
955         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
956         Don't include stdlib.h; no longer needed.
957         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
958         * lib/relocwrapper.c: Adjust comment to match new dependencies.
959         * modules/areadlink (Depends-on): Add readlink.
960         (Maintainer): Add self.
961         * modules/careadlinkat (Depends-on): Remove readlink.
962
963         extensions: port better to HP-UX
964         This is merged from git Autoconf.
965         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
966         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
967         so that it's compatible with the value used when compiling.
968
969         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
970         Problem reported by Mats Erik Andersson in
971         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
972         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
973         openpty function exists, not merely when we intend to replace it.
974         This corrects the 2013-01-31 patch, which mistakenly defined
975         HAVE_OPENPTY even on hosts that lacked it.
976
977 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
978
979         secure_getenv: fix include typo
980         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
981
982         secure_getenv: port better to FreeBSD and Solaris
983         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
984         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
985         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
986         This works better on BSDish platforms.
987         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
988         Test for issetugid if __secure_getenv is missing.
989
990 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
991
992         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
993         Some of these changes are merged in from git Autoconf.
994         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
995         When deciding whether to define _XOPEN_SOURCE, inspect the
996         preprocessor macro __hpux instead of the more-heavyweight
997         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
998         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
999         as the key for __EXTENSIONS__.
1000
1001         unistd: avoid namespace pollution on non-glibc systems
1002         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1003         This avoids namespace pollution on non-glibc systems, by causing
1004         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1005         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1006         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1007
1008 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1009
1010         tmpdir: use secure_getenv
1011         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1012         Define to secure_getenv, not getenv.
1013         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1014         as that's now secure_getenv's job.
1015         * modules/tmpdir (Depends-on): Add secure_getenv.
1016
1017         tempname: use secure_getenv
1018         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1019         Define to secure_getenv, not getenv.
1020         * modules/tempname (Depends-on):
1021         Add secure_getenv.
1022
1023         secure_getenv: new module
1024         * MODULES.html.sh (Extra functions based on ANSI C 89):
1025         Add secure_getenv.
1026         * doc/glibc-functions/secure_getenv.texi: New file.
1027         * doc/gnulib.texi: Include it.
1028         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1029         New files.
1030         * lib/stdlib.in.h (secure_getenv): New decl.
1031         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1032         * modules/stdlib (stdlib.h):
1033         Add secure_getenv checks.
1034
1035 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1038         Reported for OS X 10.8.2 by Assaf Gordon in
1039         <http://bugs.gnu.org/13516>.
1040         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1041         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1042         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1043         so that they can be kept in sync more easily.  Avoid PATH_MAX
1044         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1045         mkdir or chdir failure.
1046         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1047         lib/getcwd.c.
1048         (test_abort_bug): Do not test for the deep directory bug unless we
1049         have openat support.  Avoid PATH_MAX test on the Hurd.
1050
1051         regex-tests, regex: fix bug: memset undeclared
1052         * tests/test-regex.c: Don't include regex.h twice.  Include
1053         string.h, to declare memset.  Christensen's report also mentioned
1054         this issue.
1055         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1056         test-regex.c, to avoid future problems like this.  Remove
1057         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1058         twice.
1059
1060         regex-tests: fix link errors on older Solaris
1061         These need to link with @LIBINTL@ to get libintl_gettext.
1062         Problem reported by Tom G. Christensen in
1063         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1064         * modules/regex-tests (test_regex_LDADD): New macro.
1065
1066 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1067
1068         regex-tests: new module
1069         * modules/regex-tests, tests/test-regex.c: New files.
1070
1071         regex: fix off-by-one error in configure test
1072         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1073
1074 2013-01-31  Eric Blake  <eblake@redhat.com>
1075
1076         regex: avoid infinite configure test
1077         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1078
1079 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1080
1081         openpty: fix bug where HAVE_OPENPTY wasn't defined
1082         See the thread starting at:
1083         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1084         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1085         openpty function exists, not merely when we intend to replace it.
1086
1087 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1088
1089         sys_time: port to Solaris 2.6
1090         There is a circularity problem on Solaris 2.6, where <time.h> includes
1091         <sys/time.h> for struct timespec.  The include nesting is gnulib
1092         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1093         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1094         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1095         <sys/siginfo.h>; the last, innermost file needs struct
1096         timestruc_t, which is defined in <sys/time.h>, which has not been
1097         fully parsed.  Problem reported by Tom G. Christensen in
1098         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1099         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1100         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1101         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1102         uses split double-inclusion guards.
1103
1104 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         regex: test for buffer overrun
1107         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1108         for the just-fixed regex bug.
1109
1110 2013-01-29  Andreas Schwab  <schwab@suse.de>
1111
1112         regex: fix buffer overrun in regexp matcher [BZ #15078]
1113         * lib/regexec.c (extend_buffers): Add parameter min_len.
1114         (check_matching): Pass minimum needed length.
1115         (clean_state_log_if_needed): Likewise.
1116         (get_subexp): Likewise.
1117
1118 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1119
1120         mountlist: don't consider "devtmpfs" as dummy
1121         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1122         as there is storage associcated with it.
1123
1124 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         futimens-tests, utimens-tests: Depend on gettext.
1127         This works around a problem introduced in my 2013-01-12 patch,
1128         which added @LIBINTL@ to these modules.
1129         * modules/futimens-tests (Depends-on):
1130         * modules/utimens-tests (Depends-on): Add gettext.
1131
1132 2013-01-26  Eric Blake  <eblake@redhat.com>
1133
1134         test-getpeername: fix typo
1135         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1136
1137 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1138
1139         bootstrap: remove the need for a sorted .gitignore file
1140         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1141         rename to insert_if_absent(), so that we don't need or generate
1142         a sorted .gitignore file.  We do require a .gitignore with no
1143         existing duplicate entries and enforce that.
1144         (sort_patterns): Remove this function as we now use the simpler
1145         technigue of inserting blacklist entries at the top of the file,
1146         assuming gnulib won't be inserting !whitelist entries.
1147
1148 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1149
1150         readlinkat: don't depend on gl_FUNC_OPENAT
1151         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1152         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1153         renameat.m4, symlinkat.m4; but one thing at a time.
1154
1155         statat: new module, split out from fstatat
1156         GNU Emacs needs the POSIX-specified fstatat, but not the
1157         gnulib-specified statat and lstat.  Split the latter two into a
1158         new module 'statat'.
1159         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1160         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1161         Rename from FSTATAT_INLINE. All uses changed.
1162         * modules/fstatat (Files): Remove lib/statat.c.
1163         (gl_MODULE_INDICATOR([fstatat])): Remove.
1164         (lib_SOURCES): Remove.
1165         (Maintainer): Add self.
1166         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1167         * tests/test-fstatat.c (BASE): Don't define if already defined.
1168         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1169
1170 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1171
1172         tests: don't assume fd 99 is closed
1173         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1174         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1175         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1176         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1177         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1178         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1179         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1180         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1181         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1182         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1183         * tests/test-fwrite.c, tests/test-getpeername.c:
1184         * tests/test-getsockname.c, tests/test-getsockopt.c:
1185         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1186         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1187         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1188         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1189         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1190         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1191         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1192         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1193         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1194         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1195         Close file descriptor 99, instead of assuming it's already closed.
1196
1197 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1198
1199         stpncpy: port to OS X 10.8
1200         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1201         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1202
1203 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         unistd: port to recent mingw
1206         * lib/unistd.in.h: Remove special invocation convention for mingw,
1207         which breaks for the latest mingw version.  See John W. Eaton in
1208         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1209
1210         largefile: port better to Mac OS X 10.5
1211         This patch is backported from Autoconf git.
1212         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1213         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1214         with ino_t size being different for configuration time versus
1215         build/run time.  Problem reported by PHO in
1216         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1217
1218 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1219
1220         doc: clarify -Werror
1221         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1222         clarify that it's intended for developers, not for ordinary builds,
1223         and mention --enable-gcc-warnings as one possible use.
1224
1225 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1226
1227         stdint: fix build with Android's Bionic fox x86
1228         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1229         was already included as _SSIZE_T_DEFINED_ might also be defined
1230         in include/machine/_types.h, which is included by stdio.h
1231
1232 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         net_if-tests: port to Solaris 7 + GCC 3.4.6
1235         Problem reported by Tom G. Christensen in
1236         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1237         * tests/test-net_if.c (ni): Move to next the code that uses it,
1238         so that it's declared only if needed.
1239
1240 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1241
1242         net_if-tests: port to older Solaris
1243         Problem reported by Tom G. Christensen in
1244         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1245         * modules/net_if-tests (NET_IF_LIB): New substitution.
1246         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1247         (HAVE_IF_NAMEINDEX): New C macro.
1248         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1249
1250         system-quote-tests: port to older Solaris
1251         Problem reported by Tom G. Christensen in
1252         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1253         * tests/test-system-quote-child.c (fopen, fread): Undef.
1254
1255         c-xvasprintf etc.: fix link errors on older Solaris
1256         These need to link with @LIBINTL@ to get libintl_gettext.
1257         Problem reported by Tom G. Christensen in
1258         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1259         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1260         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1261         * modules/futimens-tests (test_futimens_LDADD):
1262         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1263
1264 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1265
1266         locale: port to Solaris 2.6 and 7 + GNU gettext
1267         * lib/locale.in.h: Just include_next <locale.h> when
1268         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1269         when combining the localename module with GNU gettext 0.18.2.
1270         Problem reported by Tom G. Christensen in
1271         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1272
1273 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1274
1275         stdlib: port to Solaris 2.6
1276         Also, the code worked on Solaris 7 through 9 only by accident.
1277         Problem reported by Tom G. Christensen in
1278         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1279         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1280         simply include the system stdlib.h.
1281         * lib/getopt.in.h (__need_system_stdlib_h):
1282         * lib/pthread.in.h (__need_system_stdlib_h):
1283         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1284         Define when including <stdlib.h>, to avoid problems at least for
1285         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1286         with the system stdlib.h.
1287
1288 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1289
1290         doc: update main copyright year
1291         * doc/gnulib.texi: Update copyright date.
1292
1293         doc: improve ISO 8601 discussion
1294         * doc/parse-datetime.texi (Combined date and time of day items):
1295         Specify more carefully what formats are supported and what is
1296         done with excess precision.
1297
1298 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         doc: avoid small caps
1301         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1302         they're more trouble than they're worth.  Suggested by Karl Berry
1303         in <http://bugs.gnu.org/13360>.
1304
1305         regex: conform to strict C
1306         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1307         From Aharon Robbins.
1308
1309         gnulib-tool: fix incompatibility with autopoint 0.18.2
1310         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1311         Problem reported by Tom G. Christensen in
1312         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1313
1314 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         fprintftime: bring back and reword fwrite comment
1317         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1318
1319         stdio: remove now-unnecessary stdio.c
1320         Since stdio.in.h no longer uses inline functions, we no longer
1321         need to compile the extern versions.
1322         * lib/stdio.c: Remove.
1323         * modules/stdio (Files): Remove lib/stdio.c.
1324         (lib_SOURCES): Remove.
1325
1326         unicodeio: depend on stdio, not ignore-value
1327         * lib/unicodeio.c: Do not include ignore-value.h.
1328         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1329         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1330
1331         fprintftime: depend on stdio, not ignore-value
1332         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1333         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1334         since the stdio module arranges to silence that warning now.
1335         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1336
1337 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1338
1339         stdint-tests: Fix expanded-before-required-warning.
1340         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1341
1342 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1343
1344         fwrite: silence __wur only for older glibc versions
1345         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1346         This will help us remove this workaround some time in the far future.
1347
1348 2013-01-03  Eric Blake  <eblake@redhat.com>
1349
1350         fwrite: silence __wur without using inline
1351         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1352         just gcc, and in a way that avoids inline issues.
1353         * modules/stdio (Depends-on): Drop extern-inline.
1354
1355 2013-01-03  Jim Meyering  <jim@meyering.net>
1356
1357         update-copyright: avoid copyright notice date corruption
1358         Given a sequence of copyright year numbers in which the final
1359         one was a two-digit number that happened to be a substring of
1360         a preceding four-digit year number, we would mistakenly update
1361         the substring (from two- to four-digit) rather than the two-digit
1362         number at the end, which, combined with the addition of the current
1363         4-digit year number would yield two 5-digit year numbers, e.g.,
1364         here, it would convert the first "99" to "1999, 2013" rather than
1365         the final one:
1366           1991, 99
1367           11999, 20131, 1999
1368         * build-aux/update-copyright: Tighten a regexp.
1369         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1370         Reported by Joseph Myers in
1371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1372
1373 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1374
1375         regex: omit needless signed-pointer casts
1376         * lib/regcomp.c (build_charclass, build_charclass_op):
1377         Use char *, not unsigned char *, for class name and extra.
1378         The char values are always nonnegative so there's no need to
1379         insist on unsigned char * here, and using char * removes the need
1380         for casts.  Reported by Aharon Robbins in
1381         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1382
1383         regex: support Gawk, which never uses alloca
1384         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1385         Do not include in this case.  Gawk doesn't supply a substitute
1386         alloca.h and doesn't need one.
1387
1388         regex: port __libc_lock_define usage to C89
1389         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1390         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1391         does not conform to C89, as it has an empty macro argument.
1392         Reported by Aharon Robbins in
1393         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1394
1395 2013-01-01  Eric Blake  <eblake@redhat.com>
1396
1397         maint: update all copyright year number ranges
1398         Run "make update-copyright".
1399
1400         version-etc: bump copyright year reported in --version
1401         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1402
1403 2012-12-31  Eric Blake  <eblake@redhat.com>
1404
1405         sigprocmask-tests: skip test if pid is unexpectedly large
1406         * tests/test-sigprocmask.c (main): Add range check.
1407
1408         git-version-gen: avoid test -z portability glitch
1409         * build-aux/git-version-gen: Prefer portable test spelling, since
1410         git-version-gen is run on more than just developer machines.
1411
1412 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1413
1414         git-version-gen: add --fallback option to use if git is not present
1415         * build-aux/git-version-gen: Add support for the new option --fallback,
1416         which comes into play when there is no $tarball_version_file and
1417         git is not working.
1418         (scriptversion): Update.
1419
1420         maint.mk: handle missing git with more grace
1421         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1422         Quietly proceed if git is not present.
1423
1424 2012-12-31  Eric Blake  <eblake@redhat.com>
1425
1426         dup2: work around cygwin bug
1427         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1428         * lib/dup2.c (rpl_dup2): Work around it.
1429         * doc/posix-functions/dup2.texi (dup2): Document it.
1430
1431 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1432
1433         regex: remove unnecessary dependency on localcharset.h
1434         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1435         hasn't been needed for years.
1436         * modules/regex (Depends-on): Remove localcharset.
1437
1438         regex: revert single-byte change
1439         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1440         to this function.  This was alredy fixed in a different way, at
1441         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1442         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1443         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1444
1445         regex: simplify based on Gawk version
1446         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1447         Reported by Aharon Robbins in
1448         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1449
1450 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1451
1452         regex: check that pattern char is single-byte
1453         Reported by Aharon Robbins in
1454         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1455         * lib/regexec.c (check_node_accept_bytes):
1456         Return 0 if the pattern string has a multibyte character here.
1457
1458         regex: implement rational ranges
1459         Reported by Aharon Robbins in
1460         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1461         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1462         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1463         Implement rational ranges.
1464
1465         regex: avoid redefining __wctype
1466         Reported by Aharon Robbins in
1467         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1468         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1469         #undef before defining.
1470
1471         regex: port to hosts where malloc (0) == NULL
1472         Reported by Aharon Robbins in
1473         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1474         * lib/regex_internal.c (re_node_set_alloc):
1475         Don't assume that malloc (0) yields nonnull.
1476         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1477         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1478         * modules/regex (Files): Add m4/eealloc.m4.
1479
1480         regex: port to C89
1481         Reported by Aharon Robbins in
1482         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1483         * lib/regcomp.c (init_word_char): Declaration before statement.
1484
1485         regex: merge glibc changes
1486         Also, copy the license wording from glibc.  This simplifies
1487         merging changes.  gnulib-tool will change the wording to GPL as
1488         appropriate, when importing it to other packages.  The only
1489         glibc change made since the last merge, which needs merging, is:
1490         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1491         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1492
1493         * users.txt: Add Emacs.
1494
1495         doc: omit mention of version when not needed
1496         * doc/gnulib-intro.texi (Portability and Application Code):
1497         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1498         Don't mention particular dates or versions when not necessary, so
1499         that the documentation won't go out of date so quickly.
1500
1501         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1502
1503 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1504
1505         bootstrap: pass --force to autoreconf.
1506         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1507         Add "--force" so that Automake's ylwrap and other such tools
1508         be updated at each bootstrap invocation.
1509         Use it.
1510
1511 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1512
1513         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1514         The earlier patch forgot to update one of the #if conditions, causing
1515         a problem on Debian testing i386 reported by Mats Erik Andersson
1516         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1517         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1518         (__argp_fmtstream_puts, argp_fmtstream_puts)
1519         (__argp_fmtstream_write, argp_fmtstream_write)
1520         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1521
1522         * doc/gnulib-readme.texi: Minor fixups.
1523         (Portability guidelines): Modernize URLs.  Remove some repetition.
1524         (Indent with spaces not TABs): Reword to avoid too-long lines.
1525         Remove some '@ifset standalone' stuff that isn't used.
1526
1527         * doc/gnulib-readme.texi (Portability guidelines):
1528         ctype.h, not ctime.h.
1529
1530         Correct name of POSIX.1-2001.
1531         * doc/posix-functions/fgetc.texi (fgetc):
1532         * doc/posix-functions/fgets.texi (fgets):
1533         * doc/posix-functions/fread.texi (fread):
1534         * doc/posix-functions/fscanf.texi (fscanf):
1535         * doc/posix-functions/getc.texi (getc):
1536         * doc/posix-functions/getchar.texi (getchar):
1537         * doc/posix-functions/scanf.texi (scanf):
1538         POSIX.1-2001, not POSIX-2001.
1539
1540         doc: move README into manual
1541         * README: Move contents to new file doc/gnulib-readme.texi.
1542         Replace with a one-line summary.
1543         * doc/gnulib.texi (Brief Overview): New section,
1544         with old intro preface.  Include gnulib-readme.texi for contents.
1545         (Philosophy): Rename from "Introduction", since this
1546         section no longer introduces the rest.  Write a new preface.
1547         * doc/gnulib-readme.texi: New file, with the old contents of
1548         README texinfo-ized.  This way, the README info appears
1549         in the online and printed manual.
1550
1551 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1552
1553         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1554         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1555         c_vasprintf() prototype.
1556
1557 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1558
1559         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1560         * lib/c-vasprintf.h: Remove stray semicolon.
1561
1562 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1563
1564         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1565         It is obsolete and is planned to be removed from Automake 1.14; see
1566         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1567         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1568         (installdirs-data, installdirs-data-yes):
1569         Use $(MKDIR_P), not $(mkdir_p).
1570         * m4/intl.m4 (AM_INTL_SUBDIR):
1571         * m4/po.m4 (AM_PO_SUBDIRS):
1572         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1573
1574 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1575
1576         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1577         On this platform, we are not optimizing but we are using
1578         the substitute for extern inlines, so compile as if
1579         C99-style extern inline, or a substitute, is available.
1580         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1581         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1582         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1583         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1584         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1585         Declare as ARGP_FS_EI, not as extern.
1586         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1587         (__option_is_short, _option_is_end, __option_is_end)
1588         [!_LIBC && __USE_EXTERN_INLINES]:
1589         Declare as ARGP_EI, not as extern.
1590
1591 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1592
1593         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1594         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1595         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1596         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1597         ...), as the latter is fatal with older Autoconfs.
1598         Problem reported and fix suggested by Eric Blake in thread starting at
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1600
1601 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1602
1603         AC_PROG_MKDIR_P: don't workaround if not buggy
1604         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1605         Define only for Autoconf versions before 2.62.
1606         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1607         undocumented m4_PACKAGE_VERSION, for consistency with the
1608         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1609         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1610         was introduced in 2.62.
1611
1612 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1613
1614         New 'c-*printf' modules for formatted output in C locale.
1615
1616         New module 'c-vasnprintf'.
1617         * modules/c-vasnprintf: New file.
1618         * lib/c-vasnprintf.c: New file.
1619         * lib/c-vasnprintf.h: New file.
1620
1621         New module 'c-snprintf'.
1622         * modules/c-snprintf: New file.
1623         * modules/c-snprintf-tests: New file.
1624         * lib/c-snprintf.c: New file.
1625         * lib/c-snprintf.h: New file.
1626         * tests/test-c-snprintf.c: New file.
1627         * tests/test-c-snprintf.sh: New file.
1628
1629         New module 'c-vsnprintf'.
1630         * modules/c-vsnprintf: New file.
1631         * modules/c-vsnprintf-tests: New file.
1632         * lib/c-vsnprintf.c: New file.
1633         * lib/c-vsnprintf.h: New file.
1634         * tests/test-c-vsnprintf.c: New file.
1635         * tests/test-c-vsnprintf.sh: New file.
1636
1637         New module 'c-vasprintf'.
1638         * modules/c-vasprintf: New file.
1639         * modules/c-vasprintf-tests: New file.
1640         * lib/c-asprintf.c: New file.
1641         * lib/c-vasprintf.c: New file.
1642         * lib/c-vasprintf.h: New file.
1643         * tests/test-c-vasprintf.c  +: New file.
1644         * tests/test-c-vasprintf.sh: New file.
1645
1646         New module 'c-xvasprintf'.
1647         * modules/c-xvasprintf: New file.
1648         * modules/c-xvasprintf-tests: New file.
1649         * lib/c-xasprintf.c: New file.
1650         * lib/c-xvasprintf.c: New file.
1651         * lib/c-xvasprintf.h: New file.
1652         * tests/test-c-xvasprintf.c: New file.
1653         * tests/test-c-xvasprintf.sh: New file.
1654
1655 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1656
1657         argp: better 'inline'
1658         Use extern-inline module to declare extern inline functions.
1659         This avoids some bogus warning diagnostics.  Problem discovered
1660         when modifying GNU tar to use the manywarnings module.
1661         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1662         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1663         Define based on extern-inline.
1664         * modules/argp (Depends-on): Add extern-inline.
1665
1666 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1667
1668         filemode, sys_stat: Handle MPX files a la AIX.
1669         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1670         * lib/sys_stat.in.h (S_ISMPX): New macro.
1671         * tests/test-sys_stat.c: Add tests for MPX files.
1672
1673 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1674
1675         x-to-1: honor $PERL
1676         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1677         a chance to use his preferred version of Perl.  This is typically
1678         required by Darwin users whose default /usr/bin/perl does not have all
1679         the libraries required by help2man, and who need to use their MacPorts
1680         installation of Perl instead.
1681
1682 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1683
1684         gnu-web-doc-update: add all the new files, even in new directories
1685         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1686         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1687         Use it.
1688         (main): Don't use cvsutils to get the list of unknown files,
1689         just add all the existing files and directories.
1690
1691 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1692
1693         gnu-web-doc-update: improve --help
1694         * build-aux/gnu-web-doc-update: Move comments into --help.
1695
1696 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1697
1698         mountlist: recognize more "dummy" file systems
1699         * lib/mountlist.c (ME_DUMMY_0):
1700         Add these dummy FS names to the list:
1701         - "debugfs" virtual filesystem for kernel debugging
1702         - "devpts" PTY slave filesystem
1703         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1704         - "fusectl" control filesystem for FUSE
1705         - "mqueue" enumerates POSIX message queues
1706         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1707         - "sysfs" is for exporting kernel objects
1708         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1709
1710 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1711
1712         extern-inline: avoid incompatibility with Darwin Libc
1713         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1714         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1715         Problem reported by Akim Demaille in
1716         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1717
1718 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1719
1720         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1721         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1722         let it handle password prompting.
1723
1724 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1725
1726         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1727         * lib/canonicalize.c (canonicalize_filename_mode):
1728         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1729         fetching the current directory.  Don't overrun the beginning of
1730         rpath if there's no slashes after the MS-Windows drive letter.
1731
1732 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1733
1734         maint.mk: avoid extra forks
1735         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1736         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1737         So use that instead of "$(shell test -f FILE && echo FILE)".
1738
1739 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1740
1741         vasnprintf: fix ASCII_ONLY typo
1742         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1743         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1744         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1745         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1746         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1747
1748 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1749
1750         list, oset, xlist, xoset: fix extern inline issue with C99
1751         This was introduced by my recent changes for 'inline'.
1752         Problem reported for gettext by Daiki Ueno in
1753         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1754         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1755         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1756         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1757         (gl_list_previous_node, gl_list_get_at)
1758         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1759         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1760         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1761         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1762         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1763         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1764         (gl_list_iterator_free, gl_sortedlist_search)
1765         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1766         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1767         (gl_sortedlist_remove):
1768         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1769         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1770         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1771         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1772         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1773         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1774         (gl_list_add_at, gl_sortedlist_add):
1775         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1776         Wrap these extern decls inside "#if 0", because they are implemented
1777         as inline functions, and extern inline is not what's wanted here.
1778         It would simplify these .h files to remove the extern decls entirely,
1779         although a downside would be less-clear separation between
1780         specification and implementation.
1781
1782 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         sys_stat: no 'static inline'
1785         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1786         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1787
1788         extern-inline: no 'static inline'
1789         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1790         Do not require AC_C_INLINE.
1791         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1792         'static inline', for older compilers.
1793
1794         snippet/warn-on-use: no 'static inline'
1795         * build-aux/snippet/warn-on-use.h:
1796         Remove unnecessary 'inline' in comment.
1797
1798         rbtree-list, rbtreehash-list: no 'static inline'
1799         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1800         * lib/gl_anytree_list2.h (node_at):
1801         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1802         (gl_oset_first, add_nodes_to_buckets):
1803         Now static, not static inline.
1804
1805         regex: no 'static inline'
1806         * lib/regex_internal.c (calc_state_hash):
1807         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1808         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1809         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1810         Now static, not static inline.
1811         (inline) [__GNUC__ < 3 && _LIBC]:
1812         Remove macro; no longer needed.
1813
1814         xvasprintf: no 'static inline'
1815         * lib/xvasprintf.c (xstrcat):
1816         Now static, not static inline.
1817         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1818         Do not require AC_C_INLINE.
1819
1820         parse-datetime, parse-duration: no 'static inline'
1821         * lib/parse-datetime.y (to_uchar):
1822         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1823         (scale_n_add):
1824         Now static, not static inline.
1825         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1826         * modules/parse-duration (configure.ac):
1827         Do not require AC_C_INLINE.
1828
1829         getaddrinfo: no 'static inline'
1830         * lib/getaddrinfo.c (validate_family):
1831         Now static, not static inline.
1832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1833         Do not require AC_C_INLINE.
1834
1835         ftruncate, fts, lstat, openat, raise: no 'static inline'
1836         * lib/ftruncate.c (chsize_nothrow):
1837         * lib/fts.c (opendirat, diropen):
1838         * lib/lstat.c (orig_lstat):
1839         * lib/openat.c (orig_openat):
1840         * lib/raise.c (raise_nothrow):
1841         Now static, not static inline.
1842         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1843         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1844         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1845         * m4/openat.m4 (gl_PREREQ_OPENAT):
1846         * m4/raise.m4 (gl_PREREQ_RAISE):
1847         Do not require AC_C_INLINE.
1848
1849         fflush, stat: no 'static inline'
1850         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1851         (clear_ungetc_buffer, disable_seek_optimization)
1852         (restore_seek_optimization, update_fpos_cache):
1853         * lib/stat.c (orig_stat):
1854         Now static, not static inline.
1855         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1856         (update_fpos_cache):
1857         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1858         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1859         * m4/stat.m4 (gl_PREREQ_STAT):
1860         Do not require AC_C_INLINE.
1861
1862         error, filevercmp: no 'static inline'
1863         * lib/error.c (is_open, flush_stdout):
1864         * lib/filevercmp.c (order):
1865         Now static, not static inline.
1866         * m4/error.m4 (gl_PREREQ_ERROR):
1867         * modules/filevercmp (configure.ac):
1868         Do not require AC_C_INLINE.
1869
1870         dup, execute, fatal-signal, etc.: no 'static inline'
1871         * lib/dup.c (dup_nothrow):
1872         * lib/execute.c (nonintr_close, nonintr_open):
1873         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1874         * lib/fopen.c (orig_fopen):
1875         * lib/freadseek.c (freadptrinc):
1876         * lib/freopen.c (orig_freopen):
1877         * lib/fstat.c (orig_fstat, fstat_nothrow):
1878         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1879         (get_rusage_as_via_iterator):
1880         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1881         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1882         * lib/isatty.c (_isatty_nothrow):
1883         * lib/open.c (orig_open):
1884         * lib/read.c (read_nothrow):
1885         * lib/sigprocmask.c (signal_nothrow):
1886         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1887         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1888         * lib/wait-process.c (unregister_slave_subprocess):
1889         * lib/write.c (write_nothrow):
1890         Now static, not static inline.
1891         * lib/spawn-pipe.c (nonintr_open): Define only if
1892         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1893         * m4/dup.m4 (gl_PREREQ_DUP):
1894         * m4/execute.m4 (gl_EXECUTE):
1895         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1896         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1897         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1898         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1899         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1900         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1901         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1902         * m4/open.m4 (gl_PREREQ_OPEN):
1903         * m4/read.m4 (gl_PREREQ_READ):
1904         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1905         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1907         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1908         * m4/write.m4 (gl_PREREQ_WRITE):
1909         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1910         Do not require AC_C_INLINE.
1911
1912         c-strtod, memcoll, readutmp: no 'static inline'
1913         * lib/c-strtod.c (c_locale):
1914         * lib/memcoll.c (strcoll_loop):
1915         * lib/readutmp.c (desirable_utmp_entry):
1916         Now static, not static inline.
1917         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1918         * m4/memcoll.m4 (gl_MEMCOLL):
1919         * m4/readutmp.m4 (gl_READUTMP):
1920         Do not require AC_C_INLINE.
1921
1922         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1923         * lib/arctwo.c (to_uchar):
1924         * lib/md4.c (set_uint32):
1925         * lib/md5.c (set_uint32):
1926         * lib/sha1.c (set_uint32):
1927         * lib/sha256.c (set_uint32):
1928         * lib/sha512.c (set_uint64):
1929         Now static, not static inline.  This is a bit simpler, and doesn't
1930         affect performance with GCC and default optimization.
1931         * m4/arctwo.m4 (gl_ARCTWO):
1932         * m4/md4.m4 (gl_MD4):
1933         * m4/md5.m4 (gl_MD5):
1934         * m4/sha1.m4 (gl_SHA1):
1935         * m4/sha256.m4 (gl_SHA256):
1936         * m4/sha512.m4 (gl_SHA512):
1937         Do not require AC_C_INLINE.
1938
1939         cond, lock, thread: better 'inline'
1940         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1941         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1942         New macros.  Use them instead of static inline, for header functions.
1943         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1944         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1945         * lib/glthread/lock.c (gl_waitqueue_init)
1946         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1947         * lib/glthread/thread.c (get_current_thread_handle):
1948         Change 'static inline' to 'inline'.
1949         * lib/glthread/cond.h, lib/glthread/thread.h:
1950         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1951         * m4/cond.m4 (gl_COND):
1952         * m4/lock.m4 (gl_PREREQ_LOCK):
1953         * m4/thread.m4 (gl_THREAD):
1954         Do not require AC_C_INLINE.
1955         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1956
1957         chdir-long, cycle-check, savewd: better 'inline'
1958         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1959         (find_non_slash):
1960         * lib/cycle-check.c (is_zero_or_power_of_two):
1961         * lib/savewd.c (savewd_delegating):
1962         Change 'static inline' to 'inline'.
1963         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1964         Replace all remaining uses of 'static inline' with it.
1965         * lib/savewd.h:
1966         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1967         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1968         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1969         * m4/savewd.m4 (gl_SAVEWD):
1970         Do not require AC_C_INLINE.
1971         * modules/savewd (Depends-on): Add extern-inline.
1972
1973         base32, base64: no need for 'inline'
1974         * lib/base32.c (to_uchar, get_8, decode_8):
1975         * lib/base64.c (to_uchar, get_4, decode_4):
1976         Change 'static inline' to 'inline'.
1977         * m4/base32.m4 (gl_PREREQ_BASE32):
1978         * m4/base64.m4 (gl_PREREQ_BASE64):
1979         Do not require AC_C_INLINE.
1980
1981         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1982         * lib/gl_array_oset.c (gl_array_nx_add_at):
1983         (gl_array_remove_at):
1984         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1985         (add_to_bucket, remove_from_bucket):
1986         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1987         Change 'static inline' to 'static', as it's simpler to omit
1988         'inline' unless there's a significant performance advantage.
1989
1990         list, oset, xlist, xoset, xsublist: simplify via extern inline
1991         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1992         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1993         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1994         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1995         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1996         New macro.  Replace all uses of 'static inline' with it.
1997         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1998         instead of as macros FOO that are defined to static inline
1999         functions FOO_inline.
2000         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2001         * lib/gl_xsublist.c:
2002         Reimplement from scratch, by defining the corresponding *_INLINE
2003         macro and including the corresponding .h file.  This is simpler.
2004         * modules/list, modules/oset, modules/xlist, modules/xoset:
2005         (Files): Remove m4/gl_list.m4.
2006         (configure.ac): Remove gl_LIST.
2007         * m4/gl_list.m4: Remove.
2008         * modules/list, modules/oset, modules/xlist, modules/xoset:
2009         * modules/xsublist:
2010         (Depends-on): Depend on extern-inline, not inline.
2011
2012         xalloc: better 'inline'
2013         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2014         New macro.  Replace all uses of 'static inline' with it.
2015         (static_inline): Remove.
2016         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2017         Let 'extern inline' do the work automatically, instead of doing
2018         it by hand.
2019         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2020         Remove.  All uses removed.
2021         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2022
2023         gethrxtime: better 'inline'
2024         * lib/xtime.c: New file.
2025         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2026         * lib/xtime.h (XTIME_INCLUDE):
2027         New macros.  Replace all uses of 'static inline' with them.
2028         * lib/gethrxtime.c (gethrxtime): Define only if
2029         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2030         this source file is now always compiled, because of the extern inline.
2031         * lib/gethrxtime.h, lib/xtime.h:
2032         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2033         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2034         if gethrtime works, as they're not needed in that case.
2035         (gl_XTIME): Do not require AC_C_INLINE.
2036         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2037         compiled now.  Move the check into gl_GETHRXTIME.
2038         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2039         (Depends-on): Add extern-inline.
2040         (configure.ac): gethrxtime is always compiled now.
2041         (lib_SOURCES): Add gethrxtime.c.
2042
2043         wctype-h: better 'inline'
2044         * lib/wctype-h.c: New file.
2045         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2046         New macro.  Replace all uses of 'static inline' with it.
2047         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2048         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2049         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2050         (Depends-on): Add extern-inline.
2051
2052         unistd: better 'inline'
2053         * lib/unistd.c: New file.
2054         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2055         New macro.  Replace all uses of 'static inline' with it.
2056         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2057         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2058         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2059         (Depends-on): Add extern-inline.
2060
2061         sys_socket: better 'inline'
2062         * lib/sys_socket.c: New file.
2063         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2064         New macro.  Replace all uses of 'static inline' with it.
2065         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2067         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2068         (Depends-on): Add extern-inline.
2069
2070         stdio: better 'inline'
2071         * lib/stdio.c: New file.
2072         * lib/stdio.in.h (_GL_STDIO_INLINE):
2073         New macro.  Replace all uses of 'static inline' with it.
2074         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2075         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2076         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2077         (Depends-on): Add extern-inline.
2078
2079         sigaction: better 'inline'
2080         * lib/sig-handler.c: New file.
2081         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2082         New macro.  Replace all uses of 'static inline' with it.
2083         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2084         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2085         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2086         (Depends-on): Add extern-inline.
2087
2088         selinux-h: better 'inline'
2089         * lib/se-context.c, lib/se-selinux.c: New files.
2090         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2091         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2092         New macro.  Replace all uses of 'static inline' with it.
2093         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2094         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2095         New macro.  Replace all uses of 'static inline' with it.
2096         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2097         * modules/selinux-h (Files, lib_SOURCES):
2098         Add lib/se-context.c, lib/se-selinux.c.
2099         (Depends-on): Add extern-inline.
2100         (configure.ac): Do not require AC_C_INLINE.
2101
2102         pthread: better 'inline'
2103         * lib/pthread.c: New file.
2104         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2105         New macro.  Replace all uses of 'static inline' with it.
2106         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2107         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2108         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2109         * modules/pthread (Files): Add lib/pthread.c.
2110         (Depends-on): Add extern-inline.
2111
2112         math: better 'inline'
2113         * lib/math.c: New file.
2114         * lib/math.in.h (_GL_MATH_INLINE):
2115         New macro.  Replace all uses of 'static inline' with it.
2116         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2117         * m4/math_h.m4 (gl_MATH_H):
2118         Do not require AC_C_INLINE.
2119         * modules/math (Files, lib_SOURCES):
2120         Add lib/math.c.
2121         (Depends-on): Add extern-inline.
2122
2123         count-one-bits: better 'inline'
2124         * lib/count-one-bits.c: New file.
2125         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2126         New macro.  Replace all uses of 'static inline' with it.
2127         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2128         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2129         Do not require AC_C_INLINE.
2130         * modules/count-one-bits (Files, lib_SOURCES):
2131         Add lib/count-one-bits.c.
2132         (Depends-on): Add extern-inline.
2133
2134         count-leading-zeros: better 'inline'
2135         * lib/count-leading-zeros.c: New file.
2136         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2137         New macro.  Replace all uses of 'static inline' with it.
2138         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2139         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2140         Do not require AC_C_INLINE.
2141         * modules/count-leading-zeros (Files, lib_SOURCES):
2142         Add lib/count-leading-zeros.c.
2143         (Depends-on): Add extern-inline.
2144
2145         bitrotate: better 'inline'
2146         * lib/bitrotate.c: New file.
2147         * lib/bitrotate.h (BITROTATE_INLINE):
2148         New macros.
2149         Replace all uses of 'static inline' with them.
2150         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2151         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2152         (Depends-on): Add extern-inline.
2153         (configure.ac): Do not require AC_C_INLINE.
2154
2155 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2156
2157         maint.mk: avoid gratuitous failure
2158         Reported by Stefano Lattarini in
2159         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2160         * top/maint.mk (public-submodule-commit): Quote more safely.
2161
2162 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2163
2164         canonicalize, canonicalize-lgpl: support MS-Windows file names
2165         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2166         for test cases, which it'd be nice to add at some point.
2167         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2168         * lib/canonicalize.c (canonicalize_filename_mode):
2169         * lib/canonicalize-lgpl.c (__realpath):
2170         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2171         slash is at the beginning of the file name.  Use ISSLASH, instead
2172         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2173         the first character with '/'.  Test for
2174         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2175         with a drive letter.
2176         * lib/canonicalize.c (SLASHES): New macro.
2177         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2178
2179 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2180
2181         fts: introduce FTS_VERBATIM
2182         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2183         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2184         * lib/fts.c (fts_open): Honor it.
2185
2186 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2187
2188         getlogin-tests: allow errno == ENXIO
2189         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2190         with errno == ENXIO (No controlling tty).
2191         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2192         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2193         with errno == ENOENT.  This was reported to happen in various
2194         situations on GNU/Linux.
2195
2196 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2197
2198         getlogin-tests: allow errno == ENOENT
2199         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2200         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2201         when running a test in an Emacs shell buffer.
2202
2203 2012-11-08  Jim Meyering  <jim@meyering.net>
2204
2205         tests/nap.h: avoid warning about unused variable
2206         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2207
2208         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2209         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2210         white space before each of the special-cased file names, to avoid
2211         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2212         in http://bugs.gnu.org/12830.
2213
2214 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2215
2216         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2217         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2218         fails with errno == EBADF when fd is opened with O_PATH.
2219         Reported by Jim Meyering in
2220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2221         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2222         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2223
2224 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2225
2226         test-utimens: speed up by taking shorter naps
2227         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2228         New functions.
2229         (nap): Use them, to do a better job of guessing the delay.
2230         On Fedora 17 with ext4 atop md atop hard disks, this made
2231         test-utimens run 10x faster, because the test napped for
2232         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2233         <http://bugs.gnu.org/12820#11>.
2234
2235 2012-11-07  Jim Meyering  <jim@meyering.net>
2236
2237         mountlist.c: fix a compilation failure
2238         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2239         I introduced while transforming commit v0.0-7683-g613bcb6
2240
2241 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2242
2243         errno: port to LynxOS 178 2.2.2
2244         Problem reported by Joel Brobecker in
2245         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2246         * doc/posix-headers/errno.texi (errno.h): Document this.
2247         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2248         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2249         Supply a string for EILSEQ.
2250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2251
2252 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2253
2254         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2255         Linux kernel 2.6.39 introduced O_PATH (see
2256         <http://lwn.net/Articles/433854/>) and this is a better fallback
2257         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2258         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2259         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2260         * lib/fcntl.in.h (O_ACCMODE):
2261         * tests/test-fcntl-h.c (main):
2262         Do not reject O_ACCMODE merely because it has more than the
2263         minimal number of bits, as POSIX allows extensions here.
2264
2265 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2266
2267         mountlist: do not classify a bind-mounted dir entry as "dummy"
2268         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2269         the "none"-testing clause.
2270         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2271         exception for bind-mounted directories.
2272
2273 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2274
2275         quote: provide a means to escape strings with nul characters
2276         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2277         (quote, quote_n): Rename formal arguments for consistency with
2278         quotearg.
2279
2280 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2281
2282         test-raise: don't assume 199 is an invalid signal
2283         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2284
2285         sh-quote-tests: port to Solaris 9
2286         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2287         Problem reported by Dagobert Michelsen in
2288         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2289
2290 2012-10-28  Jim Meyering  <jim@meyering.net>
2291
2292         maint.mk: rename a new configurable variable
2293         * top/maint.mk (_gl_translatable_string_re): Rename from
2294         translation-markers: _gl_ prefix to insulate from user Makefile code,
2295         and the _re suffix to inform that it's a regular expression.
2296
2297 2012-10-26  Eric Blake  <eblake@redhat.com>
2298
2299         maint.mk: let packages tweak sc_po_check pattern
2300         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2301         finding files with other translation markers.
2302
2303 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2304
2305         euidaccess: speed up 'configure' on GNU hosts
2306         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2307         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2308         it's needed only in this case.  Use AC_CHECK_DECLS, not
2309         AC_CHECK_DECLS_ONCE.
2310         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2311         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2312
2313         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2314
2315 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2316
2317         fchmodat, fchownat, fstatat: port to non-inlining compilers
2318         Problem reported for FreeBSD 9 by Jim Meyering in
2319         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2320         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2321         New files, which define FCHMODAT_INLINE etc.
2322         * lib/fchmodat.c (FCHMODAT_INLINE):
2323         * lib/fchownat.c (FCHOWNAT_INLINE):
2324         * lib/fstatat.c (FSTATAT_INLINE):
2325         Remove, as chmodat.c etc. now do this.
2326         * modules/fchmodat (Files): Add lib/chmodat.c.
2327         * modules/fchownat (Files): Add lib/chownat.c.
2328         * modules/fstatat (Files): Add lib/statat.c.
2329
2330 2012-10-15  Jim Meyering  <jim@meyering.net>
2331
2332         fchmodat.c, fchownat.c: compile-impeding typos
2333         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2334         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2335         Introduced in commit v0.0-7636-gd202279.
2336
2337 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         fcntl-h: support GNU flags like O_IGNORE_CTTY
2340         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2341         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2342         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2343         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2344         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2345         Define to 0 if not already defined.
2346         * tests/test-fcntl-h.c: Test these new flags.
2347
2348 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2349
2350         faccessat, etc.: support AT_FDCWD-only use
2351         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2352         this function only if its first argument is AT_FDCWD.
2353         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2354         values other than AT_FDCWD, so it doesn't want all the openat
2355         machinery with fchdir etc.
2356         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2357         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2358         * modules/unlinkat (Files):
2359         Remove lib/openat-priv.h, as at-internal supplies this file.
2360         Removing this file here allows us to support programs like Emacs
2361         that avoid at-internal.
2362
2363         faccessat: speed up 'configure' on mainstream hosts
2364         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2365         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2366         since it's only on unusual platforms that we need to check for
2367         'access', and it's better not to slow 'configure' down on all
2368         platforms.
2369
2370         faccessat: port to Solaris 10
2371         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2372         Needed on Solaris 10, which doesn't have AT_EACCESS,
2373         so we need the Gnulib fcntl.h, which defines it.
2374
2375 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2376         canonicalize: fix C89 compilation
2377         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2378         declarations so C89 is supported.  Also remove the comment
2379         referencing memorty allocation as the suggested feature could
2380         not be implemented as suggested.
2381         Reported by Michael Goffioul.
2382
2383 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2384
2385         group-member: omit unnecessary dependencies
2386         This is for Emacs, which has its own allocator and where we
2387         don't want to use xalloc.
2388         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2389         since we no longer use xmalloc.  Do not include stdbool.h, since
2390         the changes below happen to remove the only use of bool.
2391         (GROUPBUF_SIZE): New constant.
2392         (struct group_info): Remove n_groups member.  Add groupbuf member.
2393         This lets us get the groups without using malloc, usually.
2394         (free_group_info, get_group_info): Adjust to this.
2395         (get_group_info): Return the number of groups found, or -1 on error.
2396         Use plain malloc not xmalloc, and treat its failure as if there
2397         are no groups, as the user already loses in case of error.
2398         (group_member): Simplify, based on changes to get_group_info.
2399         * modules/group-member (Depends-on): Remove dependencies on
2400         xalloc and stdbool.  Add dependency on xalloc-oversized.
2401
2402 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2403
2404         gethrxtime: port to C++
2405         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2406
2407 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         ptsname: fix macro-name typo
2410         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2411
2412 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2413
2414         inttostr: Relax license.
2415         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2416
2417 2012-10-03  Eric Blake  <eblake@redhat.com>
2418
2419         ptsname_r: support ptys returned by FreeBSD posix_openpt
2420         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2421         lives in /dev/pts/.
2422
2423 2012-10-02  Eric Blake  <eblake@redhat.com>
2424
2425         pselect: reject invalid file descriptors
2426         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2427         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2428         * modules/pselect (Depends-on): Add dup2.
2429         * doc/posix-functions/pselect.texi (pselect): Document this.
2430
2431         select: reject invalid file descriptors
2432         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2433         * lib/select.c (rpl_select) [!win32]: Work around it.
2434         * modules/select (Depends-on): Add dup2.
2435         * doc/posix-functions/select.texi (select): Document this.
2436
2437         select: enhance test
2438         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2439         New functions.
2440         (test_function): Enhance test.
2441         (do_select_bad_fd): Avoid any stale errno values.
2442
2443         ptsname: reject invalid file descriptors
2444         http://www.austingroupbugs.net/view.php?id=503
2445         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2447         * modules/stdlib (Makefile.am): Replace witness.
2448         * lib/stdlib.in.h (ptsname): Allow for replacement.
2449         * modules/ptsname (configure.ac): Trigger replacement.
2450         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2451
2452 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2453
2454         hash-pjw-bare: new module
2455         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2456         * lib/hash-pjw-bare.h: Likewise.
2457         * modules/hash-pjw-bare: New file.
2458         * MODULES.html.sh (Misc): Add it.
2459
2460 2012-10-02  Eric Blake  <eblake@redhat.com>
2461
2462         manywarnings: cater to more gcc infelicities
2463         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2464         -Wuninitialized without -O.
2465
2466 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2467
2468         select, poll tests: Make setsockopt invocation effective.
2469         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2470         the bind() call.
2471         * tests/test-select.h (open_server_socket): Likewise.
2472
2473 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2474
2475         sockets, sys_stat: restore AC_C_INLINE
2476         This undoes the 2012-09-22 patch.
2477         * m4/sockets.m4 (gl_SOCKETS):
2478         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2479         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2480         and does not support plain 'inline'.  Reported by Bruno Haible in
2481         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2482
2483 2012-09-30  Bruno Haible  <bruno@clisp.org>
2484
2485         localeconv tests: Avoid test failure on OpenIndiana.
2486         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2487         skip the 'grouping' and 'mon_grouping' tests.
2488         Reported by Jim Meyering.
2489
2490 2012-09-30  Bruno Haible  <bruno@clisp.org>
2491
2492         havelib: Follow libtool developments.
2493         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2494         Suggested by Simon Josefsson.
2495
2496 2012-09-29  Jim Meyering  <meyering@redhat.com>
2497
2498         fstatat.c: fix a compile-impeding typo
2499         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2500         Introduced in commit v0.0-7636-gd202279.
2501         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2502
2503 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2504
2505         extern-inline: provide a -Wundef safe config.h
2506         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2507         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2508         to produce a -Wundef warning free config.h.
2509
2510 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2511
2512         hash-pjw: relax license to LGPLv2+
2513         * modules/hash-pjw (License): Relax, with consent of author.
2514
2515 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2516
2517         maint.mk: fix strict vs. lazy variable issues with RELEASE
2518         * top/maint.mk (_equal): New function.
2519         (member_check): Strip the result to avoid spurious spaces.
2520         (url_dir_list): Do not use ifeq, which is strict, as it will
2521         require RELEASE_TYPE to be defined.
2522         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2523         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2524         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2525         (announcement_Cc_beta,announcement_mail_headers_beta)
2526         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2527         (release): Do not depend on $(release-type), as it forces its
2528         evaluation.  Bounce to it.
2529
2530 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2531
2532         maint.mk: formatting changes
2533         * top/maint.mk: Indent bodies of if's.
2534
2535 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2536
2537         maint.mk: factor the validation of RELEASE_TYPE
2538         With help from Jim Meyering.
2539         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2540         * top/maint.mk (_empty, _sp): Move their definition earlier.
2541         (member-check, release-type): New.
2542         Use the latter instead of $(RELEASE_TYPE).
2543         Remove now useless local checks.
2544
2545 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2546
2547         maint.mk: provide "make upload" to ease uploading
2548         See
2549         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2550         Do not depend simply on the current $(VERSION), as there may have been
2551         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2552         as "make release-commit" already does.
2553
2554         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2555         "make TYPE".
2556
2557         * top/maint.mk (upload_command, upload, release): New.
2558         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2559         (VERSION): first word of $(RELEASE) is always right.
2560         (emit_upload_commands): Adjust.
2561         * top/README-release: Update.
2562
2563 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2564
2565         maint.mk: silent rules
2566         With help from Stefano Lattarini.
2567         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2568         (announcement): Use $(AM_V_at).
2569
2570 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2571
2572         localename: port gl_locale_name_thread_unsafe to FreeBSD
2573         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2574         and use the simpler FreeBSD implementation on Mac OS X as well.
2575         Original idea suggested by Ed Maste in
2576         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2577
2578 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2579
2580         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2581         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2582         * lib/mbuiter.c, lib/xsize.c: New files.
2583         * lib/binary-io.h (BINARY_IO_INLINE):
2584         * lib/eealloc.h (EEALLOC_INLINE):
2585         * lib/mbfile.h (MBFILE_INLINE):
2586         * lib/mbiter.h (MBITER_INLINE):
2587         * lib/mbuiter.h (MBUITER_INLINE):
2588         * lib/xsize.h (XSIZE_INLINE):
2589         New macros.
2590         Replace all uses of 'static inline' with them.
2591         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2592         * m4/eealloc.m4 (gl_EEALLOC):
2593         * m4/mbfile.m4 (gl_MBFILE):
2594         * m4/mbiter.m4 (gl_MBITER):
2595         * m4/xsize.m4 (gl_XSIZE):
2596         Do not require AC_C_INLINE.
2597         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2598         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2599         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2600         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2601         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2602         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2603         * modules/binary-io, modules/eealloc, modules/mbfile:
2604         * modules/mbiter, modules/mbuiter:
2605         (Depends-on): Add extern-inline.
2606
2607         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2608         * lib/pipe-filter-aux.c: New file.
2609         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2610         Replace all uses of 'static inline' with it.
2611         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2612         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2613         (filter_retcode): No real need for inline here.
2614         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2615         (Files): Add lib/pipe-filter-aux.c.
2616         (Depends-on): Add extern-inline.
2617         (configure.ac): Do not require AC_C_INLINE.
2618         (lib_SOURCES): Add pipe-filter-aux.c.
2619
2620         fdutimensat: omit unnecessary AC_C_INLINE
2621         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2622
2623         fchmodat, fchownat, fstatat: use extern-inline
2624         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2625         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2626         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2627         New macros.
2628         * lib/openat.h:
2629         Replace all uses of 'static inline' with them.
2630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2631         * modules/fchmodat, modules/fchownat, modules/fstatat:
2632         * modules/openat-h:
2633         (Depends-on):
2634         Add extern-inline.
2635         (configure.ac): Remove AC_C_INLINE.
2636
2637         acl, mbchar, priv-set: use extern-inline
2638         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2639         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2640         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2641         New macros.
2642         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2643         Replace all uses of 'static inline' with it.
2644         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2645         * m4/acl.m4 (gl_FUNC_ACL):
2646         * m4/mbchar.m4 (gl_MBCHAR):
2647         * m4/priv-set.m4 (gl_PRIV_SET):
2648         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2649         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2650         Add extern-inline.
2651
2652         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2653         * m4/sockets.m4 (gl_SOCKETS):
2654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2655         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2656         environments where it's already guaranteed to work, so we needn't
2657         check for it at 'configure'-time.
2658
2659         tls-tests: omit unnecessary 'inline'
2660         * tests/test-tls.c (perhaps_yield): No longer inline.
2661         Simplicity and portability trump efficiency in test cases.
2662
2663         utimens-tests: avoid unnecessary 'inline'
2664         * modules/fdutimensat-tests (configure.ac):
2665         * modules/futimens-tests (configure.ac):
2666         * modules/utimens-tests (configure.ac):
2667         * modules/utimensat-tests (configure.ac):
2668         Remove AC_C_INLINE.
2669         * tests/test-utimens-common.h (ctime_compare):
2670         No longer inline.  Simplicity and portability trump efficiency here.
2671
2672         misc: don't limit commentary to inline functions
2673         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2674         * lib/xalloc-oversized.h, lib/xsize.h:
2675         Contrast macros to functions in general, not just to inline functions,
2676         when the commentary does not apply only to inline functions.
2677
2678 2012-09-20  Jim Meyering  <meyering@redhat.com>
2679
2680         non-recursive-gnulib-prefix-hack: new module
2681         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2682         the file that originated in Bison.
2683         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2684         largely copied from a snippet that resided in bison's configure.ac.
2685         * modules/non-recursive-gnulib-prefix-hack: New file.
2686         * MODULES.html.sh (Support for maintaining and releasing projects):
2687         Add it.
2688
2689 2012-09-18  Jim Meyering  <meyering@redhat.com>
2690
2691         maint.mk: generalize _gl_tight_scope for non-recursive make
2692         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2693         that *.h would describe additional .h files in the directory
2694         specified by $(_gl_TS_dir).  I.e., add this...
2695         (_gl_TS_other_headers): New variable.
2696
2697         maint.mk: exempt trailing blanks found in "binary" files
2698         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2699         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2700         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2701
2702 2012-09-17  Jim Meyering  <meyering@redhat.com>
2703
2704         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2705         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2706         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2707         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2708
2709 2012-09-17  Jim Meyering  <meyering@redhat.com>
2710
2711         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2712         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2713         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2714         It is not in the same category as "exit (0)" or "exit (1)", and
2715         besides, I know of no symbolic name for that 77.  Reported by
2716         Richard W.M. Jones in
2717         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2718
2719 2012-09-17  Jim Meyering  <meyering@redhat.com>
2720
2721         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2722         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2723         all uses of #define, not just those that start in column 1.
2724         Richard W.M. Jones reported a false positive in
2725         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2726
2727 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2730         * lib/localcharset.c (locale_charset) [DARWIN7]:
2731         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2732         as these two values are incompatible.  Problem reported by Max Horn.
2733         For more discussion, please see
2734         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2735
2736         doc: document sticky-EOF issue
2737         * doc/posix-functions/fgetc.texi (fgetc):
2738         * doc/posix-functions/fgets.texi (fgets):
2739         * doc/posix-functions/fread.texi (fread):
2740         * doc/posix-functions/fscanf.texi (fscanf):
2741         * doc/posix-functions/getc.texi (getc):
2742         * doc/posix-functions/getchar.texi (getchar):
2743         * doc/posix-functions/scanf.texi (scanf):
2744         Mention that glibc and default Solaris do not conform to
2745         C99 and POSIX-2001 or later, with respect to how getchar
2746         etc. behave when feof reports nonzero.
2747
2748 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2749
2750         poll: fix poll(0, NULL, msec)
2751         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2752         but nfd is 0.  In that case poll should behave like select.
2753
2754 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2755             Paolo Bonzini <bonzini@gnu.org>
2756
2757         poll: fix for systems that can't recv() on a non-socket
2758         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2759         is readable.  In this case POLLHUP will not be supported.
2760         * doc/posix-functions/poll.texi: Document this.
2761
2762 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2763
2764         poll/select: document portability problems not fixed by Gnulib.
2765         * doc/posix-functions/poll.texi: poll does not work well on
2766         pipes under Windows.  It has the same limitations as select on
2767         BeOS.
2768         * doc/posix-functions/select.texi: select does not work well
2769         on pipes under Windows.
2770
2771 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2772
2773         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2774         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2775         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2776         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2777
2778 2012-09-06  Eric Blake  <eblake@redhat.com>
2779
2780         net_if: give more details about the bug being fixed
2781         * doc/posix-headers/net_if.texi: Add clarification.
2782
2783 2012-09-05  Eric Blake  <eblake@redhat.com>
2784
2785         net_if: new module
2786         * modules/net_if: New module, borrowing ideas from netinet_in.
2787         * m4/net_if_h.m4: New file.
2788         * lib/net_if.in.h: Likewise.
2789         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2790         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2791         * tests/test-net_if.c: Make function checks conditional.
2792         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2793
2794 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2795
2796         readutmp: fix non-portable UT_PID use
2797         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2798         Use `UT_PID (u) > 0' as absolute condition.
2799
2800 2012-09-04  Jim Meyering  <meyering@redhat.com>
2801
2802         fts: reduce two or more trailing spaces to just one, usually
2803         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2804         or more slashes, trim all but the final one.  But if a name consists
2805         solely of two slashes, don't modify it.  If it consists solely of
2806         three or more slashes, strip all but one.
2807
2808         This is part of the solution to a minor problem with rm:
2809         it would print a bogus ELOOP diagnostic when failing to remove
2810         the slash-decorated name of a symlink-to-directory:
2811
2812             $ mkdir d && ln -s d s && env rm -r s/
2813             rm: cannot remove 's': Too many levels of symbolic links
2814
2815         With the change below and a trivial don't-trim-trailing-slashes
2816         adjustment to remove.c, it does this:
2817
2818             $ env rm -r s/
2819             rm: cannot remove 's/': Not a directory
2820
2821         Improved by: Eric Blake
2822
2823         fts: when there is no risk of overlap, use memcpy, not memmove
2824         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2825
2826 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2827
2828         stdbool: be more compatible with mixed C/C++ compiles
2829         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2830         Define to bool, true, false, respectively, as GCC's builtin
2831         stdbool.h does.  Problem reported by Michael Goffioul in
2832         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2833
2834 2012-08-28  Jim Meyering  <meyering@redhat.com>
2835
2836         revert last change: it was not needed
2837         * tests/test-vc-list-files-git.sh: There's already a test for
2838         a working git, just below.
2839
2840 2012-08-28  Jim Meyering  <meyering@redhat.com>
2841
2842         tests: test-vc-list-files-git.sh: skip if git is not available
2843         * tests/test-vc-list-files-git.sh: Skip this test when git is
2844         not available.
2845
2846 2012-08-26  Bruno Haible  <bruno@clisp.org>
2847
2848         gnulib-tool: Remove no-op option --no-changelog.
2849         * gnulib-tool (func_usage): Don't mention --no-changelog.
2850         (do_changelog): Remove variable.
2851         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2852
2853 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2854
2855         doc: remove fdl-1.2.texi
2856         It is no longer used or maintained, and its use of @acronym
2857         is problematic.  See the thread containing
2858         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2859         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2860         * doc/old-licenses/fdl-1.2.texi: Remove.
2861
2862         execinfo: port to FreeBSD
2863         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2864         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2865         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2866         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2867
2868 2012-08-23  Jim Meyering  <meyering@redhat.com>
2869
2870         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2871         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2872         to placate gcc's -Wold-style-declaration.
2873
2874 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         doc: do not use @acronym
2877         * doc/inet_ntoa.texi (inet_ntoa):
2878         * doc/parse-datetime.texi (Seconds since the Epoch)
2879         (Specifying time zone rules):
2880         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2881         Don't use @acronym.  Problem reported by John Darlington in
2882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2883
2884 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2885
2886         stdnoreturn: port to newer GCCs
2887         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2888         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2889         Problem reported by Jim Meyering in
2890         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2891         Also, rename the 'test' function to a void a clash with the
2892         already-supplied 'main' function; this fixes a bug that incorrectly
2893         rejected GCC 4.7.1's <stdnoreturn.h>.
2894         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2895         Document GCC problem.
2896
2897 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2898
2899         pipe-filter: fix comment typo
2900         * lib/pipe-filter.h: Mention correct function.
2901
2902 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2903
2904         execinfo: new module
2905         This is for Emacs.  Currently, it provides a no-effect stub
2906         on all platforms where it does not already work.
2907         It already works on glibc-based systems, and on Solaris 11.
2908         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2909         New files.
2910         * doc/glibc-headers/execinfo.texi (execinfo.h):
2911         * MODULES.html.sh (Misc): Document it.
2912
2913 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2914
2915         extern-inline: support old GCC 'inline'
2916         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2917         if available.  This applies to GCC versions 2.7 through 4.2, or
2918         when newer GCC is using -fgnu89-inline.  The goal is to address
2919         some of the performance issues mentioned by Bruno Haible in
2920         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2921
2922 2012-08-20  Eric Blake  <eblake@redhat.com>
2923
2924         maint.mk: avoid redundant file name in message
2925         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2926         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2927         (sc_makefile_path_separator_check): Remove bogus $(ME).
2928
2929 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2930
2931         timer-time: fix link order when static linking on glibc
2932         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2933         _after_ -lrt so that it's significant.
2934
2935 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         timespec: omit unnecessary AC_C_INLINE
2938         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2939
2940         stat-time: omit unnecessary AC_C_INLINE
2941         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2942         Do not require AC_C_INLINE.
2943
2944         ignore-value: omit unnecessary AC_C_INLINE
2945         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2946
2947         sys_select: avoid 'static inline'
2948         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2949
2950         mktime: avoid 'static inline'
2951         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2952         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2953
2954 2012-08-19  Bruno Haible  <bruno@clisp.org>
2955
2956         gnulib-tool: Improve coding style.
2957         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2958         func_emit_lib_Makefile_am.
2959         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2960
2961 2012-08-19  Bruno Haible  <bruno@clisp.org>
2962
2963         gnulib-tool: Fix indentation.
2964         * gnulib-tool (func_import): Fix indentation.
2965
2966 2012-08-19  Bruno Haible  <bruno@clisp.org>
2967
2968         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2969         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2970         on the list of removed files.
2971
2972 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         test-parse-datetime: avoid glibc leap-second glitch
2975         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2976         with the 2012 rules.  Problem reported by Bruce Dubbs in
2977         <http://bugs.gnu.org/12206>.
2978
2979 2012-08-14  Bruno Haible  <bruno@clisp.org>
2980
2981         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2982         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2983         from argument.
2984         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2985
2986 2012-08-14  Eric Blake  <eblake@redhat.com>
2987
2988         ldexp: relax license
2989         * modules/ldexp (License): Trivial relax, since the module only
2990         provides a permissively licensed m4 file.
2991
2992 2012-08-13  Bruno Haible  <bruno@clisp.org>
2993
2994         gnulib-tool: Fix persistence of --witness-c-macro option.
2995         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2996         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2997
2998 2012-08-11  Eric Blake  <eblake@redhat.com>
2999
3000         count-leading-zeros: use a lookup table on non-gcc compilers
3001         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3002         alternate implementation, suggested by Jim Meyering.
3003
3004 2012-08-10  Eric Blake  <eblake@redhat.com>
3005
3006         count-leading-zeros: new module
3007         * modules/count-leading-zeros: New module.
3008         * m4/count-leading-zeros.m4: New file.
3009         * lib/count-leading-zeros.h: Likewise.
3010         * modules/count-leading-zeros-tests: New test.
3011         * tests/test-count-leading-zeros.c: New file.
3012         * MODULES.html.sh (Integer arithmetic functions): Document it.
3013
3014 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3015             Jim Meyering  <meyering@redhat.com>
3016
3017         maintainer-makefile: Fix syntax error with dash.
3018         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3019         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3020
3021 2012-08-05  Jim Meyering  <meyering@redhat.com>
3022
3023         extern-inline: also ignore -Wmissing-declarations
3024         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3025         required with gcc-4.8.0-to-be.
3026
3027         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3028         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3029         for /error ?([^,]*)/.  This avoids false-positives for strings like
3030         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3031
3032 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3033
3034         gnumakefile: better interaction with Automake-NG
3035         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3036         Automake-NG always contain a definition of VPATH, even in non-VPATH
3037         builds (its value being simply '.' in that case).  So, in the
3038         'clean-GNUmakefile' rule, to determine whether running under a
3039         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3040         '$(VPATH)' expands to the empty string.
3041
3042 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3043
3044         base64: Use extern C scope in header file, for C++.
3045         * lib/base64.h: Add C++ namespace protection.
3046
3047 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3048
3049         stat-time, timespec, u64: support naive out-of-dir builds
3050         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3051         Use '#include "foo.h"', not '#include <foo.h>', when including
3052         one's own interface.  This works better when configuring with
3053         out-of-directory builds, since packages need not add an
3054         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3055
3056 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         utimens: use extern-inline
3059         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3060         * lib/utimens.h: Add copyright notice, since this is now large enough
3061         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3062         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3063         * modules/utimens (Depends-on): Add extern-inline.
3064
3065         u64: use extern-inline
3066         * lib/u64.c: New file.
3067         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3068         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3069         * modules/u64 (Files): Add lib/u64.c.
3070         (Depends-on): Add extern-inline.
3071         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3072         does that now.
3073         (lib_SOURCES): Add u64.c.
3074
3075         timespec: use extern-inline
3076         * lib/timespec.c: New file.
3077         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3078         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3079         * modules/timespec (Files): Add lib/timespec.c.
3080         (Depends-on): Add extern-inline.
3081         (lib_SOURCES): Add timespec.c.
3082
3083         stat-time: use extern-inline
3084         * lib/stat-time.c: New file.
3085         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3086         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3087         * modules/stat-time (Files): Add lib/stat-time.c.
3088         (Depends-on): Add extern-inline.
3089         (lib_SOURCES): Add stat-time.c.
3090
3091         extern-inline: new module
3092         * modules/extern-inline, m4/extern-inline.m4: New files.
3093         This is for better support of 'extern inline' a la ISO C99,
3094         with a portable alternative on compilers that do not support
3095         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3096         of the Emacs executable, when compiled with debugging disabled,
3097         which is a typical way that Emacs is built while developing.
3098
3099 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3100
3101         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3102         * build-aux/do-release-commit-and-tag: Move variable definitions
3103         together.
3104         ($branch): Instead of defaulting to "master", default to the current
3105         branch (as gnu-web-doc-update does).
3106         (help): Display the current values of the option arguments.
3107         * top/maint.mk (release-commit): New.
3108         * top/README-release: Simplify the corresponding step.
3109
3110 2012-07-30  Eric Blake  <eblake@redhat.com>
3111
3112         passfd: fix comment on recvfd
3113         * lib/passfd.c (recvfd): Fix comment.
3114         Reported by Jann Horn <jannhorn@googlemail.com>.
3115
3116 2012-07-30  Jim Meyering  <meyering@redhat.com>
3117
3118         maint.mk: avoid a sub-shell
3119         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3120
3121 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3122
3123         maint.mk: use silent-rules support from Automake
3124         * top/maint.mk (news-check, vc-diff-check, announcement)
3125         (no-submodule-changes, alpha beta stable, release-prep)
3126         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3127
3128 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3129
3130         maint.mk: provide a web-manual-update target
3131         * top/maint.mk: here.
3132         * top/README-release: Use it to simplify the web manual update step.
3133
3134 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3135
3136         README-release: shorten the circuit to post a news
3137         * top/README-release: Point directly to the news submission form.
3138
3139 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3140
3141         gnu-web-doc-update: fix --help
3142         * build-aux/gnu-web-doc-update: The information "top level" was written
3143         twice.
3144
3145 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3146
3147         maint.mk: absolute VPATH issue
3148         * top/maint.mk (release-prep): Help Git find .git/.
3149         From Jim Meyering.
3150
3151 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3152
3153         gitlog-to-changelog: fix previous change
3154         * build-aux/gitlog-to-changelog: Fix condition.
3155         Add missing ";".
3156
3157 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3158
3159         gitlog-to-changelog: don't expect .git to be in $srcdir
3160         Reported by Bruno Haible.
3161         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3162         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3163         Use it.
3164
3165 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3166
3167         maint.mk: absolute VPATH build fix
3168         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3169         $(srcdir) is not a parent of $(builddir).
3170
3171 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3172
3173         clean-temp: Fix memory leak.
3174         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3175         'files' members of tmpdir.
3176
3177 2012-07-27  Jim Meyering  <meyering@redhat.com>
3178
3179         maint.mk: new rule: refresh-gnulib-patches
3180         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3181         Use this rule to refresh them.
3182         * top/maint.mk (refresh-gnulib-patches): New rule.
3183
3184 2012-07-24  Bruno Haible  <bruno@clisp.org>
3185
3186         gnulib-tool: Fix handling of inctests variable.
3187         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3188         Reported by Nick Bowler <nbowler@elliptictech.com>.
3189
3190 2012-07-22  Bruno Haible  <bruno@clisp.org>
3191
3192         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3193         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3194         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3195         Remove exemption for getpass.h.
3196         Suggested by Eric Blake.
3197
3198 2012-07-20  Eric Blake  <eblake@redhat.com>
3199
3200         verify: document conflict with -Wnested-externs
3201         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3202
3203         maint.mk: forbid exit(-1)
3204         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3205
3206 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3207
3208         fsusage: port back to Solaris
3209         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3210         error (fsd not declared) on Solaris 10.  Reported privately by
3211         Andrew Borodin.
3212
3213 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3214
3215         gnu-web-doc-update: fix error messages
3216         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3217
3218         gnu-web-doc-update: check the requirements.
3219         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3220         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3221         * build-aux/bootstrap (find_tool): Comment change.
3222
3223 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3224
3225         maint.mk: minor simplication.
3226         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3227         for default values.
3228
3229 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3230
3231         gitlog-to-changelog: VPATH build issues
3232         If builddir is not a subdirectory of srcdir, running git from it will
3233         fail.
3234         * build-aux/gitlog-to-changelog (--srcdir): New option.
3235
3236 2012-07-15  Bruno Haible  <bruno@clisp.org>
3237
3238         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3239         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3240         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3241         Remove exemption for fpending.h.
3242         Suggested by Eric Blake.
3243
3244 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3245
3246         pthread_sigmask: fix bug on FreeBSD 9
3247         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3248         Include string.h.
3249         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3250         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3251         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3252         but pthread_sigmask (1729, NULL, NULL) returns zero.
3253         See <http://bugs.gnu.org/11884>.
3254         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3255         by inspecting whether the main call changed the old mask.
3256
3257 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3258
3259         README-release: make it more legible
3260         * top/README-release: Improve typography slightly.
3261
3262 2012-07-15  Jim Meyering  <meyering@redhat.com>
3263
3264         maint: require that each sc_... command start with "@"
3265         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3266         "make sc_maint" helps us avoid this nit.
3267
3268 2012-07-15  Jim Meyering  <meyering@redhat.com>
3269
3270         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3271         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3272
3273 2012-07-13  Eric Blake  <eblake@redhat.com>
3274
3275         maint.mk: new syntax check for HAVE_DECL checks
3276         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3277         * cfg.mk
3278         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3279         Exempt some false positives.
3280         Based on a report by Karel Zak.
3281
3282         argp: make HAVE_DECL usage consistent
3283         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3284         macros, not whether they are defined.
3285         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3286         convention with other declaration checks.
3287         Reported by Karel Zak, with suggestions from Paul Eggert.
3288
3289         stat-time: relax license to LGPLv2+
3290         * modules/stat-time (License): Relax, with consent of all authors.
3291
3292         strndup: fix m4 usage error
3293         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3294         defined, to either 0 or 1.
3295         Reported by Karel Zak.
3296
3297 2012-07-11  Jim Meyering  <meyering@redhat.com>
3298
3299         maint: enable the sc_avoid_if_before_free syntax-check rule
3300         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3301         (if_before_free_offenders_): Define.
3302         (if_before_free_basename_re_): Define.
3303         Exempt current files with useless if-before-free.
3304
3305 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3306
3307         gettext: do not assume '#define ... defined ...' behavior
3308         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3309         Do not use '#define FOO ... defined BAR ...', as the C standard says
3310         it's not portable to expect that this works after macro expansion.
3311         Problem reported for gzip by Steven M. Schweda in
3312         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3313
3314 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3315
3316         getloadavg: clean out old Emacs and Autoconf cruft
3317         See Glenn Morris in <http://bugs.gnu.org/11905>.
3318         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3319         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3320         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3321         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3322
3323 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3324
3325         bootstrap: let warn be like tests/init.sh's warn_
3326         Reported by Jim Meyering.
3327         * build-aux/bootstrap (warn): Remove, replaced by...
3328         (warnf_, warn_): these.
3329         Adjust callers.
3330         Shorten messages that no longer fit in 80 columns.
3331
3332 2012-07-09  Bruno Haible  <bruno@clisp.org>
3333
3334         getopt: Simplify after Emacs changed.
3335         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3336         (gl_GETOPT_IFELSE): Remove macro.
3337
3338 2012-07-09  Jim Meyering  <meyering@redhat.com>
3339
3340         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3341         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3342
3343         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3344         Bugs in both of those conspired to make the
3345         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3346         _sc_search_regexp's handling of non-empty $in_files would filter
3347         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3348         choice of in_files value meant there would be no match in most
3349         projects, due to the presence of two or more Makefile.in files.
3350         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3351         Fix a bug in how a non-empty $$in_files was processed:
3352         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3353         in spite of the name, it's a regexp, not a list of file names.
3354
3355 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3356
3357         getloadavg, getopt: fix commentary re configure.in
3358         Autoconf is deprecating the name 'configure.in', so change it to
3359         to the new name 'configure.ac' in a couple of places.
3360         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3361         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3362         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3363         Emacs has renamed it to configure.ac, and it no longer refers
3364         to these macros anyway.
3365
3366         timespec: mark functions with const attributes
3367         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3368         Mark with _GL_ATTRIBUTE_CONST.
3369
3370 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3371
3372         canonicalize[-lgpl]: handle "guessing" values when cross-building
3373         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3374         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3375         matches "*yes" instead of just "yes".  Regression introduced in commit
3376         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3377
3378 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3379             Bruno Haible  <bruno@clisp.org>
3380
3381         canonicalize: make the right guess when cross-compiling to GNU
3382         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3383         determine whether cross-compiling to glibc systems, so as to
3384         include GNU/Hurd.
3385
3386 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3387
3388         timespec-sub: avoid duplicate include
3389         * lib/timespec-sub.c: Do not include <config.h> twice.
3390         Reported by Juanma Barranquero.
3391
3392 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3393
3394         bootstrap: use a more consistent error reporting scheme
3395         * build-aux/bootstrap (warn, die): New.
3396         Use them.
3397
3398 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3399
3400         sys_time: allow too-wide tv_sec
3401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3402         timeval even if tv_sec is wider than time_t.  This allows
3403         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3404         as without this patch gnulib replaces struct timeval
3405         and OpenBSD futimes therefore has a type mismatch.
3406         * doc/posix-headers/sys_time.texi: Mention this.
3407
3408         pthread: check for both pthread_create and pthread_join
3409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3410         alter the check so that it tests for both pthread_create and
3411         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3412         Suggested by Bruno Haible and Richard Yao in
3413         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3414
3415         parse-datetime: doc tuneup
3416         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3417         spacing issues.
3418
3419 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3420
3421         do-release-commit-and-tag: fix the previous commit
3422         * build-aux/do-release-commit-and-tag: Actually the test was right,
3423         but the comment and the error message were misleading.
3424         Fix comment, and improve error message.
3425         Perform check first, so that NEWS is not modified uselessly.
3426
3427         do-release-commit-and-tag: fix typo
3428         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3429         _not_ start with a stub.
3430
3431 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3432
3433         pthread: check for pthread_create, not pthread_join
3434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3435         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3436         pthread_join in libc.  I hope this removes the need for all the
3437         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3438         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3439
3440 2012-07-04  Jim Meyering  <meyering@redhat.com>
3441
3442         parse-datetime: fix failure to diagnose invalid input
3443         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3444         rather than diagnosing the invalid input.  Now it reports this:
3445         date: invalid date '\260'
3446         * lib/parse-datetime.y (to_uchar): Define.
3447         (yylex): Don't sign-extend "other" bytes.
3448         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3449         Thanks to Bruno Haible for the patch to this file.
3450         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3451         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3452
3453 2012-07-03  Jim Meyering  <meyering@redhat.com>
3454
3455         bootstrap: do not require now-removed build-aux/missing
3456         Now that build-aux/missing is, er, missing, bootstrap would
3457         silently fail.
3458         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3459         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3460         no longer part of gnulib.
3461         Diagnose the failure.
3462
3463 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3464
3465         alloca: add support for HP NonStop TNS/E native
3466         * lib/alloca.in.h (alloca): Support the new host.
3467         From a suggestion by Joachim Schmitz in
3468         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3469
3470 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3471
3472         fsusage: remove code not needed on non GNU/Linux systems.
3473
3474         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3475         Don't include headers no longer needed in this case.
3476         * lib/fsusage.c [STAT_STATVFS &&
3477         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3478         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3479
3480 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3481
3482         fsusage: include files needed for glibc 2.6 fallback
3483         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3484         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3485         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3486         Problem reported by Ludovic Courtès in
3487         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3488
3489         fsusage: avoid needless check on GNU/Linux
3490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3491         on GNU/Linux systems, since it can't possibly work.
3492
3493 2012-07-01  Bruno Haible  <bruno@clisp.org>
3494
3495         log: Fix an autoconf >= 2.64 warning.
3496         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3497         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3498
3499 2012-06-28  Bruno Haible  <bruno@clisp.org>
3500
3501         log10f: Fix possible configuration problem.
3502         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3503         $LOGF_LIBM.
3504         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3505
3506 2012-06-28  Bruno Haible  <bruno@clisp.org>
3507
3508         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3509         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3510         not gl_cv_func_unlink_works.
3511         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3512
3513 2012-06-27  Eric Blake  <eblake@redhat.com>
3514
3515         config: drop scripts that automake says are not independent
3516         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3517         * build-aux/elisp-comp: Delete.
3518         * build-aux/missing: Likewise.
3519         * build-aux/ylwrap: Likewise.
3520         * modules/elisp-comp: Likewise.
3521         * MODULES.html.sh: Drop mention of elisp-comp.
3522         * NEWS: Mention this.
3523
3524 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3525
3526         root-uid: new module
3527         This is for portability to Tandem's NonStop Kernel.
3528         * lib/root-uid.h, modules/root-uid: New files.
3529         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3530         * lib/write-any-file.c, tests/test-sethostname2.c:
3531         Include "root-uid.h".
3532         * lib/euidaccess.c (euidaccess):
3533         * lib/pt_chown.c (main):
3534         * lib/unlinkdir.c (cannot_unlink_dir):
3535         * lib/write-any-file.c (can_write_any_file):
3536         * m4/mknod.m4 (gl_FUNC_MKNOD):
3537         * tests/test-sethostname2.c (geteuid, main):
3538         Don't assume ROOT_UID == 0.
3539         * modules/euidaccess (Depends-on):
3540         * modules/pt_chown (Depends-on):
3541         * modules/sethostname-tests (Depends-on):
3542         * modules/unlinkdir (Depends-on):
3543         * modules/write-any-file (Depends-on):
3544         Add root-uid.
3545
3546         regex: use locale-independent comparison for codeset name
3547         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3548         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3549         for codeset name.
3550         * lib/regex_internal.h: Do not include <strings.h>, since we
3551         no longer use strcasecmp.
3552         * modules/regex (Depends-on): Remove strcase.
3553
3554 2012-06-23  Bruno Haible  <bruno@clisp.org>
3555
3556         getopt-posix: No longer guarantee that option processing is resettable.
3557         * doc/posix-functions/getopt.texi: Drop description of problem with
3558         internal state. Fix info about mingw and msvc9.
3559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3560         option processing by getopt(). Run three test programs instead of one.
3561         Simplify cross-compilation guess.
3562         * NEWS: Mention the change.
3563         Reported by Rich Felker <dalias@aerifal.cx>.
3564
3565 2012-06-26  Bruno Haible  <bruno@clisp.org>
3566
3567         argp, regex: Ensure strcasecmp gets declared.
3568         * lib/argp-help.c: Include <strings.h>.
3569         * lib/regex_internal.h: Likewise.
3570         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3571
3572 2012-06-24  Bruno Haible  <bruno@clisp.org>
3573
3574         ptsname_r: Make it consistent with ptsname on AIX.
3575         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3576         implementation as for OSF/1.
3577         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3578         a pty master.
3579
3580         ptsname_r: Make it consistent with ptsname on OSF/1.
3581         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3582         OSF/1.
3583
3584 2012-06-24  Bruno Haible  <bruno@clisp.org>
3585
3586         ttyname_r: Fix result on OSF/1, Solaris.
3587         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3588
3589 2012-06-24  Bruno Haible  <bruno@clisp.org>
3590
3591         ptsname_r: Add support for Solaris.
3592         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3593         Solaris.
3594
3595         ptsname_r: Fix test failure on native Windows.
3596         * modules/ptsname_r (Depends-on): Add isatty.
3597
3598         ptsname_r: Fix test failures on IRIX, Solaris.
3599         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3600         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3601         accordingly.
3602         * lib/ptsname_r.c: Include <fcntl.h>.
3603         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3604         set errno if fd is invalid.
3605         * tests/test-isatty.c (main): Update comments.
3606
3607 2012-06-24  Bruno Haible  <bruno@clisp.org>
3608
3609         ptsname test: Extend test.
3610         * tests/test-ptsname.c: Include <errno.h>.
3611         (main): Test behaviour with invalid file descriptor.
3612
3613 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3614
3615         time: fix obsolete comment
3616         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3617         reference to HAVE_STRUCT_TIMESPEC in comment.
3618
3619 2012-06-23  Bruno Haible  <bruno@clisp.org>
3620
3621         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3623         does not handle abbreviated long options with equivalent
3624         disambiguations, set gl_replace_getopt to yes.
3625         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3626
3627 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3628
3629         time_r: fix typo that always overrode localtime_r decl
3630         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3631         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3632         not in a standard include.
3633
3634 2012-06-22  Bruno Haible  <bruno@clisp.org>
3635
3636         Write "Mac OS X" instead of "MacOS X".
3637         * README: Write "Mac OS X" instead of "MacOS X".
3638         * build-aux/bootstrap: Likewise.
3639         * build-aux/install-reloc: Likewise.
3640         * lib/acl-internal.h: Likewise.
3641         * lib/acl_entries.c: Likewise.
3642         * lib/argp-ba.c: Likewise.
3643         * lib/argp-pv.c: Likewise.
3644         * lib/config.charset: Likewise.
3645         * lib/copy-acl.c: Likewise.
3646         * lib/csharpexec.c: Likewise.
3647         * lib/euidaccess.c: Likewise.
3648         * lib/fbufmode.c: Likewise.
3649         * lib/fflush.c: Likewise.
3650         * lib/file-has-acl.c: Likewise.
3651         * lib/filemode.h: Likewise.
3652         * lib/fpurge.c: Likewise.
3653         * lib/freadable.c: Likewise.
3654         * lib/freadahead.c: Likewise.
3655         * lib/freading.c: Likewise.
3656         * lib/freadptr.c: Likewise.
3657         * lib/freadseek.c: Likewise.
3658         * lib/fseeko.c: Likewise.
3659         * lib/fseterr.c: Likewise.
3660         * lib/fsusage.c: Likewise.
3661         * lib/fwritable.c: Likewise.
3662         * lib/fwriting.c: Likewise.
3663         * lib/get-rusage-as.c: Likewise.
3664         * lib/get-rusage-data.c: Likewise.
3665         * lib/getdomainname.c: Likewise.
3666         * lib/idpriv-drop.c: Likewise.
3667         * lib/idpriv-droptemp.c: Likewise.
3668         * lib/localcharset.c: Likewise.
3669         * lib/locale.in.h: Likewise.
3670         * lib/localename.c: Likewise.
3671         * lib/mbsrtowcs-state.c: Likewise.
3672         * lib/nproc.c: Likewise.
3673         * lib/passfd.c: Likewise.
3674         * lib/posix_openpt.c: Likewise.
3675         * lib/printf-parse.c: Likewise.
3676         * lib/progreloc.c: Likewise.
3677         * lib/safe-read.h: Likewise.
3678         * lib/safe-write.h: Likewise.
3679         * lib/sched.in.h: Likewise.
3680         * lib/set-mode-acl.c: Likewise.
3681         * lib/signal.in.h: Likewise.
3682         * lib/stdint.in.h: Likewise.
3683         * lib/stdio-impl.h: Likewise.
3684         * lib/stdlib.in.h: Likewise.
3685         * lib/strtod.c: Likewise.
3686         * lib/sys_select.in.h: Likewise.
3687         * lib/tcgetsid.c: Likewise.
3688         * lib/unistd.in.h: Likewise.
3689         * lib/unlockpt.c: Likewise.
3690         * lib/vasnprintf.c: Likewise.
3691         * lib/vma-iter.c: Likewise.
3692         * lib/wcsrtombs-state.c: Likewise.
3693         * m4/acl.m4: Likewise.
3694         * m4/acosl.m4: Likewise.
3695         * m4/asinl.m4: Likewise.
3696         * m4/atanl.m4: Likewise.
3697         * m4/c-stack.m4: Likewise.
3698         * m4/cosl.m4: Likewise.
3699         * m4/expl.m4: Likewise.
3700         * m4/extensions.m4: Likewise.
3701         * m4/fdatasync.m4: Likewise.
3702         * m4/fmal.m4: Likewise.
3703         * m4/frexp.m4: Likewise.
3704         * m4/frexpf.m4: Likewise.
3705         * m4/frexpl.m4: Likewise.
3706         * m4/fsusage.m4: Likewise.
3707         * m4/getdomainname.m4: Likewise.
3708         * m4/getloadavg.m4: Likewise.
3709         * m4/getopt.m4: Likewise.
3710         * m4/gettext.m4: Likewise.
3711         * m4/gnulib-common.m4: Likewise.
3712         * m4/intdiv0.m4: Likewise.
3713         * m4/intlmacosx.m4: Likewise.
3714         * m4/largefile.m4: Likewise.
3715         * m4/ldexpl.m4: Likewise.
3716         * m4/link-follow.m4: Likewise.
3717         * m4/locale-ar.m4: Likewise.
3718         * m4/locale-fr.m4: Likewise.
3719         * m4/locale-ja.m4: Likewise.
3720         * m4/locale-tr.m4: Likewise.
3721         * m4/locale-zh.m4: Likewise.
3722         * m4/locale_h.m4: Likewise.
3723         * m4/lock.m4: Likewise.
3724         * m4/logl.m4: Likewise.
3725         * m4/mathfunc.m4: Likewise.
3726         * m4/minus-zero.m4: Likewise.
3727         * m4/mktime.m4: Likewise.
3728         * m4/mmap-anon.m4: Likewise.
3729         * m4/multiarch.m4: Likewise.
3730         * m4/nanosleep.m4: Likewise.
3731         * m4/nocrash.m4: Likewise.
3732         * m4/poll.m4: Likewise.
3733         * m4/printf-frexpl.m4: Likewise.
3734         * m4/printf.m4: Likewise.
3735         * m4/signbit.m4: Likewise.
3736         * m4/sinl.m4: Likewise.
3737         * m4/sqrtl.m4: Likewise.
3738         * m4/strerror_r.m4: Likewise.
3739         * m4/tanl.m4: Likewise.
3740         * m4/threadlib.m4: Likewise.
3741         * m4/ttyname_r.m4: Likewise.
3742         * m4/unlink.m4: Likewise.
3743         * m4/visibility.m4: Likewise.
3744         * m4/wcwidth.m4: Likewise.
3745         * tests/minus-zero.h: Likewise.
3746         * tests/test-alloca-opt.c: Likewise.
3747         * tests/test-copy-acl.sh: Likewise.
3748         * tests/test-copy-file.sh: Likewise.
3749         * tests/test-fdatasync.c: Likewise.
3750         * tests/test-file-has-acl.sh: Likewise.
3751         * tests/test-flock.c: Likewise.
3752         * tests/test-fsync.c: Likewise.
3753         * tests/test-localename.c: Likewise.
3754         * tests/test-malloca.c: Likewise.
3755         * tests/test-nonblocking-pipe.h: Likewise.
3756         * tests/test-nonblocking-socket.h: Likewise.
3757         * tests/test-openpty.c: Likewise.
3758         * tests/test-posix_openpt.c: Likewise.
3759         * tests/test-ptsname.c: Likewise.
3760         * tests/test-ptsname_r.c: Likewise.
3761         * tests/test-sameacls.c: Likewise.
3762         * tests/test-select.h: Likewise.
3763         * tests/test-set-mode-acl.sh: Likewise.
3764         * tests/test-snprintf-posix.h: Likewise.
3765         * tests/test-sprintf-posix.h: Likewise.
3766         * tests/test-strtod.c: Likewise.
3767         * tests/test-time.c: Likewise.
3768         * tests/test-vasnprintf-posix.c: Likewise.
3769         * tests/test-vasprintf-posix.c: Likewise.
3770         * doc/acl-resources.txt: Likewise.
3771         * doc/**/*.texi: Likewise.
3772         Reported by Max Horn <max@quendi.de>.
3773
3774 2012-06-22  Bruno Haible  <bruno@clisp.org>
3775
3776         grantpt: Relax requirement regarding invalid file descriptors.
3777         * lib/grantpt.c: Don't include <fcntl.h>.
3778         (grantpt): Don't verify the validity of the file descriptor.
3779         * modules/grantpt (Depends-on): Remove fcntl-h.
3780         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3781         file descriptors.
3782         * doc/posix-functions/grantpt.texi: Document more platforms on which
3783         grantpt succeeds for invalid file descriptors.
3784         Reported by Rich Felker <dalias@aerifal.cx>.
3785
3786 2012-06-22  Bruno Haible  <bruno@clisp.org>
3787
3788         fbufmode test: Don't test unportable behaviour.
3789         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3790         (main): Invoke it three times.
3791         Reported by Szabolcs Nagy <nsz@port70.net>
3792         and Rich Felker <dalias@aerifal.cx>.
3793
3794 2012-06-21  Bruno Haible  <bruno@clisp.org>
3795
3796         gnulib-tool: Refactor inctests variable.
3797         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3798         (func_modules_transitive_closure,
3799         func_modules_transitive_closure_separately,
3800         func_import, func_create_testdir): Update.
3801
3802         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3803         * gnulib-tool: Accept option --without-tests.
3804         (func_usage): Document --without-tests option. Rearrange.
3805         (inctests): Normalize according to the mode.
3806         * NEWS: Mention the change.
3807         Suggested by Simon Josefsson.
3808
3809 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3810
3811         parse-duration test: Avoid spurious output.
3812         * tests/test-parse-duration.sh: Reindent with leading tabs.
3813
3814 2012-06-21  Jim Meyering  <meyering@redhat.com>
3815
3816         maint: disable the strncpy prohibition
3817         * cfg.mk: Do not prohibit strncpy here.
3818
3819 2012-06-21  Bruno Haible  <bruno@clisp.org>
3820
3821         nonblocking: Avoid compilation error on mingw64.
3822         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3823         fscanf.
3824         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3825         * modules/vfscanf (configure.ac): Likewise.
3826         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3827         definition only if stdio.h has prepared it.
3828         Reported by Daniel P. Berrange <berrange@redhat.com>.
3829
3830 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3831
3832         gnulib-tool: Use readlink if it is available.
3833         * gnulib-tool (func_readlink): Choose function more appropriately.
3834
3835 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3836
3837         posixtm-tests: port to buggy compiler
3838         Problem reported by Simon Josefsson in
3839         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3840         * modules/posixtm-tests (Depends-on): Add stdint.
3841         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3842         Now of type int_least64_t, not int64_t, both because that's
3843         what INT64_C returns and because int_least64_t works even
3844         on 72-bit hosts.
3845         (T): Use INT64_C on constants outside the traditional int range,
3846         to work around compiler bug noted by Simon.
3847
3848         mktime: fix integer overflow in 'configure'-time test
3849         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3850         after integer overflow.  Problem reported by Rich Felker in
3851         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3852         Also, don't look for further instances of a bug if we've already
3853         found one instance; this helps 'configure' run faster.
3854
3855 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3856
3857         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3858         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3859         GetVersionEx correctly.
3860         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3861
3862 2012-06-20  Bruno Haible  <bruno@clisp.org>
3863
3864         fdopen: Allow implementations that don't reject invalid fd arguments.
3865         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3866         succeeds.
3867         Reported by Rich Felker <dalias@aerifal.cx>.
3868
3869 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3870
3871         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3872         bring in LIBINTL.
3873
3874 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3875
3876         init.sh: do not rely on autoupated PWD
3877         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3878         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3879         Although Nelson's bug was not necessarily fixed by this patch,
3880         it seems wise to make the change for safety.
3881         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3882         automagically after 'cd'; this is not reliable on older shells.
3883         (setup_): Fail if we cannot cd to temporary directory.
3884
3885 2012-06-19  Bruno Haible  <bruno@clisp.org>
3886
3887         stat, fstat: Avoid warnings on mingw64.
3888         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3889         redefining.
3890         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3891         Reported by Daniel P. Berrange <berrange@redhat.com>.
3892
3893 2012-06-19  Bruno Haible  <bruno@clisp.org>
3894
3895         stdioext: Add support for musl libc.
3896
3897         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3898         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3899
3900         * m4/fseterr.m4: New file.
3901         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3902         function exists.
3903         * modules/fseterr (Files): Add m4/fseterr.m4.
3904         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3905         __fseterr does not exist.
3906         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3907
3908         * lib/freadable.h: Update comment.
3909
3910         * lib/fwritable.h: Update comment.
3911
3912         * lib/freading.h: Update comment.
3913
3914         * lib/fwriting.h: Update comment.
3915
3916         * m4/freadahead.m4: New file.
3917         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3918         that function exists.
3919         * modules/freadahead (Files): Add m4/freadahead.m4.
3920         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3921         __freadahead does not exist.
3922         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3923
3924         * m4/freadptr.m4: New file.
3925         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3926         function exists.
3927         * modules/freadptr (Files): Add m4/freadptr.m4.
3928         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3929         __freadptr does not exist.
3930         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3931
3932         * m4/freadseek.m4: New file.
3933         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3934         exists.
3935         * modules/freadseek (Files): Add m4/freadseek.m4.
3936         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3937
3938         * lib/fpurge.c (fpurge): Update comment.
3939
3940         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3941
3942 2012-06-19  Bruno Haible  <bruno@clisp.org>
3943
3944         *printf-posix: Put more info into config.log.
3945         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3946         exit code into config.log.
3947
3948 2012-06-19  Bruno Haible  <bruno@clisp.org>
3949
3950         getopt-gnu: Fix exit code overflow in autoconf test.
3951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3952         to keep them below < 128.
3953
3954 2012-06-17  Jim Meyering  <meyering@redhat.com>
3955
3956         maint.mk: fix typo in code to derive GPG key at release time
3957         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3958
3959 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3960
3961         regex: avoid warning when pointers are not long
3962         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3963         and uintptr_t, not long, for portability to hosts where pointers and
3964         long have different sizes.  Issue noted by Daniel P. Berrange in
3965         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3966         and fix suggested by Bruno Haible in
3967         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3968
3969 2012-06-17  Bruno Haible  <bruno@clisp.org>
3970
3971         dummy: Relicense into the public domain.
3972         * modules/dummy (License): Set to "public domain".
3973         Suggested by Reuben Thomas.
3974
3975 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3976
3977         announce-gen: VPATH issues
3978         * build-aux/announce-gen (--srcdir): New option, used to trim the
3979         $srcdir part of the path from $builddir to NEWS.
3980         * top/maint.mk (announcement): Adjust.
3981
3982 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3983
3984         gnu-web-doc-update: VPATH builds
3985         * build-aux/gnu-web-doc-update (--builddir): New option.
3986         Revamp the handling of options.
3987         Prefer $(...) to `...`.
3988         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3989         the template, and it is GNU mktemp specific.
3990         Prefer set -e to long series of &&.
3991         Restore the initial git branch, not "master".
3992         Properly initialize submodules (don't rely only on bootstrap).
3993         Do not reconfigure blindly, use config.status.
3994         * top/README-release: Update instructions for gnu-web-doc-update.
3995
3996 2012-06-11  Jim Meyering  <meyering@redhat.com>
3997
3998         maint.mk: revert most of the previous change re "all these"
3999         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4000         For rationale, see the discussion at
4001         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4002
4003 2012-06-10  Karl Berry  <karl@gnu.org>
4004
4005         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4006
4007         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4008
4009 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4010
4011         parse-duration: Relicense under LGPLv2+.
4012         * modules/parse-duration (License): Change to LGPLv2+.
4013
4014 2012-06-10  Jim Meyering  <meyering@redhat.com>
4015
4016         maint.mk: prohibit common grammar error: "all these"
4017         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4018         the list of prohibited word sequences.  It should be "all of these".
4019         * lib/tempname.c (__gen_tempname): Fix one of them.
4020
4021 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4022
4023         do-release-commit-and-tag: support VPATH builds
4024         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4025         (noteworthy): Defined earlier to factor its value.
4026         (noteworthy_stub): New.
4027         Use it to factor.
4028         (help_version): Split into...
4029         (help, version): these.
4030         Adjust the option processing part.
4031         Support "--option=value" in addition to "--option value".
4032         (builddir): New.
4033         (--builddir): New option.
4034         * top/README-release: Document this.
4035         Reword slightly so that the reader cannot understand that he
4036         has to do these steps before calling do-release-commit-and-tag.
4037
4038 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4039
4040         readme-release: also require announce-gen and maintainer-makefile
4041         * modules/readme-release (Depends-on): here.
4042         * modules/announce-gen, modules/do-release-commit-and-tag,
4043         modules/gnu-web-doc-update, modules/maintainer-makefile
4044         (Description): Point to readme-release.
4045
4046 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4047
4048         maint.mk: fix VPATH issues.
4049         * top/maint.mk (news-check): GNU Make understand $< very well.
4050         (release-prep): NEWS is in $(srcdir).
4051
4052 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4053
4054         readme-release: require the promoted modules.
4055         * modules/readme-release (Depends-on): Add
4056         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4057         in this text.
4058
4059 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4060             Bruno Haible  <bruno@clisp.org>
4061
4062         error, strerror-override: Support mingw64 from Fedora 17.
4063         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4064         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4065         EINPROGRESS.
4066         * lib/strerror-override.h (strerror_override): Test it.
4067         * lib/strerror-override.c (strerror_override): Likewise.
4068         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4069
4070 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4071             Bruno Haible  <bruno@clisp.org>
4072
4073         error, strerror-override: Support mingw64 from Fedora 17.
4074         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4075         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4076         * lib/strerror-override.h (strerror_override): Test it.
4077         * lib/strerror-override.c (strerror_override): Likewise.
4078
4079 2012-06-03  Bruno Haible  <bruno@clisp.org>
4080
4081         error, strerror-override: Support new errno values from POSIX:2008.
4082         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4083         ENOTRECOVERABLE.
4084         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4085         platforms.
4086         * lib/strerror-override.c (strerror_override): Conditionalize the
4087         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4088         * lib/strerror-override.h (strerror_override): Declare also if
4089         GNULIB_defined_EOWNERDEAD is defined.
4090         * tests/test-errno.c (e130, e131): New variables.
4091         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4092         ENOTRECOVERABLE.
4093         Reported by Paolo Bonzini.
4094
4095 2012-05-31  Jim Meyering  <meyering@redhat.com>
4096
4097         savewd: add missing dependency on sys_wait module
4098         * modules/savewd (Depends-on): Add sys_wait, needed at least
4099         for MSVC.  Report and suggested change by Michael Goffioul.
4100
4101 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4102
4103         system-quote-tests: port to CentOS 5
4104         Problem reported by Tom G. Christensen in
4105         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4106         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4107
4108 2012-05-29  Jim Meyering  <meyering@redhat.com>
4109
4110         maint: fix typos in comments and ChangeLog
4111         Culprits identified and fixed mostly automatically using these commands:
4112         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4113         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4114         using http://github.com/lyda/misspell-check
4115         * ChangeLog: Fix typos.
4116         * doc/solaris-versions: Likewise.
4117         * lib/regexec.c (re_search_stub): Likewise.
4118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4119
4120 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4121
4122         manywarnings: remove duplicate -Wmultichar entry
4123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4124         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4125         so keep the entry marked as documented.
4126
4127 2012-05-27  Karl Berry  <karl@gnu.org>
4128
4129         * config/srclist.txt (mktime.c): remove last libc sync,
4130         perhaps just temporarily.
4131
4132 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4133
4134         regex: don't assume uint64_t or uint32_t
4135         * lib/regcomp.c (init_word_char): Don't assume that the types
4136         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4137         them, and on some 32-bit compilers there is no uint64_t.
4138         Problem reported by Gianluigi Tiesi in
4139         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4140
4141 2012-05-25  Jim Meyering  <meyering@redhat.com>
4142
4143         maint.mk: add strncpy-prohibiting syntax-check rule
4144         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4145
4146 2012-05-24  Jim Meyering  <meyering@redhat.com>
4147
4148         maint.mk: compute $(gpg_key_ID) more portably
4149         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4150         That use of sed is not portable to some fringe systems.
4151         Reported by Paul Eggert in
4152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4153
4154 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4155
4156         mktime: sync from glibc
4157         * config/srclist.txt: Uncomment mktime.c.
4158         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4159         First, indent with tabs, since glibc uses tabs and doesn't want to
4160         change and we'd rather be identical to glibc.  Also, two small
4161         coding changes:
4162         (isdst_differ): Use &&, not &, as && is the usual style.
4163         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4164         for clarity.
4165
4166 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4167
4168         announce-gen: du -h is more portable than du --human
4169         * build-aux/announce-gen (sizes): Invoke du with -h instead
4170         of --human.  Accept leading white space in its output.
4171
4172 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4173
4174         announce-gen: Improve diagnostics.
4175         * build-aux/announce-gen: When parsing command line options,
4176         prefer "announce-gen: option --release-type requires an argument"
4177         to "Option release-type requires an argument".
4178
4179 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4180
4181         maint.mk: gpg_key_ID: use sed more portably
4182         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4183         the closing brace.
4184         (refresh-po): Fuse two sed invocations into one.
4185
4186 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4187
4188         gitlog-to-changelog: support the log message format used in Bison.
4189         * build-aux/gitlog-to-changelog: Support --strip-tab and
4190         --strip-cherry-picked.
4191
4192 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4193
4194         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4195         the rest of the current time slice to another thread in the current
4196         process. So if the thread that feeds the file decscriptor we're
4197         polling is not in the current process, we get busy-waiting.
4198         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4199         Patch from Theodore Leblond.
4200         * lib/select.c: Split polling out of the loop that sets the output
4201         fd_sets.  Check for zero result and loop if the wait timeout is
4202         infinite.
4203
4204 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4205
4206         select: Fix build error on IRIX 6.5.
4207         * lib/select.c: Include stddef.h for NULL.
4208
4209 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4210
4211         gc: fix libgcrypt detection on older machines.
4212         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4213         copyright years because the file has been distributed every year
4214         since it was created.
4215
4216 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4217
4218         crypto: fix bug in large buffer handling
4219         Problem reported by Serge Belyshev for glibc in
4220         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4221         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4222         * lib/md4.c (md4_process_block):
4223         * lib/md5.c (md5_process_block):
4224         * lib/sha1.c (sha1_process_block):
4225         * lib/sha256.c (sha256_process_block):
4226         Don't assume the buffer length is less than 2**32.
4227         * lib/sha512.c (sha512_process_block): Likewise.
4228         Here, the bug is present only in the rare case where the host does
4229         not support uint64_t or where size_t is wider than 64 bits.
4230         Use u64size to work around the problems.
4231         * lib/u64.h (u64size): New macro.
4232
4233 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4234
4235         fsusage: fix block size returned on older Linux 2.6
4236
4237         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4238         which is available since Linux 2.6.
4239         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4240         when the member is available so it can be used as a fallback.
4241         * doc/posix-functions/statvfs.texi: Mention the hang issue
4242         on Linux < 2.6.36.
4243
4244 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4245
4246         bootstrap: suppress stderr chatter
4247         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4248         Omit unnecessary chatter to stderr.  The main program chatter
4249         was there only inadvertantly.
4250
4251         bootstrap: .gitignore files created by autopoint, libtool
4252         I ran into this problem when bootstrapping the latest diffutils.
4253         After './bootstrap', 'git status' reported lots of untracked files
4254         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4255         autopoint and do not need to be version-controlled.
4256         * build-aux/bootstrap: Put into .gitignore the files that
4257         autopoint and libtool create, by keeping track of files that exist
4258         after but not before these programs are run.
4259         (version_controlled_file): Move up.  2nd arg is now full file
4260         name, not base name; this is more convenient.  Put CVS at the end,
4261         as it's now somewhat deprecated.
4262
4263 2012-05-14  Jim Meyering  <meyering@redhat.com>
4264
4265         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4266         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4267         definition.  Reported by Bruno Haible.
4268
4269 2012-05-13  Bruno Haible  <bruno@clisp.org>
4270             Paul Eggert  <eggert@cs.ucla.edu>
4271
4272         binary-io: Define set_binary_mode function.
4273         * lib/binary-io.h (set_binary_mode): New function.
4274         (SET_BINARY): Define in terms of set_binary_mode.
4275         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4276         * tests/test-binary-io.c (main): Accept an argument, and test either
4277         set_binary_mode or SET_BINARY depending on the argument.
4278         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4279         argument. Clean up also t-bin-out0.tmp.
4280
4281 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4282
4283         bootstrap: take advantage of POSIX shell features
4284
4285         The 'bootstrap' script offered by Gnulib script already uses POSIX
4286         shell features (like $((...)) arithmetic expansions) that are not
4287         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4288         means that bootstrap must already be run using a proper POSIX shell,
4289         which will thus provide more features, like ${var#pattern} parameter
4290         expansion or inversion of a command exit status with '!'.  We can
4291         thus use these features to improve the clarity and the performances
4292         of the bootstrap script.
4293
4294         Suggested by Eric Blake.
4295
4296         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4297         of sed/expr plus command substitutions, to save some forks.  While
4298         we are at it, prefer the POSIX $(...) form of command substitution,
4299         rather than the legacy form `...` (since the former is visually
4300         clearer and interacts better with quoting), and prefer the idiom:
4301           "if ! CMD; then ACTION ..."
4302         over the idiom:
4303           "if CMD; then :; else ACTION ..."
4304         which was required by legacy Bourne shells not supporting '!'.
4305
4306 2012-05-12  Bruno Haible  <bruno@clisp.org>
4307
4308         system-quote: Add more comments.
4309         * lib/system-quote.h: Add more comments about wilcards and limitations.
4310         Suggested by Eli Zaretskii <eliz@gnu.org>.
4311
4312         sh-quote, system-quote: Add comments about wildcards.
4313         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4314         * lib/system-quote.h: Likewise.
4315         Reported by Eli Zaretskii <eliz@gnu.org>.
4316
4317 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4318
4319         fsusage: check for GNU/Linux statvfs problem dynamically
4320         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4321         Define STAT_STATFS2_BSIZE too, since in this case the code now
4322         checks dynamically whether statvfs is reliable, falling back on
4323         Linux-style statfs otherwise.
4324         (statvfs_works): New function, for dynamically testing statvfs.
4325         (get_fs_usage) [STAT_STATVFS]: Use it.
4326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4327         statvfs on GNU/Linux hosts, since it's now done dynamically.
4328
4329 2012-05-10  Bruno Haible  <bruno@clisp.org>
4330
4331         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4332         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4333         '?' character.
4334         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4335         * tests/test-system-quote-main.c (check_all): Check also strings like
4336         "??????????".
4337         Reported by Eli Zaretskii <eliz@gnu.org>.
4338
4339 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4340
4341         _Noreturn: port config.h to gcc -Wundef
4342         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4343         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4345
4346 2012-05-10  Bruno Haible  <bruno@clisp.org>
4347
4348         system-quote: Refactor.
4349         * lib/system-quote.h (system_quote_copy): Fix comment.
4350         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4351         New functions, extracted from system_quote_copy.
4352         (system_quote_length, system_quote_copy): Use these functions.
4353         Reported by Paul Eggert.
4354
4355 2012-05-08  Bruno Haible  <bruno@clisp.org>
4356
4357         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4358         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4359
4360 2012-05-08  Bruno Haible  <bruno@clisp.org>
4361
4362         Tests for module 'system-quote'.
4363         * modules/system-quote-tests: New file.
4364         * tests/test-system-quote.sh: New file.
4365         * tests/test-system-quote-main.c: New file.
4366         * tests/test-system-quote-child.c: New file.
4367
4368         New module 'system-quote'.
4369         * lib/system-quote.h: New file.
4370         * lib/system-quote.c: New file.
4371         * modules/system-quote: New file.
4372
4373 2012-05-08  Bruno Haible  <bruno@clisp.org>
4374
4375         sh-quote: Make C++ safe and allow multiple inclusion.
4376         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4377         declarations in extern "C".
4378
4379 2012-05-08  Bruno Haible  <bruno@clisp.org>
4380
4381         sh-quote tests: Make tests stricter.
4382         * tests/test-sh-quote.c (check_one): Check the return value of
4383         shell_quote_copy.
4384         (main): Check a string with a CR character. Check a string that
4385         contains UCHAR_MAX.
4386
4387 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4388
4389         warnings.m4: provide a means to specify the program to compile.
4390         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4391         (gl_WARN_ADD): here.
4392         Use gl_AS_VAR_APPEND.
4393         Support an argument to specify the program to compile.
4394         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4395         AC_SUBST the WARN_CFLAGS when they are used.
4396         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4397         leave this to gl_WARN_ADD.
4398
4399 2012-05-08  Eric Blake  <eblake@redhat.com>
4400
4401         doc: recommendations on gettext version
4402         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4403         choice between versions.
4404         * DEPENDENCIES (gettext): Cover both approaches.
4405
4406 2012-05-08  Jim Meyering  <meyering@redhat.com>
4407
4408         init.sh: explain why EXEEXT support uses aliases rather than functions
4409         * tests/init.sh: Add a comment.
4410
4411         init.sh: don't let bash aliases interfere with tests
4412         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4413         is bash.  This avoids problems for those who alias standard commands to
4414         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4415         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4416
4417 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4418
4419         stdint: be more consistent with glibc, SunOS libc
4420         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4421         (gl_int_fast16_t, gl_uint_fast16_t)
4422         (gl_int_fast32_t, gl_uint_fast32_t)
4423         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4424         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4425         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4426         Be consistent with glibc by default, and with SunOS 5.10 and later
4427         if __sun is defined.  This lessens the likelihood of clashes if
4428         code compiled for older hosts is combined with code compiled for
4429         newer ones.  Problem reported by Niels Möller in
4430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4431
4432 2012-05-07  Eric Blake  <eblake@redhat.com>
4433
4434         isatty: relax license to LGPLv2+
4435         * modules/isatty (License): Relax license.
4436
4437 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4438
4439         stat-size: comment fix
4440         * lib/stat-size.h: Remove obsolete comment about indenting.
4441
4442 2012-05-06  Bruno Haible  <bruno@clisp.org>
4443
4444         Tests for module 'sh-quote'.
4445         * modules/sh-quote-tests: New file.
4446         * tests/test-sh-quote.c: New file.
4447
4448 2012-05-06  Bruno Haible  <bruno@clisp.org>
4449
4450         sh-quote: Improve shell_quote_argv's signature.
4451         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4452         * lib/sh-quote.c (shell_quote_argv): Likewise.
4453
4454 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4455
4456         stdint: document issues with int_fast8_t etc.
4457         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4458         stdint.h substitutes may define these types differently.  See
4459         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4460
4461 2012-05-05  Bruno Haible  <bruno@clisp.org>
4462
4463         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4465         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4466         or 'guessing no (mishandles large arguments)'.
4467
4468 2012-05-05  Bruno Haible  <bruno@clisp.org>
4469
4470         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4471         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4472         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4473         set gl_cv_func_link_follows_symlink to "guessing no".
4474
4475 2012-05-05  Bruno Haible  <bruno@clisp.org>
4476
4477         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4478         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4479         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4480         "guessing no".
4481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4482
4483 2012-05-05  Bruno Haible  <bruno@clisp.org>
4484
4485         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4486         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4487         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4488         set gl_cv_struct_dirent_d_ino to "guessing yes".
4489
4490 2012-05-05  Bruno Haible  <bruno@clisp.org>
4491
4492         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4493         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4494         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4495         "guessing yes".
4496
4497 2012-05-05  Bruno Haible  <bruno@clisp.org>
4498
4499         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4500         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4501         compiling to a glibc system, set gl_cv_func_signbit and
4502         gl_cv_func_signbit_gcc to "guessing yes".
4503
4504 2012-05-05  Bruno Haible  <bruno@clisp.org>
4505
4506         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4507         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4508         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4509         to "guessing yes".
4510         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4511         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4512
4513 2012-05-05  Bruno Haible  <bruno@clisp.org>
4514
4515         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4516         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4517         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4518         gl_cv_func_realpath_works to "guessing yes".
4519
4520 2012-05-05  Bruno Haible  <bruno@clisp.org>
4521
4522         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4523         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4524         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4525
4526 2012-05-04  Bruno Haible  <bruno@clisp.org>
4527
4528         Tweak last commit.
4529         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4530         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4531
4532 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         unistd_h: make it easier to avoid sys_types_h
4535         This is useful for Emacs, which has its own method of porting to
4536         Windows, and which therefore does not need the sys_types_h module.
4537         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4538         code moved here from gl_SYS_TYPES_H.
4539         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4540         using the code directly.
4541         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4542         gl_SYS_TYPES_H.
4543         * modules/sys_types (Files):
4544         * modules/unistd (Files): Add m4/off_t.m4.
4545
4546 2012-05-03  Bruno Haible  <bruno@clisp.org>
4547
4548         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4549         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4550         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4551         "guessing yes" or "guessing no".
4552         (gl_FUNC_LSTAT): Update.
4553         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4554         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4555         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4556
4557 2012-05-03  Bruno Haible  <bruno@clisp.org>
4558
4559         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4560         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4561         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4562         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4563         cross-compiling, choose the first alternative on glibc systems.
4564         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4565
4566 2012-05-03  Bruno Haible  <bruno@clisp.org>
4567
4568         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4569         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4570         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4571
4572 2012-05-03  Bruno Haible  <bruno@clisp.org>
4573
4574         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4575         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4576
4577 2012-05-03  Bruno Haible  <bruno@clisp.org>
4578
4579         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4580         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4581         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4582         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4583         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4584         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4585         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4586         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4587         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4588         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4589         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4590         gl_cv_func_chown_ctime_works to "guessing yes".
4591         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4592         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4593         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4594         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4595         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4597         compiling to glibc systems, set gl_cv_func_open_directory_works to
4598         "guessing yes".
4599         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4600         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4601         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4602         "guessing yes".
4603         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4604         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4605         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4606         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4607         "guessing yes".
4608         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4609         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4610         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4611         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4612         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4613         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4614         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4615         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4616         "guessing yes".
4617         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4618         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4619         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4620         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4621         "guessing yes".
4622         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4623         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4624         "guessing yes".
4625         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4626         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4627         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4628         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4629         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4630         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4631         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4632         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4633         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4634         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4635         "guessing yes".
4636         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4637         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4638         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4639         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4640         "guessing yes".
4641         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4642         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4643         "guessing yes".
4644         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4645         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4646         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4647         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4648         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4649         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4650         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4651         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4652         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4653         "guessing yes".
4654         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4655         compiling to glibc systems, set gl_cv_func_mknod_works to
4656         "guessing yes".
4657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4658         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4659         "guessing yes".
4660         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4661         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4662         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4663         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4664         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4665         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4666         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4667         compiling to glibc systems, set gl_cv_func_svid_putenv to
4668         "guessing yes".
4669         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4670         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4671         "guessing yes".
4672         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4673         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4674         "guessing yes".
4675         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4676         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4677         to "guessing yes".
4678         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4679         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4680         to "guessing yes".
4681         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4682         compiling to glibc systems, set gl_cv_func_rmdir_works to
4683         "guessing yes".
4684         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4685         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4686         gl_cv_func_unlink_parent_fails to "guessing yes".
4687         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4688         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4689         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4690         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4691         gl_cv_func_rename_dest_works to "guessing yes".
4692         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4693         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4694         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4695         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4696         "guessing yes".
4697         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4698         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4699         "guessing yes".
4700         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4701         compiling to glibc systems, set gl_cv_func_setenv_works to
4702         "guessing yes".
4703         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4704         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4705         "guessing yes".
4706         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4707         compiling to glibc systems, set gl_cv_func_sleep_works to
4708         "guessing yes".
4709         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4710         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4711         "guessing yes".
4712         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4713         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4714         "guessing yes".
4715         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4716         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4717         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4718         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4719         "guessing yes".
4720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4721         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4722         "guessing yes".
4723         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4724         compiling to glibc systems, set gl_cv_func_usleep_works to
4725         "guessing yes".
4726         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4727         compiling to glibc systems, set gl_cv_func_futimesat_works to
4728         "guessing yes".
4729
4730 2012-05-03  Bruno Haible  <bruno@clisp.org>
4731
4732         Say "guessing yes" or "guessing no" when cross-compiling.
4733         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4734         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4736         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4737         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4738         am_cv_func_working_getline to "guessing yes" or "guessing no".
4739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4740         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4741         (gl_FUNC_MEMMEM): When cross-compiling, set
4742         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4744         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4746         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4747         "guessing no".
4748         (gl_FUNC_STRCASESTR): When cross-compiling, set
4749         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4750         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4751         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4752         (gl_FUNC_STRSTR): When cross-compiling, set
4753         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4754         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4755         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4756         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4757         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4758
4759 2012-05-01  Bruno Haible  <bruno@clisp.org>
4760
4761         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4762         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4763         * build-aux/reloc-ldflags: Likewise.
4764         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4765
4766 2012-05-01  Bruno Haible  <bruno@clisp.org>
4767
4768         gnulib-tool: Remove transitional code.
4769         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4770         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4771
4772 2012-05-01  Bruno Haible  <bruno@clisp.org>
4773
4774         getcwd: Fix misindentation.
4775         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4776
4777 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4778
4779         exclude: process exclude and include directives in order
4780         This restores the pre-2009 behavior, and is part of a fix of a
4781         grep bug reported by Quentin Arce in
4782         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4783         * lib/exclude.c (struct exclude): Remove 'tail' member.
4784         (new_exclude_segment): Prepend the new segment instead of appending.
4785         Return void, since that's now more convenient.
4786         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4787         (file_name_matches): Renamed from excluded_file_name_p.
4788         (file_pattern_matches, file_name_matches):
4789         Return true if the pattern matches, not if it excludes.
4790         All callers changed.
4791         (excluded_file_name): Process the list in reverse order;
4792         since the list is now reversed this restores the pre-2009 behavior.
4793         (add_exclude): Adjust to new reversed-order list.  Use local var
4794         rather than macro, for clarity.
4795         * tests/test-exclude7.sh: Adjust to corrected behavior.
4796
4797         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4798         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4799         it's not possible here.  Handle the case of \ at end of pattern
4800         without dumping core.
4801         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4802
4803         _Noreturn: future-proof non-GNU and non-MSVC compilers
4804         * build-aux/snippet/_Noreturn.h (_Noreturn):
4805         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4806         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4807         C11 or later.  This is more likely to work with random future C
4808         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4809         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4810
4811         exclude: handle wildcards with FNM_EXTMATCH
4812         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4813         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4814         comment that "has wildcards" really means "has or may have
4815         wildcards".  Simplify by avoiding the need to call strcspn.
4816
4817 2012-04-29  Bruno Haible  <bruno@clisp.org>
4818
4819         gnulib-tool: Fix list of authors.
4820         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4821
4822 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4823
4824         bootstrap: support Automake-NG in $buildreq
4825         * bootstrap (check_versions): Handle automake and aclocal from
4826         Automake-NG specially.  They can be specified as respectively
4827         the "automake-ng" and "aclocal-ng" requirements.
4828
4829 2012-04-25  Eric Blake  <eblake@redhat.com>
4830
4831         bootstrap: only force latest Makefile.in.in for gettext module
4832         * build-aux/bootstrap (with_gettext): Only install latest
4833         Makefile.in.in for projects requesting bleeding edge gettext.
4834
4835 2012-04-22  Bruno Haible  <bruno@clisp.org>
4836
4837         doc: Mention reason for replacement on glibc/Linux systems.
4838         * doc/posix-functions/dprintf.texi: Mention the problem with special
4839         'long double' values.
4840         * doc/posix-functions/fprintf.texi: Likewise.
4841         * doc/posix-functions/printf.texi: Likewise.
4842         * doc/posix-functions/snprintf.texi: Likewise.
4843         * doc/posix-functions/sprintf.texi: Likewise.
4844         * doc/posix-functions/vdprintf.texi: Likewise.
4845         * doc/posix-functions/vfprintf.texi: Likewise.
4846         * doc/posix-functions/vprintf.texi: Likewise.
4847         * doc/posix-functions/vsnprintf.texi: Likewise.
4848         * doc/posix-functions/vsprintf.texi: Likewise.
4849         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4850         platforms with F_DUPFD_CLOEXEC problems.
4851         * doc/posix-functions/glob.texi: Mention which platforms are affected
4852         by the problem with symbolic links.
4853         * doc/posix-functions/linkat.texi: Mention the problem with
4854         AT_SYMLINK_FOLLOW on Linux.
4855
4856 2012-04-22  Bruno Haible  <bruno@clisp.org>
4857
4858         pwrite: Don't replace on all platforms.
4859         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4860
4861 2012-04-22  Bruno Haible  <bruno@clisp.org>
4862
4863         rint* tests: Avoid gcc warnings.
4864         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4865         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4866         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4867
4868 2012-04-21  Bruno Haible  <bruno@clisp.org>
4869
4870         users.txt: Update.
4871         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4872         switched from CVS to git, bzr, or svn.
4873
4874 2012-04-21  Bruno Haible  <bruno@clisp.org>
4875
4876         Large File Support for native Windows platforms.
4877
4878         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4879         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4880
4881         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4882         type.
4883         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4884         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4885         * doc/posix-headers/sys_types.texi: Mention the effect of the
4886         'largefile' module.
4887
4888         * lib/fcntl.in.h: Add comments about off_t.
4889         * modules/fcntl-h (Depends-on): Add sys_types.
4890
4891         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4892         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4893         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4894         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4895         * modules/unistd (Depends-on): Add sys_types.
4896         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4897
4898         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4899         instead of lseek.
4900         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4901         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4902         * modules/lseek (Depends-on): Add sys_types.
4903
4904         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4905         msvc-nothrow.h.
4906         (SetFileSize): New function.
4907         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4908         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4909         if Large File Support is requested.
4910         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4911         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4912
4913         * lib/stdio.in.h: Add comments about off_t.
4914         * modules/stdio (Depends-on): Add sys_types.
4915
4916         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4917         instead of ftello.
4918         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4919         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4920         (gl_PREREQ_FTELLO): New macro.
4921         * modules/ftello (Depends-on): Add sys_types.
4922         (configure.ac): Incoke gl_PREREQ_FTELLO.
4923
4924         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4925         instead of fseeko.
4926         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4927         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4928         (gl_PREREQ_FSEEKO): New macro.
4929         * modules/fseeko (Depends-on): Add sys_types.
4930         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4931
4932         * lib/sys_stat.in.h: Add comments about off_t.
4933         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4934         64-bit integer for st_size in 'struct stat'.
4935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4936         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4937         * modules/sys_stat (Depends-on): Add sys_types.
4938         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4939
4940         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4941         instead of stat or _stat.
4942
4943         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4944         'struct _stati64' instead of fstat and 'struct stat'.
4945         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4946         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4947
4948         Reported by Ray Satiro <raysatiro@yahoo.com>.
4949
4950 2012-04-19  Eric Blake  <eblake@redhat.com>
4951
4952         bootstrap: accommodate older libtool
4953         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4954         Reported by Daniel P. Berrange.
4955
4956 2012-04-19  Jim Meyering  <meyering@redhat.com>
4957
4958         announce-gen: avoid failure due to lack of Digest::SHA1
4959         Even with the preferred Digest::SHA available, this script
4960         would fail when the backup module, Digest::SHA1, was not installed.
4961         * build-aux/announce-gen: Quote the conditional use of "use".
4962         Reported by Reuben Thomas in:
4963         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4964
4965         bootstrap: don't let a user's CDPATH setting affect this script
4966         When CDPATH is set, cd will sometimes generate output.
4967         When "cd" is run in a subshell whose output matters, that
4968         surprising-to-some output can cause malfunction.
4969         Unsetting CDPATH turns off this shell "feature."
4970         * build-aux/bootstrap (CDPATH): Unset.
4971         Reported by Reuben Thomas in:
4972         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4973         and inspired by his patch here:
4974         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4975
4976 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4977         and Jim Meyering  <meyering@redhat.com>
4978
4979         maint.mk: catch "see @xref{}" and similar
4980         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4981         prohibit "See also @xref{", "Also see @pxref{", and similar.
4982
4983 2012-04-16  Jim Meyering  <meyering@redhat.com>
4984
4985         bootstrap: really use gnulib's po/Makefile.in.in
4986         * build-aux/bootstrap: Correct the source file name in previous change.
4987         Reported by Akim Demaille.
4988
4989         configmake: correct minor inconsistency in Makefile rule
4990         * modules/configmake (Makefile.am): All other rules like this one
4991         run the final "mv -f ..." in the same backslash-continued command
4992         as the one that does everything else.  This one put the mv -f ...
4993         command on a separate, non-backslash-continued line.
4994         Make it like the others.
4995
4996         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4997         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4998         the one from gettext.  Reported by Akim Demaille.
4999
5000 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5001
5002         Fix recursion of install-* into po directories.
5003         Bison's install-pdf bug reported by Hans Aberg at
5004         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5005         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5006         (install-info, install-pdf, install-ps): New targets.
5007
5008 2012-04-16  Jim Meyering  <meyering@redhat.com>
5009
5010         maint: avoid spurious "make sc_maint" failure
5011         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5012         exempt all *.class file names, for lib/javaversion.class.
5013
5014 2012-04-15  Bruno Haible  <bruno@clisp.org>
5015
5016         lseek: Make configure test independent of environment.
5017         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5018         Windows, we know that lseek() on pipes is broken; skip the runtime
5019         test.
5020
5021 2012-04-14  Bruno Haible  <bruno@clisp.org>
5022
5023         stat: Bypass buggy override in mingw64.
5024         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5025         * lib/stat.c (stat) [mingw64]: Define to _stat.
5026         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5027
5028 2012-04-14  Bruno Haible  <bruno@clisp.org>
5029
5030         pathmax: Fix compilation error on MSVC 9.
5031         * modules/pathmax (Depends-on): Add unistd.
5032
5033 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5034
5035         README: document pointer comparison assumption
5036         * README (Portability guidelines): Document assumption about
5037         pointer comparisons, in response to a recent bug-gnulib comment by
5038         Jeffrey Kegler.
5039
5040 2012-04-12  Bruno Haible  <bruno@clisp.org>
5041
5042         Tests for module 'getrusage'.
5043         * modules/getrusage-tests: New file.
5044         * tests/test-getrusage.c: New file.
5045
5046         New module 'getrusage'.
5047         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5048         warn-on-use.h.
5049         (getrusage): New declaration.
5050         * lib/getrusage.c: New file.
5051         * m4/getrusage.m4: New file.
5052         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5053         is declared.
5054         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5055         HAVE_GETRUSAGE.
5056         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5057         snippet/c++defs, snippet/warn-on-use.
5058         (Makefile.am): Update generation of sys/resource.h. Substitute
5059         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5060         * modules/getrusage: New file.
5061         * doc/posix-functions/getrusage.texi: Mention the new module.
5062
5063 2012-04-12  Bruno Haible  <bruno@clisp.org>
5064
5065         Tests for module 'sys_resource'.
5066         * modules/sys_resource-tests: New file.
5067         * tests/test-sys_resource.c: New file.
5068
5069         New module 'sys_resource'.
5070         * lib/sys_resource.in.h: New file.
5071         * m4/sys_resource_h.m4: New file.
5072         * modules/sys_resource: New file.
5073         * doc/posix-headers/sys_resource.texi: Mention the new module.
5074
5075 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5076
5077         ioctl: Fix compilation error on mingw.
5078         * lib/ioctl.c: Include <windows.h>.
5079         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5080
5081 2012-04-04  Jim Meyering  <meyering@redhat.com>
5082
5083         regex: correct #pragma guard expression
5084         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5085         not 4.3.  Correct its cpp guard expression.
5086
5087 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5088
5089         regex: remove unnecessary type punning
5090         Problem reported by Vladimir Serbinenko in
5091         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5092         * lib/regex.h (struct re_pattern_buffer): Change the type of
5093         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5094         Fix comment to match code.
5095         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5096         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5097         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5098         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5099         (set_regs):
5100         Omit no-longer-necessary casts.
5101
5102 2012-04-03  Bruno Haible  <bruno@clisp.org>
5103
5104         Tests for module 'ilogbl'.
5105         * modules/ilogbl-tests: New file.
5106         * tests/test-ilogbl.c: New file.
5107
5108         New module 'ilogbl'.
5109         * lib/math.in.h (ilogbl): New declaration.
5110         * lib/ilogbl.c: New file.
5111         * m4/ilogbl.m4: New file.
5112         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5114         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5115         Split sed invocation, to avoid the limit of 100 substitutions of
5116         HP-UX 'sed'.
5117         * modules/ilogbl: New file.
5118         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5119         * doc/posix-functions/ilogbl.texi: Mention the new module.
5120
5121 2012-04-03  Bruno Haible  <bruno@clisp.org>
5122
5123         Tests for module 'ilogbf'.
5124         * modules/ilogbf-tests: New file.
5125         * tests/test-ilogbf.c: New file.
5126
5127         New module 'ilogbf'.
5128         * lib/math.in.h (ilogbf): New declaration.
5129         * lib/ilogbf.c: New file.
5130         * m4/ilogbf.m4: New file.
5131         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5133         REPLACE_ILOGBF.
5134         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5135         REPLACE_ILOGBF.
5136         * modules/ilogbf: New file.
5137         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5138         * doc/posix-functions/ilogbf.texi: Mention the new module.
5139
5140 2012-04-03  Bruno Haible  <bruno@clisp.org>
5141
5142         Tests for module 'ilogb'.
5143         * modules/ilogb-tests: New file.
5144         * tests/test-ilogb.c: New file.
5145         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5146         tests/test-logb-ieee.h.
5147
5148         New module 'ilogb'.
5149         * lib/math.in.h (ilogb): New declaration.
5150         * lib/ilogb.c: New file.
5151         * m4/ilogb.m4: New file.
5152         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5154         REPLACE_ILOGB.
5155         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5156         REPLACE_ILOGB.
5157         * modules/ilogb: New file.
5158         * tests/test-math-c++.cc: Check the declaration of ilogb.
5159         * doc/posix-functions/ilogb.texi: Mention the new module.
5160
5161 2012-04-03  Bruno Haible  <bruno@clisp.org>
5162
5163         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5164         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5165         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5166         (main): Check their values.
5167         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5168         problem.
5169
5170 2012-04-03  Bruno Haible  <bruno@clisp.org>
5171
5172         Tests for module 'logbl-ieee'.
5173         * modules/logbl-ieee-tests: New file.
5174         * tests/test-logbl-ieee.c: New file.
5175
5176         New module 'logbl-ieee'.
5177         * modules/logbl-ieee: New file.
5178
5179         Tests for module 'logb-ieee'.
5180         * modules/logb-ieee-tests: New file.
5181         * tests/test-logb-ieee.c: New file.
5182
5183         New module 'logb-ieee'.
5184         * modules/logb-ieee: New file.
5185
5186         Tests for module 'logbf-ieee'.
5187         * modules/logbf-ieee-tests: New file.
5188         * tests/test-logbf-ieee.c: New file.
5189         * tests/test-logb-ieee.h: New file.
5190
5191         New module 'logbf-ieee'.
5192         * modules/logbf-ieee: New file.
5193
5194 2012-04-03  Bruno Haible  <bruno@clisp.org>
5195
5196         Tests for module 'logbl'.
5197         * modules/logbl-tests: New file.
5198         * tests/test-logbl.c: New file.
5199
5200         New module 'logbl'.
5201         * lib/math.in.h (logbl): New declaration.
5202         * lib/logbl.c: New file.
5203         * m4/logbl.m4: New file.
5204         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5206         REPLACE_LOGBL.
5207         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5208         REPLACE_LOGBL.
5209         * modules/logbl: New file.
5210         * tests/test-math-c++.cc: Check the declaration of logbl.
5211         * doc/posix-functions/logbl.texi: Mention the new module.
5212
5213 2012-04-02  Bruno Haible  <bruno@clisp.org>
5214
5215         Tests for module 'logbf'.
5216         * modules/logbf-tests: New file.
5217         * tests/test-logbf.c: New file.
5218
5219         New module 'logbf'.
5220         * lib/math.in.h (logbf): New declaration.
5221         * lib/logbf.c: New file.
5222         * m4/logbf.m4: New file.
5223         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5225         REPLACE_LOGBF.
5226         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5227         REPLACE_LOGBF.
5228         * modules/logbf: New file.
5229         * tests/test-math-c++.cc: Check the declaration of logbf.
5230         * doc/posix-functions/logbf.texi: Mention the new module.
5231
5232 2012-04-02  Bruno Haible  <bruno@clisp.org>
5233
5234         logb tests: More tests.
5235         * tests/test-logb.h: New file, based on tests/test-logb.c and
5236         tests/test-frexp.h.
5237         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5238         (main): Just invoke test_function.
5239         * modules/logb-tests (Files): Add tests/test-logb.h,
5240         tests/minus-zero.h, tests/randomd.c.
5241         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5242
5243         logb: Provide replacement and workarounds.
5244         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5245         is 1.
5246         * lib/logb.c: New file.
5247         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5248         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5250         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5251         * modules/logb (Files): Add lib/logb.c.
5252         (Depends-on): Add isfinite, frexp, isnand.
5253         (configure.ac): Compile the replacement code logb.c if needed.
5254         * tests/test-math-c++.cc: Check the declaration of logb.
5255         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5256         with subnormal numbers.
5257
5258 2012-04-02  Bruno Haible  <bruno@clisp.org>
5259
5260         log10* tests: Speed up.
5261         * tests/test-log10.h (test_function): Reduce amount of random numbers
5262         to test.
5263
5264 2012-04-01  Bruno Haible  <bruno@clisp.org>
5265
5266         logf-ieee: Fix test whether logf works.
5267         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5268
5269 2012-04-01  Bruno Haible  <bruno@clisp.org>
5270
5271         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5272         * lib/log10l.c: Include <float.h>
5273         (log10l): On IRIX, normalize the +Infinity value.
5274         * modules/log10l (Depends-on): Add 'float'.
5275         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5276         +Infinity.
5277
5278         log10f-ieee: Work around test failure on NetBSD 5.1.
5279         * m4/log10f-ieee.m4: New file.
5280         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5281         test whether log10f works with a negative argument. Replace it if not.
5282         * lib/log10f.c (log10f): For negative arguments, return NaN.
5283         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5284         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5285         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5286
5287         log10f-ieee: Work around test failure on Solaris 9.
5288         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5289         (configure.ac): Require gl_FUNC_LOG10F.
5290
5291         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5292         * m4/log10-ieee.m4: New file.
5293         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5294         whether log10 works with a negative argument. Replace it if not.
5295         * lib/log10.c (log10): For negative arguments, return NaN.
5296         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5297         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5298         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5299
5300         Tests for module 'log10l-ieee'.
5301         * modules/log10l-ieee-tests: New file.
5302         * tests/test-log10l-ieee.c: New file.
5303
5304         New module 'log10l-ieee'.
5305         * modules/log10l-ieee: New file.
5306
5307         Tests for module 'log10-ieee'.
5308         * modules/log10-ieee-tests: New file.
5309         * tests/test-log10-ieee.c: New file.
5310
5311         New module 'log10-ieee'.
5312         * modules/log10-ieee: New file.
5313
5314         Tests for module 'log10f-ieee'.
5315         * modules/log10f-ieee-tests: New file.
5316         * tests/test-log10f-ieee.c: New file.
5317         * tests/test-log10-ieee.h: New file.
5318
5319         New module 'log10f-ieee'.
5320         * modules/log10f-ieee: New file.
5321
5322 2012-04-01  Bruno Haible  <bruno@clisp.org>
5323
5324         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5325         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5326         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5327         workaround.
5328         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5329         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5331         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5332         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5333         (Depends-on): Update conditions.
5334         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5335         IRIX 6.5, OSF/1 5.1 problems.
5336
5337 2012-04-01  Bruno Haible  <bruno@clisp.org>
5338
5339         log10f: Work around OSF/1 5.1 bug.
5340         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5341         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5342         workaround.
5343         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5344         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5346         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5347         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5348         (Depends-on): Update conditions.
5349         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5350
5351 2012-04-01  Bruno Haible  <bruno@clisp.org>
5352
5353         log10: Work around OSF/1 5.1 bug.
5354         * lib/math.in.h (log10): New declaration.
5355         * lib/log10.c: New file.
5356         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5357         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5358         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5360         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5361         * modules/log10 (Files): Add lib/log10.c.
5362         (Depends-on): Add math.
5363         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5364         * tests/test-math-c++.cc: Check the declaration of log10.
5365         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5366
5367 2012-03-31  Bruno Haible  <bruno@clisp.org>
5368
5369         log10l tests: More tests.
5370         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5371         tests/minus-zero.h, tests/randoml.c.
5372         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5373         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5374         (main): Invoke test_function.
5375
5376         log10f tests: More tests.
5377         * modules/log10f-tests (Files): Add tests/test-log10.h,
5378         tests/minus-zero.h, tests/randomf.c.
5379         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5380         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5381         (main): Invoke test_function.
5382
5383         log10 tests: More tests.
5384         * tests/test-log10.h: New file.
5385         * modules/log10-tests (Files): Add tests/test-log10.h,
5386         tests/minus-zero.h, tests/randomd.c.
5387         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5388         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5389         (main): Invoke test_function.
5390
5391 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5392
5393         fflush: Fix syntax error.
5394         * lib/fflush.c: Include unused-parameter.h, needed for
5395         _GL_UNUSED_PARAMETER.
5396         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5397
5398 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5399
5400         regex: pacify GCC when compiling GRUB
5401         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5402         a diagnostic.  Reported by Vladimir Serbinenko in
5403         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5404
5405 2012-03-29  Eric Blake  <eblake@redhat.com>
5406
5407         stdio: don't assume gets any more
5408         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5409         support.
5410         * modules/stdio (Makefile.am): Likewise.
5411         * lib/stdio-read.c (gets): Likewise.
5412         * tests/test-stdio-c++.cc: Likewise.
5413         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5414         * lib/stdio.in.h (gets): Make warning occur in more places.
5415         * doc/posix-functions/gets.texi (gets): Update documentation.
5416         Reported by Christer Solskogen.
5417
5418         maint.mk: fix syntax checks without exclusions
5419         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5420         Reported by Daniel P. Berrange.
5421
5422         strerror_r: avoid compiler warning
5423         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5424         level.
5425
5426         fflush: avoid compiler warning
5427         * lib/fflush.c (update_fpos_cache): Mark variables that are
5428         potentially unused.
5429
5430 2012-03-25  Bruno Haible  <bruno@clisp.org>
5431
5432         Tests for module 'localeconv'.
5433         * modules/localeconv-tests: New file.
5434         * tests/test-localeconv.c: New file.
5435
5436         New module 'localeconv'.
5437         * lib/locale.in.h (localeconv): New declaration.
5438         * lib/localeconv.c: New file.
5439         * m4/localeconv.m4: New file.
5440         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5441         REPLACE_LOCALECONV.
5442         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5443         REPLACE_LOCALECONV.
5444         * modules/localeconv: New file.
5445         * modules/nl_langinfo (Depends-on): Add localeconv.
5446         * modules/human (Depends-on): Likewise.
5447         * doc/posix-functions/localeconv.texi: Mention the new module.
5448
5449 2012-03-25  Bruno Haible  <bruno@clisp.org>
5450
5451         locale: Provide a complete 'struct lconv'.
5452         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5453         'struct lconv' does not contain int_p_cs_precedes.
5454         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5455         * doc/posix-headers/locale.texi: Update.
5456
5457         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5458         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5459         * doc/posix-headers/locale.texi: Update.
5460
5461         locale: Provide a working 'struct lconv'.
5462         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5463         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5464         'struct lconv' does not even contain decimal_point.
5465         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5466         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5467         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5468         * doc/posix-headers/locale.texi: Mention the problems with
5469         'struct lconv'.
5470         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5471
5472 2012-03-24  Bruno Haible  <bruno@clisp.org>
5473
5474         Enable common subexpression optimization in GCC.
5475         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5476         macros.
5477         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5478         GCC attribute 'const'.
5479         (uc_locale_language): Declare with GCC attribute 'pure'.
5480         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5481         with GCC attribute 'const'.
5482         * lib/unictype.in.h (uc_is_general_category_withtable,
5483         uc_combining_class, uc_combining_class_name,
5484         uc_combining_class_long_name, uc_bidi_class_name,
5485         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5486         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5487         uc_decimal_value, uc_digit_value, uc_numeric_value,
5488         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5489         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5490         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5491         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5492         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5493         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5494         Declare with GCC attribute 'const'.
5495         (uc_general_category_name, uc_general_category_long_name,
5496         uc_general_category_byname, uc_general_category,
5497         uc_is_general_category, uc_combining_class_byname,
5498         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5499         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5500         Declare with GCC attribute 'pure'.
5501         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5502         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5503         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5504         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5505         with GCC attribute 'pure'.
5506         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5507         'const'.
5508         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5509         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5510         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5511         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5512         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5513         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5514         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5515         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5516         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5517         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5518         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5519         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5520         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5521         GCC attribute 'pure'.
5522         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5523         'const'.
5524         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5525         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5526         u32_strwidth): Declare with GCC attribute 'pure'.
5527
5528         Enable common subexpression optimization in GCC.
5529         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5530         (alphasort): Declare with GCC attribute 'pure'.
5531         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5532         (atoll): Declare with GCC attribute 'pure'.
5533         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5534         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5535         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5536         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5537         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5538         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5539         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5540
5541 2012-03-24  Bruno Haible  <bruno@clisp.org>
5542
5543         gnulib-tool: Avoid unintended error output from 'cmp'.
5544         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5545         "cmp -s", not "cmp > /dev/null".
5546
5547 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5548
5549         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5550
5551         It's not just Automake versions < 1.9b that creates an empty
5552         pkgdatadir at installation time if pkgdata_DATA is specified
5553         to empty; modern automake versions do this as well, at least
5554         until automake 1.11.4 (not yet released at the moment of writing,
5555         but soon to appear).  That behaviour was generally considered a
5556         feature rather than a bug, at least until this discussion:
5557         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5558
5559         See also automake bugs #10997 and #11030.
5560
5561         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5562         reference to relevant automake bug numbers.
5563         (func_emit_tests_Makefile_am): Likewise.
5564
5565 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5566
5567         announce-gen: use Digest::SHA when possible
5568         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5569         back to Digest::SHA1 if necessary.
5570
5571 2012-03-20  Jim Meyering  <meyering@redhat.com>
5572
5573         tests: avoid gcc warnings about argv vs. const initializers
5574         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5575         warnings about discarding 'const' qualifier from pointer target type.
5576         * tests/test-posix_spawn2.c (main): Likewise.
5577
5578 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5579
5580         README-release: simplify slightly
5581         * top/README-release: Run "git checkout master" only once.
5582
5583 2012-03-15  Mark Wielaard  <mark@klomp.org>
5584
5585         git-merge-changelog: add specific example on how to use with hg.
5586         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5587
5588 2012-03-18  Mark Wielaard  <mark@klomp.org>
5589
5590         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5591
5592 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5593
5594         git-version-gen: don't let "prefix" envvar cause trouble
5595         * build-aux/git-version-gen (prefix): Initialize properly,
5596         so as not to use a value specified via the environment.
5597         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5598
5599 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5600
5601         regex: diagnose too-large repeat counts in EREs
5602         Previously, the code did not diagnose the too-large repeat count
5603         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5604         as if it were 'b\{1000000000}', which is unexpected.
5605         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5606         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5607         is a reasonable one for this problem.  Another option would be to
5608         create a new REG_OVERFLOW error for repeat counts that are too large.
5609         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5610         count is too large, so that the caller can distinguish the two cases.
5611         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5612         "Too large" return code, and that repeat counts are one example of this.
5613
5614 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5615
5616         doc: some glibc x32 integer width issues
5617         * doc/posix-headers/sys_types.texi (sys/types.h):
5618         * doc/posix-headers/time.texi (time.h):
5619         Mention that glibc x32 does not conform to POSIX in a couple of
5620         areas related to integer widths.
5621
5622 2012-03-15  Bruno Haible  <bruno@clisp.org>
5623
5624         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5625         * lib/fma.c (VOLATILE): New macro.
5626         (FUNC): Use it to work around a GCC compiler bug.
5627
5628 2012-03-13  Bruno Haible  <bruno@clisp.org>
5629
5630         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5631         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5632         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5633         REPLACE_HYPOTL to 1.
5634         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5635
5636 2012-03-13  Bruno Haible  <bruno@clisp.org>
5637
5638         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5639         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5640         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5641         REPLACE_REMAINDERL to 1.
5642         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5643         bug.
5644
5645 2012-03-13  Bruno Haible  <bruno@clisp.org>
5646
5647         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5648         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5649         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5650         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5651         too big rounding errors.
5652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5653         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5654         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5655         (Depends-on): Update conditions.
5656         * tests/test-sqrtl.c (my_ldexpl): New function.
5657         (main): Add test of a particular value.
5658         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5659
5660 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5661
5662         doc: Update timer_* platform portability notes.
5663         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5664         that always return ENOSYS.
5665         * doc/posix-functions/timer_delete.texi: Likewise.
5666         * doc/posix-functions/timer_gettime.texi: Likewise.
5667         * doc/posix-functions/timer_settime.texi: Likewise.
5668
5669 2012-03-13  Bruno Haible  <bruno@clisp.org>
5670
5671         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5672         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5673         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5674         REPLACE_CBRTL to 1.
5675         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5676
5677 2012-03-13  Bruno Haible  <bruno@clisp.org>
5678
5679         remainderl: Avoid compilation error on AIX >= 5.2.
5680         * lib/math.in.h (remainderl): Undefine macro from the system header.
5681
5682 2012-03-13  Bruno Haible  <bruno@clisp.org>
5683
5684         Avoid compilation errors with MSVC option -fp:strict.
5685         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5686         * lib/cbrtf.c: Likewise.
5687         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5688
5689 2012-03-12  Bruno Haible  <bruno@clisp.org>
5690
5691         uninorm: Don't crash in out-of-memory conditions.
5692         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5693         gracefully.
5694         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5695         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5696
5697 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5698
5699         quote: fix syntax-check
5700         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5701         also exports quote_quoting_options.
5702
5703 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5704
5705         Collapse list of copyright years to ranges.  See
5706         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5707         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5708         build-aux/csharpexec.sh.in, build-aux/gnupload,
5709         build-aux/install-reloc, build-aux/javacomp.sh.in,
5710         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5711         build-aux/move-if-change, build-aux/reloc-ldflags,
5712         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5713
5714 2012-03-11  Bruno Haible  <bruno@clisp.org>
5715
5716         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5717         * m4/log2f-ieee.m4: New file.
5718         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5719         whether log2f works with a minus zero argument. Replace it if not.
5720         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5721         (Depends-on): Add log2-ieee.
5722         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5723         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5724
5725         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5726         * m4/log2-ieee.m4: New file.
5727         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5728         whether log2 works with a minus zero argument. Replace it if not.
5729         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5730         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5731         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5732
5733         Tests for module 'log2l-ieee'.
5734         * modules/log2l-ieee-tests: New file.
5735         * tests/test-log2l-ieee.c: New file.
5736
5737         New module 'log2l-ieee'.
5738         * modules/log2l-ieee: New file.
5739
5740         Tests for module 'log2-ieee'.
5741         * modules/log2-ieee-tests: New file.
5742         * tests/test-log2-ieee.c: New file.
5743
5744         New module 'log2-ieee'.
5745         * modules/log2-ieee: New file.
5746
5747         Tests for module 'log2f-ieee'.
5748         * modules/log2f-ieee-tests: New file.
5749         * tests/test-log2f-ieee.c: New file.
5750         * tests/test-log2-ieee.h: New file.
5751
5752         New module 'log2f-ieee'.
5753         * modules/log2f-ieee: New file.
5754
5755 2012-03-11  Bruno Haible  <bruno@clisp.org>
5756
5757         Tests for module 'log2l'.
5758         * modules/log2l-tests: New file.
5759         * tests/test-log2l.c: New file.
5760
5761         New module 'log2l'.
5762         * lib/math.in.h (log2l): New declaration.
5763         * lib/log2l.c: New file.
5764         * m4/log2l.m4: New file.
5765         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5767         REPLACE_LOG2L.
5768         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5769         REPLACE_LOG2L.
5770         * modules/log2l: New file.
5771         * tests/test-math-c++.cc: Check the declaration of log2l.
5772         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5773         and OSF/1 problems.
5774
5775 2012-03-11  Bruno Haible  <bruno@clisp.org>
5776
5777         Tests for module 'log2f'.
5778         * modules/log2f-tests: New file.
5779         * tests/test-log2f.c: New file.
5780
5781         New module 'log2f'.
5782         * lib/math.in.h (log2f): New declaration.
5783         * lib/log2f.c: New file.
5784         * m4/log2f.m4: New file.
5785         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5787         REPLACE_LOG2F.
5788         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5789         REPLACE_LOG2F.
5790         * modules/log2f: New file.
5791         * tests/test-math-c++.cc: Check the declaration of log2f.
5792         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5793         and OSF/1 and Cygwin problems.
5794
5795 2012-03-11  Bruno Haible  <bruno@clisp.org>
5796
5797         Tests for module 'log2'.
5798         * modules/log2-tests: New file.
5799         * tests/test-log2.c: New file.
5800         * tests/test-log2.h: New file.
5801
5802         New module 'log2'.
5803         * lib/math.in.h (log2): New declaration.
5804         * lib/log2.c: New file.
5805         * m4/log2.m4: New file.
5806         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5808         REPLACE_LOG2.
5809         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5810         REPLACE_LOG2.
5811         * modules/log2: New file.
5812         * tests/test-math-c++.cc: Check the declaration of log2.
5813         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5814         and OSF/1 and Cygwin problems.
5815
5816 2012-03-11  Bruno Haible  <bruno@clisp.org>
5817
5818         exp2* tests: More tests.
5819         * tests/test-exp2.h (test_function): Test all integral arguments that
5820         don't need to overflow or denormalized numbers.
5821         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5822         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5823         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5824
5825 2012-03-10  Bruno Haible  <bruno@clisp.org>
5826
5827         log1pl-ieee: Work around test failure on AIX 7.1.
5828         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5829
5830         log1pl-ieee: Work around test failure on IRIX 6.5.
5831         * m4/log1pl-ieee.m4: New file.
5832         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5833         test whether log1pl works with a minus zero argument. Replace it if
5834         not.
5835         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5837         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5838         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5839         (Depends-on): Update conditions.
5840         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5841         m4/signbit.m4.
5842         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5843         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5844
5845         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5846         * m4/log1pf-ieee.m4: New file.
5847         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5848         test whether log1pf works with a minus zero argument. Replace it if
5849         not.
5850         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5851         m4/signbit.m4.
5852         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5853         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5854
5855         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5856         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5857         (configure.ac): Require gl_FUNC_LOG1PF.
5858
5859         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5860         * m4/log1p-ieee.m4: New file.
5861         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5862         whether log1p works with a minus zero argument. Replace it if not.
5863         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5865         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5866         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5867         (Depends-on): Update conditions.
5868         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5869         m4/signbit.m4.
5870         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5871         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5872
5873         Tests for module 'log1pl-ieee'.
5874         * modules/log1pl-ieee-tests: New file.
5875         * tests/test-log1pl-ieee.c: New file.
5876
5877         New module 'log1pl-ieee'.
5878         * modules/log1pl-ieee: New file.
5879
5880         Tests for module 'log1p-ieee'.
5881         * modules/log1p-ieee-tests: New file.
5882         * tests/test-log1p-ieee.c: New file.
5883
5884         New module 'log1p-ieee'.
5885         * modules/log1p-ieee: New file.
5886
5887         Tests for module 'log1pf-ieee'.
5888         * modules/log1pf-ieee-tests: New file.
5889         * tests/test-log1pf-ieee.c: New file.
5890         * tests/test-log1p-ieee.h: New file.
5891
5892         New module 'log1pf-ieee'.
5893         * modules/log1pf-ieee: New file.
5894
5895 2012-03-10  Bruno Haible  <bruno@clisp.org>
5896
5897         Tests for module 'log1pl'.
5898         * modules/log1pl-tests: New file.
5899         * tests/test-log1pl.c: New file.
5900
5901         New module 'log1pl'.
5902         * lib/math.in.h (log1pl): New declaration.
5903         * lib/log1pl.c: New file.
5904         * m4/log1pl.m4: New file.
5905         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5907         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5908         * modules/log1pl: New file.
5909         * tests/test-math-c++.cc: Check the declaration of log1pl.
5910         * doc/posix-functions/log1pl.texi: Mention the new module.
5911
5912 2012-03-10  Bruno Haible  <bruno@clisp.org>
5913
5914         Tests for module 'log1pf'.
5915         * modules/log1pf-tests: New file.
5916         * tests/test-log1pf.c: New file.
5917
5918         New module 'log1pf'.
5919         * lib/math.in.h (log1pf): New declaration.
5920         * lib/log1pf.c: New file.
5921         * m4/log1pf.m4: New file.
5922         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5924         REPLACE_LOG1PF.
5925         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5926         REPLACE_LOG1PF.
5927         * modules/log1pf: New file.
5928         * tests/test-math-c++.cc: Check the declaration of log1pf.
5929         * doc/posix-functions/log1pf.texi: Mention the new module.
5930
5931 2012-03-10  Bruno Haible  <bruno@clisp.org>
5932
5933         log1p tests: More tests.
5934         * tests/test-log1p.h: New file.
5935         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5936         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5937         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5938         (main): Invoke test_function.
5939
5940         log1p: Provide replacement for Minix and MSVC.
5941         * lib/math.in.h (log1p): New declaration.
5942         * lib/log1p.c: New file.
5943         * m4/log1p.m4: New file.
5944         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5946         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5947         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5948         (Depends-on): Add math, isnand, log, round.
5949         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5950         HAVE_LOG1P is 0.
5951         * tests/test-math-c++.cc: Check the declaration of log1p.
5952         * doc/posix-functions/log1p.texi: Mention the replacement.
5953
5954 2012-03-10  Bruno Haible  <bruno@clisp.org>
5955
5956         math tests: Small simplification.
5957         * tests/test-exp.h (test_function): Use the same err_bound for
5958         'double' on platforms with sizeof (long double) == sizeof (double)
5959         than on platforms with sizeof (long double) > sizeof (double).
5960         * tests/test-exp2.h (test_function): Likewise.
5961         * tests/test-expm1.h (test_function): Likewise.
5962         * tests/test-log.h (test_function): Likewise.
5963
5964 2012-03-10  Bruno Haible  <bruno@clisp.org>
5965
5966         Fix some comments.
5967         * lib/expl.c: Fix an ambiguous comment.
5968         * lib/expm1.c: Likewise.
5969         * lib/expm1l.c: Likewise.
5970         * lib/exp2.c: Likewise.
5971         * lib/exp2l.c: Likewise.
5972
5973 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5974
5975         regex: allow inclusion of <regex.h> before <limits.h>
5976         Without this patch, portable programs had to include <limits.h> before
5977         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5978         I ran into this problem with a test version of GNU grep on Solaris 8.
5979         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5980         This is done conditionally so that this change can be merged
5981         back to glibc.
5982         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5983         using the included regex.
5984
5985         fts: depend on fdopendir
5986         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5987         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5988         problem was introduced when fdopendir was split out.
5989
5990 2012-03-10  Bruno Haible  <bruno@clisp.org>
5991
5992         Remove unused variables.
5993         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5994         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5995
5996 2012-03-10  Bruno Haible  <bruno@clisp.org>
5997
5998         isnanf-nolibm: Fix last commit.
5999         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6000
6001         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6002         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6003
6004 2012-03-10  Bruno Haible  <bruno@clisp.org>
6005
6006         logf-ieee: Work around test failure on NetBSD 5.1.
6007         * m4/logf-ieee.m4: New file.
6008         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6009         whether logf works with a negative argument. Replace it if not.
6010         * lib/logf.c (logf): For negative arguments, return NaN.
6011         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6012         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6013         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6014
6015         logf-ieee: Work around test failure on Solaris 9.
6016         * modules/logf-ieee (Depends-on): Add log-ieee.
6017         (configure.ac): Require gl_FUNC_LOGF.
6018
6019         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6020         * m4/log-ieee.m4: New file.
6021         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6022         log works with a negative argument. Replace it if not.
6023         * lib/log.c (log): For negative arguments, return NaN.
6024         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6025         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6026         * doc/posix-functions/log.texi: Mention the log-ieee module.
6027
6028         Tests for module 'logl-ieee'.
6029         * modules/logl-ieee-tests: New file.
6030         * tests/test-logl-ieee.c: New file.
6031
6032         New module 'logl-ieee'.
6033         * modules/logl-ieee: New file.
6034
6035         Tests for module 'log-ieee'.
6036         * modules/log-ieee-tests: New file.
6037         * tests/test-log-ieee.c: New file.
6038
6039         New module 'log-ieee'.
6040         * modules/log-ieee: New file.
6041
6042         Tests for module 'logf-ieee'.
6043         * modules/logf-ieee-tests: New file.
6044         * tests/test-logf-ieee.c: New file.
6045         * tests/test-log-ieee.h: New file.
6046
6047         New module 'logf-ieee'.
6048         * modules/logf-ieee: New file.
6049
6050 2012-03-10  Bruno Haible  <bruno@clisp.org>
6051
6052         log: Fix bug introduced on 2012-03-09.
6053         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6054
6055 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6056
6057         timer-time: link explicitly with pthreads on glibc
6058         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6059         to support static linking, when newer glibc is
6060         detected, as that contains pthread emulation of
6061         POSIX timer functions where required.
6062         * modules/timer-time: Depend on threadlib to
6063         pull in the appropriate library to link.
6064
6065 2012-03-10  Bruno Haible  <bruno@clisp.org>
6066
6067         log* tests: More tests.
6068         * tests/test-log.h: New file.
6069         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6070         (main): Invoke test_function.
6071         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6072         (main): Invoke test_function.
6073         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6074         (main): Invoke test_function.
6075         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6076         tests/randomd.c.
6077         (Makefile.am): Add randomd.c to test_log_SOURCES.
6078         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6079         tests/randomf.c.
6080         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6081         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6082         tests/randoml.c.
6083         (Depends-on): Add 'float'.
6084         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6085
6086 2012-03-09  Bruno Haible  <bruno@clisp.org>
6087
6088         logl: Work around OSF/1 5.1 bug.
6089         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6090         * lib/logl.c (logl): If logl exists, use it and provide just the
6091         workaround.
6092         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6093         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6095         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6096         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6097         (Depends-on): Update conditions.
6098         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6099
6100 2012-03-09  Bruno Haible  <bruno@clisp.org>
6101
6102         logf: Work around OSF/1 5.1 bug.
6103         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6104         * lib/logf.c (logf): If logf exists, use it and provide just the
6105         workaround.
6106         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6107         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6109         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6110         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6111         (Depends-on): Update conditions.
6112         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6113
6114 2012-03-09  Bruno Haible  <bruno@clisp.org>
6115
6116         log: Work around OSF/1 5.1 bug.
6117         * lib/math.in.h (log): New declaration.
6118         * lib/log.c: New file.
6119         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6120         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6121         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6123         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6124         * modules/log (Files): Add lib/log.c.
6125         (Depends-on): Add math.
6126         (configure.ac): If REPLACE_LOG is 1, compile an override.
6127         * tests/test-math-c++.cc: Check the declaration of log.
6128         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6129
6130 2012-03-09  Jim Meyering  <meyering@redhat.com>
6131
6132         readtokens.c: adjust wording in a comment
6133         * lib/readtokens.c: Insert omitted "that" in a comment.
6134
6135 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6136
6137         modechange: add notations +40, 00440, etc.
6138         * lib/modechange.c (mode_compile): Support new notations
6139         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6140
6141 2012-03-08  Bruno Haible  <bruno@clisp.org>
6142
6143         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6144         * m4/exp2l-ieee.m4: New file.
6145         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6146         test whether exp2l works with a NaN argument and with a negative
6147         infinity argument. Replace it if not.
6148         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6150         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6151         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6152         (Depends-on): Update conditions.
6153         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6154         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6155         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6156
6157         Tests for module 'exp2l-ieee'.
6158         * modules/exp2l-ieee-tests: New file.
6159         * tests/test-exp2l-ieee.c: New file.
6160
6161         New module 'exp2l-ieee'.
6162         * modules/exp2l-ieee: New file.
6163
6164         Tests for module 'exp2-ieee'.
6165         * modules/exp2-ieee-tests: New file.
6166         * tests/test-exp2-ieee.c: New file.
6167
6168         New module 'exp2-ieee'.
6169         * modules/exp2-ieee: New file.
6170
6171         Tests for module 'exp2f-ieee'.
6172         * modules/exp2f-ieee-tests: New file.
6173         * tests/test-exp2f-ieee.c: New file.
6174         * tests/test-exp2-ieee.h: New file.
6175
6176         New module 'exp2f-ieee'.
6177         * modules/exp2f-ieee: New file.
6178
6179 2012-03-08  Bruno Haible  <bruno@clisp.org>
6180
6181         Tests for module 'exp2l'.
6182         * modules/exp2l-tests: New file.
6183         * tests/test-exp2l.c: New file.
6184
6185         New module 'exp2l'.
6186         * lib/math.in.h (exp2l): New declaration.
6187         * lib/exp2l.c: New file.
6188         * lib/expl-table.c: New file, extracted from lib/expl.c.
6189         * lib/expl.c (gl_expl_table): New declaration.
6190         (expl): Remove expl_table. Update reference.
6191         * m4/exp2l.m4: New file.
6192         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6194         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6195         * modules/exp2l: New file.
6196         * modules/expl (Files): Add lib/expl-table.c.
6197         (configure.ac): Compile also expl-table.c.
6198         * tests/test-math-c++.cc: Check the declaration of exp2l.
6199         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6200         problem.
6201
6202 2012-03-08  Bruno Haible  <bruno@clisp.org>
6203
6204         Tests for module 'exp2f'.
6205         * modules/exp2f-tests: New file.
6206         * tests/test-exp2f.c: New file.
6207
6208         New module 'exp2f'.
6209         * lib/math.in.h (exp2f): New declaration.
6210         * lib/exp2f.c: New file.
6211         * m4/exp2f.m4: New file.
6212         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6214         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6215         * modules/exp2f: New file.
6216         * tests/test-math-c++.cc: Check the declaration of exp2f.
6217         * doc/posix-functions/exp2f.texi: Mention the new module and the
6218         IRIX problem.
6219
6220 2012-03-08  Bruno Haible  <bruno@clisp.org>
6221
6222         Tests for module 'exp2'.
6223         * modules/exp2-tests: New file.
6224         * tests/test-exp2.c: New file.
6225         * tests/test-exp2.h: New file.
6226
6227         New module 'exp2'.
6228         * lib/math.in.h (exp2): New declaration.
6229         * lib/exp2.c: New file.
6230         * m4/exp2.m4: New file.
6231         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6233         REPLACE_EXP2.
6234         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6235         REPLACE_EXP2.
6236         * modules/exp2: New file.
6237         * tests/test-math-c++.cc: Check the declaration of exp2.
6238         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6239         and OpenBSD problems.
6240
6241 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6242
6243         savedir: fix comment typo
6244         * lib/savedir.c (savedirstream): Fix typo in comment.
6245
6246 2012-03-08  Bruno Haible  <bruno@clisp.org>
6247
6248         test-readtokens.c: use const; remove unwarranted cast
6249         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6250
6251 2012-03-08  Bruno Haible  <bruno@clisp.org>
6252
6253         fmal: Avoid compilation error on AIX.
6254         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6255         AIX 5.2..7.1.
6256
6257 2012-03-08  Bruno Haible  <bruno@clisp.org>
6258
6259         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6260         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6261         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6262         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6263         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6264         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6265         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6266
6267 2012-03-08  Bruno Haible  <bruno@clisp.org>
6268
6269         remainderf: Override buggy system function on IRIX 6.5.
6270         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6271         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6272         when it exists.
6273         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6274
6275 2012-03-08  Jim Meyering  <meyering@redhat.com>
6276
6277         test-readtokens.c: avoid const-related compilation warnings
6278         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6279
6280 2012-03-07  Jim Meyering  <meyering@redhat.com>
6281             Bruno Haible  <bruno@clisp.org>
6282
6283         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6284         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6285         tests/randomd.c.
6286         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6287         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6288         tests/randoml.c.
6289         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6290
6291 2012-03-07  Bruno Haible  <bruno@clisp.org>
6292
6293         expm1l: Avoid compilation error on AIX.
6294         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6295         AIX 5.2..7.1.
6296
6297 2012-03-07  Bruno Haible  <bruno@clisp.org>
6298
6299         expm1l: Don't override undeclared system function on IRIX 6.5.
6300         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6301         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6302         it exists. Set HAVE_DECL_EXPM1L.
6303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6304         HAVE_EXPM1L.
6305         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6306         HAVE_EXPM1L.
6307         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6308
6309 2012-03-07  Bruno Haible  <bruno@clisp.org>
6310
6311         remainderl: Don't override undeclared system function on IRIX 6.5.
6312         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6313         HAVE_REMAINDERL.
6314         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6315         declared when it exists. Set HAVE_DECL_REMAINDERL.
6316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6317         not HAVE_REMAINDERL.
6318         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6319         HAVE_REMAINDERL.
6320         * doc/posix-functions/remainderl.texi: Mention missing declaration
6321         problem.
6322
6323 2012-03-07  Bruno Haible  <bruno@clisp.org>
6324
6325         rintf: Don't override undeclared system function on IRIX 6.5.
6326         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6327         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6328         exists. Set HAVE_DECL_RINTF.
6329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6330         HAVE_RINTF.
6331         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6332         HAVE_RINTF.
6333         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6334
6335 2012-03-07  Bruno Haible  <bruno@clisp.org>
6336
6337         roundl: Avoid compilation error on AIX.
6338         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6339         AIX 5.2..7.1.
6340
6341 2012-03-07  Bruno Haible  <bruno@clisp.org>
6342
6343         roundl: Don't override undeclared system function on IRIX 6.5.
6344         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6345         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6346         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6347         * modules/roundl (configure.ac): For replacement code, test
6348         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6349         (Depends-on): Update conditions.
6350         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6351
6352 2012-03-07  Bruno Haible  <bruno@clisp.org>
6353
6354         roundf: Don't override undeclared system function on IRIX 6.5.
6355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6356         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6357         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6358         * modules/roundf (configure.ac): For replacement code, test
6359         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6360         (Depends-on): Update conditions.
6361         * modules/roundf-ieee (Depends-on): Update conditions.
6362         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6363
6364 2012-03-07  Bruno Haible  <bruno@clisp.org>
6365
6366         round: Don't override undeclared system function on IRIX 6.5.
6367         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6368         argument.
6369         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6370         also when it is not declared. Set HAVE_ROUND. For replacement code,
6371         test HAVE_ROUND, not HAVE_DECL_ROUND.
6372         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6373         not HAVE_DECL_ROUND.
6374         (Depends-on): Update conditions.
6375         * modules/round-ieee (Depends-on): Update conditions.
6376         * doc/posix-functions/round.texi: Mention the IRIX problem.
6377
6378 2012-03-07  Bruno Haible  <bruno@clisp.org>
6379
6380         copysignf: Don't override undeclared system function on IRIX 6.5.
6381         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6382         HAVE_COPYSIGNF.
6383         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6384         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6386         not HAVE_COPYSIGNF.
6387         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6388         HAVE_COPYSIGNF.
6389         * doc/posix-functions/copysignf.texi: Mention missing declaration
6390         problem.
6391
6392 2012-03-07  Jim Meyering  <meyering@redhat.com>
6393
6394         readtokens: add tests
6395         * modules/readtokens-tests: New file.
6396         * tests/test-readtokens.c: New file.
6397
6398 2012-03-07  Jim Meyering  <meyering@redhat.com>
6399
6400         quotearg: the module must now include quote.h
6401         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6402         So must the module.
6403         * modules/quotearg (Files): Add quote.h.
6404
6405 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6406
6407         readtokens: avoid core dumps with unusual calling patterns
6408         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6409         * lib/readtokens.c: Include limits.h.
6410         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6411         (readtoken): Don't cache the delimiters; the cache code was buggy
6412         if !delim && saved_delim, or if the new n_delim differs from the old.
6413         Also, it wasn't thread-safe.
6414
6415 2012-03-07  Bruno Haible  <bruno@clisp.org>
6416
6417         quote: Adhere to common module description layout.
6418         * modules/quote (Makefile.am): Add back empty section.
6419
6420 2012-03-06  Akim Demaille  <demaille@gostai.com>
6421
6422         quote: fuse into quotearg
6423         This patch is made for the benefit of Bison.
6424         quote does not leave the choice of the quoting style to the user.
6425         quoting_style provides poor customizability, yet quoting_options,
6426         which is very rich, is hidden inside quotearg.c.  So in order to
6427         allow quote customization, move its implementation to quotearg.c.
6428         * lib/quote.c: Remove.
6429         * modules/quote: Adjust.
6430         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6431         warning: provide all the members of literal structs.
6432         (quote_quoting_options): New.
6433         (quote, quote_n): Import implementation from quote.c.
6434         * lib/quote.h: Import the comments from quote.c.
6435         (quote_quoting_options): New.
6436
6437 2012-03-06  Bruno Haible  <bruno@clisp.org>
6438
6439         Tests for module 'expm1l-ieee'.
6440         * modules/expm1l-ieee-tests: New file.
6441         * tests/test-expm1l-ieee.c: New file.
6442
6443         New module 'expm1l-ieee'.
6444         * modules/expm1l-ieee: New file.
6445
6446         Tests for module 'expm1f-ieee'.
6447         * modules/expm1f-ieee-tests: New file.
6448         * tests/test-expm1f-ieee.c: New file.
6449
6450         New module 'expm1f-ieee'.
6451         * modules/expm1f-ieee: New file.
6452
6453         Tests for module 'expm1-ieee'.
6454         * modules/expm1-ieee-tests: New file.
6455         * tests/test-expm1-ieee.c: New file.
6456         * tests/test-expm1-ieee.h: New file.
6457
6458         New module 'expm1-ieee'.
6459         * modules/expm1-ieee: New file.
6460         * m4/expm1-ieee.m4: New file.
6461         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6462         whether expm1 works with a minus zero argument. Replace it if not.
6463         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6465         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6466         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6467         (Depends-on): Update conditions.
6468         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6469         AIX problem.
6470
6471 2012-03-06  Bruno Haible  <bruno@clisp.org>
6472
6473         Work around expm1f bug on IRIX 6.5.
6474         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6475         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6476         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6477         not work.
6478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6479         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6480         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6481         (Depends-on): Update conditions.
6482         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6483
6484 2012-03-06  Bruno Haible  <bruno@clisp.org>
6485
6486         Tests for module 'expm1l'.
6487         * modules/expm1l-tests: New file.
6488         * tests/test-expm1l.c: New file.
6489
6490         New module 'expm1l'.
6491         * lib/math.in.h (expm1l): New declaration.
6492         * lib/expm1l.c: New file.
6493         * m4/expm1l.m4: New file.
6494         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6496         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6497         * modules/expm1l: New file.
6498         * tests/test-math-c++.cc: Check the declaration of expm1l.
6499         * doc/posix-functions/expm1l.texi: Mention the new module.
6500
6501 2012-03-06  Bruno Haible  <bruno@clisp.org>
6502
6503         Tests for module 'expm1f'.
6504         * modules/expm1f-tests: New file.
6505         * tests/test-expm1f.c: New file.
6506
6507         New module 'expm1f'.
6508         * lib/math.in.h (expm1f): New declaration.
6509         * lib/expm1f.c: New file.
6510         * m4/expm1f.m4: New file.
6511         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6513         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6514         * modules/expm1f: New file.
6515         * tests/test-math-c++.cc: Check the declaration of expm1f.
6516         * doc/posix-functions/expm1f.texi: Mention the new module.
6517
6518 2012-03-06  Bruno Haible  <bruno@clisp.org>
6519
6520         Tests for module 'expm1'.
6521         * modules/expm1-tests: New file.
6522         * tests/test-expm1.c: New file.
6523         * tests/test-expm1.h: New file.
6524
6525         New module 'expm1'.
6526         * lib/math.in.h (expm1): New declaration.
6527         * lib/expm1.c: New file.
6528         * m4/expm1.m4: New file.
6529         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6531         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6532         * modules/expm1: New file.
6533         * tests/test-math-c++.cc: Check the declaration of expm1.
6534         * doc/posix-functions/expm1.texi: Mention the new module.
6535
6536 2012-03-06  Bruno Haible  <bruno@clisp.org>
6537
6538         math: Ensure declarations of math functions.
6539         * modules/acosf (Depends-on): Add 'extensions'.
6540         * modules/asinf (Depends-on): Likewise.
6541         * modules/atan2f (Depends-on): Likewise.
6542         * modules/atanf (Depends-on): Likewise.
6543         * modules/cbrt (Depends-on): Likewise.
6544         * modules/cbrtf (Depends-on): Likewise.
6545         * modules/cbrtl (Depends-on): Likewise.
6546         * modules/copysignf (Depends-on): Likewise.
6547         * modules/copysignl (Depends-on): Likewise.
6548         * modules/cosf (Depends-on): Likewise.
6549         * modules/coshf (Depends-on): Likewise.
6550         * modules/expf (Depends-on): Likewise.
6551         * modules/fabsf (Depends-on): Likewise.
6552         * modules/fabsl (Depends-on): Likewise.
6553         * modules/fmaf (Depends-on): Likewise.
6554         * modules/fmal (Depends-on): Likewise.
6555         * modules/fmodf (Depends-on): Likewise.
6556         * modules/fmodl (Depends-on): Likewise.
6557         * modules/frexpf (Depends-on): Likewise.
6558         * modules/frexpl (Depends-on): Likewise.
6559         * modules/hypot (Depends-on): Likewise.
6560         * modules/hypotf (Depends-on): Likewise.
6561         * modules/hypotl (Depends-on): Likewise.
6562         * modules/ldexpf (Depends-on): Likewise.
6563         * modules/ldexpl (Depends-on): Likewise.
6564         * modules/log10f (Depends-on): Likewise.
6565         * modules/log10l (Depends-on): Likewise.
6566         * modules/log1p (Depends-on): Likewise.
6567         * modules/logb (Depends-on): Likewise.
6568         * modules/logf (Depends-on): Likewise.
6569         * modules/modff (Depends-on): Likewise.
6570         * modules/modfl (Depends-on): Likewise.
6571         * modules/powf (Depends-on): Likewise.
6572         * modules/remainderf (Depends-on): Likewise.
6573         * modules/remainderl (Depends-on): Likewise.
6574         * modules/rintf (Depends-on): Likewise.
6575         * modules/rintl (Depends-on): Likewise.
6576         * modules/sinf (Depends-on): Likewise.
6577         * modules/sinhf (Depends-on): Likewise.
6578         * modules/sqrtf (Depends-on): Likewise.
6579         * modules/tanf (Depends-on): Likewise.
6580         * modules/tanhf (Depends-on): Likewise.
6581         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6582         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6583         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6584         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6585         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6586         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6587         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6588         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6589         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6590         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6591         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6592         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6593         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6594         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6595         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6596         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6597         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6598         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6599         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6600         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6601         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6602         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6603         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6604         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6606         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6607         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6608         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6609         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6610         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6611         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6612         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6613         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6614         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6615         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6616         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6617         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6618         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6619         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6620         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6621         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6622
6623 2012-03-06  Bruno Haible  <bruno@clisp.org>
6624
6625         math: Update module names in warnings.
6626         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6627         tanl): Use specific module name in warn-on-use warning.
6628
6629 2012-03-06  Bruno Haible  <bruno@clisp.org>
6630
6631         expl: Simplify computation.
6632         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6633
6634 2012-03-05  Bruno Haible  <bruno@clisp.org>
6635
6636         exp* tests: More tests.
6637         * tests/test-exp.h: New file.
6638         * tests/test-exp.c: Include <float.h> and test-exp.h.
6639         (main): Invoke test_function.
6640         * tests/test-expf.c: Include <float.h> and test-exp.h.
6641         (main): Invoke test_function.
6642         * tests/test-expl.c: Include <float.h> and test-exp.h.
6643         (main): Invoke test_function.
6644         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6645         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6646         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6647         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6648         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6649         (Depends-on): Add 'float'.
6650         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6651
6652         expl: Fix precision of computed result.
6653         * lib/expl.c: Completely rewritten.
6654         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6655         (Maintainer): Add me.
6656         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6657
6658 2012-03-05  Bruno Haible  <bruno@clisp.org>
6659
6660         cbrt* tests: More tests.
6661         * tests/test-cbrt.h: New file.
6662         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6663         (main): Invoke test_function.
6664         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6665         (main): Invoke test_function.
6666         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6667         (main): Invoke test_function.
6668         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6669         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6670         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6671         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6672         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6673         (Depends-on): Add 'float'.
6674         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6675
6676 2012-03-05  Bruno Haible  <bruno@clisp.org>
6677
6678         hypot* tests: More tests.
6679         * tests/test-hypot.h: New file, partially extracted from
6680         tests/test-hypotl.c.
6681         * tests/test-hypot.c: Include test-hypot.h.
6682         (main): Invoke test_function.
6683         * tests/test-hypotf.c: Include test-hypot.h.
6684         (main): Invoke test_function.
6685         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6686         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6687         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6688         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6689         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6690         tests/randomf.c.
6691         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6692         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6693         tests/randoml.c.
6694         (Depends-on): Add 'fpucw', 'float'.
6695         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6696
6697 2012-03-05  Bruno Haible  <bruno@clisp.org>
6698
6699         fpucw: Doc about FreeBSD.
6700         * lib/fpucw.h: Mention FreeBSD in comments.
6701
6702 2012-03-04  Bruno Haible  <bruno@clisp.org>
6703
6704         sqrt* tests: More tests.
6705         * tests/test-sqrt.h: New file.
6706         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6707         (main): Invoke test_function.
6708         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6709         (main): Invoke test_function.
6710         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6711         (main): Invoke test_function.
6712         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6713         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6714         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6715         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6716         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6717         (Depends-on): Add 'float'.
6718         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6719
6720 2012-03-04  Bruno Haible  <bruno@clisp.org>
6721
6722         remainder* tests: More tests.
6723         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6724         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6725         (main): Invoke test_function.
6726         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6727         (main): Invoke test_function.
6728         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6729         (main): Invoke test_function.
6730         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6731         tests/randomd.c.
6732         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6733         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6734         tests/randomf.c.
6735         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6736         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6737         tests/randoml.c.
6738         (Depends-on): Add 'float'.
6739         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6740
6741 2012-03-04  Bruno Haible  <bruno@clisp.org>
6742
6743         remainder, remainderf, remainderl: Fix computation for large quotients.
6744         * lib/remainder.c: Completely rewritten.
6745         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6746         USE_FLOAT.
6747         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6748         USE_LONG_DOUBLE.
6749         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6750         isnand, isinf. Remove round, fma.
6751         * modules/remainderf (Files): Add lib/remainder.c.
6752         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6753         Remove roundf, fmaf.
6754         * modules/remainderl (Files): Add lib/remainder.c.
6755         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6756         isinf. Remove roundl, fmal.
6757         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6758         REMAINDER_LIBM.
6759         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6760         REMAINDERF_LIBM.
6761         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6762         REMAINDERL_LIBM.
6763
6764 2012-03-04  Bruno Haible  <bruno@clisp.org>
6765
6766         fmod* tests: More tests.
6767         * tests/test-fmod.h (my_ldexp): New function.
6768         (test_function): Reduce amount of random numbers to test. Add tests
6769         of very large quotients x / y.
6770         * tests/test-fmod.c (MAX_EXP): New macro.
6771         * tests/test-fmodf.c (MAX_EXP): Likewise.
6772         * tests/test-fmodl.c (MAX_EXP): Likewise.
6773
6774 2012-03-04  Bruno Haible  <bruno@clisp.org>
6775
6776         fmod, fmodl: Fix computation for large quotients x / y.
6777         * lib/fmod.c: Completely rewritten.
6778         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6779         USE_LONG_DOUBLE.
6780         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6781         isnand. Remove fma.
6782         * modules/fmodl (Files): Add lib/fmod.c.
6783         (Depends-on): Add float, isfinite, signbit, fabsl,
6784         frexpl, ldexpl, isnanl. Remove fma.
6785         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6786         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6787
6788 2012-03-03  Bruno Haible  <bruno@clisp.org>
6789
6790         fmod* tests: More tests.
6791         * tests/test-fmod.h: New file.
6792         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6793         (main): Invoke test_function.
6794         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6795         (main): Invoke test_function.
6796         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6797         (main): Invoke test_function.
6798         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6799         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6800         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6801         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6802         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6803         (Depends-on): Add 'float'.
6804         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6805
6806 2012-03-03  Bruno Haible  <bruno@clisp.org>
6807
6808         rint* tests: More tests.
6809         * tests/test-rint.h: New file, partially extracted from
6810         tests/test-rintl.c.
6811         * tests/test-rint.c: Include test-rint.h.
6812         (main): Invoke test_function.
6813         * tests/test-rintf.c: Include test-rint.h.
6814         (main): Invoke test_function.
6815         * tests/test-rintl.c: Include test-rint.h.
6816         (main): Invoke test_function.
6817         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6818         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6819         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6820         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6821         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6822         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6823
6824 2012-03-03  Bruno Haible  <bruno@clisp.org>
6825
6826         modf* tests: More tests.
6827         * tests/test-modf.h: New file.
6828         * tests/test-modf.c: Include <float.h> and test-modf.h.
6829         (main): Invoke test_function.
6830         * tests/test-modff.c: Include <float.h> and test-modf.h.
6831         (main): Invoke test_function.
6832         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6833         (main): Invoke test_function.
6834         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6835         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6836         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6837         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6838         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6839         (Depends-on): Add 'float'.
6840         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6841
6842 2012-03-03  Bruno Haible  <bruno@clisp.org>
6843
6844         fabs* tests: More tests.
6845         * tests/test-fabs.h: New file, partially extracted from
6846         tests/test-fabsl.c.
6847         * tests/test-fabs.c (RANDOM): New macro.
6848         * tests/test-fabsf.c (RANDOM): New macro.
6849         * tests/test-fabsl.c (RANDOM): New macro.
6850         * modules/fabs-tests (Files): Add tests/randomd.c.
6851         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6852         * modules/fabsf-tests (Files): Add tests/randomf.c.
6853         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6854         * modules/fabsl-tests (Files): Add tests/randoml.c.
6855         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6856
6857 2012-03-03  Bruno Haible  <bruno@clisp.org>
6858
6859         ldexp* tests: More tests.
6860         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6861         * tests/test-ldexp.c (RANDOM): New macro.
6862         * tests/test-ldexpf.c (RANDOM): New macro.
6863         * tests/test-ldexpl.c (RANDOM): New macro.
6864         * modules/ldexp-tests (Files): Add tests/randomd.c.
6865         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6866         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6867         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6868         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6869         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6870
6871 2012-03-03  Bruno Haible  <bruno@clisp.org>
6872
6873         frexp* tests: More tests.
6874         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6875         * tests/test-frexp.c (RANDOM): New macro.
6876         * tests/test-frexpf.c (RANDOM): New macro.
6877         * tests/test-frexpl.c (RANDOM): New macro.
6878         * modules/frexp-tests (Files): Add tests/randomd.c.
6879         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6880         * modules/frexpf-tests (Files): Add tests/randomf.c.
6881         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6882         * modules/frexpl-tests (Files): Add tests/randoml.c.
6883         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6884
6885 2012-03-03  Bruno Haible  <bruno@clisp.org>
6886
6887         Support for pseudo-random numbers in tests.
6888         * tests/randomf.c: New file.
6889         * tests/randomd.c: New file.
6890         * tests/randoml.c: New file.
6891         * tests/macros.h (randomf, randomd, randoml): New declarations.
6892
6893 2012-03-03  Bruno Haible  <bruno@clisp.org>
6894
6895         frexp* tests: Refactor.
6896         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6897         * tests/test-frexp.c: Include and use it.
6898         * tests/test-frexpf.c: Likewise.
6899         * tests/test-frexpl.c: Likewise.
6900         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6901         * modules/frexpf-tests (Files): Likewise.
6902         * modules/frexpl-tests (Files): Likewise.
6903
6904 2012-03-02  Jim Meyering  <meyering@redhat.com>
6905
6906         maint: don't specify XZ_OPT=-9ev in dist-related rule
6907         Using xz's -9 option is warranted only if you have a very large
6908         tarball (see xz's documentation for the sizes vs. presets), and
6909         requires 64MiB of memory at decompression time.
6910         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6911         Automake's default of just "-e" is fine.  Override on a
6912         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6913
6914 2012-03-01  Eric Blake  <eblake@redhat.com>
6915
6916         maint.mk: allow announcement for non-gnulib project
6917         * maint.mk (announcement): Skip gnulib version if not used.
6918
6919 2012-03-01  Jim Meyering  <meyering@redhat.com>
6920
6921         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6922         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6923         envvar settings cannot interfere.  Otherwise, setting envvars like
6924         prohibit=foo require=bar, etc. would cause spurious test failures.
6925
6926 2012-03-01  Eric Blake  <eblake@redhat.com>
6927
6928         maint.mk: add per-line exclusions to prohibitions
6929         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6930         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6931         (sc_const_long_option): Use it.
6932
6933 2012-03-01  Bruno Haible  <bruno@clisp.org>
6934
6935         Tests for module 'expl-ieee'.
6936         * modules/expl-ieee-tests: New file.
6937         * tests/test-expl-ieee.c: New file.
6938
6939         New module 'expl-ieee'.
6940         * modules/expl-ieee: New file.
6941
6942         Tests for module 'exp-ieee'.
6943         * modules/exp-ieee-tests: New file.
6944         * tests/test-exp-ieee.c: New file.
6945
6946         New module 'exp-ieee'.
6947         * modules/exp-ieee: New file.
6948
6949         Tests for module 'expf-ieee'.
6950         * modules/expf-ieee-tests: New file.
6951         * tests/test-expf-ieee.c: New file.
6952         * tests/test-exp-ieee.h: New file.
6953
6954         New module 'expf-ieee'.
6955         * modules/expf-ieee: New file.
6956
6957 2012-02-29  Bruno Haible  <bruno@clisp.org>
6958
6959         cbrtl-ieee: Work around test failure on IRIX 6.5.
6960         * m4/cbrtl-ieee.m4: New file.
6961         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6962         test whether cbrtl works with a minus zero argument. Replace it if not.
6963         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6965         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6966         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6967         (Depends-on): Update conditions.
6968         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6969         m4/signbit.m4.
6970         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6971         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6972         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6973
6974         Tests for module 'cbrtl-ieee'.
6975         * modules/cbrtl-ieee-tests: New file.
6976         * tests/test-cbrtl-ieee.c: New file.
6977
6978         New module 'cbrtl-ieee'.
6979         * modules/cbrtl-ieee: New file.
6980
6981         Tests for module 'cbrt-ieee'.
6982         * modules/cbrt-ieee-tests: New file.
6983         * tests/test-cbrt-ieee.c: New file.
6984
6985         New module 'cbrt-ieee'.
6986         * modules/cbrt-ieee: New file.
6987
6988         Tests for module 'cbrtf-ieee'.
6989         * modules/cbrtf-ieee-tests: New file.
6990         * tests/test-cbrtf-ieee.c: New file.
6991         * tests/test-cbrt-ieee.h: New file.
6992
6993         New module 'cbrtf-ieee'.
6994         * modules/cbrtf-ieee: New file.
6995
6996 2012-02-29  Bruno Haible  <bruno@clisp.org>
6997
6998         cbrtf: Work around bug in IRIX 6.5 system function.
6999         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7000         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7001         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7002         work.
7003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7004         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7005         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7006         (Depends-on): Update conditions.
7007         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7008
7009 2012-02-29  Bruno Haible  <bruno@clisp.org>
7010
7011         Tests for module 'cbrtl'.
7012         * modules/cbrtl-tests: New file.
7013         * tests/test-cbrtl.c: New file.
7014
7015         New module 'cbrtl'.
7016         * lib/math.in.h (cbrtl): New declaration.
7017         * lib/cbrtl.c: New file.
7018         * m4/cbrtl.m4: New file.
7019         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7021         HAVE_DECL_CBRTL.
7022         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7023         HAVE_DECL_CBRTL.
7024         * modules/cbrtl: New file.
7025         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7026         * doc/posix-functions/cbrtl.texi: Mention the new module.
7027
7028 2012-02-29  Bruno Haible  <bruno@clisp.org>
7029
7030         Tests for module 'cbrtf'.
7031         * modules/cbrtf-tests: New file.
7032         * tests/test-cbrtf.c: New file.
7033
7034         New module 'cbrtf'.
7035         * lib/math.in.h (cbrtf): New declaration.
7036         * lib/cbrtf.c: New file.
7037         * m4/cbrtf.m4: New file.
7038         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7040         HAVE_DECL_CBRTF.
7041         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7042         HAVE_DECL_CBRTF.
7043         * modules/cbrtf: New file.
7044         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7045         * doc/posix-functions/cbrtf.texi: Mention the new module.
7046
7047 2012-02-29  Bruno Haible  <bruno@clisp.org>
7048
7049         cbrt: Provide replacement on MSVC and Minix.
7050         * lib/math.in.h (cbrt): New declaration.
7051         * lib/cbrt.c: New file.
7052         * m4/cbrt.m4: New file.
7053         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7055         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7056         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7057         (Depends-on): Add dependencies.
7058         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7059         * tests/test-math-c++.cc: Check the declaration of cbrt.
7060         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7061         replacement.
7062
7063 2012-02-29  Bruno Haible  <bruno@clisp.org>
7064
7065         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7066         * m4/hypotl-ieee.m4: New file.
7067         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7068         test whether hypotl works with mixed NaN and Infinity arguments.
7069         Replace it if not.
7070         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7072         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7073         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7074         (Depends-on): Update conditions.
7075         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7076         (Depends-on): Add hypot-ieee.
7077         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7078         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7079
7080         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7081         * m4/hypotf-ieee.m4: New file.
7082         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7083         test whether hypotf works with mixed NaN and Infinity arguments.
7084         Replace it if not.
7085         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7086         (Depends-on): Add hypot-ieee.
7087         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7088         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7089
7090         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7091         * lib/math.in.h (hypot): New declaration.
7092         * lib/hypot.c: New file.
7093         * m4/hypot-ieee.m4: New file.
7094         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7095         whether hypot works with mixed NaN and Infinity arguments. Replace it
7096         if not.
7097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7098         REPLACE_HYPOT.
7099         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7100         * modules/hypot (Files): Add lib/hypot.c.
7101         (Depends-on): Add dependencies.
7102         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7103         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7104         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7105         * tests/test-math-c++.cc: Check the declaration of hypot.
7106         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7107
7108         Tests for module 'hypotl-ieee'.
7109         * modules/hypotl-ieee-tests: New file.
7110         * tests/test-hypotl-ieee.c: New file.
7111
7112         New module 'hypotl-ieee'.
7113         * modules/hypotl-ieee: New file.
7114
7115         Tests for module 'hypot-ieee'.
7116         * modules/hypot-ieee-tests: New file.
7117         * tests/test-hypot-ieee.c: New file.
7118
7119         New module 'hypot-ieee'.
7120         * modules/hypot-ieee: New file.
7121
7122         Tests for module 'hypotf-ieee'.
7123         * modules/hypotf-ieee-tests: New file.
7124         * tests/test-hypotf-ieee.c: New file.
7125         * tests/test-hypot-ieee.h: New file.
7126
7127         New module 'hypotf-ieee'.
7128         * modules/hypotf-ieee: New file.
7129
7130 2012-02-29  Bruno Haible  <bruno@clisp.org>
7131
7132         Remove unused variables.
7133         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7134         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7135         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7136         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7137
7138 2012-02-29  Eric Blake  <eblake@redhat.com>
7139
7140         termios: fix pid_t always, not just for tcgetsid
7141         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7142         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7143         just when building tcgetsid.
7144
7145 2012-02-29  Bruno Haible  <bruno@clisp.org>
7146
7147         Tests for module 'hypotl'.
7148         * modules/hypotl-tests: New file.
7149         * tests/test-hypotl.c: New file.
7150
7151         New module 'hypotl'.
7152         * lib/math.in.h (hypotl): New declaration.
7153         * lib/hypotl.c: New file.
7154         * m4/hypotl.m4: New file.
7155         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7157         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7158         * modules/hypotl: New file.
7159         * tests/test-math-c++.cc: Check the hypotl declaration.
7160         * doc/posix-functions/hypotl.texi: Mention the new module.
7161
7162 2012-02-29  Eric Blake  <eblake@redhat.com>
7163
7164         tcgetsid: fix cygwin header bug
7165         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7166
7167         docs: update cygwin progress
7168         * doc/posix-functions/llround.texi (llround): Added in cygwin
7169         1.7.8.
7170         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7171         * doc/glibc-functions/program_invocation_name.texi
7172         (program_invocation_name): Likewise.
7173         * doc/glibc-functions/program_invocation_short_name.texi
7174         (program_invocation_short_name): Likewise.
7175         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7176         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7177         Likewise.
7178         * doc/posix-functions/pthread_spin_destroy.texi
7179         (pthread_spin_destroy): Added in cygwin 1.7.10.
7180         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7181         Likewise.
7182         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7183         Likewise.
7184         * doc/posix-functions/pthread_spin_trylock.texi
7185         (pthread_spin_trylock): Likewise.
7186         * doc/posix-functions/pthread_spin_unlock.texi
7187         (pthread_spin_unlock): Likewise.
7188         * doc/posix-functions/pthread_setschedprio.texi
7189         (pthread_setschedprio): Likewise.
7190         * doc/posix-functions/pthread_attr_getstack.texi
7191         (pthread_attr_getstack): Likewise.
7192         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7193         (pthread_attr_getstackaddr): Likewise.
7194         * doc/glibc-functions/pthread_getattr_np.texi
7195         (pthread_getattr_np): Likewise.
7196         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7197         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7198         * doc/posix-functions/clock_settime.texi (clock_settime):
7199         Likewise.
7200         * doc/posix-functions/pthread_attr_getguardsize.texi
7201         (pthread_attr_getguardsize): Likewise.
7202         * doc/posix-functions/pthread_attr_setguardsize.texi
7203         (pthread_attr_setguardsize): Likewise.
7204         * doc/posix-functions/pthread_attr_setstack.texi
7205         (pthread_attr_setstack): Likewise.
7206         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7207         (pthread_attr_setstackaddr): Likewise.
7208         * doc/posix-functions/clock_getcpuclockid.texi
7209         (clock_getcpuclockid): Likewise.
7210         * doc/posix-functions/pthread_getcpuclockid.texi
7211         (pthread_getcpuclockid): Likewise.
7212         * doc/glibc-functions/error.texi (error): Likewise.
7213         * doc/glibc-functions/error_at_line.texi (error_at_line):
7214         Likewise.
7215         * doc/glibc-functions/error_message_count.texi
7216         (error_message_count): Likewise.
7217         * doc/glibc-functions/error_one_per_line.texi
7218         (error_one_per_line): Likewise.
7219         * doc/glibc-functions/error_print_progname.texi
7220         (error_print_progname): Likewise.
7221         * doc/posix-functions/pthread_condattr_getclock.texi
7222         (pthread_condattr_getclock): Likewise.
7223         * doc/posix-functions/pthread_condattr_setclock.texi
7224         (pthread_condattr_setclock): Likewise.
7225         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7226         Likewise.
7227         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7228         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7229         * doc/glibc-functions/get_current_dir_name.texi
7230         (get_current_dir_name): Likewise.
7231         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7232         Likewise.
7233         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7234         wrong return type.
7235         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7236         1.7.11.
7237
7238 2012-02-29  Bruno Haible  <bruno@clisp.org>
7239
7240         Tests for module 'hypotf'.
7241         * modules/hypotf-tests: New file.
7242         * tests/test-hypotf.c: New file.
7243
7244         New module 'hypotf'.
7245         * lib/math.in.h (hypotf): New declaration.
7246         * lib/hypotf.c: New file.
7247         * m4/hypotf.m4: New file.
7248         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7250         REPLACE_HYPOTF.
7251         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7252         REPLACE_HYPOTF.
7253         * modules/hypotf: New file.
7254         * tests/test-math-c++.cc: Check the hypotf declaration.
7255         * doc/posix-functions/hypotf.texi: Mention the new module.
7256
7257         hypot: Prepare for hypotf module.
7258         * m4/hypot.m4: New file.
7259         * modules/hypot (Files): Add m4/hypot.m4.
7260         (configure.ac): Invoke gl_FUNC_HYPOT.
7261
7262 2012-02-29  Bruno Haible  <bruno@clisp.org>
7263
7264         hypot tests: More tests.
7265         * tests/test-hypot.c: Include <float.h>.
7266         (main): Add tests about overflow and underflow.
7267
7268 2012-02-29  Bruno Haible  <bruno@clisp.org>
7269
7270         math code: Add comments.
7271         * lib/acosl.c: Add comment about related glibc source files.
7272         * lib/asinl.c: Likewise.
7273         * lib/atanl.c: Likewise.
7274         * lib/expl.c: Likewise.
7275         * lib/logl.c: Likewise.
7276         * lib/sincosl.c: Likewise.
7277         * lib/sinl.c: Likewise.
7278         * lib/tanl.c: Likewise.
7279         * lib/trigl.c: Likewise.
7280         * lib/cosl.c: Likewise. Fix comments.
7281
7282 2012-02-28  Bruno Haible  <bruno@clisp.org>
7283
7284         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7285         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7286         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7287         HUGE_VALL are defined.
7288         (numeric_equald): Renamed from numeric_equal.
7289         (numeric_equalf, numeric_equall): New functions.
7290         (main): Check also HUGE_VALF, HUGE_VALL.
7291         * modules/math-tests (Files): Add tests/macros.h.
7292         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7293         HUGE_VALL.
7294
7295 2012-02-28  Bruno Haible  <bruno@clisp.org>
7296
7297         doc: Move ISO C11 feature notes into POSIX chapters.
7298         * doc/posix-functions/aligned_alloc.texi: Renamed from
7299         doc/glibc-functions/aligned_alloc.texi.
7300         * doc/posix-functions/quick_exit.texi: Renamed from
7301         doc/glibc-functions/quick_exit.texi.
7302         * doc/posix-headers/uchar.texi: Renamed from
7303         doc/glibc-headers/uchar.texi.
7304         * doc/posix-functions/c16rtomb.texi: Renamed from
7305         doc/glibc-functions/c16rtomb.texi.
7306         * doc/posix-functions/c32rtomb.texi: Renamed from
7307         doc/glibc-functions/c32rtomb.texi.
7308         * doc/posix-functions/mbrtoc16.texi: Renamed from
7309         doc/glibc-functions/mbrtoc16.texi.
7310         * doc/posix-functions/mbrtoc32.texi: Renamed from
7311         doc/glibc-functions/mbrtoc32.texi.
7312         * doc/gnulib.texi: Update.
7313         (Glibc uchar.h): Remove section.
7314         Suggested by Eric Blake.
7315
7316 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7317
7318         stdnoreturn: port to MSVC better
7319         MSVC standard headers use __declspec(noreturn), so #define noreturn
7320         to empty on that platform.  Reported by Bruno Haible in
7321         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7322         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7323         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7324
7325 2012-02-28  Bruno Haible  <bruno@clisp.org>
7326
7327         doc: Mention new glibc headers and functions.
7328         * doc/glibc-headers/uchar.texi: New file.
7329         * doc/glibc-functions/aligned_alloc.texi: New file.
7330         * doc/glibc-functions/c16rtomb.texi: New file.
7331         * doc/glibc-functions/c32rtomb.texi: New file.
7332         * doc/glibc-functions/clock_adjtime.texi: New file.
7333         * doc/glibc-functions/fanotify_init.texi: New file.
7334         * doc/glibc-functions/fanotify_mark.texi: New file.
7335         * doc/glibc-functions/inet6_opt_append.texi: New file.
7336         * doc/glibc-functions/inet6_opt_find.texi: New file.
7337         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7338         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7339         * doc/glibc-functions/inet6_opt_init.texi: New file.
7340         * doc/glibc-functions/inet6_opt_next.texi: New file.
7341         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7342         * doc/glibc-functions/inet6_rth_add.texi: New file.
7343         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7344         * doc/glibc-functions/inet6_rth_init.texi: New file.
7345         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7346         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7347         * doc/glibc-functions/inet6_rth_space.texi: New file.
7348         * doc/glibc-functions/login.texi: New file.
7349         * doc/glibc-functions/mbrtoc16.texi: New file.
7350         * doc/glibc-functions/mbrtoc32.texi: New file.
7351         * doc/glibc-functions/name_to_handle_at.texi: New file.
7352         * doc/glibc-functions/ntp_gettimex.texi: New file.
7353         * doc/glibc-functions/open_by_handle_at.texi: New file.
7354         * doc/glibc-functions/prlimit.texi: New file.
7355         * doc/glibc-functions/process_vm_readv.texi: New file.
7356         * doc/glibc-functions/process_vm_writev.texi: New file.
7357         * doc/glibc-functions/recvmmsg.texi: New file.
7358         * doc/glibc-functions/scandirat.texi: New file.
7359         * doc/glibc-functions/sendmmsg.texi: New file.
7360         * doc/glibc-functions/setns.texi: New file.
7361         * doc/glibc-functions/timespec_get.texi: New file.
7362         * doc/gnulib.texi: Include them.
7363         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7364         sections.
7365         Reported by Eric Blake.
7366
7367 2012-02-28  Bruno Haible  <bruno@clisp.org>
7368
7369         Avoid compilation errors with MSVC option -fp:strict.
7370         * lib/floor.c: Use MSVC specific pragma fenv_access.
7371         * lib/ceil.c: Likewise.
7372         * lib/trunc.c: Likewise.
7373         * lib/round.c: Likewise.
7374         * lib/rint.c: Likewise.
7375         * lib/fma.c: Likewise.
7376         * lib/integer_length.c: Likewise.
7377         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7379         * tests/test-floor2.c: Likewise.
7380         * tests/test-floorf2.c: Likewise.
7381         * tests/test-ceil2.c: Likewise.
7382         * tests/test-ceilf2.c: Likewise.
7383         * tests/test-trunc2.c: Likewise.
7384         * tests/test-truncf2.c: Likewise.
7385         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7386
7387 2012-02-27  Bruno Haible  <bruno@clisp.org>
7388
7389         Tests for module 'sqrtl-ieee'.
7390         * modules/sqrtl-ieee-tests: New file.
7391         * tests/test-sqrtl-ieee.c: New file.
7392
7393         New module 'sqrtl-ieee'.
7394         * modules/sqrtl-ieee: New file.
7395
7396         Tests for module 'sqrt-ieee'.
7397         * modules/sqrt-ieee-tests: New file.
7398         * tests/test-sqrt-ieee.c: New file.
7399
7400         New module 'sqrt-ieee'.
7401         * modules/sqrt-ieee: New file.
7402
7403         Tests for module 'sqrtf-ieee'.
7404         * modules/sqrtf-ieee-tests: New file.
7405         * tests/test-sqrtf-ieee.c: New file.
7406         * tests/test-sqrt-ieee.h: New file.
7407
7408         New module 'sqrtf-ieee'.
7409         * modules/sqrtf-ieee: New file.
7410
7411 2012-02-27  Bruno Haible  <bruno@clisp.org>
7412
7413         remainderl-ieee: Work around test failure on OSF/1.
7414         * m4/remainderl-ieee.m4: New file.
7415         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7416         present, test whether remainderl works with a zero second argument.
7417         Replace it if not.
7418         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7420         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7421         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7422         (Depends-on): Update conditions.
7423         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7424         (Depends-on): Add remainder-ieee.
7425         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7426         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7427         module.
7428
7429         remainderf-ieee: Work around test failure on OSF/1.
7430         * m4/remainderf-ieee.m4: New file.
7431         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7432         present, test whether remainderf works with a zero second argument.
7433         Replace it if not.
7434         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7436         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7437         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7438         (Depends-on): Update conditions.
7439         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7440         (Depends-on): Add remainder-ieee.
7441         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7442         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7443         module.
7444
7445         remainder-ieee: Work around test failure on OSF/1.
7446         * m4/remainder-ieee.m4: New file.
7447         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7448         present, test whether remainder works with a zero second argument.
7449         Replace it if not.
7450         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7452         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7453         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7454         (Depends-on): Update dependencies.
7455         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7456         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7457         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7458
7459         Tests for module 'remainderl-ieee'.
7460         * modules/remainderl-ieee-tests: New file.
7461         * tests/test-remainderl-ieee.c: New file.
7462
7463         New module 'remainderl-ieee'.
7464         * modules/remainderl-ieee: New file.
7465
7466         Tests for module 'remainder-ieee'.
7467         * modules/remainder-ieee-tests: New file.
7468         * tests/test-remainder-ieee.c: New file.
7469
7470         New module 'remainder-ieee'.
7471         * modules/remainder-ieee: New file.
7472
7473         Tests for module 'remainderf-ieee'.
7474         * modules/remainderf-ieee-tests: New file.
7475         * tests/test-remainderf-ieee.c: New file.
7476         * tests/test-remainder-ieee.h: New file.
7477
7478         New module 'remainderf-ieee'.
7479         * modules/remainderf-ieee: New file.
7480
7481 2012-02-27  Bruno Haible  <bruno@clisp.org>
7482
7483         modff, modfl: Fix configure syntax error.
7484         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7485         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7486
7487 2012-02-27  Bruno Haible  <bruno@clisp.org>
7488
7489         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7490         * m4/fmodl-ieee.m4: New file.
7491         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7492         whether fmodl works with zero arguments. Replace it if not.
7493         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7494         (Depends-on): Add fmod-ieee.
7495         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7496         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7497
7498         fmodf-ieee: Work around test failure on OSF/1.
7499         * m4/fmodf-ieee.m4: New file.
7500         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7501         whether fmodf works with zero arguments. Replace it if not.
7502         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7504         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7505         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7506         (Depends-on): Update dependencies.
7507         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7508         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7509         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7510
7511         fmodf-ieee: Work around test failure on MSVC 9.
7512         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7513         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7514
7515         fmod-ieee: Work around test failures on OSF/1, mingw.
7516         * m4/fmod-ieee.m4: New file.
7517         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7518         whether fmod works with zero arguments. Replace it if not.
7519         * lib/math.in.h (fmod): New declaration.
7520         * lib/fmod.c: New file.
7521         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7523         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7524         * modules/fmod (Files): Add lib/fmod.c.
7525         (Depends-on): Add math, isinf, trunc, fma.
7526         (configure.ac): Arrange to compile lib/fmod.c if needed.
7527         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7528         m4/signbit.m4.
7529         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7530         * tests/test-math-c++.cc: Check the declaration of fmod.
7531         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7532
7533         fmodl-ieee: Fix test failures.
7534         * lib/fmodl.c (fmodl): Treat Inf specially.
7535         * modules/fmodl (Depends-on): Add isinf.
7536
7537         Tests for module 'fmodl-ieee'.
7538         * modules/fmodl-ieee-tests: New file.
7539         * tests/test-fmodl-ieee.c: New file.
7540
7541         New module 'fmodl-ieee'.
7542         * modules/fmodl-ieee: New file.
7543
7544         Tests for module 'fmod-ieee'.
7545         * modules/fmod-ieee-tests: New file.
7546         * tests/test-fmod-ieee.c: New file.
7547
7548         New module 'fmod-ieee'.
7549         * modules/fmod-ieee: New file.
7550
7551         Tests for module 'fmodf-ieee'.
7552         * modules/fmodf-ieee-tests: New file.
7553         * tests/test-fmodf-ieee.c: New file.
7554         * tests/test-fmod-ieee.h: New file.
7555
7556         New module 'fmodf-ieee'.
7557         * modules/fmodf-ieee: New file.
7558
7559 2012-02-27  Bruno Haible  <bruno@clisp.org>
7560
7561         Tests for module 'rintl-ieee'.
7562         * modules/rintl-ieee-tests: New file.
7563         * tests/test-rintl-ieee.c: New file.
7564
7565         New module 'rintl-ieee'.
7566         * modules/rintl-ieee: New file.
7567
7568         Tests for module 'rint-ieee'.
7569         * modules/rint-ieee-tests: New file.
7570         * tests/test-rint-ieee.c: New file.
7571
7572         New module 'rint-ieee'.
7573         * modules/rint-ieee: New file.
7574
7575         Tests for module 'rintf-ieee'.
7576         * modules/rintf-ieee-tests: New file.
7577         * tests/test-rintf-ieee.c: New file.
7578         * tests/test-rint-ieee.h: New file.
7579
7580         New module 'rintf-ieee'.
7581         * modules/rintf-ieee: New file.
7582
7583 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7584
7585         regex: re_search etc. should return -2 when memory exhausted
7586         This bug was uncovered when testing 'grep'.  Without the fix,
7587         re_search and friends return -1 when memory is exhausted, but -1
7588         means no match, and this causes grep to falsely report no-match
7589         instead of memory-exhaustion.  See
7590         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7591         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7592         trouble; this can occur if re_search_internal ran out of memory.
7593
7594 2012-02-26  Bruno Haible  <bruno@clisp.org>
7595
7596         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7597         * m4/modfl-ieee.m4: New file.
7598         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7599         whether modfl works with Inf. Replace it if not.
7600         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7602         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7603         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7604         (Depends-on): Update dependencies.
7605         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7606         m4/signbit.m4.
7607         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7608         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7609
7610         modfl-ieee: Fix dependencies.
7611         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7612
7613         modfl-ieee: Fix test failures.
7614         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7615         * modules/modfl (Depends-on): Add isfinite, isinf.
7616
7617         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7618         * m4/modff-ieee.m4: New file.
7619         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7620         whether modff works with NaN and Inf. Replace it if not.
7621         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7623         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7624         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7625         (Depends-on): Update dependencies.
7626         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7627         m4/signbit.m4.
7628         (Depends-on): Add modf-ieee.
7629         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7630         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7631
7632         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7633         * m4/modf-ieee.m4: New file.
7634         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7635         whether modf works with NaN and Inf. Replace it if not.
7636         * lib/math.in.h (modf): New declaration.
7637         * lib/modf.c: New file.
7638         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7640         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7641         * modules/modf (Files): Add lib/modf.c.
7642         (Depends-on): Add math, isfinite, trunc, isinf.
7643         (configure.ac): Addrange to compile lib/modf.c if needed.
7644         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7645         m4/signbit.m4.
7646         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7647         * tests/test-math-c++.cc: Check the declaration of modf.
7648         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7649
7650         Tests for module 'modfl-ieee'.
7651         * modules/modfl-ieee-tests: New file.
7652         * tests/test-modfl-ieee.c: New file.
7653
7654         New module 'modfl-ieee'.
7655         * modules/modfl-ieee: New file.
7656
7657         Tests for module 'modf-ieee'.
7658         * modules/modf-ieee-tests: New file.
7659         * tests/test-modf-ieee.c: New file.
7660
7661         New module 'modf-ieee'.
7662         * modules/modf-ieee: New file.
7663
7664         Tests for module 'modff-ieee'.
7665         * modules/modff-ieee-tests: New file.
7666         * tests/test-modff-ieee.c: New file.
7667         * tests/test-modf-ieee.h: New file.
7668
7669         New module 'modff-ieee'.
7670         * modules/modff-ieee: New file.
7671
7672 2012-02-26  Bruno Haible  <bruno@clisp.org>
7673
7674         Tests for module 'fabsl-ieee'.
7675         * modules/fabsl-ieee-tests: New file.
7676         * tests/test-fabsl-ieee.c: New file.
7677
7678         New module 'fabsl-ieee'.
7679         * modules/fabsl-ieee: New file.
7680
7681         Tests for module 'fabs-ieee'.
7682         * modules/fabs-ieee-tests: New file.
7683         * tests/test-fabs-ieee.c: New file.
7684
7685         New module 'fabs-ieee'.
7686         * modules/fabs-ieee: New file.
7687
7688         Tests for module 'fabsf-ieee'.
7689         * modules/fabsf-ieee-tests: New file.
7690         * tests/test-fabsf-ieee.c: New file.
7691         * tests/test-fabs-ieee.h: New file.
7692
7693         New module 'fabsf-ieee'.
7694         * modules/fabsf-ieee: New file.
7695
7696 2012-02-26  Bruno Haible  <bruno@clisp.org>
7697
7698         Tests for module 'fmal-ieee'.
7699         * modules/fmal-ieee-tests: New file.
7700         * tests/test-fmal-ieee.c: New file.
7701
7702         New module 'fmal-ieee'.
7703         * modules/fmal-ieee: New file.
7704
7705         Tests for module 'fma-ieee'.
7706         * modules/fma-ieee-tests: New file.
7707         * tests/test-fma-ieee.c: New file.
7708
7709         New module 'fma-ieee'.
7710         * modules/fma-ieee: New file.
7711
7712         Tests for module 'fmaf-ieee'.
7713         * modules/fmaf-ieee-tests: New file.
7714         * tests/test-fmaf-ieee.c: New file.
7715         * tests/test-fma-ieee.h: New file.
7716
7717         New module 'fmaf-ieee'.
7718         * modules/fmaf-ieee: New file.
7719
7720 2012-02-26  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'ldexpl-ieee'.
7723         * modules/ldexpl-ieee-tests: New file.
7724         * tests/test-ldexpl-ieee.c: New file.
7725
7726         New module 'ldexpl-ieee'.
7727         * modules/ldexpl-ieee: New file.
7728
7729         Tests for module 'ldexp-ieee'.
7730         * modules/ldexp-ieee-tests: New file.
7731         * tests/test-ldexp-ieee.c: New file.
7732
7733         New module 'ldexp-ieee'.
7734         * modules/ldexp-ieee: New file.
7735
7736         Tests for module 'ldexpf-ieee'.
7737         * modules/ldexpf-ieee-tests: New file.
7738         * tests/test-ldexpf-ieee.c: New file.
7739         * tests/test-ldexp-ieee.h: New file.
7740
7741         New module 'ldexpf-ieee'.
7742         * modules/ldexpf-ieee: New file.
7743
7744 2012-02-26  Bruno Haible  <bruno@clisp.org>
7745
7746         Refactor frexp*-ieee tests.
7747         * tests/test-frexp-ieee.h: New file.
7748         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7749         (main): Just call test_function.
7750         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7751         (main): Just call test_function.
7752         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7753         (main): Just call test_function.
7754         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7755         * modules/frexp-ieee-tests (Files): Likewise.
7756         * modules/frexpl-ieee-tests (Files): Likewise.
7757
7758         Tests for module 'frexpl-ieee'.
7759         * modules/frexpl-ieee-tests: New file.
7760         * tests/test-frexpl-ieee.c: New file.
7761
7762         New module 'frexpl-ieee'.
7763         * modules/frexpl-ieee: New file.
7764
7765         Tests for module 'frexp-ieee'.
7766         * modules/frexp-ieee-tests: New file.
7767         * tests/test-frexp-ieee.c: New file.
7768
7769         New module 'frexp-ieee'.
7770         * modules/frexp-ieee: New file.
7771
7772         Tests for module 'frexpf-ieee'.
7773         * modules/frexpf-ieee-tests: New file.
7774         * tests/test-frexpf-ieee.c: New file.
7775
7776         New module 'frexpf-ieee'.
7777         * modules/frexpf-ieee: New file.
7778
7779 2012-02-26  Bruno Haible  <bruno@clisp.org>
7780
7781         roundl-ieee tests: More tests.
7782         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7783         (main): Add tests for [MX] shaded specification in POSIX.
7784         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7785         (Depends-on): Add isnanl-nolibm.
7786
7787         round-ieee tests: More tests.
7788         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7789         (main): Add tests for [MX] shaded specification in POSIX.
7790         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7791         (Depends-on): Add isnand-nolibm.
7792
7793         roundf-ieee tests: More tests.
7794         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7795         (main): Add tests for [MX] shaded specification in POSIX.
7796         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7797         (Depends-on): Add isnanf-nolibm.
7798
7799         truncl-ieee tests: More tests.
7800         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7801         (main): Add tests for [MX] shaded specification in POSIX.
7802         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7803         (Depends-on): Add isnanl-nolibm.
7804
7805         trunc-ieee tests: More tests.
7806         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7807         (main): Add tests for [MX] shaded specification in POSIX.
7808         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7809         (Depends-on): Add isnand-nolibm.
7810
7811         truncf-ieee tests: More tests.
7812         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7813         (main): Add tests for [MX] shaded specification in POSIX.
7814         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7815         (Depends-on): Add isnanf-nolibm.
7816
7817         ceill-ieee tests: More tests.
7818         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7819         (main): Add tests for [MX] shaded specification in POSIX.
7820         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7821         (Depends-on): Add isnanl-nolibm.
7822
7823         ceil-ieee tests: More tests.
7824         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7825         (main): Add tests for [MX] shaded specification in POSIX.
7826         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7827         (Depends-on): Add isnand-nolibm.
7828
7829         ceilf-ieee tests: More tests.
7830         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7831         (main): Add tests for [MX] shaded specification in POSIX.
7832         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7833         (Depends-on): Add isnanf-nolibm.
7834
7835         floorl-ieee tests: More tests.
7836         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7837         (main): Add tests for [MX] shaded specification in POSIX.
7838         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7839         (Depends-on): Add isnanl-nolibm.
7840
7841         floor-ieee tests: More tests.
7842         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7843         (main): Add tests for [MX] shaded specification in POSIX.
7844         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7845         (Depends-on): Add isnand-nolibm.
7846
7847         floorf-ieee tests: More tests.
7848         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7849         (main): Add tests for [MX] shaded specification in POSIX.
7850         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7851         (Depends-on): Add isnanf-nolibm.
7852
7853 2012-02-26  Bruno Haible  <bruno@clisp.org>
7854
7855         fpieee: More comments.
7856         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7857
7858 2012-02-25  Bruno Haible  <bruno@clisp.org>
7859
7860         Tests for module 'log10l'.
7861         * modules/log10l-tests: New file.
7862         * tests/test-log10l.c: New file.
7863         * tests/test-math-c++.cc: Check the declaration of log10l.
7864
7865         New module 'log10l'.
7866         * lib/math.in.h (log10l): New declaration.
7867         * lib/log10l.c: New file.
7868         * m4/log10l.m4: New file.
7869         * modules/log10l: New file.
7870         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7872         HAVE_DECL_LOG10L.
7873         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7874         HAVE_DECL_LOG10L.
7875         * doc/posix-functions/log10l.texi: Mention the new module.
7876
7877 2012-02-25  Bruno Haible  <bruno@clisp.org>
7878
7879         fmodl, remainder*: Avoid wrong results due to rounding errors.
7880         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7881         expected bounds.
7882         * lib/remainderf.c (remainderf): Likewise.
7883         * lib/remainder.c (remainder): Likewise.
7884         * lib/remainderl.c (remainderl): Likewise.
7885
7886 2012-02-25  Bruno Haible  <bruno@clisp.org>
7887
7888         Tests for module 'remainderl'.
7889         * modules/remainderl-tests: New file.
7890         * tests/test-remainderl.c: New file.
7891         * tests/test-math-c++.cc: Check the declaration of remainderl.
7892
7893         New module 'remainderl'.
7894         * lib/math.in.h (remainderl): New declaration.
7895         * lib/remainderl.c: New file.
7896         * m4/remainderl.m4: New file.
7897         * modules/remainderl: New file.
7898         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7900         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7901         HAVE_REMAINDERL.
7902         * doc/posix-functions/remainderl.texi: Mention the new module.
7903
7904 2012-02-25  Bruno Haible  <bruno@clisp.org>
7905
7906         Tests for module 'remainderf'.
7907         * modules/remainderf-tests: New file.
7908         * tests/test-remainderf.c: New file.
7909         * tests/test-math-c++.cc: Check the declaration of remainderf.
7910
7911         New module 'remainderf'.
7912         * lib/math.in.h (remainderf): New declaration.
7913         * lib/remainderf.c: New file.
7914         * m4/remainderf.m4: New file.
7915         * modules/remainderf: New file.
7916         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7918         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7919         HAVE_REMAINDERF.
7920         * doc/posix-functions/remainderf.texi: Mention the new module.
7921
7922 2012-02-25  Bruno Haible  <bruno@clisp.org>
7923
7924         remainder: Support for MSVC.
7925         * lib/math.in.h (remainder): New declaration.
7926         * lib/remainder.c: New file.
7927         * m4/remainder.m4: New file.
7928         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7929         (Depends-on): Add math, round, fma.
7930         (configure.ac): Use results of gl_FUNC_REMAINDER.
7931         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7933         HAVE_DECL_REMAINDER.
7934         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7935         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7936         * tests/test-math-c++.cc: Check the declaration of remainder.
7937         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7938         problems are fixed.
7939
7940 2012-02-25  Bruno Haible  <bruno@clisp.org>
7941
7942         Tests for module 'fmodl'.
7943         * modules/fmodl-tests: New file.
7944         * tests/test-fmodl.c: New file.
7945         * tests/test-math-c++.cc: Check the declaration of fmodl.
7946
7947         New module 'fmodl'.
7948         * lib/math.in.h (fmodl): New declaration.
7949         * lib/fmodl.c: New file.
7950         * m4/fmodl.m4: New file.
7951         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7953         REPLACE_FMODL.
7954         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7955         REPLACE_FMODL.
7956         * modules/fmodl: New file.
7957         * doc/posix-functions/fmodl.texi: Mention the new module.
7958
7959 2012-02-25  Bruno Haible  <bruno@clisp.org>
7960
7961         Tests for module 'modfl'.
7962         * modules/modfl-tests: New file.
7963         * tests/test-modfl.c: New file.
7964         * tests/test-math-c++.cc: Check the declaration of modfl.
7965
7966         New module 'modfl'.
7967         * lib/math.in.h (modfl): New declaration.
7968         * lib/modfl.c: New file.
7969         * m4/modfl.m4: New file.
7970         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7972         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7973         * modules/modfl: New file.
7974         * doc/posix-functions/modfl.texi: Mention the new module.
7975
7976 2012-02-25  Bruno Haible  <bruno@clisp.org>
7977
7978         Tests for module 'fabsl'.
7979         * modules/fabsl-tests: New file.
7980         * tests/test-fabsl.c: New file.
7981         * tests/test-math-c++.cc: Check the declaration of fabsl.
7982
7983         New module 'fabsl'.
7984         * lib/math.in.h (fabsl): New declaration.
7985         * lib/fabsl.c: New file.
7986         * m4/fabsl.m4: New file.
7987         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7989         REPLACE_FABSL.
7990         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7991         REPLACE_FABSL.
7992         * modules/fabsl: New file.
7993         * doc/posix-functions/fabsl.texi: Mention the new module.
7994
7995 2012-02-25  Bruno Haible  <bruno@clisp.org>
7996
7997         fabs tests: More tests.
7998         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7999         (zero): New variable.
8000         (main): Add tests for signed zero.
8001         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8002
8003         fabsf tests: More tests.
8004         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8005         (zero): New variable.
8006         (main): Add tests for signed zero.
8007         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8008
8009 2012-02-24  Bruno Haible  <bruno@clisp.org>
8010
8011         atanl: Provide function definition on MSVC.
8012         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8013         function pointer.
8014         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8015
8016 2012-02-24  Bruno Haible  <bruno@clisp.org>
8017
8018         acosl: Provide function definition on MSVC.
8019         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8020         function pointer.
8021         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8022
8023 2012-02-24  Bruno Haible  <bruno@clisp.org>
8024
8025         asinl: Provide function definition on MSVC.
8026         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8027         function pointer.
8028         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8029
8030 2012-02-24  Bruno Haible  <bruno@clisp.org>
8031
8032         tanl: Provide function definition on MSVC.
8033         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8034         function pointer.
8035         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8036
8037 2012-02-24  Bruno Haible  <bruno@clisp.org>
8038
8039         cosl: Provide function definition on MSVC.
8040         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8041         function pointer.
8042         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8043
8044 2012-02-24  Bruno Haible  <bruno@clisp.org>
8045
8046         sinl: Provide function definition on MSVC.
8047         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8048         function pointer.
8049         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8050
8051 2012-02-24  Bruno Haible  <bruno@clisp.org>
8052
8053         logl: Provide function definition on MSVC.
8054         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8055         function pointer.
8056         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8057
8058 2012-02-24  Bruno Haible  <bruno@clisp.org>
8059
8060         expl: Provide function definition on MSVC.
8061         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8062         function pointer.
8063         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8064
8065 2012-02-24  Bruno Haible  <bruno@clisp.org>
8066
8067         sqrtl: Provide function definition on MSVC.
8068         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8069         a function pointer.
8070         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8071
8072 2012-02-24  Bruno Haible  <bruno@clisp.org>
8073
8074         ceill: Provide function definition on MSVC.
8075         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8076         used as a function pointer.
8077         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8078
8079 2012-02-24  Bruno Haible  <bruno@clisp.org>
8080
8081         floorl: Provide function definition on MSVC.
8082         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8083         used as a function pointer.
8084         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8085
8086 2012-02-24  Bruno Haible  <bruno@clisp.org>
8087
8088         ceilf: Provide function definition on MSVC.
8089         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8090         used as a function pointer.
8091         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8092
8093 2012-02-24  Bruno Haible  <bruno@clisp.org>
8094
8095         floorf: Provide function definition on MSVC.
8096         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8097         used as a function pointer.
8098         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8099
8100 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8101
8102         stdnoreturn: new module
8103         This implements a replacement for C11's <stdnoreturn.h>.
8104         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8105         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8106         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8107         * tests/test-stdnoreturn.c: New files.
8108
8109 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8110
8111         regex: fix false multibyte matches in some regular expressions
8112         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8113         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8114         * lib/regex_internal.c (re_string_skip_chars):
8115         Fix miscomputation of remain_len that may cause incomplete
8116         multi-byte character and false match.
8117
8118 2012-02-24  Jim Meyering  <meyering@redhat.com>
8119
8120         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8121         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8122         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8123         Remove now-unnecessary str''cmp obfuscation.
8124         Suggested by Akim Demaille.
8125
8126 2012-02-24  Bruno Haible  <bruno@clisp.org>
8127
8128         streq: Rename macro.
8129         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8130         * NEWS: Mention the change.
8131         * lib/mbrtowc.c (mbrtowc): Update.
8132         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8133         * lib/wcwidth.c (wcwidth): Update.
8134         Suggested by Akim Demaille and Jim Meyering.
8135
8136 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8137
8138         regex: fix typo in definition of MIN
8139         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8140         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8141
8142 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8143             Bruno Haible  <bruno@clisp.org>
8144
8145         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8146         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8147         entries into a stack-allocated buffer directly.
8148         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8149
8150 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8151             Bruno Haible  <bruno@clisp.org>
8152
8153         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8154
8155          - There were several instances of this pattern:
8156
8157              for (;;) {
8158                n = acl (f, GETACLCNT, 0, NULL);
8159                [ allocate an array A of size N ]
8160                if (acl (f, GETACL, n, a) == n)
8161                  break;
8162              }
8163
8164            This loop might never terminate if some other process is constantly
8165            manipulating the file's ACL.  The loop should be rewritten to
8166            terminate.
8167
8168          - The acl (... GETACLNT ...) call is merely an optimization; its value
8169            is merely a hint as to how big to make the array.  A better
8170            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8171            and just guess a reasonably-big size, growing the size and trying
8172            again if it's not large enough.  This guarantees termination, and
8173            saves a system call.
8174
8175         * lib/acl-internal.h: Include <limits.h>.
8176         (MIN, SIZE_MAX): New macros.
8177         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8178         a stack-allocated buffer, and use malloc if it does not fit. Don't
8179         use GETACLCNT.
8180         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8181
8182 2012-02-19  Bruno Haible  <bruno@clisp.org>
8183
8184         acl: Fix endless loop on Solaris with vxfs.
8185         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8186         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8187         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8188         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8189         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8190         Reported by Bill Jones in
8191         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8192
8193 2012-02-19  Bruno Haible  <bruno@clisp.org>
8194
8195         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8196         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8197         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8198         that this function returns 0 in some more cases.
8199
8200 2012-02-19  Bruno Haible  <bruno@clisp.org>
8201
8202         acl: Update doc references.
8203         * doc/acl-resources.txt: Update links to Solaris documentation.
8204
8205 2012-02-19  Bruno Haible  <bruno@clisp.org>
8206
8207         Fix test failure in many locales on Solaris 11.
8208         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8209         'tr' arguments.
8210         * tests/test-pipe-filter-ii1.c (main): Likewise.
8211         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8212         expressions in the C locale.
8213         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8214         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8215
8216 2012-02-19  Bruno Haible  <bruno@clisp.org>
8217
8218         gnulib-tool: Improve usage message.
8219         * gnulib-tool (func_usage): Move doc of --help and --version to the
8220         section "Operation modes".
8221
8222 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8223
8224         README-release: make it easier to execute commands
8225         * top/README-release: break commands out on to separate lines.
8226
8227 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8228
8229         GNUmakefile: simplify detection of unconfigured trees
8230         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8231         whether the tree make is being run from is already configured or
8232         not.  Related simplifications.
8233
8234 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8235
8236         * gnulib-tool (func_usage): Document --help and --version.
8237
8238 2012-02-11  Jim Meyering  <meyering@redhat.com>
8239
8240         bootstrap: don't exit 0 upon gnulib-tool failure
8241         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8242         its exit status, not 0.
8243
8244 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8245
8246         README-release: various improvements
8247         * top/README-release: Give a command to push changes for the
8248         release.  Add "distcheck" to list of other pre-release checks.
8249         Fix instance of "make stable" which should be "make TYPE".
8250
8251 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8252
8253         maint: replace FSF snail-mail addresses with URLs
8254         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8255         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8256         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8257         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8258         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8259         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8260         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8261         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8262         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8263         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8264         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8265         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8266         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8267         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8268         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8269         * lib/glthread/thread.c, lib/glthread/thread.h:
8270         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8271         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8272         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8273         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8274         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8275         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8276         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8277         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8278         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8279         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8280         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8281         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8282         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8283         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8284         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8285         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8286         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8287         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8288         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8289         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8290         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8291         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8292         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8293         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8294         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8295         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8296         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8297         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8298         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8299         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8300         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8301         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8302         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8303         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8304         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8305         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8306         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8307         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8308         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8309         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8310         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8311         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8312         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8313         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8314         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8315         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8316         * tests/test-poll.c, tests/test-quotearg-simple.c:
8317         * tests/test-quotearg.c, tests/test-quotearg.h:
8318         * tests/test-round-ieee.c, tests/test-round1.c:
8319         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8320         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8321         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8322         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8323         * tests/test-strerror.c, tests/test-strerror_r.c:
8324         * tests/test-strsignal.c, tests/test-strverscmp.c:
8325         * tests/test-xmemdup0.c:
8326         Replace FSF snail mail addresses with URLs, as per GNU coding
8327         standards.  See glibc bug
8328         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8329
8330 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8331
8332         README-release: capitalize a word and split a line
8333         * top/README-release: Fix punctuation and spacing.
8334
8335 2012-02-08  Akim Demaille  <demaille@gostai.com>
8336
8337         fatal-signal: use C prototypes (with explicit void).
8338         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8339         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8340
8341 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8342
8343         regex: spelling fix
8344         * lib/regexec.c: spelling fix
8345
8346         regex: rely on stdint.h for SIZE_MAX
8347         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8348
8349 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8350
8351         regex: merge glibc changes
8352
8353         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8354         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8355         (init_word_char): Work even if bitset words are not exactly 32 or
8356         64 bits wide.  Don't assume there are no padding bits.
8357         * lib/regex.c [_LIBC]: Do not include <config.h>.
8358         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8359         and -Wtype-limits.
8360         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8361         needless disagreement with glibc.  All uses changed.  Define it to
8362         1 only if _GNU_SOURCE, to match glibc.
8363         (_REG_RM_NAME): Remove; no longer needed, since the names in
8364         question are now all protected by __USE_GNU.
8365         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8366         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8367         * lib/regex_internal.h (MIN): New macro.
8368
8369         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8370         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8371
8372         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8373         * lib/regex_internal.c (re_string_fetch_byte_case):
8374         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8375         is miscompiled, and it turns out it is because of an incorrect
8376         attribute on re_string_fetch_byte_case.  Unlike
8377         re_string_peek_byte_case, this one is really not pure, it modifies
8378         memory (increments pstr->cur_idx), and with the pure attribute GCC
8379         assumed it doesn't and it cached the presumed value of
8380         regexp->cur_idx in a variable across the
8381          for (;; ++i)
8382            {
8383              if (i >= BRACKET_NAME_BUF_SIZE)
8384                return REG_EBRACK;
8385              if (token->type == OP_OPEN_CHAR_CLASS)
8386                ch = re_string_fetch_byte_case (regexp);
8387              else
8388                ch = re_string_fetch_byte (regexp);
8389              if (re_string_eoi(regexp))
8390                return REG_EBRACK;
8391              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8392                break;
8393              elem->opr.name[i] = ch;
8394            }
8395
8396         2011-11-29 Andreas Schwab <schwab@redhat.com>
8397         * lib/regcomp.c (build_equiv_class):
8398         Fix access after end of search string in regex matcher.
8399
8400         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8401         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8402
8403         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8404         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8405
8406         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8407         * lib/regcomp.c (parse_branch, parse_sub_exp):
8408         More regex memory leak fixes and tests.
8409         (parse_sub_exp, parse_bracket_exp):
8410         Fix memory leak for some invalid regular expressions.
8411
8412         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8413         * lib/regex_internal.c, lib/regexec.c:
8414         Fix unnecessary overallocation due to incomplete character.  When
8415         incomplete characters are found at the end of a string the code
8416         ran amok and allocated lots of memory.  Stricter limits are now in
8417         place.
8418
8419         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8420         * lib/regex.h: Update documentation.
8421
8422         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8423         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8424
8425         2010-05-05 Andreas Schwab <schwab@redhat.com>
8426         * lib/regexec.c (find_collation_sequence_value):
8427         Fix lookup of collation sequence value during regexp matching.
8428
8429         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8430         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8431
8432         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8433         * lib/regex.h: Cleanup namespace.
8434
8435         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8436         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8437
8438         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8439         * lib/regex_internal.h: Prevent some declarations and definitions
8440         to be seen when used in tests.
8441
8442         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8443         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8444         __libc_lock_* macros if not _LIBC.
8445         (struct re_dfa_t): Add lock.
8446
8447 2012-02-07  Eric Blake  <eblake@redhat.com>
8448
8449         maint.mk: also prohibit lower-case @var@
8450         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8451         lower case, like @top_srcdir@.
8452
8453 2012-02-04  Eric Blake  <eblake@redhat.com>
8454
8455         canonicalize: avoid uninitialized memory use
8456         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8457         random '/' left in dest.
8458         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8459
8460 2012-02-04  Bruno Haible  <bruno@clisp.org>
8461
8462         isatty: Fix test failure of ptsname_r on native Windows.
8463         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8464         and don't set errno.
8465         (isatty): Test first whether fd is valid. Set errno when returning 0.
8466
8467 2012-02-04  Bruno Haible  <bruno@clisp.org>
8468
8469         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8470         * tests/test-spawn-pipe-main.c: Include progname.h.
8471         (main): Invoke set_program_name.
8472         * modules/spawn-pipe-tests (Depends-on): Add progname.
8473
8474         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8475         * tests/test-nonblocking-socket-main.c: Include progname.h.
8476         (main): Invoke set_program_name.
8477         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8478
8479         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8480         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8481         (main): Invoke set_program_name.
8482         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8483
8484 2012-02-04  Eric Blake  <eblake@redhat.com>
8485
8486         canonicalize-lgpl: fix // handling
8487         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8488
8489         canonicalize: fix // handling
8490         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8491         /// to //, since only // is special.
8492
8493 2012-02-04  Bruno Haible  <bruno@clisp.org>
8494
8495         ioctl: Fix test failure on native Windows.
8496         * lib/ioctl.c: Include msvc-nothrow.h.
8497         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8498
8499 2012-02-04  Bruno Haible  <bruno@clisp.org>
8500
8501         fsync: Avoid test failure on native Windows.
8502         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8503         read-only.
8504
8505 2012-02-04  Bruno Haible  <bruno@clisp.org>
8506
8507         sys_select: Avoid syntax error on OpenBSD 5.0.
8508         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8509         currently being included, just include the system's <sys/select.h>.
8510
8511 2012-02-04  Bruno Haible  <bruno@clisp.org>
8512
8513         sys_select: Avoid syntax error on OpenBSD 5.0.
8514         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8515         <sys/select.h>, not before.
8516         Reported by Jiri B <jirib@devio.us>.
8517
8518 2012-02-04  Bruno Haible  <bruno@clisp.org>
8519
8520         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8521         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8522         global variables.
8523         * tests/test-get-rusage-data.c (main): Likewise.
8524         Reported by Jim Meyering.
8525
8526 2012-02-04  Bruno Haible  <bruno@clisp.org>
8527
8528         stdioext: Fix last commit.
8529         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8530
8531 2012-02-03  Bruno Haible  <bruno@clisp.org>
8532
8533         stdioext: Add tentative support for Plan9.
8534         * lib/stdio-impl.h: Include <errno.h>.
8535         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8536         * lib/freadable.c (freadable): Likewise.
8537         * lib/fwritable.c (fwritable): Likewise.
8538         * lib/fbufmode.c (fbufmode): Likewise.
8539         * lib/freading.c (freading): Likewise.
8540         * lib/fwriting.c (fwriting): Likewise.
8541         * lib/freadptr.c (freadptr): Likewise.
8542         * lib/freadseek.c (freadptrinc): Likewise.
8543         * lib/freadahead.c (freadahead): Likewise.
8544         * lib/fpurge.c (fpurge): Likewise.
8545         * lib/fseeko.c (rpl_fseeko): Likewise.
8546         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8547         Reported by Jens Staal <staal1978@gmail.com>.
8548
8549 2012-02-02  Jim Meyering  <meyering@redhat.com>
8550
8551         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8552         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8553         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8554         not even to try to add the attribute.  Instead, add a pragma to suppress
8555         the suggestion/warning.
8556
8557 2012-01-31  Karl Berry  <karl@gnu.org>
8558
8559         setstate doc: typo.
8560         * doc/posix-functions/setstate.texi (setstate): { not (.
8561
8562 2012-01-31  Bruno Haible  <bruno@clisp.org>
8563
8564         popen: Make more robust on Windows.
8565         * lib/popen.c: On native Windows, use the _popen based code even if
8566         HAVE_POPEN is set.
8567         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8568         environment variable on native Windows.
8569
8570 2012-01-30  Bruno Haible  <bruno@clisp.org>
8571
8572         pclose: Fix typo.
8573         * lib/stdio.in.h (pclose): Fix typo in warning message.
8574
8575 2012-01-30  Bruno Haible  <bruno@clisp.org>
8576
8577         doc about getlogin_r, setstate.
8578         * doc/posix-functions/getlogin_r.texi: List the incompatible
8579         declaration problem under "not fixed by gnulib".
8580         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8581         problem on Solaris 11 and other platforms.
8582
8583 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8584             Bruno Haible  <bruno@clisp.org>
8585
8586         poll tests: Make test more robust.
8587         * tests/test-poll.c: Include macros.h.
8588         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8589         return value of various I/O operations.
8590         * modules/poll-tests (Files): Add tests/macros.h.
8591
8592 2012-01-30  Bruno Haible  <bruno@clisp.org>
8593
8594         sys_stat: Fix support for mingw64 and MSVC.
8595         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8596         header files already do it.
8597         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8598         stat itself.
8599         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8600
8601 2012-01-30  Bruno Haible  <bruno@clisp.org>
8602
8603         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8604         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8605         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8606
8607 2012-01-29  Bruno Haible  <bruno@clisp.org>
8608
8609         quotearg: Fix test failure on MacOS X 10.5.
8610         * tests/test-quotearg-simple.c: Include localcharset.h.
8611         (main): If the locale encoding is not ASCII, bypass the tests of
8612         locale_quoting_style and clocale_quoting_style.
8613         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8614
8615 2012-01-29  Jim Meyering  <meyering@redhat.com>
8616
8617         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8618         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8619         detect uses of canonicalize_file_name.
8620
8621 2012-01-28  Bruno Haible  <bruno@clisp.org>
8622
8623         test-framework-sh: Fix test failure with AIX 7.1 diff.
8624         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8625         in column 1, like 'diff -c' does.
8626         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8627         whether 'diff -u' is used. Instead, test whether the output contains
8628         some '@' character.
8629
8630 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8631
8632         strtoimax: eliminate need for stdint.h, inttypes.h checks
8633         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8634         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8635         the prerequisites for a recently-introduced strtoimax test.
8636         I guess this might cause strtoimax to be replaced when not
8637         strictly necessary on older hosts, but this shouldn't introduce
8638         any bugs and it should make Emacs 'configure' faster on typical
8639         modern hosts.  Problem discovered when importing the latest gnulib
8640         to an Emacs test version.
8641         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8642
8643 2012-01-28  Bruno Haible  <bruno@clisp.org>
8644
8645         sys_time: Override 'struct timeval' on some native Windows platforms.
8646         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8647         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8648         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8649         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8650         needs to be overridden.
8651         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8652         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8653         * tests/test-sys_select.c: Check that the tv_sec member has the same
8654         size as a 'time_t'.
8655         * tests/test-sys_time.c: Likewise.
8656         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8657         is set, set also REPLACE_GETTIMEOFDAY.
8658         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8659         convert the resulting 'struct timeval' before returning.
8660         * lib/select.c: Include <sys/time.h>.
8661         (select, timeval): Undefine at the right place.
8662         * modules/select (Depends-on): Add sys_time.
8663         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8664         some Windows platforms.
8665         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8666
8667 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8668
8669         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8670         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8671         an integer.
8672         * lib/fcntl.c (dupfd): Likewise.
8673         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8674
8675 2012-01-28  Bruno Haible  <bruno@clisp.org>
8676
8677         fcntl: Avoid compilation error on native Windows.
8678         * modules/fcntl (Depends-on): Add 'close'.
8679
8680 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8681
8682         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8683         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8684         pointer to an integer.
8685         * lib/poll.c (IsConsoleHandle): Likewise.
8686         * lib/isatty.c (IsConsoleHandle): Likewise.
8687
8688 2012-01-28  Jim Meyering  <meyering@redhat.com>
8689
8690         doc: clarify README-release
8691         * top/README-release: Clarify: you should make a point to have
8692         the latest stable versions of build tools in your PATH, and the
8693         reference to buildreq is solely for its list of tool names, not
8694         for its minimal-functional version numbers.
8695         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8696
8697         maint.mk: use more readable (yet functionally equivalent) quoting
8698         It is common to quote a single quote in a single quoted string like
8699         this:  '...'\''...'.  Unless you know the idiom, that looks like
8700         gibberish, so prefer to double-quote the string when possible.
8701         Then you can use a more readable, lone single quote: "...'..."
8702         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8703         "don't" is more readable than the equivalent 'don'\''t'.
8704         (sc_cast_of_x_alloc_return_value): Likewise.
8705         (sc_cast_of_alloca_return_value): Likewise.
8706         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8707         rather than '\'':'\''.
8708
8709 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8710
8711         stdalign: relax _Alignof and tighten _Alignas test
8712         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8713         as it was too strict: alignof must divide offsetof, but it need
8714         not equal offsetof.  Inspired by Joseph S. Myers's comment
8715         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8716         Conversely, tighten the _Alignas test a bit, as the resulting
8717         alignment must be exactly 8.
8718
8719 2012-01-27  Bruno Haible  <bruno@clisp.org>
8720
8721         stdalign: Document the last change.
8722         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8723
8724 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8725
8726         stdalign: check that alignof and offsetof are consistent
8727         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8728         Problem reported for gnulib by Richard W.M. Jones in
8729         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8730
8731 2012-01-27  Jim Meyering  <meyering@redhat.com>
8732
8733         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8734         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8735         convert a sequence with gaps to the minimal containing range.
8736         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8737         * tests/test-update-copyright.sh: Test for this.
8738         The FSF confirmed it is ok to do this, assuming there is at
8739         least one significant change per year in the affected range:
8740         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8741
8742 2012-01-26  Bruno Haible  <bruno@clisp.org>
8743
8744         pipe2: refine doc about thread-safety
8745         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8746         multithread-safety problem.
8747         * doc/glibc-functions/accept4.texi: Likewise.
8748
8749 2012-01-26  Bruno Haible  <bruno@clisp.org>
8750
8751         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8752         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8753         In the test program, include <fcntl.h>, for O_RDONLY.
8754
8755 2012-01-26  Eric Blake  <eblake@redhat.com>
8756
8757         pipe2: document lack of thread-safety in replacement
8758         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8759         issue in replacement.
8760         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8761         Based on a report by Eric Wong.
8762
8763 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8764             Bruno Haible  <bruno@clisp.org>
8765
8766         malloca: Avoid warnings on x86_64 mingw64.
8767         * lib/malloca.c: Include <stdint.h>.
8768         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8769         * modules/malloca (Depends-on): Add stdint.
8770         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8771
8772 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8773
8774         obstack: remove __STDC__ conditionals
8775         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8776         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8777         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8778         m4/include_next.m4 as the only gnulib-maintained places that still
8779         refer to __STDC__.
8780
8781 2012-01-24  Bruno Haible  <bruno@clisp.org>
8782
8783         havelib: Modern quoting.
8784         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8785         the recent change to the GNU coding standards.
8786
8787 2012-01-24  Bruno Haible  <bruno@clisp.org>
8788
8789         stdint: Improve support for Android.
8790         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8791         Reported by Simon Josefsson <simon@josefsson.org>.
8792
8793 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8794
8795         doc: omit trailing empty lines from INSTALL etc.
8796         * doc/Makefile (INSTALL): Omit trailing empty lines.
8797         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8798         omit trailing empty lines.  This simplifies the build procedure.
8799
8800 2012-01-23  Jim Meyering  <meyering@redhat.com>
8801
8802         tests: avoid spurious warnings about gl_sockets_startup
8803         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8804         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8805         reporting a "statement with no effect".
8806         * tests/test-accept.c (main): Mark as "(void)".
8807         * tests/test-accept4.c (main): Likewise.
8808         * tests/test-bind.c (main): Likewise.
8809         * tests/test-connect.c (main): Likewise.
8810         * tests/test-getpeername.c (main): Likewise.
8811         * tests/test-getsockname.c (main): Likewise.
8812         * tests/test-getsockopt.c (main): Likewise.
8813         * tests/test-listen.c (main): Likewise.
8814         * tests/test-recv.c (main): Likewise.
8815         * tests/test-recvfrom.c (main): Likewise.
8816         * tests/test-send.c (main): Likewise.
8817         * tests/test-sendto.c (main): Likewise.
8818         * tests/test-setsockopt.c (main): Likewise.
8819         * tests/test-shutdown.c (main): Likewise.
8820
8821 2012-01-21  Bruno Haible  <bruno@clisp.org>
8822
8823         locale-fr.m4: Fix for Android.
8824         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8825         failure of the test program on Bionic libc.
8826
8827 2012-01-21  Jim Meyering  <meyering@redhat.com>
8828
8829         bootstrap: fail when bootstrap_post_import_hook fails
8830         Otherwise, it's far too easy to miss diagnostics emitted
8831         between gnulib-tool's output and that of running configure.
8832         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8833
8834 2012-01-17  Jim Meyering  <meyering@redhat.com>
8835
8836         maint: enable sc_trailing_blank
8837         * build-aux/pmccabe.css: Remove trailing blanks.
8838         * doc/acl-cygwin.txt: Likewise.
8839         * doc/gnu-oids.texi: Likewise
8840         * cfg.mk: Enable sc_trailing_blank.
8841         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8842
8843 2012-01-17  Jim Meyering  <meyering@redhat.com>
8844
8845         maint: enable sc_prohibit_openat_without_use
8846         * cfg.mk: Enable sc_prohibit_openat_without_use.
8847         Exempt lib/selinux-at.c.
8848
8849 2012-01-17  Jim Meyering  <meyering@redhat.com>
8850
8851         maint: enable sc_prohibit_cloexec_without_use
8852         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8853         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8854
8855 2012-01-17  Jim Meyering  <meyering@redhat.com>
8856
8857         maint: enable sc_prohibit_intprops_without_use
8858         * cfg.mk: Enable sc_prohibit_intprops_without_use
8859         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8860
8861 2012-01-17  Jim Meyering  <meyering@redhat.com>
8862
8863         maint: enable sc_prohibit_hash_pjw_without_use
8864         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8865         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8866         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8867         following " (".
8868
8869 2012-01-17  Jim Meyering  <meyering@redhat.com>
8870
8871         maint: enable double-word-prohibiting rule
8872         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8873         Exempt three files.
8874
8875 2012-01-17  Jim Meyering  <meyering@redhat.com>
8876
8877         maint: remove empty lines at EOF, but excluding modules/*
8878         Apply syntax rules at home as well as abroad.  Most changes
8879         were induced by running this:
8880           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8881             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8882             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8883         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8884         Exempt modules/* and two binary files.
8885         Also exempt doc/INSTALL*, per request from Bruno Haible.
8886         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8887         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8888         * doc/Copyright/request-assign.future: Likewise.
8889         * doc/Copyright/request-disclaim.changes: Likewise.
8890         * doc/INSTALL: Likewise.
8891         * doc/INSTALL.ISO: Likewise.
8892         * doc/INSTALL.UTF-8: Likewise.
8893         * doc/acl-cygwin.txt: Likewise.
8894         * doc/acl-resources.txt: Likewise.
8895         * doc/fdl-1.2.texi: Likewise.
8896         * doc/fdl-1.3.texi: Likewise.
8897         * doc/fdl.texi: Likewise.
8898         * lib/argp-pin.c: Likewise.
8899         * lib/round.c: Likewise.
8900         * lib/unicase/u16-totitle.c: Likewise.
8901         * lib/unictype/block_test.c: Likewise.
8902         * lib/uninorm/canonical-decomposition.c: Likewise.
8903         * m4/README: Likewise.
8904         * m4/relocatable-lib.m4: Likewise.
8905         * tests/test-isnand-nolibm.c: Likewise.
8906         * tests/test-isnand.c: Likewise.
8907         * tests/uninorm/NormalizationTest.txt: Likewise.
8908
8909 2012-01-17  Jim Meyering  <meyering@redhat.com>
8910
8911         maint: add framework to run syntax-check rules against gnulib sources
8912         * cfg.mk: New file, to disable all currently-failing tests.
8913         We'll enable them one by one, as they are made to pass.
8914         * Makefile (sc_maint): New rule.
8915
8916 2012-01-21  Bruno Haible  <bruno@clisp.org>
8917
8918         stdint: Add support for Android.
8919         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8920         include the system's <stdint.h>.
8921         Reported by Simon Josefsson <simon@josefsson.org>.
8922
8923 2012-01-19  Jim Meyering  <meyering@redhat.com>
8924
8925         bootstrap: add bootstrap_post_import_hook
8926         Bison does still need something like the gnulib_mk_hook whose
8927         invocation I had to remove along with slurp in commit 767ccd40.
8928         Technically, we could get along without it, but doing so would
8929         have required living with a warning and a mandatory post-bootstrap
8930         automake rerun.
8931         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8932         (bootstrap_post_import_hook): New function.
8933         Invoke it after gnulib-tool --import and before autoreconf.
8934
8935 2012-01-18  Jim Meyering  <meyering@redhat.com>
8936
8937         gitlog-to-changelog: don't use "no_"-prefixed variable name
8938         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8939         to enable both --cluster and --no-cluster.  Change variable name,
8940         s/\$no_cluster/$cluster/, and reverse usage to match.
8941
8942         gitlog-to-changelog: use "||", not "or" in expressions
8943         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8944         expressions.
8945
8946 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8947
8948         gitlog-to-changelog: new option --no-cluster
8949         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8950         clustering of adjacent commit messages.
8951
8952 2012-01-17  Jim Meyering  <meyering@redhat.com>
8953
8954         maint: spell file systems with two words, not one
8955         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8956         two words, not one.
8957
8958 2012-01-16  Jim Meyering  <meyering@redhat.com>
8959
8960         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8961         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8962
8963 2012-01-16  Eric Blake  <eblake@redhat.com>
8964
8965         bootstrap: cater to autoconf 2.59
8966         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8967         is not available.
8968
8969         bootstrap: properly check for libtool
8970         * build-aux/bootstrap (libtoolize): Also run libtool when older
8971         usage is detected.
8972
8973 2012-01-15  Bruno Haible  <bruno@clisp.org>
8974
8975         Improve support for MSVC 9.
8976         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8977         clashes on MSVC.
8978         * lib/fcntl.in.h: Likewise.
8979         * lib/stdlib.in.h: Likewise.
8980         * lib/sys_stat.in.h: Likewise.
8981
8982 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8983
8984         gnupload: we hold the master copy of this script now
8985         For motivation and more information, see:
8986         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8987         * build-aux/gnupload: Make it clear in the heading comments that the
8988         master copy of this file is maintained by gnulib.  Since we are at
8989         it, bump its copyright year and ...
8990         ($scriptversion): ... the date in its version.
8991         ($usage): Patches and bug reports should be sent to the gnulib list,
8992         not the automake one.
8993         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8994         anymore.
8995
8996 2012-01-15  Bruno Haible  <bruno@clisp.org>
8997
8998         Fix module 'random'.
8999         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9000         initstate, setstate are declared.
9001
9002 2012-01-14  Bruno Haible  <bruno@clisp.org>
9003
9004         Tests for module 'random'.
9005         * modules/random-tests: New file.
9006         * tests/test-random.c: New file, based on tests/test-random_r.c.
9007
9008         New module 'random'.
9009         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9010         declarations.
9011         * lib/random.c: New file, based on glibc/stdlib/random.c.
9012         * m4/random.m4: New file.
9013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9014         HAVE_RANDOM.
9015         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9016         * modules/random: New file.
9017         * config/srclist.txt: Add an entry for random.c.
9018         * doc/posix-functions/random.texi: Mention the 'random' module.
9019         * doc/posix-functions/initstate.texi: Likewise.
9020         * doc/posix-functions/setstate.texi: Likewise.
9021         * doc/posix-functions/srandom.texi: Likewise.
9022
9023 2012-01-12  Bruno Haible  <bruno@clisp.org>
9024
9025         random_r: Use common idioms.
9026         * lib/random_r.c: Include <stdlib.h> first.
9027
9028         random_r: Override incompatible API on AIX, OSF/1.
9029         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9030         Override the system function if REPLACE_RANDOM_R is 1.
9031         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9032         and OSF/1, set REPLACE_RANDOM_R.
9033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9034         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9035         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9036         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9037         * doc/glibc-functions/random_r.texi: Likewise.
9038         * doc/glibc-functions/setstate_r.texi: Likewise.
9039
9040         random_r: Support for MSVC 9.
9041         * lib/random_r.c: Include stdint.h, not inttypes.h.
9042
9043 2012-01-12  Eric Blake  <eblake@redhat.com>
9044
9045         inet_ntop: guard extra work by IF_LINT
9046         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9047         better code generation when not checking for warnings.
9048         Suggested by Paul Eggert and Jim Meyering.
9049
9050         strptime: fix regression on mingw
9051         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9052         Fix regression.  Reported by Bruno Haible.
9053
9054 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9055             Bruno Haible  <bruno@clisp.org>
9056
9057         copy-file: add error-code-returning variant.
9058         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9059         (qcopy_file_preserving): New declaration.
9060         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9061         copy_file_preserving. Change return type to 'int'. Don't emit an error
9062         message here.
9063         (copy_file_preserving): New function.
9064         * tests/test-copy-file.c: Include <stdlib.h>.
9065         (main): Test qcopy_file_preserving if the environment variable
9066         NO_STDERR_OUTPUT is set.
9067         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9068         with NO_STDERR_OUTPUT
9069         * tests/test-copy-file-2.sh: Likewise.
9070
9071 2012-01-10  Bruno Haible  <bruno@clisp.org>
9072
9073         copy-file: Use 'quote' module consistently.
9074         * lib/copy-file.c (copy_file_preserving): Use quote().
9075
9076         copy-file: Refactor.
9077         * lib/copy-file.c: Include quote.h.
9078         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9079         message here.
9080         * modules/copy-file (Depends-on): Add quote.
9081
9082         acl: Export qcopy_acl.
9083         * lib/acl.h (qcopy_acl): New declaration.
9084         * lib/copy-acl.c (qcopy_acl): Make non-static.
9085
9086         acl: Rename a local variable.
9087         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9088
9089         acl: Align return values of copy_acl and qcopy_acl.
9090         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9091         maybe < -1.
9092
9093 2012-01-11  Eric Blake  <eblake@redhat.com>
9094
9095         strptime: silence gcc warnings
9096         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9097         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9098         Reported by Daniel P. Berrange.
9099
9100         inet_ntop: silence gcc warning
9101         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9102         Reported by Daniel P. Berrange.
9103
9104 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9105
9106         getloadavg test: skip the test on GNU/Linux without /proc mounted
9107         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9108         file.  When /proc is not mounted, it always fails with ENOENT.
9109         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9110         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9111
9112 2012-01-10  Bruno Haible  <bruno@clisp.org>
9113
9114         regex: Avoid link error on MSVC 9.
9115         * modules/regex (Depends-on): Add wctype.
9116
9117 2012-01-10  Bruno Haible  <bruno@clisp.org>
9118
9119         doc: Mention --with-tests option.
9120         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9121         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9122         --with-tests.
9123         Reported by Reuben Thomas.
9124
9125 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9126
9127         users.txt: order package names lexicographically.
9128         * users.txt: Order package names lexicographically.
9129
9130 2012-01-10  Jim Meyering  <meyering@redhat.com>
9131
9132         maint.mk: fix description in comment
9133         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9134
9135         ignore-value: remove deprecated ignore_ptr function
9136         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9137         * NEWS: Note this.
9138
9139 2012-01-09  Jim Meyering  <meyering@redhat.com>
9140
9141         test-init.sh: avoid a subshell
9142         * tests/test-init.sh: Remove protective subshell.
9143         Suggested by Bernhard Voelker.  While a subshell is normally
9144         required to protect against older shells (Solaris, FreeBSD) that
9145         warn about a missing program before performing redirection, the
9146         shell-selection tests performed by init.sh probably exclude any
9147         offending shell.
9148
9149 2012-01-08  Bruno Haible  <bruno@clisp.org>
9150
9151         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9152         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9153         variable.
9154
9155 2012-01-08  Bruno Haible  <bruno@clisp.org>
9156
9157         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9158         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9160         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9161         macro.
9162         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9163         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9164         * lib/spawn_faction_addopen.c: Add workaround implementation if
9165         HAVE_WORKING_POSIX_SPAWN.
9166         * modules/spawn (Makefile): Substitute
9167         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9168         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9169         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9170         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9171         (Depends-on): Update conditions.
9172         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9173         the Solaris 11 bug.
9174
9175 2012-01-08  Bruno Haible  <bruno@clisp.org>
9176
9177         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9178         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9180         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9181         macro.
9182         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9184         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9185         HAVE_WORKING_POSIX_SPAWN.
9186         * modules/spawn (Makefile): Substitute
9187         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9188         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9189         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9190         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9191         (Depends-on): Update conditions.
9192         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9193         the Solaris 11 bug.
9194
9195 2012-01-08  Bruno Haible  <bruno@clisp.org>
9196
9197         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9198         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9199         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9200         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9201         HAVE_WORKING_POSIX_SPAWN.
9202         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9203         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9205         * lib/spawn_faction_addclose.c: Add workaround implementation if
9206         HAVE_WORKING_POSIX_SPAWN.
9207         * modules/spawn (Makefile): Substitute
9208         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9209         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9210         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9211         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9212         (Depends-on): Update conditions.
9213         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9214         the Solaris 11 bug.
9215
9216 2012-01-08  Bruno Haible  <bruno@clisp.org>
9217
9218         doc: Update for Solaris 11 2011-11.
9219         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9220         * m4/printf.m4: Update comments.
9221
9222 2012-01-08  Bruno Haible  <bruno@clisp.org>
9223
9224         mktime: Avoid compilation error on Solaris 11.
9225         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9226
9227 2012-01-08  Bruno Haible  <bruno@clisp.org>
9228
9229         doc: Small fix.
9230         * doc/posix-headers/nl_types.texi: Correct platforms list.
9231
9232 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9233
9234         Add lgpl-3.0 module.
9235         * MODULES.html.sh (Support for building documentation): Add
9236         lgpl-3.0.
9237         * modules/lgpl-3.0: New file.
9238
9239 2012-01-08  Jim Meyering  <meyering@redhat.com>
9240
9241         select.c: indent with spaces, not TABs
9242         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9243
9244 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9245
9246         quotearg: do not use grave accent for left quote
9247         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9248         locale_quoting_style.
9249         (quotearg_buffer_restyled): Fix example.
9250         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9251
9252 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9253
9254         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9255         Most programs do not have translation catalogs for English and much
9256         less separate catalogs for British and American English.  Drop the
9257         suggestion to translators about these two, and provide it
9258         automatically for Unicode locales.  Like most programs, even those
9259         using American English, we use single quotation marks.  This conflicts
9260         with the American typographic convention, but works better when you
9261         cite the entire error message within double quotes.  It also tries not
9262         to clash with established practice and with what non-gnulib programs
9263         will usually do.
9264         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9265         using an UTF-8 or GB-18030 locale.  The list of other locales with
9266         quotes was provided by Bruno Haible.
9267         (quotearg_buffer_restyled): Adjust instructions to translators.
9268         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9269         text, since this would be wrong when using Unicode.
9270         * modules/quotearg: Depend on c-strcaseeq.
9271
9272 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9273
9274         quotearg: fix Wikipedia link
9275         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9276
9277 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9278
9279         Fix for mingw with MSVC9.
9280         * m4/ld-version-script.m4: Check that compiler rejects version
9281         scripts with syntax errors.  Reported by Bruno Haible
9282         <bruno@clisp.org>.
9283
9284 2012-01-06  Bruno Haible  <bruno@clisp.org>
9285
9286         Talk about "native Windows API", not "Woe32".
9287         * lib/accept4.c: Update comments to mention native Windows.
9288         * lib/execute.c: Likewise.
9289         * lib/fatal-signal.c: Likewise.
9290         * lib/localcharset.c: Likewise.
9291         * lib/nanosleep.c: Likewise.
9292         * lib/nl_langinfo.c: Likewise.
9293         * lib/pclose.c: Likewise.
9294         * lib/pipe-filter-gi.c: Likewise.
9295         * lib/pipe-filter-ii.c: Likewise.
9296         * lib/pipe.c: Likewise.
9297         * lib/pipe2.c: Likewise.
9298         * lib/popen.c: Likewise.
9299         * lib/progreloc.c: Likewise.
9300         * lib/relocatable.c: Likewise.
9301         * lib/sigaction.c: Likewise.
9302         * lib/sigprocmask.c: Likewise.
9303         * lib/spawn-pipe.h: Likewise.
9304         * lib/spawn-pipe.c: Likewise.
9305         * lib/spawni.c: Likewise.
9306         * lib/stat-time.h: Likewise.
9307         * lib/w32spawn.h: Likewise.
9308         * tests/test-isatty.c: Likewise.
9309         * lib/config.charset: More comments.
9310         * doc/gnulib-intro.texi: Mention native Windows.
9311         * doc/posix-functions/_Exit_C99.texi: Likewise.
9312         * doc/posix-headers/fcntl.texi: Likewise.
9313
9314 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9315
9316         argp: Avoid crash if translator uses % characters in a translation.
9317         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9318         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9319
9320 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9321
9322         doc: C11 and C++11 are now official
9323         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9324         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9325         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9326         * modules/stdalign:
9327         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9328
9329 2012-01-06  Bruno Haible  <bruno@clisp.org>
9330
9331         uc-is-grapheme-break tests: Tweak.
9332         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9333         message.
9334
9335 2012-01-06  Bruno Haible  <bruno@clisp.org>
9336
9337         test-init.sh: correct the test for diff -u
9338         * tests/test-init.sh: Also redirect stdout to /dev/null.
9339
9340 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9341
9342         Use ', not `, for quoting output.
9343         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9344         (print_changelog_deltas, get_tool_versions, main program):
9345         * build-aux/git-version-gen:
9346         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9347         * build-aux/move-if-change (help):
9348         * build-aux/useless-if-before-free (usage, main program):
9349         * check-module (parse_module_file, usage)
9350         (find_included_lib_files, check_module):
9351         * lib/argmatch.c (main) [TEST]:
9352         * lib/argp-help.c (_help):
9353         * lib/getopt1.c (main) [TEST]:
9354         * lib/git-merge-changelog.c (usage):
9355         * lib/xstrtol-error.c (xstrtol_error):
9356         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9357         * m4/argz.m4 (gl_FUNC_ARGZ):
9358         * m4/bison.m4 (gl_BISON):
9359         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9360         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9361         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9362         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9363         * m4/gc-random.m4 (gl_GC_RANDOM):
9364         * m4/intl.m4 (gt_CHECK_DECL):
9365         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9366         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9367         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9369         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9370         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9371         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9372         * tests/test-dirname.c (main):
9373         * tests/test-getpass.c (main):
9374         * tests/test-iconvme.c (main):
9375         * tests/test-parse-datetime.c (LOG):
9376         * tests/test-xstrtoimax.sh:
9377         * tests/test-xstrtol.sh:
9378         * tests/test-xstrtoll.sh:
9379         * tests/test-xstrtoumax.sh:
9380         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9381         * top/GNUmakefile (abort-due-to-no-makefile):
9382         Quote 'like this', not `like this', as per the recent change to
9383         the GNU coding standards.
9384
9385 2012-01-05  Bruno Haible  <bruno@clisp.org>
9386
9387         strtoimax: Don't force a replacement on systems where intmax_t is int.
9388         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9389         'intmax_t' is not larger than 'int'.
9390         Reported by Pádraig Brady <P@draigBrady.com>.
9391
9392 2012-01-05  Bruno Haible  <bruno@clisp.org>
9393
9394         doc: Mention NetBSD bugs.
9395         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9396         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9397
9398 2012-01-05  Bruno Haible  <bruno@clisp.org>
9399
9400         strtoumax tests: Enhance tests.
9401         * tests/test-strtoumax.c (main): Add tests for large values.
9402
9403 2012-01-05  Bruno Haible  <bruno@clisp.org>
9404
9405         strtoimax: Work around AIX 5.1 bug.
9406         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9407         definition.
9408         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9409         Set HAVE_STRTOIMAX.
9410         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9411         REPLACE_STRTOIMAX.
9412         * modules/inttypes-incomplete (Makefile.am): Substitute
9413         REPLACE_STRTOIMAX.
9414         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9415         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9416         (Depends-on): Update conditions.
9417         * tests/test-strtoimax.c (main): Add tests for large values.
9418         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9419
9420 2012-01-05  Bruno Haible  <bruno@clisp.org>
9421
9422         inttypes: Modernize.
9423         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9424         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9425         (Makefile.am): Update inttypes.h rule.
9426
9427 2012-01-05  Jim Meyering  <meyering@redhat.com>
9428
9429         init.sh: don't waste a subshell just to redirect stderr
9430         * tests/init.sh: In testing for diff -u and diff -c, use a
9431         stderr-redirecting exec inside `...` rather than a subshell.
9432
9433         test-init.sh: avoid failure on HP-UX 11.00
9434         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9435         resolves to diff -c or cmp.  Reported by Bruno Haible.
9436
9437 2012-01-05  Bruno Haible  <bruno@clisp.org>
9438
9439         Tests for module 'strtoull'.
9440         * modules/strtoull-tests: New file.
9441         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9442
9443 2012-01-05  Bruno Haible  <bruno@clisp.org>
9444
9445         Tests for module 'strtoll'.
9446         * modules/strtoll-tests: New file.
9447         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9448
9449 2012-01-05  Bruno Haible  <bruno@clisp.org>
9450
9451         Tests for module 'strtoul'.
9452         * modules/strtoul-tests: New file.
9453         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9454
9455 2012-01-05  Bruno Haible  <bruno@clisp.org>
9456
9457         Tests for module 'strtol'.
9458         * modules/strtol-tests: New file.
9459         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9460
9461 2012-01-04  Jim Meyering  <meyering@redhat.com>
9462
9463         test-init.sh: accommodate Solaris 5.10's different diff -u output
9464         * tests/test-init.sh: Also exempt @@ lines from the comparison
9465         of diff output, since Solaris 5.10 and GNU diff formats differ.
9466         Reported by Stefano Lattarini.
9467
9468 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9469
9470         test-posixtm: don't assume signed integer wraparound
9471         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9472         after signed integer overflow.  Inspired by (though it may not
9473         fix) Bruno Haible's bug report in
9474         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9475
9476         Spell out "Windows 9x" and "Windows XP".
9477         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9478         "Windows 9x" and "WinXP" with "Windows XP".
9479
9480 2012-01-04  Jim Meyering  <meyering@redhat.com>
9481
9482         test-vc-list-files-cvs.sh: remove obsolete comment
9483         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9484         double exit.  Now that's all encapsulated via skip_ and Exit.
9485
9486 2012-01-04  Bruno Haible  <bruno@clisp.org>
9487
9488         Talk about "native Windows API", not "Win32".
9489         * lib/classpath.c: Update comments to mention native Windows.
9490         * lib/csharpexec.c: Likewise.
9491         * lib/dup2.c: Likewise.
9492         * lib/error.c: Likewise.
9493         * lib/fcntl.c: Likewise.
9494         * lib/filename.h: Likewise.
9495         * lib/findprog.c: Likewise.
9496         * lib/get-rusage-as.c: Likewise.
9497         * lib/get-rusage-data.c: Likewise.
9498         * lib/getpagesize.c: Likewise.
9499         * lib/javaexec.c: Likewise.
9500         * lib/msvc-inval.c: Likewise.
9501         * lib/msvc-nothrow.c: Likewise.
9502         * lib/nanosleep.c: Likewise.
9503         * lib/nonblocking.c: Likewise.
9504         * lib/printf-parse.c: Likewise.
9505         * lib/setlocale.c: Likewise.
9506         * lib/sigaction.c: Likewise.
9507         * lib/strerror_r.c: Likewise.
9508         * lib/tmpdir.c: Likewise.
9509         * lib/vasnprintf.c: Likewise.
9510         * lib/w32spawn.h: Likewise.
9511         * lib/waitpid.c: Likewise.
9512         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9513         * m4/locale-ar.m4: Likewise.
9514         * m4/locale-fr.m4: Likewise.
9515         * m4/locale-ja.m4: Likewise.
9516         * m4/locale-tr.m4: Likewise.
9517         * m4/locale-zh.m4: Likewise.
9518         * m4/printf.m4: Likewise.
9519         * tests/test-cloexec.c: Likewise.
9520         * tests/test-copy-acl.sh: Likewise.
9521         * tests/test-copy-file.sh: Likewise.
9522         * tests/test-file-has-acl.sh: Likewise.
9523         * tests/test-set-mode-acl.sh: Likewise.
9524         * tests/test-dup-safer.c: Likewise.
9525         * tests/test-dup2.c: Likewise.
9526         * tests/test-dup3.c: Likewise.
9527         * tests/test-fcntl.c: Likewise.
9528         * tests/test-nonblocking-pipe.h: Likewise.
9529         * tests/test-nonblocking-socket.h: Likewise.
9530         * tests/test-pipe.c: Likewise.
9531         * tests/test-pipe2.c: Likewise.
9532         * tests/test-spawn-pipe-child.c: Likewise.
9533         * doc/acl-resources.txt: Likewise.
9534         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9535         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9536         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9537         * lib/localcharset.c: Update comments to mention native Windows.
9538         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9539         * lib/localename.c: Likewise.
9540         * lib/progreloc.c: Likewise.
9541         * lib/relocatable.c: Likewise.
9542         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9543         (windows_compute_revents): Renamed from win32_compute_revents.
9544         (windows_compute_revents_socket): Renamed from
9545         win32_compute_revents_socket.
9546         * lib/select.c: Update comments to mention native Windows.
9547         (windows_poll_handle): Renamed from win32_poll_handle.
9548         * m4/threadlib.m4: Update comments to mention native Windows.
9549         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9550         --enable-threads=windows instead of --enable-threads=win32. Set
9551         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9552         * lib/glthread/lock.h: Update comments to mention native Windows.
9553         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9554         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9555         USE_WIN32_THREADS.
9556         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9557         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9558         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9559         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9560         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9561         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9562         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9563         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9564         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9565         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9566         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9567         * tests/test-tls.c: Likewise.
9568         Rationale:
9569         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9570         on both 32-bit and 64-bit Windows systems.
9571         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9572         line of distinction is between "native Windows" on one side and Unix/
9573         POSIX systems on the other side. More details in
9574         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9575         Suggested by Paul Eggert.
9576
9577 2012-01-03  Bruno Haible  <bruno@clisp.org>
9578
9579         isatty: Support for MSVC 9.
9580         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9581         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9582         (_isatty_nothrow): New function.
9583         (isatty): Use it instead of _isatty.
9584         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9585         * lib/poll.c (IsConsoleHandle): Likewise.
9586         * lib/select.c (IsConsoleHandle): Likewise.
9587         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9588         (gl_PREREQ_ISATTY): New macro.
9589         * modules/isatty (Depends-on): Add msvc-inval.
9590         (configure.ac): Invoke gl_PREREQ_ISATTY.
9591
9592 2012-01-03  Jim Meyering  <meyering@redhat.com>
9593
9594         maint.mk: remove temporary transition aid from over 1.5 years ago
9595         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9596         purpose was to aid in the transition (avoiding silent malfunction)
9597         from that old name to the new _sc_search_regexp.  This shim was
9598         added by commit 219c504b.
9599
9600         init.sh: do not try to accommodate compare arguments starting with "-"
9601         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9602         compare arguments that start with "-".  Besides, we do not worry
9603         about this when invoking diff or cmp; why start now with sed?
9604         Using "--" to separate options from argument would trigger sed
9605         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9606         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9607
9608 2012-01-02  Bruno Haible  <bruno@clisp.org>
9609
9610         Enhance tests for module 'isatty'.
9611         * modules/isatty-tests (Depends-on): Add pipe-posix.
9612         * tests/test-isatty.c: Include <fcntl.h>.
9613         (DEV_NULL): New macro.
9614         (main): Test the resut of isatty() also on regular files, pipes, and
9615         /dev/null.
9616
9617         New module 'isatty'.
9618         * lib/unistd.in.h (isatty): New declaration.
9619         * lib/isatty.c: New file, based on an idea of
9620         Bastien Roucariès <roucaries.bastien@gmail.com>.
9621         * m4/isatty.m4: New file.
9622         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9623         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9624         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9625         REPLACE_ISATTY.
9626         * modules/isatty: New file.
9627         * doc/posix-functions/isatty.texi: Mention the new module.
9628         Suggested by Paolo Bonzini.
9629
9630 2012-01-02  Bruno Haible  <bruno@clisp.org>
9631
9632         canonicalize: Tweak 2011-12-29 commit.
9633         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9634         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9635
9636 2012-01-02  Jim Meyering  <meyering@redhat.com>
9637
9638         gitlog-to-changelog: describe input syntax in --help output
9639         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9640
9641         gitlog-to-changelog: fix typo in --help: show backslash before email @
9642         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9643         in sources, but not in actual output.
9644
9645 2011-12-30  Jim Meyering  <meyering@redhat.com>
9646
9647         gitlog-to-changelog: don't malfunction when name contains %-directive
9648         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9649         in a name string cause trouble.  E.g., with a user name of "%s",
9650         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9651
9652 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9653
9654         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9655         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9656         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9657         the "  (tiny change)" notation that is appended to the standard
9658         ChangeLog "date  name  email" header line.
9659
9660 2012-01-01  Jim Meyering  <meyering@redhat.com>
9661
9662         test-framework-sh: init.sh: fix "make dist" failure
9663         When using gnulib-tool's --with-tests option and any module that
9664         depends on test-framework-sh, "make dist" would fail due to the
9665         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9666         in the gltests directory, and not in the gllib/ directory.
9667         One way to work around that is to move the EXTRA_DIST += init.sh
9668         from the primary module to the -tests one:
9669         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9670         * modules/test-framework-sh (Makefile.am): ...not here.
9671         Reported by Tom G. Christensen in
9672         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9673
9674         version-etc: update copyright year reported by --version
9675         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9676
9677 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9678
9679         canonicalize: only stat() if required
9680         * lib/canonicalize.c (canonicalize_filename_mode):
9681         Avoid calling l?stat() when both CAN_MISSING,
9682         and CAN_NOLINKS are set, as we neither need
9683         to resolve symlinks or test component existence.
9684
9685 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9686
9687         doc: cover st_ino issues once; add OpenVMS etc.
9688         * doc/posix-functions/stat.texi (stat):
9689         * doc/posix-functions/lstat.texi (lstat):
9690         * doc/posix-functions/fstatat.texi (fstatat):
9691         * doc/posix-functions/fstat.texi (fstat):
9692         Move general 'struct stat' stuff to sys_stat.texi,
9693         leaving behind a pointer.
9694         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9695         Merge duplicate info about 'struct stat' problems into here.
9696         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9697         and suggest partial workarounds.
9698
9699         same-inode: port to OpenVMS
9700         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9701         three st_ino values.
9702
9703 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9704
9705         canonicalize: fix references to stat() and lstat()
9706         * lib/canonicalize.c (canonicalize_filename_mode):
9707         Ensure references always resolve to a replacement
9708         function if required (even via a macro).
9709
9710 2011-12-30  Jim Meyering  <meyering@redhat.com>
9711
9712         gitlog-to-changelog: remove a little duplication
9713         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9714         rather than twice.
9715
9716 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9717
9718         canonicalize: add support for not resolving symlinks
9719         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9720         indicate we don't want to follow symlinks.  Also
9721         provide CAN_MODE_MASK to aid setting these existing
9722         mutually exclusive values.
9723         * lib/canonicalize.c (canonicalize_filename_mode):
9724         Extract the flags from can_mode parameter, which
9725         are currently just used to select between stat()
9726         and lstat().  Also ensure that mutually exclusive
9727         values are flagged immediately as invalid.
9728         * tests/test-canonicalize.c: Verify symlinks are
9729         not followed, and that invalid flag combinations
9730         are diagnosed.
9731
9732 2011-12-25  Jim Meyering  <meyering@redhat.com>
9733
9734         gitlog-to-changelog: do not clump multi-paragraph entries
9735         Identical header lines (date,name,email+coauthors) are suppressed,
9736         thus putting all entries with those same characteristics under
9737         a single header.  However, when a log entry consists of two or
9738         more paragraphs, it may not be clear where it starts and ends.
9739         This change makes it so that such an entry is always separated
9740         from others by a header line, even when that header would
9741         otherwise be suppressed.
9742         * build-aux/gitlog-to-changelog: Implement the above.
9743         Inspired by a related request from Stefano Lattarini in
9744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9745
9746 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9747
9748         announce-gen: fix `cmd' typo in diagnostic
9749         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9750         diagnostic: a missing '$' meant that the command was not output.
9751
9752 2011-12-23  Jim Meyering  <meyering@redhat.com>
9753
9754         test-framework-sh: distribute init.sh
9755         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9756         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9757         fail due to the lack of init.sh.
9758
9759         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9760         * modules/atexit-tests: Rather than listing tests/init.sh,
9761         now that there's a module for it, simply depend on that new module.
9762         * modules/closein-tests: Likewise.
9763         * modules/exclude-tests: Likewise.
9764         * modules/getcwd-tests: Likewise.
9765         * modules/perror-tests: Likewise.
9766         * modules/pread-tests: Likewise.
9767         * modules/pwrite-tests: Likewise.
9768         * modules/vc-list-files-tests: Likewise.
9769         * modules/verify-tests: Likewise.
9770         * modules/xalloc-die-tests: Likewise.
9771         * modules/xstrtoimax-tests: Likewise.
9772         * modules/xstrtol-tests: Likewise.
9773         * modules/xstrtoll-tests: Likewise.
9774         * modules/xstrtoumax-tests: Likewise.
9775         * modules/yesno-tests: Likewise.
9776
9777 2011-12-22  Jim Meyering  <meyering@redhat.com>
9778
9779         test-framework-sh: add minimal tests of init.sh's compare function
9780         * modules/test-framework-sh-tests: New file.
9781         * tests/test-init.sh: New file.
9782
9783         test-framework-sh: new module
9784         * modules/test-framework-sh: New file.
9785         * MODULES.html.sh (Support for maintaining and releasing projects):
9786         List it.
9787
9788         init.sh: do not emit simulated diff output to stderr
9789         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9790
9791 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9792
9793         .gitignore: ignore gnulib.dvi and regex.info
9794         * doc/.gitignore:add gnulib.dvi and regex.info
9795
9796 2011-12-22  Jim Meyering  <meyering@redhat.com>
9797
9798         init.sh: correct previous change
9799         * tests/init.sh (compare): My previous change was wrong.
9800         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9801
9802         init.sh: avoid unwarranted test failure when using "set -e"
9803         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9804         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9805         a use like "compare exp out" would get evoke an unconditional failure.
9806
9807 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9808
9809         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9810         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9811         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9812         autoreconf that did not.
9813         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9814         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9815
9816 2011-12-17  Jim Meyering  <meyering@redhat.com>
9817
9818         bootstrap: remove some now-unneeded code
9819         This script arose back when gnulib-tool was young.
9820         Since then, it has seen improvements that render much of this
9821         script unnecessary.  In particular, it can now make symlinks
9822         to the files it uses.  Also, I no longer see as much value in
9823         marking files as read-only via comments.
9824         If you relied on the symlink-creation feature of the preceding
9825         version of this script, you can get most of that functionality
9826         by adding the --symlink option to the definition of
9827         gnulib_tool_option_extras in your bootstrap.conf file.
9828         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9829         Run autopoint and libtoolize *before* gnulib-tool.
9830         After it, run an abbreviated autoreconf, rather than a loop around
9831         all tools.
9832         (slirp, bt_mark_as_generated): Remove functions.
9833
9834 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9835
9836         ftoastr: fix typo
9837         * lib/ftoastr.h: Fix misspelling in comment.
9838
9839 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9840
9841         * top/README-release: fix punctuation.
9842
9843 2011-12-17  Jim Meyering  <meyering@redhat.com>
9844
9845         bootstrap: correct the recent buildreq change
9846         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9847         had no effect.
9848         * build-aux/bootstrap (buildreq): Bracket each search term with
9849         "*...*", so that the shell "case" statement works as intended.
9850         Add comments.
9851
9852 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9853
9854         build: let bootstrap resort to wget when downloading .po files
9855         * build-aux/bootstrap (download_po_files): Fallback to wget when
9856         downloading the .po files via rsync fails.  This is necessary to
9857         bootstrap from behind a strict firewall.
9858
9859 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9860
9861         stdint: don't assume C++11 when compiling with g++
9862         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9864         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9865         work also in C++ before C++11, as that improperly inhibits
9866         generating a substitute stdint.h for that case.
9867
9868 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9869
9870         alloca: protect comment from gnulib-tool
9871         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9872         that gnulib-tool doesn't think it's a license, and munge it to
9873         say "GCC version 3".
9874
9875 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9876
9877         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9878         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9879         $(abs_top_builddir) instead of $(top_builddir).
9880
9881 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9882
9883         strftime-tests: also test nanoseconds
9884         * tests/test-strftime.c (T): Add a test of %N.
9885
9886 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9887
9888         inttypes, stdint: add C++11 support
9889         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9890         when including inttypes.h and stdint.h.  Support this change to
9891         the standard.
9892         * doc/posix-headers/inttypes.texi (inttypes.h):
9893         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9894         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9895         Define if not defined already, for the benefit of pre-C++11 hosts.
9896         Define the standard format macros (e.g., PRId8) always.
9897         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9898         Likewise, if __cpluspus.  Define the standard constant and limit
9899         macros (e.g., INT8_C, INT8_MAX) always.
9900         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9901         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9902         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9903         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9904         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9905         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9906         Likewise.
9907
9908 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9909
9910         nonblocking tests: Fix test failure on Linux/PPC.
9911         Suggested by Prerna Saxena in
9912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9913         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9914         Set to 1100000.
9915
9916 2011-12-12  Jim Meyering  <meyering@redhat.com>
9917
9918         argmatch: don't hard-code `' when listing valid option arguments
9919         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9920         use the quote function to add quotes.  Use fputs rather than
9921         fprintf for the format string with no format directive.
9922
9923 2011-12-07  Eric Blake  <eblake@redhat.com>
9924
9925         bootstrap: detect tools required by gnulib-tool
9926         * build-aux/bootstrap (buildreq): Provide minimum implicit
9927         dependencies.
9928         * DEPENDENCIES: Mention patch as a prereq.
9929
9930 2011-12-04  Bruno Haible  <bruno@clisp.org>
9931
9932         sethostname: Port to Windows platforms.
9933         * lib/sethostname.c: Provide an alternate implementation for Windows
9934         platforms.
9935         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9936         (main): Skip the test if sethostname() fails with EPERM. On Windows
9937         platforms, don't check the result of gethostname().
9938
9939 2011-12-04  Bruno Haible  <bruno@clisp.org>
9940             Jim Meyering  <meyering@redhat.com>
9941
9942         tests: Avoid spurious error message on platforms without mktemp program.
9943         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9944
9945 2011-12-04  Bruno Haible  <bruno@clisp.org>
9946
9947         sethostname: Fix documentation.
9948         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9949         "not fixed" section.
9950
9951 2011-12-03  Bruno Haible  <bruno@clisp.org>
9952
9953         gnulib-tool: Verify that the License field is present and non-empty.
9954         * gnulib-tool (func_get_license_raw): New function, extracted from
9955         func_get_license.
9956         (func_get_license): Use it. Warn if the module is not a test module and
9957         has no license.
9958         Suggested by Jim Meyering.
9959
9960 2011-12-03  Bruno Haible  <bruno@clisp.org>
9961
9962         sethostname tests: Fix link error on mingw.
9963         * tests/test-sethostname1.c: New file, extracted from
9964         tests/test-sethostname.c.
9965         * tests/test-sethostname2.c: New file, extracted from
9966         tests/test-sethostname.c.
9967         * tests/test-sethostname.c: Remove file.
9968         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9969         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9970         (Depends-on): Add gethostname.
9971         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9972         Link the latter with $(GETHOSTNAME_LIB).
9973
9974         sethostname tests: Fix compilation error on mingw.
9975         * tests/test-sethostname.c: Don't include <sys/types.h>.
9976         (geteuid): Use a dummy value without uid_t.
9977         * modules/sethostname-tests (Depends-on): Remove sys_types.
9978
9979         sethostname tests: Avoid a gcc warning.
9980         * tests/test-sethostname.c (main): Remove an unused variable.
9981
9982         Tweak last commit.
9983         * modules/sethostname-tests (Files): Sort by decreasing importance.
9984         (configure.ac): Check for geteuid.
9985         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9986         the test when there's nothing to test. Drop an unnecessary cast.
9987         Improve an error message. Verify that the final sethostname() call
9988         succeeds.
9989
9990 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9991
9992         Add a test suite for the sethostname module.
9993         * modules/sethostname-tests: New file.  A test program
9994         for the sethostname module.
9995         * tests/test-sethostname.c: Likewise.
9996
9997 2011-12-03  Bruno Haible  <bruno@clisp.org>
9998
9999         Tweak last commit.
10000         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10001         Fix preprocessor directives indentation. Fix typos.
10002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10003         * modules/unistd (Makefile): Likewise.
10004
10005 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10006
10007         Integrate the sethostname module into unistd.
10008         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10009         into the unistd.h header.
10010         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10011         preprocessor directives.
10012         * modules/unistd: Setup the Makefile substitutions of the
10013         SETHOSTNAME preprocessor directives.
10014
10015 2011-12-03  Bruno Haible  <bruno@clisp.org>
10016
10017         Tweak last commit.
10018         * lib/sethostname.c: Don't include <string.h>.
10019         (sethostname): No need to copy the argument string to the stack. Don't
10020         call clearerr. Preserve errno when fprintf failed.
10021         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10022         Don't invoke AC_REPLACE_FUNCS.
10023         * modules/sethostname (Link): Remove empty section.
10024         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10025         failure problem.
10026
10027 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10028
10029         New module 'sethostname'.
10030         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10031         for systems that lack it.
10032         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10033         sethostname declaration and function.
10034         * modules/sethostname: New file.  Define the sethostname module.
10035
10036 2011-12-03  Bruno Haible  <bruno@clisp.org>
10037
10038         Tweak last commit.
10039         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10040
10041 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10042
10043         Split the HOST_NAME_MAX detection into a separate m4 macro.
10044         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10045         macro so it can be used by the pending sethostname module.
10046
10047 2011-12-03  Bruno Haible  <bruno@clisp.org>
10048
10049         Fix module descriptions syntax.
10050         * modules/argv-iter (License): Fix syntax.
10051         * modules/di-set (License): Likewise.
10052         * modules/ino-map (License): Likewise.
10053         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10054
10055 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10056
10057         stdalign: port to Clang 3.0
10058         Problem reported by Simon Josefsson in
10059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10060         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10061         which has <stdalign.h> but which does not define alignof.
10062         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10063
10064 2011-12-01  Eric Blake  <eblake@redhat.com>
10065
10066         mktempd: silence dd usage
10067         * build-aux/mktempd (rand_bytes): Silence dd.
10068
10069 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10070
10071         manywarnings: Don't mention gcc version in docstring.
10072         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10073         Jim Meyering <meyering@redhat.com>.
10074
10075 2011-11-30  Jim Meyering  <meyering@redhat.com>
10076
10077         hash: mark a few floating point constants with "f" suffix
10078         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10079         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10080         floating point constants with "f", since they're destined to be
10081         saved/used as "float"s.
10082
10083 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10084
10085         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10086         * tests/test-float.c (test_long_double): Correct and re-enable the
10087         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10088
10089 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10090
10091         Avoid subtracting two pointers that don't point into the same block.
10092         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10093         only pointers into the same memory block are subtracted. We cannot
10094         assume that sizeof (ptrdiff_t) == sizeof (void *).
10095
10096 2011-11-29  Eric Blake  <eblake@redhat.com>
10097
10098         maint.mk: add syntax check for use of compare from init.sh
10099         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10100         moved here from coreutils.
10101
10102         manywarnings: drop -Wunsuffixed-float-constants
10103         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10104         '1.0D', which is the only way to silence this warning for 'double'.
10105
10106 2011-11-29  Jim Meyering  <meyering@redhat.com>
10107
10108         hash: mark compute_bucket_size with the pure attribute
10109         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10110
10111         quotearg, propername: correct pragma guard expression
10112         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10113         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10114
10115 2011-11-28  Jim Meyering  <meyering@redhat.com>
10116
10117         propername: do not mark proper_name with the const attribute
10118         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10119         since it examines data pointed to by its parameter.
10120         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10121         the suggestion from -Wsuggest-attribute=const.
10122
10123         propername: mark one more function as const
10124         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10125
10126 2011-11-27  Jim Meyering  <meyering@redhat.com>
10127
10128         mark functions with const and pure attributes
10129
10130         Mark functions per suggestions from gcc-4.6 when using these options:
10131         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10132         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10133         Follow these guidelines: when possible, apply the attribute to
10134         an extern declaration, not to its definition.  Apply it to the
10135         definition only when the definition is static.
10136         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10137         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10138         * lib/base64.h (isbase64): Likewise.
10139         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10140         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10141         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10142         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10143         (c_tolower, c_toupper): Likewise.
10144         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10145         * lib/chdir-long.c (find_non_slash): Likewise.
10146         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10147         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10148         * lib/file-type.h (file_type): Likewise.
10149         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10150         * lib/filevercmp.c (verrevcmp): Likewise.
10151         * lib/freadahead.h (freadahead): Likewise.
10152         * lib/fts.c (fts_maxarglen): Likewise.
10153         * lib/hash-pjw.h (hash_pjw): Likewise.
10154         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10155         * lib/hash.c (is_prime, next_prime): Likewise.
10156         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10157         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10158         (hash_table_ok, hash_get_first, hash_string): Likewise.
10159         (compute_bucket_size): Likewise.
10160         * lib/i-ring.h (i_ring_empty): Likewise.
10161         * lib/isnan.c (isnanl): Likewise.
10162         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10163         * lib/memcasecmp.h (memcasecmp): Likewise.
10164         * lib/memchr2.h (memchr2): Likewise.
10165         * lib/memcmp2.h (memcmp2): Likewise.
10166         * lib/parse-datetime.y (lookup_zone): Likewise.
10167         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10168         [!WINDOWS_SOCKETS]: Likewise.
10169         * lib/strnlen1.h (strnlen1): Likewise.
10170         * lib/uniwidth.in.h (uc_width): Likewise.
10171         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10172         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10173         (quoting_options_from_style): Add a comment.
10174         * lib/propername.h (proper_name): Add a comment.
10175
10176 2011-11-27  Bruno Haible  <bruno@clisp.org>
10177
10178         Remove unused macros from !_LIBC code in glibc-borrowed files.
10179         * lib/fnmatch.c (STRCOLL): Remove macro.
10180         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10181         * lib/glob.c (__stat, __readdir64): Remove macros.
10182         * lib/tempname.c (__open64, __xstat64): Remove macros.
10183         Suggested by Paul Eggert.
10184
10185 2011-11-27  Bruno Haible  <bruno@clisp.org>
10186
10187         getcwd: Fix link error on MSVC 9.
10188         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10189
10190 2011-11-27  Bruno Haible  <bruno@clisp.org>
10191
10192         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10193         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10194         HAVE_OPENDIR is 0.
10195         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10196         HAVE_CLOSEDIR is 0.
10197         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10198         is 0.
10199         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10200
10201 2011-11-27  Bruno Haible  <bruno@clisp.org>
10202
10203         getcwd: Fix bug from 2011-08-17.
10204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10205         platforms that need it.
10206         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10207         code of 4 to be a failure, not a success. This ensures that
10208         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10209
10210 2011-11-27  Bruno Haible  <bruno@clisp.org>
10211
10212         binary-io tests: Avoid test failure on mingw when libtool is used.
10213         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10214         Don't verify the size of t-bin-out1.tmp here.
10215         * tests/test-binary-io.sh: Verify it here.
10216         Reported by Simon Josefsson.
10217
10218 2011-11-26  Bruno Haible  <bruno@clisp.org>
10219
10220         Fix conflict between two instantiations of module 'unistd'.
10221         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10222         ${include_guard_prefix} also in the autoconf snippet.
10223         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10225         GNULIB_UNISTD_H_GETOPT.
10226         * modules/getopt-posix (configure.ac): Set the
10227         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10228         * modules/getopt-gnu (configure.ac): Likewise.
10229         * modules/unistd (Makefile.am): Change the substitution value of
10230         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10231         Reported by Simon Josefsson.
10232
10233 2011-11-25  Bruno Haible  <bruno@clisp.org>
10234
10235         pagealign_alloc: Doc and comments.
10236         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10237         module.
10238         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10239
10240 2011-11-25  Jim Meyering  <meyering@redhat.com>
10241
10242         test-update-copyright.sh: avoid false-positive failure
10243         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10244         around false positive failure on Cygwin/Windows.  The latter was
10245         matching erroneously-created files with names like
10246         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10247
10248 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10249
10250         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10251         * m4/valgrind-tests.m4: Check that the parameters that will be
10252         used works, not just a subset of them.  Reported by Bruno Haible
10253         <bruno@clisp.org>.
10254
10255 2011-11-24  Jim Meyering  <meyering@redhat.com>
10256
10257         test-stdalign.c: comment out long double tests
10258         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10259         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10260         error: '_Alignas' specifiers cannot reduce alignment of \
10261         'static_longdouble_alignas'.
10262
10263 2011-11-22  Jim Meyering  <meyering@redhat.com>
10264
10265         init.sh: make "compare /dev/null FILE" output more readable
10266         * tests/init.sh (compare_): Document the preferred order of arguments.
10267         (emit_diff_u_header_): New function.
10268         (compare_dev_null_): Emit a simulated diff, rather than just the
10269         contents of the unexpected file.  Suggestion from Bruno Haible.
10270
10271 2011-11-21  Jim Meyering  <meyering@redhat.com>
10272             Eric Blake  <eblake@redhat.com>
10273
10274         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10275         * tests/init.sh: Make our compare function slightly more portable.
10276         Reported by Bruno Haible in
10277         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10278
10279 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10280
10281         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10282         before using it, in code that ends up in config.h.
10283
10284 2011-11-20  Bruno Haible  <bruno@clisp.org>
10285
10286         getcwd: Work around getcwd bug on AIX 5..7.
10287         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10288         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10289         Use a different value for gl_cv_func_getcwd_path_max. Move the
10290         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10291         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10292         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10293         Define HAVE_MINIMALLY_WORKING_GETCWD.
10294         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10295         where it is not even minimally working, that is, on AIX.
10296         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10297         m4/getcwd-path-max.m4.
10298         (main): Update exit code computation.
10299         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10300         getcwd does not handle long file names.
10301
10302 2011-11-20  Bruno Haible  <bruno@clisp.org>
10303
10304         getcwd: Fix bug from 2009-09-10.
10305         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10306         like "no".
10307
10308 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10309
10310         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10311
10312 2011-11-20  Bruno Haible  <bruno@clisp.org>
10313
10314         fma tests: Avoid shadowing local variables.
10315         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10316         expected.
10317
10318 2011-11-20  Bruno Haible  <bruno@clisp.org>
10319
10320         copysignf tests: Fix.
10321         * tests/test-copysignf.c: Fix signature check.
10322
10323 2011-11-20  Bruno Haible  <bruno@clisp.org>
10324
10325         fma: Remove unused code.
10326         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10327         unused macros.
10328
10329 2011-11-20  Bruno Haible  <bruno@clisp.org>
10330
10331         sethostname: Fix doc about AIX.
10332         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10333         sethostname; it has it.
10334
10335         sethostname: Mention more portability problems.
10336         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10337         problem.
10338         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10339
10340 2011-11-19  Bruno Haible  <bruno@clisp.org>
10341
10342         Depend on module fcntl-h when AT_FDCWD is used.
10343         * modules/utimens (Depends-on): Add fcntl-h.
10344         * modules/areadlinkat (Depends-on): Likewise.
10345         * modules/areadlinkat-with-size (Depends-on): Likewise.
10346         * modules/faccessat (Depends-on): Likewise.
10347         * modules/fchmodat (Depends-on): Likewise.
10348         * modules/fchownat (Depends-on): Likewise.
10349         * modules/getcwd (Depends-on): Likewise.
10350         * modules/mkdirat (Depends-on): Likewise.
10351         * modules/mkfifoat (Depends-on): Likewise.
10352         * modules/readlinkat (Depends-on): Likewise.
10353         * modules/symlinkat (Depends-on): Likewise.
10354         * modules/dup2-tests (Depends-on): Likewise.
10355         * modules/fdutimensat-tests (Depends-on): Likewise.
10356         * modules/futimens-tests (Depends-on): Likewise.
10357
10358 2011-11-19  Bruno Haible  <bruno@clisp.org>
10359
10360         euidaccess: Update a comment.
10361         * lib/euidaccess.c: Update comment about platforms with faccessat.
10362
10363 2011-11-19  Bruno Haible  <bruno@clisp.org>
10364
10365         openat: Fix file list.
10366         * modules/openat (Files): Remove lib/at-func.c.
10367
10368 2011-11-19  Bruno Haible  <bruno@clisp.org>
10369
10370         fstatat: Simplify.
10371         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10372         gnulib should define rpl_fstatat, there is a
10373         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10374
10375 2011-11-19  Bruno Haible  <bruno@clisp.org>
10376
10377         Ensure 'inline' can be used in tests/test-utimens-common.h.
10378         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10379         * modules/futimens-tests (configure.ac): Likewise.
10380         * modules/utimens-tests (configure.ac): Likewise.
10381         * modules/utimensat-tests (configure.ac): Likewise.
10382
10383 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10384
10385         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10386         not hash_insert0.
10387         (hash_insert_if_absent): Doc fix.
10388
10389 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10390
10391         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10392
10393 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10394
10395         test-getcwd: disambiguate exit status
10396         * tests/test-getcwd.c (test_long_name): Return 0..7.
10397         (main): Exit with an unambiguous exit status.  The old
10398         code yielded a mysterious mixture of two failure codes.
10399
10400         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10401         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10402         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10403         rpl_fstatat or fstatat.  This should fix the other problem
10404         reported by Kai Habel in
10405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10406         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10408         and I reproduced it on a Solaris 8 host we still have in production.
10409
10410 2011-11-18  Jim Meyering  <meyering@redhat.com>
10411
10412         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10413         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10414         Add a sentence to the comment.
10415         (hash_insert0): New function that simply calls hash_insert_if_absent.
10416         * lib/hash.h (hash_insert_if_absent): Declare it.
10417         (hash_insert0): Add deprecation attribute.
10418         (_GL_ATTRIBUTE_DEPRECATED): Define.
10419         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10420         not hash_insert0.
10421         * NEWS: Mention it, even though it's not really an incompatible change.
10422
10423 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10424
10425         openat: avoid compilation failure due to lack of <errno.h> inclusion
10426         * lib/openat.c: Include <errno.h>.
10427
10428 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10429
10430         * modules/getcwd (Depends-on): Add fdopendir.
10431         This fixes one of the two problems reported by Kai Habel in
10432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10433
10434         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10435         stdalign problem reported by Ian Beckwith in
10436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10437         * modules/crypto/gc-arcfour (Depends-on):
10438         Depend conditionally on crypto/arcfour.
10439         * modules/crypto/gc-arctwo (Depends-on):
10440         Depend conditionally on crypto/arctwo.
10441         * modules/crypto/gc-des (Depends-on):
10442         Depend conditionally on crypto/des.
10443         * modules/crypto/gc-hmac-md5 (Depends-on):
10444         Depend conditionally on crypto/hmac-md5.
10445         * modules/crypto/gc-hmac-sha1 (Depends-on):
10446         Depend conditionally on crypto/hmac-sha1.
10447         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10448         * modules/crypto/gc-md4 (Depends-on):
10449         Depend conditionally on crypto/md4.
10450         * modules/crypto/gc-md5 (Depends-on):
10451         Depend conditionally on crypto/md5.
10452         * modules/crypto/gc-rijndael (Depends-on):
10453         Depend conditionally on crypto/rijndael.
10454         * modules/crypto/gc-sha1 (Depends-on):
10455         Depend conditionally on crypto/sha1.
10456         * modules/crypto/gc-arcfour:
10457         * modules/crypto/gc-arctwo:
10458         * modules/crypto/gc-des:
10459         * modules/crypto/gc-hmac-md5:
10460         * modules/crypto/gc-hmac-sha1:
10461         * modules/crypto/gc-md2:
10462         * modules/crypto/gc-md4:
10463         * modules/crypto/gc-md5:
10464         * modules/crypto/gc-rijndael:
10465         * modules/crypto/gc-sha1:
10466         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10467         now that the conditional dependencies do the work for us.
10468
10469 2011-11-17  Jim Meyering  <meyering@redhat.com>
10470
10471         tests: factor st_ctime-comparison out of two headers
10472         * tests/test-utimens-common.h (ctime_compare): Define.
10473         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10474         * tests/test-lutimens.h (test_lutimens): Likewise.
10475         * tests/test-utimens.h (test_utimens): Likewise.
10476
10477         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10478         Invoke the test program via an init.sh-using wrapper.
10479         * tests/test-getcwd.sh: New file.
10480         * modules/getcwd-tests (Files): Add it.
10481         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10482
10483 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10484
10485         gitlog-to-changelog: support multi-author commits.
10486         The FSF cares about keeping track of all authors of patches to its
10487         projects, but Git doesn't provide obvious support for multi-author
10488         changesets. Consensus seems to be forming around the use of extra
10489         Signed-off-by inspired lines in the log message formatted as
10490         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10491         multi-author commits between version control systems.
10492         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10493         log message and output in standard ChangeLog multi-author format.
10494         Reported by Peter Rosin <peda@lysator.liu.se>
10495
10496 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10497             Bruno Haible  <bruno@clisp.org>
10498
10499         Fix some modules' file list.
10500         * modules/fstatat (Files): Add m4/lstat.m4.
10501         * modules/openat (Files): Likewise.
10502         * modules/unlinkat (Files): Likewise.
10503
10504 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10505
10506         maint.mk: fix tight-scope.mk generation in VPATH builds.
10507         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10508         reference with $(srcdir) so that the file is found correctly even
10509         when running `make syntax-check' in a VPATH build.
10510
10511 2011-11-13  Bruno Haible  <bruno@clisp.org>
10512             Jim Meyering  <meyering@redhat.com>
10513
10514         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10515         * tests/init.sh (compare): Remove "No differences encountered" or
10516         synonymous output from the 'diff' program.
10517
10518 2011-11-13  Bruno Haible  <bruno@clisp.org>
10519
10520         Makefile: Tweak indentation.
10521         * Makefile: Use tab as first character in every line that contains rule
10522         commands.
10523
10524 2011-11-13  Bruno Haible  <bruno@clisp.org>
10525
10526         Syntax check for copyright statements.
10527         * check-copyright: New file.
10528         * Makefile (sc_check_copyright): New rule.
10529
10530 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10531
10532         * build-aux/git-version-gen: Add --prefix to configure the tag
10533         match string.
10534
10535 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10536
10537         * build-aux/git-version-gen: Add --help and --version.
10538
10539 2011-11-12  Jim Meyering  <meyering@redhat.com>
10540
10541         revamp the other test-exclude?.sh scripts to use init.sh, too
10542         * tests/test-exclude1.sh: Use init.sh.
10543         * tests/test-exclude2.sh: Likewise.
10544         * tests/test-exclude3.sh: Likewise.
10545         * tests/test-exclude4.sh: Likewise.
10546         * tests/test-exclude5.sh: Likewise.
10547         * tests/test-exclude6.sh: Likewise.
10548         * tests/test-exclude7.sh: Likewise.
10549         * tests/test-exclude8.sh: Likewise.
10550         * modules/exclude-tests (Files): List init.sh.
10551
10552         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10553         These shell scripts ignored failure of the binary test-exclude,
10554         so making the latter return 77 didn't cause them to be skipped.
10555         * tests/test-exclude5.sh: Exit with test-exclude's error status
10556         when that program fails.  Revamp to use init.sh.
10557         * tests/test-exclude2.sh: Likewise.
10558
10559         test-exclude: fix a typo
10560         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10561
10562 2011-11-11  Bruno Haible  <bruno@clisp.org>
10563
10564         obstack: Fix compilation error on MSVC 9.
10565         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10566
10567 2011-11-11  Jim Meyering  <meyering@redhat.com>
10568
10569         test-exclude: skip tests rather than failing on deficient systems
10570         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10571         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10572         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10573         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10574
10575 2011-11-10  Bruno Haible  <bruno@clisp.org>
10576
10577         ptsname_r test: Avoid gcc warning on glibc systems.
10578         * tests/test-ptsname_r.c (null_ptr): New function.
10579         (test_errors): Use it.
10580
10581 2011-11-10  Bruno Haible  <bruno@clisp.org>
10582
10583         ptsname_r: Avoid compilation error on OSF/1 5.1.
10584         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10586         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10587         function is not declared or incompatibly declared.
10588         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10589         * modules/ptsname_r (Depends-on, configure.ac): Update.
10590         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10591
10592 2011-11-10  Bruno Haible  <bruno@clisp.org>
10593
10594         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10595         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10596         When cross-compiling, guess yes on all platforms except AIX.
10597         Reported by Ludovic Courtès <ludo@gnu.org>.
10598
10599 2011-11-09  Bruno Haible  <bruno@clisp.org>
10600
10601         ptsname_r tests: Fix bugs.
10602         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10603         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10604
10605 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10606
10607         fstatat: work with cross-compilation
10608         Problem reported by Ludovic Courtès in
10609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10610         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10611         "cross-compiling" and assume the bug is present.  Replace
10612         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10613         an inverted sense, to be more conservative about our assumptions.
10614         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10615
10616 2011-11-09  Bruno Haible  <bruno@clisp.org>
10617
10618         Improve MODULES.html output.
10619         * modules/mkfifoat (Description): Use the word "function".
10620         * modules/readlinkat (Description): Likewise.
10621         * modules/symlinkat (Description): Likewise.
10622
10623 2011-11-09  Eric Blake  <eblake@redhat.com>
10624
10625         ptsname_r-tests: new test module
10626         * modules/ptsname_r-tests: New module.
10627         * tests/test-ptsname_r.c: New file.
10628
10629         ptsname_r: new module
10630         * modules/ptsname_r: New module.
10631         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10632         * lib/ptsname.c (__ptsname_r): Split...
10633         * lib/ptsname_r.c: ...into new file.
10634         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10635         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10636         * modules/stdlib (Makefile.am): Substitute witnesses.
10637         * lib/stdlib.in.h (ptsname_r): Declare it.
10638         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10639         * MODULES.html.sh (Misc): Likewise.
10640         * modules/ptsname (Depends-on): Alter dependency.
10641         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10642
10643 2011-11-09  Jim Meyering  <meyering@redhat.com>
10644
10645         announce-gen: be more concise when there's only one URL+tarball
10646         * build-aux/announce-gen (get_tool_versions): When you distribute
10647         only one type of tarball, combine the first two "Here are..."
10648         sections and make the key-checking grammar independent of
10649         how many tarballs there are.
10650
10651 2011-11-09  Eric Blake  <eblake@redhat.com>
10652
10653         openpty: provide a stub on mingw
10654         * lib/pty.in.h (includes): Provide forward declarations.
10655         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10656
10657         raise: fix mingw handling of SIGPIPE
10658         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10659
10660 2011-11-08  Bruno Haible  <bruno@clisp.org>
10661
10662         More conditional dependencies.
10663         * modules/faccessat (Depends-on): Add conditions.
10664         * modules/fchmodat (Depends-on): Likewise.
10665         * modules/fchownat (Depends-on): Likewise.
10666         * modules/fstatat (Depends-on): Likewise.
10667         * modules/mkfifoat (Depends-on): Likewise.
10668         * modules/readlinkat (Depends-on): Likewise.
10669         * modules/symlinkat (Depends-on): Likewise.
10670         * modules/unlinkat (Depends-on): Likewise.
10671         * modules/utimensat (Depends-on): Likewise.
10672         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10673         * modules/linkat (Depends-on): Refine the conditions.
10674         * modules/renameat (Depends-on): Likewise.
10675
10676 2011-11-08  Bruno Haible  <bruno@clisp.org>
10677
10678         faccessat: Move AC_LIBOBJ invocation to module description.
10679         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10680         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10681         invocation from here...
10682         * modules/faccessat (configure.ac): ... to here. Invoke
10683         gl_PREREQ_FACCESSAT.
10684
10685 2011-11-08  Bruno Haible  <bruno@clisp.org>
10686
10687         faccessat: Simplify autoconf macro.
10688         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10689         gl_FUNC_EUIDACCESS.
10690
10691 2011-11-08  Bruno Haible  <bruno@clisp.org>
10692
10693         renameat: Fix dependencies.
10694         * modules/renameat (Depends-on): Add stdbool.
10695
10696 2011-11-08  Bruno Haible  <bruno@clisp.org>
10697
10698         mkfifoat: Fix module description.
10699         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10700         not gl_UNISTD_MODULE_INDICATOR.
10701
10702 2011-11-08  Bruno Haible  <bruno@clisp.org>
10703
10704         fstatat: Remove unused dependency.
10705         * modules/fstatat (Depends-on): Remove fstat.
10706
10707 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10708
10709         GNUmakefile: behave when Makefile is missing.
10710         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10711
10712 2011-11-08  Bruno Haible  <bruno@clisp.org>
10713
10714         openat: Conditionalize dependencies.
10715         * lib/openat.c: Reduce the scope of some #includes.
10716         * modules/openat (Depends-on): Add conditions.
10717
10718 2011-11-07  Jim Meyering  <meyering@redhat.com>
10719
10720         maint.mk: extract GPG key ID without using a temporary file
10721         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10722         without using a temporary file.  Based on a suggestion from Werner Koch
10723         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10724
10725 2011-11-07  Eric Blake  <eblake@redhat.com>
10726
10727         grantpt: fix typo
10728         * lib/stdlib.in.h (grantpt): Check correct function.
10729
10730         maint.mk: silence new syntax check
10731         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10732
10733 2011-11-06  Bruno Haible  <bruno@clisp.org>
10734
10735         Doc about floating-point and math API.
10736         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10737         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10738
10739 2011-11-06  Bruno Haible  <bruno@clisp.org>
10740
10741         stdalign tests: Skip the test when compiled by Sun C.
10742         * tests/test-stdalign.c (main): Skip the test on Sun C.
10743
10744 2011-11-06  Bruno Haible  <bruno@clisp.org>
10745
10746         ansi-c++-opt: Complete the 2011-06-05 change.
10747         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10748         does not support namespaces, set the variable to "no", not to ":".
10749
10750 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10751
10752         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10753
10754 2011-11-06  Bruno Haible  <bruno@clisp.org>
10755
10756         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10757         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10758         (minus_zerol) [HP-UX]: New macro.
10759         (unary_minus) [HP-UX]: New function.
10760         (copysignl) [HP-UX]: Use unary_minus function.
10761
10762 2011-11-06  Bruno Haible  <bruno@clisp.org>
10763
10764         ldexp, ldexpf, ldexpl: Enhance tests.
10765         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10766         and tests/test-ldexpl.c.
10767         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10768         LDEXP, MIN_EXP, MAX_EXP): New macros.
10769         Include test-ldexp.h.
10770         (main): Just call test_function.
10771         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10772         infinity.h, nan.h.
10773         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10774         MAX_EXP): New macros.
10775         Include test-ldexp.h.
10776         (x, y): Remove variables.
10777         (main): Just call test_function.
10778         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10779         infinity.h, nan.h.
10780         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10781         MAX_EXP): New macros.
10782         Include test-ldexp.h.
10783         (x, y): Remove variables.
10784         (main): Just call test_function.
10785         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10786         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10787         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10788         (Depends-on): Add isnand-nolibm, signbit, float.
10789         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10790         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10791         (Depends-on): Add isnanf-nolibm, signbit, float.
10792
10793 2011-11-06  Bruno Haible  <bruno@clisp.org>
10794
10795         math tests: Cosmetics.
10796         * tests/test-math-c++.cc: Reorder declarations.
10797
10798 2011-11-05  Bruno Haible  <bruno@clisp.org>
10799
10800         fma*: Simplify test.
10801         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10802         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10803
10804         Tests for module 'fmal'.
10805         * modules/fmal-tests: New file.
10806         * tests/test-fmal1.c: New file.
10807         * tests/test-fmal2.c: New file.
10808
10809         New module 'fmal'.
10810         * lib/math.in.h (fmal): New declaration.
10811         * lib/fmal.c: New file.
10812         * m4/fmal.m4: New file.
10813         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10815         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10816         REPLACE_FMAL.
10817         * modules/fmal: New file.
10818         * doc/posix-functions/fmal.texi: Mention the new module and the various
10819         bugs.
10820
10821         Tests for module 'fmaf'.
10822         * modules/fmaf-tests: New file.
10823         * tests/test-fmaf1.c: New file.
10824         * tests/test-fmaf2.c: New file.
10825
10826         New module 'fmaf'.
10827         * lib/math.in.h (fmaf): New declaration.
10828         * lib/fmaf.c: New file.
10829         * m4/fmaf.m4: New file.
10830         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10832         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10833         REPLACE_FMAF.
10834         * modules/fmaf: New file.
10835         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10836         bugs.
10837
10838         Tests for module 'fma'.
10839         * modules/fma-tests: New file.
10840         * tests/test-fma1.c: New file.
10841         * tests/test-fma1.h: New file.
10842         * tests/test-fma2.c: New file.
10843         * tests/test-fma2.h: New file.
10844
10845         New module 'fma'.
10846         * lib/math.in.h (fma): New declaration.
10847         * lib/fma.c: New file.
10848         * m4/fma.m4: New file.
10849         * m4/fegetround.m4: New file.
10850         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10852         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10853         REPLACE_FMA.
10854         * modules/fma: New file.
10855         * doc/posix-functions/fma.texi: Mention the new module and the various
10856         bugs.
10857
10858         Extend gl_MATHFUNC.
10859         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10860         Support 'void' as argument type.
10861         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10862
10863 2011-11-05  Jim Meyering  <meyering@redhat.com>
10864
10865         maint.mk: also prohibit inclusion of dirent.h without use
10866         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10867
10868 2011-11-05  Bruno Haible  <bruno@clisp.org>
10869
10870         ldexpl tests: Avoid test failure on MSVC 9.
10871         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10872         value. Needed in order to enforce the conversion from a value greater
10873         than LDBL_MAX to Infinity.
10874
10875 2011-11-05  Bruno Haible  <bruno@clisp.org>
10876
10877         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10878         * modules/at-internal: New file, extracted from modules/openat.
10879         * modules/openat-h: New file.
10880         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10881         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10882         * modules/openat (Description): Add reference to POSIX function.
10883         (Files): Remove lib/openat.h, lib/openat-proc.c.
10884         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10885         intprops, unistd.
10886         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10887         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10888         gl_FCNTL_MODULE_INDICATOR.
10889         (Include): Remove unistd.h, openat.h.
10890         * modules/areadlinkat (Files): Add lib/at-func.c.
10891         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10892         openat-die, openat-h, save-cwd.
10893         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10894         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10895         openat-die, openat-h, save-cwd, unistd.
10896         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10897         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10898         openat-h, save-cwd. Remove fcntl-h, openat.
10899         * modules/fchmodat (Files): Remove lib/openat.h.
10900         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10901         openat, stdbool, unistd.
10902         * modules/fchownat (Files): Remove lib/openat.h.
10903         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10904         openat, stdbool, sys_stat.
10905         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10906         lib/openat-proc.c.
10907         (Depends-on): Add at-internal.
10908         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10909         * modules/fstatat (Files): Remove lib/openat.h.
10910         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10911         stdbool, unistd.
10912         * modules/fts (Depends-on): Add openat-h.
10913         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10914         openat.
10915         * modules/mkdirat (Files): Remove lib/openat.h.
10916         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10917         openat, stdbool, sys_stat.
10918         * modules/mkfifoat (Files): Add lib/at-func.c.
10919         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10920         openat-h, save-cwd. Remove fcntl-h, openat.
10921         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10922         * modules/readlinkat (Files): Add lib/at-func.c.
10923         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10924         openat-h, save-cwd. Remove fcntl-h, openat.
10925         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10926         openat.
10927         * modules/selinux-at (Files): Add lib/at-func.c.
10928         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10929         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10930         * modules/symlinkat (Files): Add lib/at-func.c.
10931         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10932         openat-h, save-cwd. Remove fcntl-h, openat.
10933         * modules/unlinkat (Files): Remove lib/openat.h.
10934         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10935         stdbool.
10936         * modules/utimensat (Files): Add lib/at-func.c.
10937         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10938         openat-die, openat-h, save-cwd.
10939         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10940         * modules/fdutimensat-tests (Depends-on): Add openat.
10941         * modules/fstatat-tests (Depends-on): Add openat-h.
10942         * modules/readlinkat-tests (Depends-on): Add openat.
10943         * modules/symlinkat-tests (Depends-on): Add openat.
10944
10945 2011-11-05  Bruno Haible  <bruno@clisp.org>
10946
10947         openat: Include <stdbool.h>.
10948         * lib/openat.c: Include <stdbool.h>.
10949
10950 2011-11-04  Bruno Haible  <bruno@clisp.org>
10951
10952         fchownat, renameat, unlinkat: Fix dependencies.
10953         * modules/fchownat (Depends-on): Add fstatat.
10954         * modules/renameat (Depends-on): Likewise.
10955         * modules/unlinkat (Depends-on): Likewise.
10956
10957 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10958
10959         openat: remove direct dependency on dirent
10960         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10961         and hasn't been needed ever since fdopendir was split into its own
10962         module on 2009-08-31.
10963         * modules/openat (Depends-on): Remove dirent.
10964
10965 2011-11-04  Bruno Haible  <bruno@clisp.org>
10966
10967         renameat: Optimize code size.
10968         * modules/renameat (configure.ac): Don't compile at-func2.c if
10969         REPLACE_RENAMEAT is 1.
10970
10971 2011-11-04  Bruno Haible  <bruno@clisp.org>
10972
10973         openat tests: Fix file list.
10974         * modules/openat-tests (Files): Add tests/test-open.h.
10975
10976 2011-11-04  Bruno Haible  <bruno@clisp.org>
10977
10978         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10979         * modules/fchmodat (Depends-on): Add openat-die.
10980         * modules/fchownat (Depends-on): Likewise.
10981         * modules/linkat (Depends-on): Likewise.
10982         * modules/renameat (Depends-on): Likewise.
10983         * modules/openat (Depends-on): Add dirent.
10984
10985 2011-11-04  Jim Meyering  <meyering@redhat.com>
10986
10987         at-func*.c: fix comments
10988         * lib/at-func2.c: Correct/improve first-line comment.
10989         * lib/at-func.c: Correct grammar in first-line comment.
10990
10991 2011-11-04  Bruno Haible  <bruno@clisp.org>
10992
10993         New module 'mkdirat', split off from module 'openat'.
10994         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10995         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10996         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10997         * modules/mkdirat: New file, extracted from modules/openat.
10998         * modules/openat (Files): Remove lib/mkdirat.c.
10999         (Depends-on): Remove mkdir.
11000         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11001         (Include): Remove <sys/stat.h>.
11002         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11003         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11004         tests/test-mkdir.h.
11005         (Depends-on): Remove ignore-value.
11006         (Makefile.am): Remove rules for test-mkdirat.
11007         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11008         of module 'openat'.
11009         * NEWS: Mention the change.
11010
11011 2011-11-04  Bruno Haible  <bruno@clisp.org>
11012
11013         closedir: Avoid warning on mingw.
11014         * lib/closedir.c: Include <unistd.h>.
11015
11016 2011-11-04  Bruno Haible  <bruno@clisp.org>
11017
11018         New module 'fstatat', split off from module 'openat'.
11019         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11020         defined.
11021         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11022         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11023         gl_FUNC_FSTATAT.
11024         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11025         * modules/fstatat: New file, extracted from modules/openat.
11026         * modules/openat (Files): Remove lib/fstatat.c.
11027         (Depends-on): Remove lstat.
11028         (configure.ac): Remove AC_LIBOBJ of fstatat.
11029         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11030         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11031         tests/test-lstat.h, tests/test-stat.h.
11032         (Depends-on): Remove getcwd-lgpl.
11033         (Makefile.am): Remove rules for test-fstatat.
11034         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11035         of module 'openat'.
11036         * NEWS: Mention the change.
11037         * modules/getcwd (Depends-on): Add fstatat.
11038         * modules/linkat (Depends-on): Likewise.
11039         * modules/mkfifoat-tests (Depends-on): Likewise.
11040         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11041
11042 2011-11-03  Bruno Haible  <bruno@clisp.org>
11043
11044         New module 'unlinkat', split off from module 'openat'.
11045         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11047         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11048         * modules/unlinkat: New file, extracted from modules/openat. Correct
11049         the dependency conditions.
11050         * modules/openat (Files): Remove lib/unlinkat.c.
11051         (Depends-on): Remove rmdir, unlink.
11052         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11053         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11054         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11055         tests/test-rmdir.h, tests/test-unlink.h.
11056         (Depends-on): Remove unlinkdir.
11057         (Makefile.am): Remove rules for test-unlinkat.
11058         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11059         of module 'openat'.
11060         * NEWS: Mention the change.
11061         * modules/linkat-tests (Depends-on): Add unlinkat.
11062         * modules/mkfifoat-tests (Depends-on): Likewise.
11063         * modules/readlinkat-tests (Depends-on): Likewise.
11064
11065 2011-11-02  Bruno Haible  <bruno@clisp.org>
11066
11067         New module 'fchmodat', split off from module 'openat'.
11068         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11069         defined.
11070         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11071         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11072         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11073         * modules/fchmodat: New file, extracted from modules/openat.
11074         * modules/openat (Files): Remove lib/fchmodat.c.
11075         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11076         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11077         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11078         (Makefile.am): Remove rules for test-fchmodat.
11079         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11080         of module 'openat'.
11081         * NEWS: Mention the change.
11082
11083 2011-11-02  Jim Meyering  <meyering@redhat.com>
11084
11085         putenv: indent #definition of "environ" to placate cppi
11086         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11087
11088         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11089         Git logs are often treated as immutable, because editing them
11090         changes the SHA1 checksums of all descendants.  Thus, errors in
11091         git logs tend to stay there forever.  However, when we generate
11092         a ChangeLog file -- typically for distribution -- from that git log,
11093         we can actually make corrections in the generated file.  The key
11094         lies in recording in machine-readable/applicable form the desired
11095         corrections.  See --help for description and an example.
11096         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11097         (usage): Describe it; alphabetize option descriptions.
11098         (main): Honor the new option, carefully.
11099
11100 2011-11-01  Jim Meyering  <meyering@redhat.com>
11101
11102         gitlog-to-changelog: avoid an infloop
11103         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11104         that ends up being empty.
11105
11106 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11107
11108         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11109         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11110         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11111         contains (possibly-quoted) backslashes.  This should avoid
11112         all-too-common shell bugs if COMPLICATED contains backslashes in
11113         the "wrong" places.  Reported by David Evans in
11114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11115         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11116         because we want ASCII ranges.  Is there some reason we don't use
11117         the C locale everywhere in this script?
11118         (func_module, top level): Avoid unwanted pathname expansion when
11119         $repo_url_prefix or $repo_url_suffix_repl contain shell
11120         metacharacters like '?' and '*'.
11121
11122 2011-11-01  Bruno Haible  <bruno@clisp.org>
11123
11124         fchownat: Improve description.
11125         * modules/fchownat (Description): Add link to function.
11126
11127 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11130         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11132         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11133
11134 2011-11-01  Bruno Haible  <bruno@clisp.org>
11135
11136         alignof: Avoid collision with stdalign module.
11137         * lib/alignof.h (alignof): Remove macro.
11138         * NEWS: Mention the change.
11139         Reported by Paul Eggert.
11140
11141 2011-11-01  Bruno Haible  <bruno@clisp.org>
11142
11143         New module 'fchownat', split off from module 'openat'.
11144         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11145         defined.
11146         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11147         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11148         invoke gl_FUNC_FCHOWNAT.
11149         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11150         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11151         * modules/fchownat: New file, extracted from modules/openat.
11152         * modules/openat (Files): Remove lib/fchownat.c.
11153         (Depends-on): Remove lchown.
11154         (configure.ac): Remove AC_LIBOBJ of fchownat.
11155         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11156         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11157         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11158         (Depends-on): Remove mgetgroups, usleep, stat-time.
11159         (configure.ac): Remove test for getegid.
11160         (Makefile.am): Remove rules for test-fchownat.
11161         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11162         of module 'openat'.
11163         * NEWS: Mention the change.
11164
11165 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11166
11167         stdalign: port better to MSVC and to Sun C 5.11
11168         This fixes some of the problems reported by Bruno Haible in
11169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11170         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11171         shortcomings of MSVC and of Sun C 5.11.
11172         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11173         around __declspec arg.
11174         * modules/stdalign-tests (Files): Add tests/macros.h.
11175         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11176         Include macros.h, for ASSERT.
11177         (DECLARE_ALIGNED): Remove.
11178         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11179         to catch bug), and to 1 if not (simplifies the rest of the code).
11180         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11181         (CHECK_AUTO): Remove.
11182         (CHECK_ALIGNED): Check only the alignment of the static vars,
11183         since auto var alignment isn't supported by Sun C 5.11.
11184         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11185         ASSERT failures are easier to diagnose.
11186
11187 2011-10-31  Bruno Haible  <bruno@clisp.org>
11188
11189         doc about some IRIX 5.3 problems.
11190         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11191         on IRIX 5.3.
11192         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11193         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11194         5.3.
11195         * doc/posix-functions/grantpt.texi: Likewise.
11196         * doc/posix-functions/unlockpt.texi: Likewise.
11197         * doc/posix-functions/lgamma.texi: Likewise.
11198         * doc/posix-functions/nextafter.texi: Likewise.
11199         * doc/posix-functions/remainder.texi: Likewise.
11200         * doc/posix-functions/select.texi: Mention misplaced declaration on
11201         IRIX 5.3.
11202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11203
11204 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11205
11206         gitlog-to-changelog: fix git-log invocation.
11207         git-log mishandles date strings before 1970-01-01 UTC, and there is
11208         no use to specify --since=1970-01-01 by default anyway.
11209         * build-aux/gitlog-to-changelog: By default, when no --since option
11210         was given, do not specify explicit --since option to git-log.
11211
11212 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11213
11214         gitlog-to-changelog: new option --append-dot.
11215         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11216         first non-blank line of each commit message terminated with a dot.
11217
11218 2011-10-30  Bruno Haible  <bruno@clisp.org>
11219
11220         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11221         * lib/ffsl.h: Include <config.h>.
11222         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11223
11224 2011-10-30  Jim Meyering  <meyering@redhat.com>
11225
11226         GNUmakefile: reenable "make syntax-check" for most projects
11227         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11228         build-aux variable", "syntax-check" would do nothing but succeed with
11229         the "No version control files detected..." diagnostic (unless you
11230         happened to override _build-aux via cfg.mk).
11231         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11232         to precede inclusion of maint.mk.  Otherwise, these variables would
11233         be used undefined in any project that does not override the default.
11234
11235 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11236
11237         gitlog-to-changelog: treat a message with only blank lines as empty.
11238         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11239         trailing blank lines before the code that issues a warning about an
11240         empty commit message.
11241
11242 2011-10-30  Jim Meyering  <meyering@redhat.com>
11243
11244         test-parse-datetime.c: avoid new DST-related false positive test failure
11245         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11246         based on the time/date we'll convert, not the current time.
11247         Otherwise, the moment we cross a DST boundary like today's in
11248         Europe, (CEST to CET), that offset ends up being one hour off.
11249
11250 2011-10-27  Bruno Haible  <bruno@clisp.org>
11251
11252         fstat: Tweak documentation.
11253         * modules/fstat (Description): More precise description.
11254
11255 2011-10-27  Bruno Haible  <bruno@clisp.org>
11256
11257         Update documentation regarding 'largefile' module.
11258         * doc/posix-functions/fstat.texi: Tweak wording.
11259         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11260         problems with huge directories and/or small ino_t types.
11261         * doc/posix-functions/readdir.texi: Likewise.
11262         * doc/posix-functions/rewinddir.texi: Likewise.
11263
11264 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11265
11266         maint.mk: don't maintain a second build-aux variable.
11267         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11268         depends on GNUmakefile, which already maintains a cfg.mk
11269         overridable $(_build-aux) for projects with a non-standard
11270         build-aux directory location, although without the $(srcdir)
11271         prefix.  Use that variable consistently instead of introducing a
11272         second one.  Adjust all call sites.
11273
11274 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11275
11276         Add stdalign module and use it in other modules.
11277         This is based on a previous proposal by Bruno Haible
11278         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11279
11280         stdalign: new module
11281         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11282         * modules/stdalign: New files.
11283         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11284         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11285
11286         stdalign-tests: new module
11287         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11288
11289         argp: use stdalign
11290         * lib/argp-parse.c: Include <stdalign.h>.
11291         (alignof): Remove.
11292         * modules/argp (Depends-on): Add stdalign.
11293
11294         crypto libraries: use stdalign
11295         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11296         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11297         Do not include <stdlib.h> twice, in md4.c.
11298         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11299         because we are accessing a pointer's bit-pattern, not a size.
11300         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11301         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11302         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11303         * modules/crypto/sha512: Likewise.
11304
11305         sys_socket: use stdalign, not alignof
11306         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11307         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11308
11309 2011-10-27  Bruno Haible  <bruno@clisp.org>
11310
11311         raise test: Avoid a test failure on Linux/MIPS.
11312         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11313         because 99 is a valid signal on Linux/MIPS.
11314
11315 2011-10-27  Bruno Haible  <bruno@clisp.org>
11316
11317         nonblocking tests: Fix test failure on Linux/MIPS.
11318         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11319         Set to 270000.
11320
11321 2011-10-27  Bruno Haible  <bruno@clisp.org>
11322
11323         utimensat: Work around problem on Linux/hppa.
11324         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11325         values.
11326         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11327
11328 2011-10-25  Jim Meyering  <meyering@redhat.com>
11329
11330         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11331         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11332         after symbols like NULL, size_t, etc.
11333         Reported by Alfred M. Szmidt.
11334
11335         maint.mk: exempt ENODATA from a syntax-check rule
11336         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11337         from the sc_prohibit_always-defined_macros syntax-check rule.
11338         Add a comment.  See this for more details:
11339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11340
11341 2011-10-23  Jim Meyering  <meyering@redhat.com>
11342
11343         fts: close parent dir FD before returning from post-traversal fts_read
11344         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11345         unlink A, even though an FD open on A remained.  This is suboptimal
11346         (holding a file descriptor open longer than needed), but otherwise not
11347         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11348         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11349         that represents a real problem: it causes the removal of A to fail
11350         with e.g., "rm: cannot remove `A': Device or resource busy"
11351
11352         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11353         directory file descriptors.  After completing the final, FTS_DP,
11354         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11355         cache, but then proceeded to add a new FD to it via the subsequent
11356         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11357         final file descriptor would be closed only via fts_close's call to
11358         fd_ring_clear.  Now, it is usually closed earlier, via the final
11359         FTS_DP-returning fts_read call.
11360         * lib/fts.c (restore_initial_cwd): New function, converted from
11361         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11362         Update callers.
11363         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11364         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11365
11366 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11367             Bruno Haible  <bruno@clisp.org>
11368             Jim Meyering  <jim@meyering.net>
11369
11370         readme-release: improve safety of release prep instructions.
11371         * README-release: Don't git pull all branches when only master
11372         is needed for the release process.
11373         Run make maintainer-clean before changing trees and merging.
11374         Don't try to run ./configure right after git pull in case files
11375         that influence the bootstrap process have changed, move the
11376         ./configure step to after running ./bootstrap.
11377         Don't bootstrap "one last time"... it's the first time!
11378
11379 2011-10-22  Bruno Haible  <bruno@clisp.org>
11380
11381         errno, strerror-override: Support for MSVC 10.
11382         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11383         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11384         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11385         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11386         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11387         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11388         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11389         Assign values compatible with MSVC 10.
11390         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11391         New macros.
11392         (GNULIB_defined_EWINSOCK): New macro.
11393         * lib/strerror-override.c (strerror_override): Update accordingly.
11394         * lib/strerror-override.h: Likewise.
11395         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11396         longer equal to the corresponding errno value.
11397         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11398
11399 2011-10-22  Bruno Haible  <bruno@clisp.org>
11400
11401         perror: Recognize when test program crashes.
11402         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11403         strerror, set gl_cv_func_perror_works to no.
11404         Reported by Daniel Richard G. <skunk@iskunk.org>.
11405
11406         perror: Fix indentation.
11407         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11408
11409 2011-10-22  Bruno Haible  <bruno@clisp.org>
11410
11411         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11412         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11413         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11414         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11415         functions, not as a macro.
11416         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11417         macros.
11418         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11419         absence of macro.
11420         Suggested by Eric Blake.
11421         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11422
11423 2011-10-21  Bruno Haible  <bruno@clisp.org>
11424
11425         relocatable-prog-wrapper: Don't leave object files behind.
11426         * build-aux/install-reloc: Re-synchronize list of .o files to be
11427         removed with list of compilation units.
11428
11429 2011-10-20  Bruno Haible  <bruno@clisp.org>
11430
11431         openpty, posix_openpt: Remove code duplication.
11432         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11433         * lib/openpty.c: Include <stdlib.h>.
11434         (openpty): Use posix_openpt on all platforms except IRIX.
11435         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11436
11437 2011-10-20  Bruno Haible  <bruno@clisp.org>
11438
11439         unlockpt: Detect invalid argument.
11440         * lib/unlockpt.c: Include <fcntl.h>.
11441         (unlockpt): Check whether fd is valid, using fcntl().
11442         * modules/unlockpt (Depends-on): Add fcntl-h.
11443
11444 2011-10-20  Bruno Haible  <bruno@clisp.org>
11445
11446         openpty: Avoid compilation error on AIX 6.1.
11447         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11448
11449 2011-10-20  Bruno Haible  <bruno@clisp.org>
11450
11451         posix_openpt: Support for OpenBSD.
11452         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11453         (posix_openpt) [OpenBSD]: New code.
11454         * lib/grantpt.c: Include <fcntl.h>.
11455         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11456         * modules/grantpt (Depends-on): Add fcntl-h.
11457
11458 2011-10-20  Bruno Haible  <bruno@clisp.org>
11459
11460         posix_openpt test: Coding style.
11461         * tests/test-posix_openpt.c: Use GNU coding style.
11462
11463 2011-10-20  Bruno Haible  <bruno@clisp.org>
11464
11465         grantpt: Support --avoid=pt_chown.
11466         * modules/grantpt (Files): Add lib/pty-private.h.
11467
11468 2011-10-20  Bruno Haible  <bruno@clisp.org>
11469
11470         posix_openpt: Fix autoconf macro.
11471         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11472         unneeded check for _getpty.
11473
11474 2011-10-20  Bruno Haible  <bruno@clisp.org>
11475
11476         openpty: Update comments.
11477         * lib/openpty.c: Add comments about Minix.
11478
11479 2011-10-19  Eric Blake  <eblake@redhat.com>
11480
11481         openpty: relax license
11482         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11483
11484         pt_chown: use configmake to simplify build
11485         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11486
11487         ptsname and others: relax license
11488         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11489         * modules/unlockpt (License): Likewise.
11490         * modules/pt_chown (License): Likewise.
11491         * modules/ptsname (License): Likewise.
11492         * modules/ttyname_r (License): Likewise.
11493
11494 2011-10-19  Jim Meyering  <meyering@redhat.com>
11495
11496         posix_openpt: remove spurious #endif
11497         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11498
11499 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11500
11501         maint.mk: Respect $(build_aux) in web-manual rule.
11502         * top/maint.mk (web-manual): Find gen-announce script in user's
11503         $(build_aux) directory instead of hard-coding 'build-aux'.
11504
11505 2011-10-19  Bruno Haible  <bruno@clisp.org>
11506
11507         posix_openpt: Fix compilation error.
11508         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11509         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11510         Mention the openpty module as an alternative.
11511
11512 2011-10-19  Bruno Haible  <bruno@clisp.org>
11513
11514         Support for old NeXTstep 3.3 frexp().
11515         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11516         execution time of the test to 5 seconds.
11517         Reported by Daniel Richard G. <skunk@iskunk.org>.
11518
11519 2011-10-19  Bruno Haible  <bruno@clisp.org>
11520
11521         Support for old NeXTstep 3.3 sed.
11522         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11523         part, use /.../, not \|...|. Escape periods in the header file name.
11524         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11525         Reported by Daniel Richard G. <skunk@iskunk.org>.
11526
11527 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11528
11529         Support for old NeXTstep 3.3 gcc.
11530         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11531         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11532         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11533         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11534         * lib/regex.h (_Restrict_arr_): Likewise.
11535         * lib/regex_internal.h (re_token_t): Likewise.
11536         * lib/regexec.c (check_node_accept_bytes): Likewise.
11537         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11538
11539 2011-10-18  Eric Blake  <eblake@redhat.com>
11540
11541         posix_openpt: new module
11542         * modules/posix_openpt: New module.
11543         * m4/posix_openpt.m4: New file.
11544         * lib/posix_openpt.c: Likewise.
11545         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11546         (gl_STDLIB_H_DEFAULTS): Set defaults.
11547         * modules/stdlib (Makefile.am): Substitute macros.
11548         * lib/stdlib.in.h (posix_openpt): Declare.
11549         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11550         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11551         * modules/posix_openpt-tests: New test module.
11552         * tests/test-posix_openpt.c: New test.
11553
11554 2011-10-15  Bruno Haible  <bruno@clisp.org>
11555
11556         xstrtoll: Fix compilation failure.
11557         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11558         from lib/strtol.c.
11559         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11560         some platforms.
11561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11562
11563 2011-10-15  Bruno Haible  <bruno@clisp.org>
11564
11565         vasnprintf: Optimize bit search operation.
11566         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11568         gl_DOUBLE_EXPONENT_LOCATION.
11569         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11570         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11571         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11572         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11573         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11574         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11575         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11576         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11577         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11578
11579 2011-10-15  Bruno Haible  <bruno@clisp.org>
11580
11581         vasnprintf: Fix comments.
11582         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11583
11584 2011-10-14  Bruno Haible  <bruno@clisp.org>
11585
11586         Tests for module 'integer_length_ll'.
11587         * modules/integer_length_ll-tests: New file.
11588         * tests/test-integer_length_ll.c: New file.
11589
11590         New module 'integer_length_ll'.
11591         * lib/integer_length_ll.c: New file.
11592         * modules/integer_length_ll: New file.
11593
11594 2011-10-14  Bruno Haible  <bruno@clisp.org>
11595
11596         Tests for module 'integer_length_l'.
11597         * modules/integer_length_l-tests: New file.
11598         * tests/test-integer_length_l.c: New file.
11599
11600         New module 'integer_length_l'.
11601         * lib/integer_length_l.c: New file.
11602         * modules/integer_length_l: New file.
11603
11604 2011-10-14  Bruno Haible  <bruno@clisp.org>
11605
11606         Tests for module 'integer_length'.
11607         * modules/integer_length-tests: New file.
11608         * tests/test-integer_length.c: New file.
11609
11610         New module 'integer_length'.
11611         * lib/integer_length.h: New file.
11612         * lib/integer_length.c: New file.
11613         * modules/integer_length: New file.
11614
11615 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11616
11617         popen: Fix dependency conditions.
11618         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11619
11620 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11621
11622         perror: Fix autoconf test.
11623         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11624         <stdlib.h> and <string.h>.
11625
11626 2011-10-14  Bruno Haible  <bruno@clisp.org>
11627
11628         ffsl: Optimize on 64-bit platforms.
11629         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11630         unrolling.
11631
11632 2011-10-13  Bruno Haible  <bruno@clisp.org>
11633
11634         ffsl: Optimize on 32-bit platforms.
11635         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11636         use ffs() without a loop.
11637
11638         ffsl, ffsll: Optimize for GCC.
11639         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11640         * lib/ffsl.c (GCC_BUILTIN): New macro.
11641         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11642
11643 2011-10-13  Bruno Haible  <bruno@clisp.org>
11644
11645         ffs, bcopy, memset: Support symbol renaming via config.h.
11646         * lib/ffs.c: Include <config.h>.
11647         * lib/bcopy.c: Likewise.
11648         * lib/memset.c: Likewise.
11649
11650 2011-10-10  Bruno Haible  <bruno@clisp.org>
11651
11652         atanl: Simplify for platforms where 'long double' == 'double'.
11653         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11654         alternative implementation.
11655         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11656         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11657         * modules/atanl (Depends-on): Add atan. Update conditions.
11658
11659 2011-10-10  Bruno Haible  <bruno@clisp.org>
11660
11661         acosl: Simplify for platforms where 'long double' == 'double'.
11662         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11663         alternative implementation.
11664         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11665         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11666         * modules/acosl (Depends-on): Add acos. Update conditions.
11667
11668 2011-10-10  Bruno Haible  <bruno@clisp.org>
11669
11670         asinl: Simplify for platforms where 'long double' == 'double'.
11671         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11672         alternative implementation.
11673         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11674         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11675         * modules/asinl (Depends-on): Add asin. Update conditions.
11676
11677 2011-10-10  Bruno Haible  <bruno@clisp.org>
11678
11679         tanl: Simplify for platforms where 'long double' == 'double'.
11680         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11681         implementation.
11682         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11683         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11684         * modules/tanl (Depends-on): Add tan. Update conditions.
11685         (configure.ac): Don't compile trigl.c if
11686         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11687
11688 2011-10-10  Bruno Haible  <bruno@clisp.org>
11689
11690         cosl: Simplify for platforms where 'long double' == 'double'.
11691         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11692         implementation.
11693         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11694         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11695         * modules/cosl (Depends-on): Add cos. Update conditions.
11696         (configure.ac): Don't compile sincosl.c and trigl.c if
11697         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11698
11699 2011-10-10  Bruno Haible  <bruno@clisp.org>
11700
11701         sinl: Simplify for platforms where 'long double' == 'double'.
11702         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11703         implementation.
11704         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11705         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11706         * modules/sinl (Depends-on): Add sin. Update conditions.
11707         (configure.ac): Don't compile sincosl.c and trigl.c if
11708         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11709
11710 2011-10-10  Bruno Haible  <bruno@clisp.org>
11711
11712         logl: Simplify for platforms where 'long double' == 'double'.
11713         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11714         implementation.
11715         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11716         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11717         * modules/logl (Depends-on): Add log. Update conditions.
11718
11719 2011-10-10  Bruno Haible  <bruno@clisp.org>
11720
11721         expl: Simplify for platforms where 'long double' == 'double'.
11722         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11723         implementation.
11724         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11725         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11726         * modules/expl (Depends-on): Add exp. Update conditions.
11727
11728 2011-10-10  Bruno Haible  <bruno@clisp.org>
11729
11730         sqrtl: Simplify for platforms where 'long double' == 'double'.
11731         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11732         alternative implementation.
11733         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11734         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11735         * modules/sqrtl (Depends-on): Update conditions.
11736
11737 2011-10-10  Bruno Haible  <bruno@clisp.org>
11738
11739         ldexpl: Simplify for platforms where 'long double' == 'double'.
11740         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11741         alternative implementation.
11742         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11743         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11744         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11745
11746 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11747
11748         ffsll: set correct witness
11749         * modules/ffsll (configure.ac): Fix typo.
11750
11751 2011-10-10  Bruno Haible  <bruno@clisp.org>
11752
11753         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11754         * lib/printf-frexpl.c: Include <config.h>.
11755         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11756         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11757         second time.
11758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11759         gl_LONG_DOUBLE_VS_DOUBLE.
11760         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11761         conditions.
11762
11763 2011-10-10  Bruno Haible  <bruno@clisp.org>
11764
11765         frexpl: Simplify for platforms where 'long double' == 'double'.
11766         * lib/frexpl.c: Include <config.h>.
11767         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11768         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11769         time.
11770         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11771         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11772         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11773         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11774         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11775         conditions.
11776
11777 2011-10-10  Jim Meyering  <meyering@redhat.com>
11778
11779         test-renameat: don't leave behind a temporary file
11780         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11781           ERROR: files left in build directory after distclean:
11782           ./gltests/test-renameat.too
11783           make[1]: *** [distcleancheck] Error 1
11784         Reported by Tom G. Christensen.
11785
11786 2011-10-09  Bruno Haible  <bruno@clisp.org>
11787
11788         rint: Determine RINT_LIBM correctly on AIX 7.
11789         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11790         directly, not only through a function pointer. Also accept an optional
11791         4th argument with extra code.
11792         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11793         rintf() call by gcc when optimizing.
11794
11795         mathfunc.m4: Refactor.
11796         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11797         m4 variable.
11798
11799 2011-10-09  Bruno Haible  <bruno@clisp.org>
11800
11801         rintl: Simplify for platforms where 'long double' == 'double'.
11802         * lib/rintl.c: Include <config.h>.
11803         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11804         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11805         time.
11806         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11807         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11808         * modules/rintl (Depends-on): Add rint. Update conditions.
11809
11810 2011-10-09  Bruno Haible  <bruno@clisp.org>
11811
11812         roundl: Simplify for platforms where 'long double' == 'double'.
11813         * lib/roundl.c: Include <config.h>.
11814         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11815         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11816         time.
11817         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11818         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11819         * modules/roundl (Depends-on): Add round. Update conditions.
11820
11821 2011-10-09  Bruno Haible  <bruno@clisp.org>
11822
11823         truncl: Simplify for platforms where 'long double' == 'double'.
11824         * lib/truncl.c: Include <config.h>.
11825         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11826         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11827         time.
11828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11829         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11830         * modules/truncl (Depends-on): Add trunc. Update conditions.
11831
11832 2011-10-09  Bruno Haible  <bruno@clisp.org>
11833
11834         ceill: Simplify for platforms where 'long double' == 'double'.
11835         * lib/ceill.c: Include <config.h>.
11836         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11837         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11838         time.
11839         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11840         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11841         * modules/ceill (Depends-on): Add ceil. Update conditions.
11842
11843 2011-10-09  Bruno Haible  <bruno@clisp.org>
11844
11845         floorl: Simplify for platforms where 'long double' == 'double'.
11846         * lib/floorl.c: Include <config.h>.
11847         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11848         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11849         time.
11850         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11851         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11852         * modules/floorl (Depends-on): Add floor. Update conditions.
11853
11854 2011-10-09  Bruno Haible  <bruno@clisp.org>
11855
11856         rint: Fix ordering constraints.
11857         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11858         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11859         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11860
11861 2011-10-09  Bruno Haible  <bruno@clisp.org>
11862
11863         copysignl: Simplify for platforms where 'long double' == 'double'.
11864         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11865         alternative.
11866         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11867         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11868         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11869
11870 2011-10-09  Bruno Haible  <bruno@clisp.org>
11871
11872         Tests for module 'rintl'.
11873         * modules/rintl-tests: New file.
11874         * tests/test-rintl.c: New file.
11875
11876         New module 'rintl'.
11877         * lib/math.in.h (rintl): New declaration.
11878         * lib/rintl.c: New file.
11879         * m4/rintl.m4: New file.
11880         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11882         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11883         * modules/rintl: New file.
11884         * tests/test-math-c++.cc: Check the declaration of rintl.
11885         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11886         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11887         * doc/posix-functions/rintl.texi: Mention the new module.
11888
11889 2011-10-09  Bruno Haible  <bruno@clisp.org>
11890
11891         Tests for module 'rintf'.
11892         * modules/rintf-tests: New file.
11893         * tests/test-rintf.c: New file.
11894
11895         New module 'rintf'.
11896         * lib/math.in.h (rintf): New declaration.
11897         * lib/rintf.c: New file.
11898         * m4/rintf.m4: New file.
11899         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11901         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11902         * modules/rintf: New file.
11903         * tests/test-math-c++.cc: Check the declaration of rintf.
11904         * doc/posix-functions/rintf.texi: Mention the new module.
11905
11906 2011-10-09  Bruno Haible  <bruno@clisp.org>
11907
11908         rint: Support for MSVC.
11909         * lib/math.in.h (rint): New declaration.
11910         * lib/rint.c: New file.
11911         * m4/rint.m4: New file.
11912         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11914         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11915         * modules/rint (Description): Fix.
11916         (Files): Add lib/rint.c, m4/rint.m4.
11917         (Depends-on): Add math.
11918         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11919         gl_MATH_MODULE_INDICATOR.
11920         * tests/test-math-c++.cc: Check the declaration of rint.
11921         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11922         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11923         * doc/posix-functions/rint.texi: Mention the replacement provided by
11924         the module.
11925
11926         rint tests: More tests.
11927         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11928         minus-zero.h, infinity.h, nan.h.
11929         (main): Skip the test if the current rounding mode is not standard. Add
11930         tests for negative numbers, minus zero, infinity, NaN.
11931         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11932         tests/nan.h.
11933         (Depends-on): Add isnand-nolibm.
11934
11935 2011-10-09  Bruno Haible  <bruno@clisp.org>
11936
11937         Tests for module 'copysignl'.
11938         * modules/copysignl-tests: New file.
11939         * tests/test-copysignl.c: New file.
11940
11941         New module 'copysignl'.
11942         * lib/math.in.h (copysignl): New declaration.
11943         * lib/copysignl.c: New file.
11944         * m4/copysignl.m4: New file.
11945         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11947         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11948         HAVE_COPYSIGNL.
11949         * modules/copysignl: New file.
11950         * tests/test-math-c++.cc: Check the declaration of copysignl.
11951         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11952         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11953         * doc/posix-functions/copysignl.texi: Mention the new module.
11954
11955 2011-10-09  Bruno Haible  <bruno@clisp.org>
11956
11957         Tests for module 'copysignf'.
11958         * modules/copysignf-tests: New file.
11959         * tests/test-copysignf.c: New file.
11960
11961         New module 'copysignf'.
11962         * lib/math.in.h (copysignf): New declaration.
11963         * lib/copysignf.c: New file.
11964         * m4/copysignf.m4: New file.
11965         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11967         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11968         HAVE_COPYSIGNF.
11969         * modules/copysignf: New file.
11970         * tests/test-math-c++.cc: Check the declaration of copysignf.
11971         * doc/posix-functions/copysignf.texi: Mention the new module.
11972
11973 2011-10-09  Bruno Haible  <bruno@clisp.org>
11974
11975         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11976         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11977         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11978         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11980         gl_SIGNAL_H_DEFAULTS.
11981
11982 2011-10-09  Bruno Haible  <bruno@clisp.org>
11983
11984         poll: Make macro safer.
11985         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11986         ac_cv_header_poll_h is not set.
11987
11988 2011-10-09  Bruno Haible  <bruno@clisp.org>
11989
11990         copysign: Provide replacement.
11991         * lib/math.in.h (copysign): New declaration.
11992         * lib/copysign.c: New file.
11993         * m4/copysign.m4: New file.
11994         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11996         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11997         HAVE_COPYSIGN.
11998         * modules/copysign (Description): Clarify.
11999         (Files): Add lib/copysign.c, m4/copysign.m4.
12000         (Depends-on): Add math, signbit.
12001         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12002         gl_MATH_MODULE_INDICATOR.
12003         * tests/test-math-c++.cc: Check the declaration of copysign.
12004         * doc/posix-functions/copysign.texi: Mention the effects of the module
12005         on Minix and MSVC.
12006
12007 2011-10-09  Bruno Haible  <bruno@clisp.org>
12008
12009         isinf: Ensure macro on AIX 5.1.
12010         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12011         macro.
12012         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12013
12014 2011-10-09  Bruno Haible  <bruno@clisp.org>
12015
12016         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12017         * modules/snprintf-posix-tests (configure.ac): Require
12018         gl_LONG_DOUBLE_VS_DOUBLE.
12019         * modules/sprintf-posix-tests (configure.ac): Likewise.
12020         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12021         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12022         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12023         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12024         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12025         tests on platforms where 'long double' is the same as 'double'.
12026         * tests/test-sprintf-posix.h (test_function): Likewise.
12027         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12028         * tests/test-vasprintf-posix.c (test_function): Likewise.
12029
12030         *printf: Fix for platforms where 'long double' == 'double'.
12031         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12032         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12033         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12034         * modules/fprintf-posix (Files): Likewise.
12035         * modules/obstack-printf-posix (Files): Likewise.
12036         * modules/snprintf-posix (Files): Likewise.
12037         * modules/sprintf-posix (Files): Likewise.
12038         * modules/vasnprintf (Files): Likewise.
12039         * modules/vasnprintf-posix (Files): Likewise.
12040         * modules/vasprintf-posix (Files): Likewise.
12041         * modules/vdprintf-posix (Files): Likewise.
12042         * modules/vfprintf-posix (Files): Likewise.
12043         * modules/vsnprintf-posix (Files): Likewise.
12044         * modules/vsprintf-posix (Files): Likewise.
12045         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12046         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12047         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12048         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12049         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12050         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12051         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12052
12053         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12054         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12055         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12056         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12057         'long double'.
12058         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12059
12060         isinf: Fix for platforms where 'long double' == 'double'.
12061         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12062         Don't blindly assume 80-bit 'long double'.
12063
12064         isfinite: Fix for platforms where 'long double' == 'double'.
12065         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12066         Don't blindly assume 80-bit 'long double'.
12067
12068         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12069         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12070         * modules/isfinite-tests (configure.ac): Require
12071         gl_LONG_DOUBLE_VS_DOUBLE.
12072         * modules/isinf-tests (configure.ac): Likewise.
12073         * modules/isnan-tests (configure.ac): Likewise.
12074         * modules/isnanl-tests (configure.ac): Likewise.
12075         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12076         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12077         tests on platforms where 'long double' is the same as 'double'.
12078         * tests/test-isinf.c (test_isinfl): Likewise.
12079         * tests/test-isnan.c (test_long_double): Likewise.
12080         * tests/test-isnanl.h (main): Likewise.
12081
12082 2011-10-08  Bruno Haible  <bruno@clisp.org>
12083
12084         Tests for module 'tanhf'.
12085         * modules/tanhf-tests: New file.
12086         * tests/test-tanhf.c: New file.
12087
12088         New module 'tanhf'.
12089         * lib/math.in.h (tanhf): New declaration.
12090         * lib/tanhf.c: New file.
12091         * m4/tanhf.m4: New file.
12092         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12094         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12095         * modules/tanhf: New file.
12096         * tests/test-math-c++.cc: Check the declaration of tanhf.
12097         * doc/posix-functions/tanhf.texi: Mention the new module.
12098
12099         tanh: Use a .m4 file.
12100         * m4/tanh.m4: New file.
12101         * modules/tanh (Files): Add it.
12102         (configure.ac): Just invoke gl_FUNC_TANH.
12103
12104 2011-10-08  Bruno Haible  <bruno@clisp.org>
12105
12106         Tests for module 'coshf'.
12107         * modules/coshf-tests: New file.
12108         * tests/test-coshf.c: New file.
12109
12110         New module 'coshf'.
12111         * lib/math.in.h (coshf): New declaration.
12112         * lib/coshf.c: New file.
12113         * m4/coshf.m4: New file.
12114         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12116         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12117         * modules/coshf: New file.
12118         * tests/test-math-c++.cc: Check the declaration of coshf.
12119         * doc/posix-functions/coshf.texi: Mention the new module.
12120
12121         cosh: Use a .m4 file.
12122         * m4/cosh.m4: New file.
12123         * modules/cosh (Files): Add it.
12124         (configure.ac): Just invoke gl_FUNC_COSH.
12125
12126 2011-10-08  Bruno Haible  <bruno@clisp.org>
12127
12128         Tests for module 'sinhf'.
12129         * modules/sinhf-tests: New file.
12130         * tests/test-sinhf.c: New file.
12131
12132         New module 'sinhf'.
12133         * lib/math.in.h (sinhf): New declaration.
12134         * lib/sinhf.c: New file.
12135         * m4/sinhf.m4: New file.
12136         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12138         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12139         * modules/sinhf: New file.
12140         * tests/test-math-c++.cc: Check the declaration of sinhf.
12141         * doc/posix-functions/sinhf.texi: Mention the new module.
12142
12143         sinh: Use a .m4 file.
12144         * m4/sinh.m4: New file.
12145         * modules/sinh (Files): Add it.
12146         (configure.ac): Just invoke gl_FUNC_SINH.
12147
12148 2011-10-08  Bruno Haible  <bruno@clisp.org>
12149
12150         Tests for module 'atan2f'.
12151         * modules/atan2f-tests: New file.
12152         * tests/test-atan2f.c: New file.
12153
12154         New module 'atan2f'.
12155         * lib/math.in.h (atan2f): New declaration.
12156         * lib/atan2f.c: New file.
12157         * m4/atan2f.m4: New file.
12158         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12160         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12161         * modules/atan2f: New file.
12162         * tests/test-math-c++.cc: Check the declaration of atan2f.
12163         * doc/posix-functions/atan2f.texi: Mention the new module.
12164
12165         atan2: Use a .m4 file.
12166         * m4/atan2.m4: New file.
12167         * modules/atan2 (Files): Add it.
12168         (configure.ac): Just invoke gl_FUNC_ATAN2.
12169
12170 2011-10-08  Bruno Haible  <bruno@clisp.org>
12171
12172         Tests for module 'atanf'.
12173         * modules/atanf-tests: New file.
12174         * tests/test-atanf.c: New file.
12175
12176         New module 'atanf'.
12177         * lib/math.in.h (atanf): New declaration.
12178         * lib/atanf.c: New file.
12179         * m4/atanf.m4: New file.
12180         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12182         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12183         * modules/atanf: New file.
12184         * tests/test-math-c++.cc: Check the declaration of atanf.
12185         * doc/posix-functions/atanf.texi: Mention the new module.
12186
12187         atan: Use a .m4 file.
12188         * m4/atan.m4: New file.
12189         * modules/atan (Files): Add it.
12190         (configure.ac): Just invoke gl_FUNC_ATAN.
12191
12192 2011-10-08  Bruno Haible  <bruno@clisp.org>
12193
12194         Tests for module 'acosf'.
12195         * modules/acosf-tests: New file.
12196         * tests/test-acosf.c: New file.
12197
12198         New module 'acosf'.
12199         * lib/math.in.h (acosf): New declaration.
12200         * lib/acosf.c: New file.
12201         * m4/acosf.m4: New file.
12202         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12204         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12205         * modules/acosf: New file.
12206         * tests/test-math-c++.cc: Check the declaration of acosf.
12207         * doc/posix-functions/acosf.texi: Mention the new module.
12208
12209         acos: Use a .m4 file.
12210         * m4/acos.m4: New file.
12211         * modules/acos (Files): Add it.
12212         (configure.ac): Just invoke gl_FUNC_ACOS.
12213
12214 2011-10-08  Bruno Haible  <bruno@clisp.org>
12215
12216         Tests for module 'asinf'.
12217         * modules/asinf-tests: New file.
12218         * tests/test-asinf.c: New file.
12219
12220         New module 'asinf'.
12221         * lib/math.in.h (asinf): New declaration.
12222         * lib/asinf.c: New file.
12223         * m4/asinf.m4: New file.
12224         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12226         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12227         * modules/asinf: New file.
12228         * tests/test-math-c++.cc: Check the declaration of asinf.
12229         * doc/posix-functions/asinf.texi: Mention the new module.
12230
12231         asin: Use a .m4 file.
12232         * m4/asin.m4: New file.
12233         * modules/asin (Files): Add it.
12234         (configure.ac): Just invoke gl_FUNC_ASIN.
12235
12236 2011-10-08  Bruno Haible  <bruno@clisp.org>
12237
12238         Tests for module 'tanf'.
12239         * modules/tanf-tests: New file.
12240         * tests/test-tanf.c: New file.
12241
12242         New module 'tanf'.
12243         * lib/math.in.h (tanf): New declaration.
12244         * lib/tanf.c: New file.
12245         * m4/tanf.m4: New file.
12246         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12248         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12249         * modules/tanf: New file.
12250         * tests/test-math-c++.cc: Check the declaration of tanf.
12251         * doc/posix-functions/tanf.texi: Mention the new module.
12252
12253         tan: Use a .m4 file.
12254         * m4/tan.m4: New file.
12255         * modules/tan (Files): Add it.
12256         (configure.ac): Just invoke gl_FUNC_TAN.
12257
12258 2011-10-08  Bruno Haible  <bruno@clisp.org>
12259
12260         Tests for module 'cosf'.
12261         * modules/cosf-tests: New file.
12262         * tests/test-cosf.c: New file.
12263
12264         New module 'cosf'.
12265         * lib/math.in.h (cosf): New declaration.
12266         * lib/cosf.c: New file.
12267         * m4/cosf.m4: New file.
12268         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12270         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12271         * modules/cosf: New file.
12272         * tests/test-math-c++.cc: Check the declaration of cosf.
12273         * doc/posix-functions/cosf.texi: Mention the new module.
12274
12275         cos: Use a .m4 file.
12276         * m4/cos.m4: New file.
12277         * modules/cos (Files): Add it.
12278         (configure.ac): Just invoke gl_FUNC_COS.
12279
12280 2011-10-08  Bruno Haible  <bruno@clisp.org>
12281
12282         Tests for module 'sinf'.
12283         * modules/sinf-tests: New file.
12284         * tests/test-sinf.c: New file.
12285
12286         New module 'sinf'.
12287         * lib/math.in.h (sinf): New declaration.
12288         * lib/sinf.c: New file.
12289         * m4/sinf.m4: New file.
12290         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12292         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12293         * modules/sinf: New file.
12294         * tests/test-math-c++.cc: Check the declaration of sinf.
12295         * doc/posix-functions/sinf.texi: Mention the new module.
12296
12297         sin: Use a .m4 file.
12298         * m4/sin.m4: New file.
12299         * modules/sin (Files): Add it.
12300         (configure.ac): Just invoke gl_FUNC_SIN.
12301
12302 2011-10-08  Bruno Haible  <bruno@clisp.org>
12303
12304         Tests for module 'powf'.
12305         * modules/powf-tests: New file.
12306         * tests/test-powf.c: New file.
12307
12308         New module 'powf'.
12309         * lib/math.in.h (powf): New declaration.
12310         * lib/powf.c: New file.
12311         * m4/powf.m4: New file.
12312         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12314         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12315         * modules/powf: New file.
12316         * tests/test-math-c++.cc: Check the declaration of powf.
12317         * doc/posix-functions/powf.texi: Mention the new module.
12318
12319         pow: Use a .m4 file.
12320         * m4/pow.m4: New file.
12321         * modules/pow (Files): Add it.
12322         (configure.ac): Just invoke gl_FUNC_POW.
12323
12324 2011-10-08  Bruno Haible  <bruno@clisp.org>
12325
12326         Tests for module 'log10f'.
12327         * modules/log10f-tests: New file.
12328         * tests/test-log10f.c: New file.
12329
12330         New module 'log10f'.
12331         * lib/math.in.h (log10f): New declaration.
12332         * lib/log10f.c: New file.
12333         * m4/log10f.m4: New file.
12334         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12336         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12337         * modules/log10f: New file.
12338         * tests/test-math-c++.cc: Check the declaration of log10f.
12339         * doc/posix-functions/log10f.texi: Mention the new module.
12340
12341         log10: Use a .m4 file.
12342         * m4/log10.m4: New file.
12343         * modules/log10 (Files): Add it.
12344         (configure.ac): Just invoke gl_FUNC_LOG10.
12345
12346 2011-10-08  Bruno Haible  <bruno@clisp.org>
12347
12348         Tests for module 'logf'.
12349         * modules/logf-tests: New file.
12350         * tests/test-logf.c: New file.
12351
12352         New module 'logf'.
12353         * lib/math.in.h (logf): New declaration.
12354         * lib/logf.c: New file.
12355         * m4/logf.m4: New file.
12356         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12358         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12359         * modules/logf: New file.
12360         * tests/test-math-c++.cc: Check the declaration of logf.
12361         * doc/posix-functions/logf.texi: Mention the new module.
12362
12363         log: Use a .m4 file.
12364         * m4/log.m4: New file.
12365         * modules/log (Files): Add it.
12366         (configure.ac): Just invoke gl_FUNC_LOG.
12367
12368 2011-10-08  Bruno Haible  <bruno@clisp.org>
12369
12370         Tests for module 'expf'.
12371         * modules/expf-tests: New file.
12372         * tests/test-expf.c: New file.
12373
12374         New module 'expf'.
12375         * lib/math.in.h (expf): New declaration.
12376         * lib/expf.c: New file.
12377         * m4/expf.m4: New file.
12378         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12380         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12381         * modules/expf: New file.
12382         * tests/test-math-c++.cc: Check the declaration of expf.
12383         * doc/posix-functions/expf.texi: Mention the new module.
12384
12385         exp: Use a .m4 file.
12386         * m4/exp.m4: New file.
12387         * modules/exp (Files): Add it.
12388         (configure.ac): Just invoke gl_FUNC_EXP.
12389
12390 2011-10-08  Bruno Haible  <bruno@clisp.org>
12391
12392         Tests for module 'sqrtf'.
12393         * modules/sqrtf-tests: New file.
12394         * tests/test-sqrtf.c: New file.
12395
12396         New module 'sqrtf'.
12397         * lib/math.in.h (sqrtf): New declaration.
12398         * lib/sqrtf.c: New file.
12399         * m4/sqrtf.m4: New file.
12400         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12402         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12403         * modules/sqrtf: New file.
12404         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12405         * doc/posix-functions/sqrtf.texi: Mention the new module.
12406
12407 2011-10-08  Bruno Haible  <bruno@clisp.org>
12408
12409         Tests: Avoid link failures w.r.t. libintl.
12410         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12411         $(LIBINTL).
12412         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12413         $(LIBINTL).
12414         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12415         against $(LIBINTL).
12416         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12417         $(LIBINTL).
12418         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12419         $(LIBINTL).
12420         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12421
12422 2011-10-08  Bruno Haible  <bruno@clisp.org>
12423
12424         pow tests: Defeat compiler optimizations.
12425         * tests/test-pow.c (main): Assign arguments to x and y before use.
12426
12427 2011-10-08  Bruno Haible  <bruno@clisp.org>
12428
12429         gnulib-tool: Improve last commit.
12430         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12431         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12432         ignore dependencies that are not among the modules list.
12433
12434 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12435
12436         gnulib-tool: don't follow dependencies to avoided modules
12437         This fixes a bug that is related to the previous one.
12438         * gnulib-tool (func_modules_transitive_closure)
12439         (func_emit_autoconf_snippets):
12440         Check whether a dependency is acceptable before using it.
12441         (--extract-dependencies): Report an error if --avoid is also used,
12442         since this combination of options is not yet supported.
12443
12444         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12445         Problem reported by Peter Dyballa in
12446         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12447         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12448         when echoing "$condition".
12449
12450 2011-10-07  Bruno Haible  <bruno@clisp.org>
12451
12452         Fix documentation about math functions on MacOS X.
12453         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12454         MacOS X 10.5.
12455         * doc/posix-functions/fdim.texi: Likewise.
12456         * doc/posix-functions/feclearexcept.texi: Likewise.
12457         * doc/posix-functions/fegetenv.texi: Likewise.
12458         * doc/posix-functions/fegetround.texi: Likewise.
12459         * doc/posix-functions/feholdexcept.texi: Likewise.
12460         * doc/posix-functions/feraiseexcept.texi: Likewise.
12461         * doc/posix-functions/fesetenv.texi: Likewise.
12462         * doc/posix-functions/fesetround.texi: Likewise.
12463         * doc/posix-functions/fetestexcept.texi: Likewise.
12464         * doc/posix-functions/feupdateenv.texi: Likewise.
12465         * doc/posix-functions/fmax.texi: Likewise.
12466         * doc/posix-functions/fmin.texi: Likewise.
12467         * doc/posix-functions/log2.texi: Likewise.
12468         * doc/posix-functions/modff.texi: Likewise.
12469         * doc/posix-functions/nan.texi: Likewise.
12470         * doc/posix-functions/nanf.texi: Likewise.
12471         * doc/posix-functions/nextafterf.texi: Likewise.
12472         * doc/posix-functions/remquo.texi: Likewise.
12473
12474 2011-10-07  Bruno Haible  <bruno@clisp.org>
12475
12476         modff: Drop assumption about library that defines modff.
12477         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12478         AC_CHECK_FUNCS.
12479         * modules/modff (Files): Add m4/mathfunc.m4.
12480
12481 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12482
12483         raise tests: Avoid a GCC warning.
12484         * tests/test-raise.c (handler): Use _Noreturn.
12485
12486 2011-10-07  Bruno Haible  <bruno@clisp.org>
12487
12488         Tests for module 'ldexpf'.
12489         * modules/ldexpf-tests: New file.
12490         * tests/test-ldexpf.c: New file.
12491
12492         New module 'ldexpf'.
12493         * lib/math.in.h (ldexpf): New declaration.
12494         * lib/ldexpf.c: New file.
12495         * m4/ldexpf.m4: New file.
12496         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12498         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12499         * modules/ldexpf: New file.
12500         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12501         * doc/posix-functions/ldexpf.texi: Mention the new module.
12502
12503 2011-10-06  Bruno Haible  <bruno@clisp.org>
12504
12505         frexpf: Work around problems on IRIX and mingw.
12506         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12508         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12509         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12510         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12511         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12512         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12513
12514 2011-10-06  Bruno Haible  <bruno@clisp.org>
12515
12516         fabsf: Drop assumption about library that defines fabsf.
12517         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12518         AC_CHECK_FUNCS.
12519         * modules/fabsf (Files): Add m4/mathfunc.m4.
12520
12521 2011-10-06  Bruno Haible  <bruno@clisp.org>
12522
12523         frexpf: Drop assumption about library that defines frexpf.
12524         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12525         'int *', 'float *', 'long double *', 'float', 'long double'.
12526         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12527         AC_CHECK_FUNCS.
12528         * modules/frexpf (Files): Add m4/mathfunc.m4.
12529
12530         Tests for module 'frexpf'.
12531         * modules/frexpf-tests: New file.
12532         * tests/test-frexpf.c: New file.
12533
12534         New module 'frexpf'.
12535         * lib/math.in.h (frexpf): New declaration.
12536         * lib/frexpf.c: New file.
12537         * m4/frexpf.m4: New file.
12538         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12540         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12541         * modules/frexpf: New file.
12542         * tests/test-math-c++.cc: Check the declaration of frexpf.
12543         * doc/posix-functions/frexpf.texi: Mention the new module.
12544
12545 2011-10-06  Bruno Haible  <bruno@clisp.org>
12546
12547         math: Sort function declarations of math.in.h.
12548         * lib/math.in.h (frexp, logb): Move declarations.
12549
12550 2011-10-05  Bruno Haible  <bruno@clisp.org>
12551
12552         Tests for module 'modff'.
12553         * modules/modff-tests: New file.
12554         * tests/test-modff.c: New file.
12555
12556         New module 'modff'.
12557         * lib/math.in.h (modff): New declaration.
12558         * lib/modff.c: New file.
12559         * m4/modff.m4: New file.
12560         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12562         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12563         * modules/modff: New file.
12564         * tests/test-math-c++.cc: Check the declaration of modff.
12565         * doc/posix-functions/modff.texi: Mention the new module.
12566
12567         modf tests: Make test sharper.
12568         * tests/test-modf.c (main): Strengthen upper bound.
12569
12570         modf: Use a .m4 file.
12571         * m4/modf.m4: New file.
12572         * modules/modf (Files): Add it.
12573         (configure.ac): Just invoke gl_FUNC_MODF.
12574
12575 2011-10-05  Bruno Haible  <bruno@clisp.org>
12576
12577         Tests for module 'fmodf'.
12578         * modules/fmodf-tests: New file.
12579         * tests/test-fmodf.c: New file.
12580
12581         New module 'fmodf'.
12582         * lib/math.in.h (fmodf): New declaration.
12583         * lib/fmodf.c: New file.
12584         * m4/fmodf.m4: New file.
12585         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12587         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12588         * modules/fmodf: New file.
12589         * tests/test-math-c++.cc: Check the declaration of fmodf.
12590         * doc/posix-functions/fmodf.texi: Mention the new module.
12591
12592         fmod: Use a .m4 file.
12593         * m4/fmod.m4: New file.
12594         * modules/fmod (Files): Add it.
12595         (configure.ac): Just invoke gl_FUNC_FMOD.
12596
12597 2011-10-05  Bruno Haible  <bruno@clisp.org>
12598
12599         Tests for module 'fabsf'.
12600         * modules/fabsf-tests: New file.
12601         * tests/test-fabsf.c: New file.
12602
12603         New module 'fabsf'.
12604         * lib/math.in.h (fabsf): New declaration.
12605         * lib/fabsf.c: New file.
12606         * m4/fabsf.m4: New file.
12607         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12609         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12610         * modules/fabsf: New file.
12611         * tests/test-math-c++.cc: Check the declaration of fabsf.
12612         * doc/posix-functions/fabsf.texi: Mention the new module.
12613
12614         fabs: Use a .m4 file.
12615         * m4/fabs.m4: New file.
12616         * modules/fabs (Files): Add it.
12617         (configure.ac): Just invoke gl_FUNC_FABS.
12618
12619 2011-10-05  Jim Meyering  <meyering@redhat.com>
12620
12621         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12622         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12623         ls -lL regression introduced in coreutils-8.12, it does so at the
12624         cost of an additional stat call in the common case.  Besides, now
12625         that the kernel change that prompted commit 95f7c57f has been reverted
12626         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12627         we have no use for commit 95f7c57f, "file-has-acl: use
12628         acl_extended_file_nofollow if available".
12629
12630 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12631
12632         file-has-acl: revert unintended change in behavior of ls -L
12633         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12634         derived from...
12635         (file_has_acl): ...code here.  Call it.
12636         This problem was introduced with 2011-07-22 commit 95f7c57f,
12637         "file-has-acl: use acl_extended_file_nofollow if available".
12638         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12639
12640 2011-10-03  Bruno Haible  <bruno@clisp.org>
12641
12642         poll: Avoid link errors on MSVC.
12643         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12644         * modules/poll (Depends-on): Add sockets.
12645         (Link): New section.
12646         * NEWS: Mention the change.
12647         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12648         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12649         $(LIB_POLL) instead of $(LIBSOCKET).
12650
12651 2011-10-03  Bruno Haible  <bruno@clisp.org>
12652
12653         sys_select tests: Fix link error on MSVC 9.
12654         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12655         with $(LIB_SELECT) instead of $(LIBSOCKET).
12656
12657 2011-10-03  Bruno Haible  <bruno@clisp.org>
12658
12659         sys_select: Fix compilation error on mingw.
12660         * lib/sys_select.in.h: On native Windows, include <io.h>.
12661
12662 2011-10-03  Bruno Haible  <bruno@clisp.org>
12663
12664         wmemset: Support for MSVC.
12665         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12666         whether wmemset() exists.
12667
12668 2011-10-03  Bruno Haible  <bruno@clisp.org>
12669
12670         wmemmove: Support for MSVC.
12671         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12672         whether wmemmove() exists.
12673
12674 2011-10-03  Bruno Haible  <bruno@clisp.org>
12675
12676         wmemcpy: Support for MSVC.
12677         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12678         whether wmemcpy() exists.
12679
12680 2011-10-03  Bruno Haible  <bruno@clisp.org>
12681
12682         wmemcmp: Support for MSVC.
12683         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12684         whether wmemcmp() exists.
12685
12686 2011-10-03  Bruno Haible  <bruno@clisp.org>
12687
12688         wmemchr: Support for MSVC.
12689         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12690         whether wmemchr() exists.
12691
12692 2011-10-03  Bruno Haible  <bruno@clisp.org>
12693
12694         glthread/*, strsignal: Support for MSVC.
12695         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12696         including <winsock.h> on MSVC 9.
12697         * lib/glthread/lock.h: Likewise.
12698         * lib/glthread/thread.h: Likewise.
12699         * lib/glthread/tls.h: Likewise.
12700         * lib/glthread/yield.h: Likewise.
12701         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12702         if HAVE_UNISTD_H is false.
12703         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12704
12705 2011-10-03  Bruno Haible  <bruno@clisp.org>
12706
12707         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12708         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12709         Set to 100000.
12710
12711 2011-10-03  Bruno Haible  <bruno@clisp.org>
12712
12713         acl: Fix specification.
12714         * lib/file-has-acl.c (file_has_acl): Fix specification.
12715
12716 2011-10-03  Bruno Haible  <bruno@clisp.org>
12717
12718         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12719         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12720         (compute_curr_prefix, shared_library_fullname,
12721         find_shared_library_fullname, get_shared_library_fullname, relocate):
12722         Use it together with PIC && INSTALLDIR.
12723         Reported by <jojelino@gmail.com>
12724         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12725
12726 2011-10-01  Jim Meyering  <meyering@redhat.com>
12727
12728         maint.mk: adjust a release-related rule not to require use of gzip
12729         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12730         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12731         projects that build only .tar.xz files.  Also fix an erroneous test.
12732
12733         test-linkat: don't leave behind a temporary file
12734         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12735         Otherwise, coreutils' "make distcheck" would fail with this:
12736           Only in /c/cu/tests/torture/coreutils/test/\
12737             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12738           make[2]: *** [my-distcheck] Error 1
12739
12740         float, math: add omitted file
12741         * lib/itold.c: Add file, required for yesterday's float change.
12742
12743 2011-10-01  Bruno Haible  <bruno@clisp.org>
12744
12745         isinf: Fix for OpenBSD/x86.
12746         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12747         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12748         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12749
12750 2011-10-01  Bruno Haible  <bruno@clisp.org>
12751
12752         isfinite: Fix syntax error in configure test.
12753         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12754
12755         isfinite: Fix typo.
12756         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12757         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12758
12759 2011-10-01  Bruno Haible  <bruno@clisp.org>
12760
12761         nonblocking tests: Fix test failure on Linux/IA-64.
12762         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12763         Set to 270000.
12764
12765 2011-10-01  Bruno Haible  <bruno@clisp.org>
12766
12767         mkfifoat tests: Fix a test failure on mingw.
12768         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12769         with error ENOSYS.
12770
12771 2011-09-30  Bruno Haible  <bruno@clisp.org>
12772
12773         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12774         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12775         'long double'. Set REPLACE_ITOLD.
12776         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12777         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12778         * lib/itold.c: New file.
12779         * modules/float (Files): Add lib/itold.c.
12780         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12781         (Makefile.am): Substitute REPLACE_ITOLD.
12782         * modules/math (Depends-on): Add float.
12783         (Makefile.am): Substitute REPLACE_ITOLD.
12784         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12785         * doc/posix-headers/math.texi: Likewise.
12786         * doc/posix-functions/logl.texi: Likewise.
12787
12788 2011-09-30  Bruno Haible  <bruno@clisp.org>
12789
12790         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12791         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12792         Set to 140000.
12793
12794 2011-09-30  Bruno Haible  <bruno@clisp.org>
12795
12796         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12797         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12798         invocation, say "right after AC_PROG_CC_STDC", not "right after
12799         AC_PROG_CC".
12800         Reported by Gary V. Vaughan <gary@gnu.org>.
12801
12802 2011-09-30  Bruno Haible  <bruno@clisp.org>
12803
12804         Centralize C99 requirement.
12805         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12806         * modules/stdarg (configure.ac-early): Invoke it instead of
12807         AC_PROG_CC_STDC.
12808         Reported by Gary V. Vaughan and Paul Eggert.
12809
12810 2011-09-29  Bruno Haible  <bruno@clisp.org>
12811
12812         float: Fix LDBL_MAX value on Linux/PowerPC.
12813         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12814         on Linux/PowerPC.
12815         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12816         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12817         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12818         platform.
12819         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12820
12821 2011-09-29  Bruno Haible  <bruno@clisp.org>
12822
12823         doc: Improve doc about gl_EARLY.
12824         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12825         AC_PROG_CC_STDC invocation.
12826         Reported by Gary V. Vaughan <gary@gnu.org>.
12827
12828 2011-09-28  Bruno Haible  <bruno@clisp.org>
12829
12830         fgetc, fputc, fread, fwrite tests: Fix link error.
12831         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12832         on non-MSVC platforms.
12833         * tests/test-fputc.c (main): Likewise.
12834         * tests/test-fread.c (main): Likewise.
12835         * tests/test-fwrite.c (main): Likewise.
12836         Reported by Jim Meyering.
12837
12838 2011-09-27  Bruno Haible  <bruno@clisp.org>
12839
12840         fputc, fwrite tests: Avoid test failure on MSVC.
12841         * tests/test-fgetc.c: Include msvc-inval.h.
12842         (main): Invoke gl_msvc_inval_ensure_handler.
12843         * tests/test-fputc.c: Include msvc-inval.h.
12844         (main): Invoke gl_msvc_inval_ensure_handler.
12845         * tests/test-fread.c: Include msvc-inval.h.
12846         (main): Invoke gl_msvc_inval_ensure_handler.
12847         * tests/test-fwrite.c: Include msvc-inval.h.
12848         (main): Invoke gl_msvc_inval_ensure_handler.
12849         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12850         * modules/fputc-tests (Depends-on): Likewise.
12851         * modules/fread-tests (Depends-on): Likewise.
12852         * modules/fwrite-tests (Depends-on): Likewise.
12853
12854 2011-09-27  Bruno Haible  <bruno@clisp.org>
12855
12856         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12857         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12858         (raise): Remove older, duplicated declaration.
12859         (_gl_raise_SIGPIPE): New declaration.
12860         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12861         (rpl_raise): Remove function.
12862         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12863         a gnulib-defined SIGPIPE here.
12864         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12865         'sigprocmask' has detected missing signal-blocking and the module
12866         'sigpipe' is enabled.
12867         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12868
12869 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12870
12871         base64-tests: avoid memory leak
12872         * tests/test-base64.c (main): Plug memory leak.
12873
12874         base32: new module
12875         * modules/base32: New module.
12876         * lib/base32.c: New file.
12877         * lib/base32.h: Likewise.
12878         * m4/base32.m4: Likewise.
12879         * modules/base32-tests: New test.
12880         * tests/test-base32.c: Likewise.
12881         * MODULES.html.sh (Misc): Mention it.
12882
12883 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12884
12885         gnulib: use more-standard license notice wording
12886         * gnulib-tool (func_emit_copyright_notice): When emitting a
12887         license notice into a file, use the standard wording as suggested
12888         by the current information for GNU maintainers, except say "file"
12889         rather than "program".  The new wording gives a license version
12890         number, which addresses an issue raised by Glenn Morris in
12891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12892         * m4/onceonly.m4: Use that same wording here, too.
12893
12894         dup2: minor simplification
12895         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12896         as lib/dup2.c no longer uses 'inline'.
12897
12898 2011-09-25  Bruno Haible  <bruno@clisp.org>
12899
12900         strings: Fix compilation error on MSVC.
12901         * lib/strings.in.h: Include <stddef.h> for size_t.
12902
12903 2011-09-25  Bruno Haible  <bruno@clisp.org>
12904
12905         fflush et al.: Document limitation on MSVC.
12906         * doc/posix-functions/fflush.texi: Document possible crash in handling
12907         mode other than DEFAULT_HANDLING.
12908         * doc/posix-functions/fgetc.texi: Likewise.
12909         * doc/posix-functions/fputc.texi: Likewise.
12910         * doc/posix-functions/fread.texi: Likewise.
12911         * doc/posix-functions/fwrite.texi: Likewise.
12912
12913 2011-09-25  Bruno Haible  <bruno@clisp.org>
12914
12915         msvc-inval: Allow three invalid parameter handling modes.
12916         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12917         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12918         macros.
12919         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12920         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12921         SANE_LIBRARY_HANDLING as a no-op.
12922         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12923         <stdlib.h>.
12924         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12925
12926 2011-09-25  Bruno Haible  <bruno@clisp.org>
12927
12928         msvc-inval: Make handler multithread-safe.
12929         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12930         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12931         declarations.
12932         (gl_msvc_inval_current): New declaration.
12933         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12934         Operate on the structure returned by gl_msvc_inval_current().
12935         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12936         Remove varaiables.
12937         (tls_index, tls_initialized): New variables.
12938         (not_per_thread): New variable.
12939         (gl_msvc_inval_current): New function.
12940         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12941         returned by gl_msvc_inval_current().
12942
12943 2011-09-25  Bruno Haible  <bruno@clisp.org>
12944
12945         msvc-inval: Install handler globally.
12946         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12947         !_MSC_VER.
12948         (gl_msvc_invalid_parameter_handler): Remove declaration.
12949         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12950         declarations.
12951         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12952         Install the handler globally, don't uninstall it.
12953         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12954         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12955         currently valid, call RaiseException instead.
12956         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12957         for !_MSC_VER.
12958
12959 2011-09-25  Bruno Haible  <bruno@clisp.org>
12960
12961         strerror_r-posix: Fix for MSVC 9.
12962         * lib/strerror_r.c (local_snprintf): New function.
12963         (snprintf): Define to local_snprintf, not to _snprintf.
12964
12965 2011-09-25  Bruno Haible  <bruno@clisp.org>
12966
12967         ftruncate: Support for MSVC 9.
12968         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12969         (chsize_nothrow): New function.
12970         (chsize): Redefine as a macro.
12971         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12972         * modules/ftruncate (Depends-on): Add msvc-inval.
12973
12974 2011-09-25  Bruno Haible  <bruno@clisp.org>
12975
12976         New module 'fstat'.
12977         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12978         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12979         * lib/fchdir.c (rpl_fstat): Remove function.
12980         * m4/fstat.m4: New file.
12981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12983         declared.
12984         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12985         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12986         * modules/fstat: New file.
12987         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12988         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12989         is set.
12990         * doc/posix-functions/fstat.texi: Mention the new module and the
12991         problem on MSVC.
12992         * NEWS: Mention the change.
12993         * modules/acl (Depends-on): Add fstat.
12994         * modules/chdir-safer (Depends-on): Likewise.
12995         * modules/chown (Depends-on): Likewise.
12996         * modules/copy-file (Depends-on): Likewise.
12997         * modules/fchdir (Depends-on): Likewise.
12998         * modules/fdopendir (Depends-on): Likewise.
12999         * modules/fopen (Depends-on): Likewise.
13000         * modules/fts (Depends-on): Likewise.
13001         * modules/getcwd (Depends-on): Likewise.
13002         * modules/isapipe (Depends-on): Likewise.
13003         * modules/linkat (Depends-on): Likewise.
13004         * modules/lseek (Depends-on): Likewise.
13005         * modules/mkdir-p (Depends-on): Likewise.
13006         * modules/open (Depends-on): Likewise.
13007         * modules/openat (Depends-on): Likewise.
13008         * modules/read-file (Depends-on): Likewise.
13009         * modules/renameat (Depends-on): Likewise.
13010         * modules/utimens (Depends-on): Likewise.
13011
13012 2011-09-25  Bruno Haible  <bruno@clisp.org>
13013
13014         linkat: Fix compilation on MSVC 9.
13015         * lib/linkat.c: Don't include <stdint.h>.
13016
13017 2011-09-25  Bruno Haible  <bruno@clisp.org>
13018
13019         fclose: Support for MSVC 9.
13020         * lib/fclose.c: Include msvc-inval.h.
13021         (fclose_nothrow): New function.
13022         (rpl_fclose): Use it.
13023         * modules/fclose (Depends-on): Add msvc-inval.
13024         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13025
13026 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13027
13028         dup2: minor simplifications
13029         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13030         that it's a performance win.
13031         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13032         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13033
13034 2011-09-24  Jim Meyering  <meyering@redhat.com>
13035
13036         test-futimens: avoid a warning from gcc -Wshadow
13037         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13038         to avoid a shadowing warning.
13039
13040 2011-09-24  Bruno Haible  <bruno@clisp.org>
13041
13042         fdopen: Support for MSVC 9.
13043         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13044         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13045         * lib/fdopen.c: Include msvc-inval.h.
13046         (fdopen_nothrow): New function.
13047         (rpl_fdopen): Use it.
13048         * modules/fdopen (Depends-on): Add msvc-inval.
13049         * modules/fclose-tests (Depends-on): Add fdopen.
13050         * modules/fflush-tests (Depends-on): Likewise.
13051         * modules/fgetc-tests (Depends-on): Likewise.
13052         * modules/fputc-tests (Depends-on): Likewise.
13053         * modules/fread-tests (Depends-on): Likewise.
13054         * modules/freopen-tests (Depends-on): Likewise.
13055         * modules/fseeko-tests (Depends-on): Likewise.
13056         * modules/ftello-tests (Depends-on): Likewise.
13057         * modules/fwrite-tests  (Depends-on): Likewise.
13058         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13059
13060 2011-09-24  Bruno Haible  <bruno@clisp.org>
13061
13062         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13063         * modules/fgetc-tests (Depends-on): Add unistd.
13064         * modules/fputc-tests (Depends-on): Likewise.
13065         * modules/fread-tests (Depends-on): Likewise.
13066         * modules/fwrite-tests (Depends-on): Likewise.
13067
13068 2011-09-24  Bruno Haible  <bruno@clisp.org>
13069
13070         dup: Simplify autoconf test.
13071         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13072         on gl_MSVC_INVAL's result.
13073
13074 2011-09-24  Bruno Haible  <bruno@clisp.org>
13075
13076         Tests for function fwrite().
13077         * modules/fwrite-tests: New file.
13078         * tests/test-fwrite.c: New file.
13079         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13080
13081         Tests for function fread().
13082         * modules/fread-tests: New file.
13083         * tests/test-fread.c: New file.
13084         * modules/stdio-tests (Depends-on): Add fread-tests.
13085
13086         Activate fputc tests.
13087         * modules/stdio-tests (Depends-on): Add fputc-tests.
13088
13089         Enhance fgetc, fputc tests.
13090         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13091         * tests/test-fputc.c (main): Likewise.
13092
13093 2011-09-24  Bruno Haible  <bruno@clisp.org>
13094
13095         write: Support for MSVC 9.
13096         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13097         is not 1.
13098         * lib/write.c (write_nothrow): New function.
13099         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13100         not 1. Use write_nothrow.
13101         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13102         invalid parameter handler.
13103         (gl_PREREQ_WRITE): New macro.
13104         * modules/write (Depends-on): Add msvc-inval.
13105         (configure.ac): Invoke gl_PREREQ_WRITE.
13106         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13107
13108 2011-09-24  Bruno Haible  <bruno@clisp.org>
13109
13110         read: Fix last commit.
13111         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13112
13113 2011-09-24  Bruno Haible  <bruno@clisp.org>
13114
13115         dup2: Fix last commit.
13116         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13117         (rpl_dup2): Disable fcntl workaround on native Windows.
13118
13119         sigprocmask: Make code safer.
13120         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13121         section that changes macro definitions for this compilation unit.
13122
13123 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13124
13125         dup2: clarify by coalescing Windows-specific material
13126         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13127         "msvc-nothrow.h"' to the Windows-specific section, so that the
13128         Emacs source need not contain these include files.
13129         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13130         Windows-specific fixes into this function rather than just the
13131         nothrow fix, as this shortens and clarifies the code.  Always
13132         define as a function, as that's a bit cleaner than having it be
13133         sometimes a function and sometimes a macro.
13134         (rpl_dup2): Move the Windows-specific stuff out of here and into
13135         ms_windows_dup2.  Don't protect the Haiku-related fix with
13136         "#if !defined __linux__", as the same code also works around
13137         a Linux kernel bug, and it doesn't add any system calls on any
13138         platform.  Add comment about FreeBSD 6.1.
13139
13140         sigprocmask: move #include directive
13141         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13142         Windows-specific section, so that the Emacs source need not
13143         contain msvc-inval.h.
13144
13145 2011-09-23  Bruno Haible  <bruno@clisp.org>
13146
13147         read: Support for MSVC 9.
13148         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13149         is not 1.
13150         * lib/read.c (read_nothrow): New function.
13151         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13152         read_nothrow.
13153         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13154         invalid parameter handler.
13155         (gl_PREREQ_READ): New macro.
13156         * modules/read (Depends-on): Add msvc-inval.
13157         (configure.ac): Invoke gl_PREREQ_READ.
13158         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13159
13160 2011-09-23  Bruno Haible  <bruno@clisp.org>
13161
13162         close: Support for MSVC 9.
13163         * lib/close.c: Include <errno.h>, msvc-inval.h.
13164         (close_nothrow): New function.
13165         (rpl_close): Use it.
13166         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13167         invalid parameter handler.
13168         * modules/close (Depends-on): Add msvc-inval.
13169         * modules/dup2-tests (Depends-on): Add close.
13170         * modules/dup3-tests (Depends-on): Likewise.
13171         * modules/fcntl-tests (Depends-on): Likewise.
13172         * modules/spawn-pipe-tests (Depends-on): Likewise.
13173         * modules/unistd-safer-tests (Depends-on): Likewise.
13174         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13175
13176 2011-09-23  Bruno Haible  <bruno@clisp.org>
13177
13178         New module 'dup'.
13179         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13180         Allow replacement.
13181         * lib/dup.c: New file.
13182         * lib/fchdir.c (rpl_dup): Remove function.
13183         * m4/dup.m4: New file.
13184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13185         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13186         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13187         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13188         * modules/dup: New file.
13189         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13190         'dup' module is in use.
13191         * modules/fdopendir (Depends-on): Add dup.
13192         * modules/fdutimensat-tests (Depends-on): Likewise.
13193         * modules/fts (Depends-on): Likewise.
13194         * modules/futimens-tests (Depends-on): Likewise.
13195         * modules/posix_spawnp-tests (Depends-on): Likewise.
13196         * modules/unistd-safer-tests (Depends-on): Likewise.
13197         * modules/utimens-tests (Depends-on): Likewise.
13198         * doc/posix-functions/dup.texi: Mention the new module and the problem
13199         on MSVC.
13200
13201 2011-09-23  Bruno Haible  <bruno@clisp.org>
13202
13203         getdtablesize: Support for MSVC 9.
13204         * lib/getdtablesize.c: Include msvc-inval.h.
13205         (_setmaxstdio_nothrow): New function.
13206         (_setmaxstdio): Redefine it.
13207         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13208         * modules/getdtablesize (Depends-on): Add msvc-inval.
13209         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13210
13211 2011-09-23  Bruno Haible  <bruno@clisp.org>
13212
13213         signal-h: Rename from signal.
13214         * modules/signal-h: Renamed from modules/signal.
13215         * modules/pthread_sigmask (Depends-on): Update.
13216         * modules/raise (Depends-on): Likewise.
13217         * modules/sigaction (Depends-on): Likewise.
13218         * modules/sigpipe (Depends-on): Likewise.
13219         * modules/sigprocmask (Depends-on): Likewise.
13220         * modules/sys_select (Depends-on): Likewise.
13221         * modules/signal-h-tests: Renamed from modules/signal-tests.
13222         (Files, Depends-on, Makefile.am): Update.
13223         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13224         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13225         (Files, Makefile.am): Update.
13226         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13227         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13228         * modules/signal: New placeholder file.
13229         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13230         * doc/posix-headers/signal.texi: Update.
13231         * NEWS: Mention the change.
13232
13233 2011-09-23  Bruno Haible  <bruno@clisp.org>
13234
13235         sigprocmask: Avoid crashes through signal() on MSVC 9.
13236         * lib/sigprocmask.c: Include msvc-inval.h.
13237         (signal_nothrow): New function.
13238         (signal): Redefine it.
13239         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13240         * modules/sigprocmask (Depends-on): Add msvc-inval.
13241         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13242
13243 2011-09-23  Bruno Haible  <bruno@clisp.org>
13244
13245         Tests for module 'raise'.
13246         * modules/raise-tests: New file.
13247         * tests/test-raise.c: New file.
13248
13249         raise: Support for MSVC.
13250         * lib/signal.in.h (raise): New declaration.
13251         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13252         for native Windows platforms.
13253         * m4/raise.m4: New file.
13254         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13255         HAVE_RAISE, REPLACE_RAISE.
13256         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13257         REPLACE_RAISE.
13258         * modules/raise (Status, Notice): Remove fields.
13259         (Files): Add m4/raise.m4.
13260         (Depends-on): Add signal, msvc-inval.
13261         (configure.ac): Use the common idioms.
13262         (Maintainer): Add me.
13263         * tests/test-signal-c++.cc: Check the signature of raise.
13264         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13265
13266 2011-09-23  Bruno Haible  <bruno@clisp.org>
13267
13268         pipe2: Fix compilation on pre-C99 compilers.
13269         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13270
13271 2011-09-23  Bruno Haible  <bruno@clisp.org>
13272
13273         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13274         * lib/msvc-nothrow.h: New file.
13275         * lib/msvc-nothrow.c: New file.
13276         * m4/msvc-nothrow.m4: New file.
13277         * modules/msvc-nothrow: New file.
13278         * lib/dup2.c: Include msvc-nothrow.h.
13279         (rpl_dup2): No need to protect _get_osfhandle call here.
13280         * lib/accept4.c: Include msvc-nothrow.h.
13281         * lib/error.c: Likewise.
13282         * lib/fcntl.c: Likewise.
13283         * lib/lseek.c: Likewise.
13284         * lib/nonblocking.c: Likewise.
13285         * lib/poll.c: Likewise.
13286         * lib/read.c: Likewise.
13287         * lib/select.c: Likewise.
13288         * lib/sockets.h: Likewise.
13289         * lib/sockets.c: Likewise.
13290         * lib/stdio-read.c: Likewise.
13291         * lib/stdio-write.c: Likewise.
13292         * lib/write.c: Likewise.
13293         * lib/w32sock.h: Likewise.
13294         * lib/w32spawn.h: Likewise.
13295         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13296         * lib/fsync.c: Likewise.
13297         * lib/isapipe.c: Likewise.
13298         * modules/dup2 (Depends-on): Add msvc-nothrow.
13299         * modules/accept4 (Depends-on): Likewise.
13300         * modules/error (Depends-on): Likewise.
13301         * modules/fcntl (Depends-on): Likewise.
13302         * modules/lseek (Depends-on): Likewise.
13303         * modules/nonblocking (Depends-on): Likewise.
13304         * modules/poll (Depends-on): Likewise.
13305         * modules/read (Depends-on): Likewise.
13306         * modules/select (Depends-on): Likewise.
13307         * modules/sockets (Depends-on): Likewise.
13308         * modules/sigpipe (Depends-on): Likewise.
13309         * modules/write (Depends-on): Likewise.
13310         * modules/accept (Depends-on): Likewise.
13311         * modules/bind (Depends-on): Likewise.
13312         * modules/connect (Depends-on): Likewise.
13313         * modules/gethostname (Depends-on): Likewise.
13314         * modules/getpeername (Depends-on): Likewise.
13315         * modules/getsockname (Depends-on): Likewise.
13316         * modules/getsockopt (Depends-on): Likewise.
13317         * modules/ioctl (Depends-on): Likewise.
13318         * modules/listen (Depends-on): Likewise.
13319         * modules/recv (Depends-on): Likewise.
13320         * modules/recvfrom (Depends-on): Likewise.
13321         * modules/send (Depends-on): Likewise.
13322         * modules/sendto (Depends-on): Likewise.
13323         * modules/setsockopt (Depends-on): Likewise.
13324         * modules/shutdown (Depends-on): Likewise.
13325         * modules/socket (Depends-on): Likewise.
13326         * modules/execute (Depends-on): Likewise.
13327         * modules/spawn-pipe (Depends-on): Likewise.
13328         * modules/flock (Depends-on): Likewise.
13329         * modules/fsync (Depends-on): Likewise.
13330         * modules/isapipe (Depends-on): Likewise.
13331         * tests/test-cloexec.c: Include msvc-nothrow.h.
13332         * tests/test-dup-safer.c: Likewise.
13333         * tests/test-dup2.c: Likewise.
13334         * tests/test-dup3.c: Likewise.
13335         * tests/test-fcntl.c: Likewise.
13336         * tests/test-pipe.c: Likewise.
13337         * tests/test-pipe2.c: Likewise.
13338         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13339         * modules/unistd-safer-tests (Depends-on): Likewise.
13340         * modules/dup2-tests (Depends-on): Likewise.
13341         * modules/dup3-tests (Depends-on): Likewise.
13342         * modules/fcntl-tests (Depends-on): Likewise.
13343         * modules/pipe-posix-tests (Depends-on): Likewise.
13344         * modules/pipe2-tests (Depends-on): Likewise.
13345
13346 2011-09-23  Bruno Haible  <bruno@clisp.org>
13347
13348         dup2: Make code more maintainable.
13349         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13350         (rpl_dup2): Use it.
13351         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13352         * modules/dup2 (configure.ac): Invoke it.
13353         Reported by Paul Eggert.
13354
13355 2011-09-23  Bruno Haible  <bruno@clisp.org>
13356
13357         msvc-inval: Fix compilation error.
13358         * lib/msvc-inval.h: Include <excpt.h>.
13359
13360 2011-09-23  Bruno Haible  <bruno@clisp.org>
13361
13362         mkdir: Tweak for MSVC 9.
13363         * lib/sys_stat.in.h: Update comments.
13364         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13365
13366         Tests for module 'chdir'.
13367         * modules/chdir-tests: New file.
13368         * tests/test-chdir.c: New file.
13369
13370         New module 'chdir'.
13371         * modules/chdir: New file.
13372         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13373         (chdir): New declaration.
13374         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13375         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13376         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13377         * tests/test-unistd-c++.cc: Check signature of chdir.
13378         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13379         * modules/chdir-long (Depends-on): Add chdir.
13380         * modules/fchdir (Depends-on): Likewise.
13381         * modules/rename (Depends-on): Likewise.
13382         * modules/savewd (Depends-on): Likewise.
13383
13384         rmdir: Support for mingw, MSVC 9.
13385         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13386         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13387
13388         getcwd: Tweak for MSVC 9.
13389         * lib/unistd.in.h: Update comments.
13390         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13391
13392 2011-09-22  Bruno Haible  <bruno@clisp.org>
13393
13394         strerror_r-posix: Avoid a link error on MSVC.
13395         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13396         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13397
13398 2011-09-22  Bruno Haible  <bruno@clisp.org>
13399
13400         select: Avoid link errors on MSVC.
13401         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13402         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13403         * modules/pselect (Link): Likewise.
13404         * NEWS: Mention the change.
13405         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13406         test-select-stdin against $(LIB_SELECT).
13407         * modules/pselect-tests (Makefile.am): Link test-pselect against
13408         $(LIB_SELECT).
13409
13410 2011-09-22  Bruno Haible  <bruno@clisp.org>
13411
13412         select: Avoid compilation error on MSVC.
13413         * lib/select.c: Don't include <stdbool.h>.
13414
13415 2011-09-21  Bruno Haible  <bruno@clisp.org>
13416
13417         Consolidate all uses of PATH_MAX in *.m4 files.
13418         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13419         macros.
13420         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13421         and gl_PATHMAX_SNIPPET.
13422         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13423         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13424         * modules/chdir-long (Files): Add m4/pathmax.m4.
13425         * modules/getcwd (Files): Likewise.
13426
13427 2011-09-21  Bruno Haible  <bruno@clisp.org>
13428
13429         ftruncate: Un-deprecate, concentrate on Win32 support.
13430         * modules/ftruncate (Status, Notice): Remove sections.
13431         (Depends-on): Add largefile.
13432         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13433         non-mingw platforms.
13434         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13435         include <io.h>.
13436         * modules/perror-tests (Depends-on): Add ftruncate.
13437         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13438         'ftruncate' module.
13439
13440 2011-09-21  Bruno Haible  <bruno@clisp.org>
13441
13442         Add dependencies to new dirent related modules.
13443         * modules/opendir (Depends-on): Add closedir.
13444         * modules/getcwd (Depends-on): Add opendir, closedir.
13445         * modules/dirent-safer-tests (Depends-on): Likewise.
13446         * modules/fdopendir-tests (Depends-on): Likewise.
13447         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13448         * modules/renameat-tests (Depends-on): Likewise.
13449
13450 2011-09-21  Bruno Haible  <bruno@clisp.org>
13451
13452         opendir: Avoid compilation error on mingw.
13453         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13454         * modules/opendir (Depends-on): Add unistd.
13455
13456 2011-09-21  Bruno Haible  <bruno@clisp.org>
13457
13458         ftruncate tests: Avoid a test failure on mingw.
13459         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13460
13461 2011-09-21  Bruno Haible  <bruno@clisp.org>
13462
13463         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13464         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13465         native Windows.
13466
13467 2011-09-21  Bruno Haible  <bruno@clisp.org>
13468
13469         New module 'fdopen'.
13470         * lib/stdio.in.h (fdopen): New declaration.
13471         * lib/fdopen.c: New file.
13472         * m4/fdopen.m4: New file.
13473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13474         REPLACE_FDOPEN.
13475         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13476         REPLACE_FDOPEN.
13477         * modules/fdopen: New file.
13478         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13479         * tests/test-stdio-c++.cc: Check signature of fdopen.
13480         * doc/posix-functions/fdopen.texi: Mention the new module.
13481
13482 2011-09-21  Bruno Haible  <bruno@clisp.org>
13483
13484         unlockpt tests: Avoid test failure on NetBSD 5.1.
13485         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13486         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13487
13488 2011-09-21  Bruno Haible  <bruno@clisp.org>
13489
13490         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13491         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13492         * tests/test-getlogin_r.c (main): Likewise.
13493
13494 2011-09-20  Bruno Haible  <bruno@clisp.org>
13495
13496         time tests: Don't require pid_t.
13497         * doc/posix-headers/time.texi: Revert last change.
13498         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13499         * tests/test-time.c: Comment out the check for pid_t.
13500
13501 2011-09-20  Bruno Haible  <bruno@clisp.org>
13502
13503         fsync tests: Avoid a test failure on mingw.
13504         * tests/test-fsync.c (main): Allow a failure with EIO.
13505
13506 2011-09-20  Bruno Haible  <bruno@clisp.org>
13507
13508         euidaccess: Update comments.
13509         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13510
13511 2011-09-20  Bruno Haible  <bruno@clisp.org>
13512
13513         Ensure EBADF returns for socket functions on mingw.
13514         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13515         descriptor is invalid.
13516         * lib/bind.c (rpl_bind): Likewise.
13517         * lib/connect.c (rpl_connect): Likewise.
13518         * lib/getpeername.c (rpl_getpeername): Likewise.
13519         * lib/getsockname.c (rpl_getsockname): Likewise.
13520         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13521         * lib/listen.c (rpl_listen): Likewise.
13522         * lib/recv.c (rpl_recv): Likewise.
13523         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13524         * lib/send.c (rpl_send): Likewise.
13525         * lib/sendto.c (rpl_sendto): Likewise.
13526         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13527         * lib/shutdown.c (rpl_shutdown): Likewise.
13528
13529 2011-09-20  Bruno Haible  <bruno@clisp.org>
13530
13531         select tests: EBADF tests.
13532         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13533         test_bad_fd): New functions.
13534         (test_function): Invoke also test_bad_fd.
13535
13536 2011-09-20  Bruno Haible  <bruno@clisp.org>
13537
13538         Tests for module 'posix_spawn_file_actions_addopen.
13539         * modules/posix_spawn_file_actions_addopen-tests: New file.
13540         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13541
13542         Tests for module 'posix_spawn_file_actions_adddup2'.
13543         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13544         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13545
13546         Tests for module 'posix_spawn_file_actions_addclose'.
13547         * modules/posix_spawn_file_actions_addclose-tests: New file.
13548         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13549
13550 2011-09-20  Bruno Haible  <bruno@clisp.org>
13551
13552         Tests for module 'unlockpt'.
13553         * modules/unlockpt-tests: New file.
13554         * tests/test-unlockpt.c: New file.
13555         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13556
13557         Tests for module 'grantpt'.
13558         * modules/grantpt-tests: New file.
13559         * tests/test-grantpt.c: New file.
13560         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13561
13562 2011-09-20  Bruno Haible  <bruno@clisp.org>
13563
13564         freopen tests: EBADF tests.
13565         * tests/test-freopen.c: Include errno.h, unistd.h.
13566         (main): Add tests for EBADF, commented out for the moment.
13567
13568         fclose tests: EBADF tests.
13569         * tests/test-fclose.c (main): Add tests for EBADF.
13570
13571         fflush tests: EBADF tests.
13572         * tests/test-fflush.c: Include errno.h, macros.h.
13573         (main): Add tests for EBADF.
13574
13575         ftello tests: EBADF tests.
13576         * tests/test-ftello4.sh: New file.
13577         * tests/test-ftello4.c: New file.
13578         * modules/ftello-tests (Files): Add them.
13579         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13580
13581         fseeko tests: EBADF tests.
13582         * tests/test-fseeko4.sh: New file.
13583         * tests/test-fseeko4.c: New file.
13584         * modules/fseeko-tests (Files): Add them.
13585         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13586
13587         Tests for function fputc().
13588         * modules/fputc-tests: New file.
13589         * tests/test-fputc.c: New file.
13590         * modules/stdio-tests (Depends-on): Add fputc-tests.
13591
13592         Tests for function fgetc().
13593         * modules/fgetc-tests: New file.
13594         * tests/test-fgetc.c: New file.
13595         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13596
13597         Tests for function fdopen().
13598         * modules/fdopen-tests: New file.
13599         * tests/test-fdopen.c: New file.
13600         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13601
13602         Tests for module 'vdprintf'.
13603         * modules/vdprintf-tests: New file.
13604         * tests/test-vdprintf.c: New file.
13605
13606         Tests for module 'dprintf'.
13607         * modules/dprintf-tests: New file.
13608         * tests/test-dprintf.c: New file.
13609
13610 2011-09-20  Bruno Haible  <bruno@clisp.org>
13611
13612         Tests for module 'ioctl'.
13613         * modules/ioctl-tests: New file.
13614         * tests/test-ioctl.c: New file.
13615
13616 2011-09-20  Bruno Haible  <bruno@clisp.org>
13617
13618         fcntl tests: EBADF tests.
13619         * tests/test-fcntl.c (main): Add more tests for EBADF.
13620
13621 2011-09-20  Bruno Haible  <bruno@clisp.org>
13622
13623         utimensat tests: EBADF tests.
13624         * tests/test-utimensat.c (main): Add tests for EBADF.
13625
13626         renameat tests: EBADF tests.
13627         * tests/test-renameat.c (main): Add tests for EBADF.
13628
13629         mkfifoat tests: EBADF tests.
13630         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13631
13632         readlinkat tests: EBADF tests.
13633         * tests/test-readlinkat.c (main): Add tests for EBADF.
13634
13635         symlinkat tests: EBADF tests.
13636         * tests/test-symlinkat.c (main): Add tests for EBADF.
13637
13638         linkat tests: EBADF tests.
13639         * tests/test-linkat.c (main): Add tests for EBADF.
13640
13641         Tests for module 'faccessat'.
13642         * modules/faccessat-tests: New file.
13643         * tests/test-faccessat.c: New file.
13644
13645         fdopendir tests: EBADF tests.
13646         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13647
13648         openat tests: EBADF tests.
13649         * tests/test-fchownat.c (main): Add tests for EBADF.
13650         * tests/test-fstatat.c (main): Likewise.
13651         * tests/test-mkdirat.c (main): Likewise.
13652         * tests/test-openat.c (main): Likewise.
13653         * tests/test-unlinkat.c (main): Likewise.
13654         * tests/test-fchmodat.c: New file.
13655         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13656         (Makefile.am): Also run 'test-fchmodat'.
13657
13658 2011-09-20  Bruno Haible  <bruno@clisp.org>
13659
13660         utimens, futimens, fdutimensat tests: EBADF tests.
13661         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13662
13663         Tests for function fstat().
13664         * modules/fstat-tests: New file.
13665         * tests/test-fstat.c: New file.
13666         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13667
13668 2011-09-20  Bruno Haible  <bruno@clisp.org>
13669
13670         test-ttyname_r tests: EBADF tests.
13671         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13672
13673         Tests for module 'isatty'.
13674         * modules/isatty-tests: New file.
13675         * tests/test-isatty.c: New file.
13676
13677         Tests for module 'write'.
13678         * modules/write-tests: New file.
13679         * tests/test-write.c: New file.
13680
13681         Tests for module 'read'.
13682         * modules/read-tests: New file.
13683         * tests/test-read.c: New file.
13684
13685         pwrite tests: EBADF tests.
13686         * tests/test-pwrite.c (main): Add tests for EBADF.
13687
13688         pread tests: EBADF tests.
13689         * tests/test-pread.c (main): Add tests for EBADF.
13690
13691         lseek tests: EBADF tests.
13692         * tests/test-lseek.c (main): Add more tests for EBADF.
13693
13694         Tests for module 'ftruncate'.
13695         * modules/ftruncate-tests: New file.
13696         * tests/test-ftruncate.sh: New file.
13697         * tests/test-ftruncate.c: New file.
13698
13699         fsync tests: EBADF tests.
13700         * tests/test-fsync.c (main): Add more tests for EBADF.
13701
13702         fdatasync tests: EBADF tests.
13703         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13704
13705         Tests for module 'fchown'.
13706         * modules/fchown-tests: New file.
13707         * tests/test-fchown.c: New file.
13708
13709         Tests for module 'fchmod'.
13710         * modules/fchmod-tests: New file.
13711         * tests/test-fchmod.c: New file.
13712
13713         fchdir tests: EBADF tests.
13714         * tests/test-fchdir.c (main): Add more tests for EBADF.
13715
13716         dup2 tests: EBADF tests.
13717         * tests/test-dup2.c (main): Add more tests for EBADF.
13718
13719         Tests for module 'dup'.
13720         * modules/dup-tests: New file.
13721         * tests/test-dup.c: New file.
13722
13723         Tests for module 'close'.
13724         * modules/close-tests: New file.
13725         * tests/test-close.c: New file.
13726
13727 2011-09-20  Bruno Haible  <bruno@clisp.org>
13728
13729         Tests for module 'shutdown'.
13730         * modules/shutdown-tests: New file.
13731         * tests/test-shutdown.c: New file.
13732
13733         Tests for module 'setsockopt'.
13734         * modules/setsockopt-tests: New file.
13735         * tests/test-setsockopt.c: New file.
13736
13737         Tests for module 'sendto'.
13738         * modules/sendto-tests: New file.
13739         * tests/test-sendto.c: New file.
13740
13741         Tests for module 'send'.
13742         * modules/send-tests: New file.
13743         * tests/test-send.c: New file.
13744
13745         Tests for module 'recvfrom'.
13746         * modules/recvfrom-tests: New file.
13747         * tests/test-recvfrom.c: New file.
13748
13749         Tests for module 'recv'.
13750         * modules/recv-tests: New file.
13751         * tests/test-recv.c: New file.
13752
13753         Tests for module 'listen'.
13754         * modules/listen-tests: New file.
13755         * tests/test-listen.c: New file.
13756
13757         Tests for module 'getsockopt'.
13758         * modules/getsockopt-tests: New file.
13759         * tests/test-getsockopt.c: New file.
13760
13761         Tests for module 'getsockname'.
13762         * modules/getsockname-tests: New file.
13763         * tests/test-getsockname.c: New file.
13764
13765         Tests for module 'getpeername'.
13766         * modules/getpeername-tests: New file.
13767         * tests/test-getpeername.c: New file.
13768
13769         Tests for module 'connect'.
13770         * modules/connect-tests: New file.
13771         * tests/test-connect.c: New file.
13772
13773         Tests for module 'bind'.
13774         * modules/bind-tests: New file.
13775         * tests/test-bind.c: New file.
13776
13777         accept4 tests: Fix for native Windows.
13778         * tests/test-accept4.c: Include sockets.h.
13779         (main): Invoke gl_sockets_startup.
13780         * modules/accept4-tests (Depends-on): Add sockets.
13781
13782         accept tests: Fix for native Windows.
13783         * tests/test-accept.c: Include sockets.h.
13784         (main): Invoke gl_sockets_startup.
13785         * modules/accept-tests (Depends-on): Add sockets.
13786
13787 2011-09-19  Bruno Haible  <bruno@clisp.org>
13788
13789         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13790         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13791         do...while(0).
13792         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13793         Suggested by Paul Eggert.
13794
13795 2011-09-19  Bruno Haible  <bruno@clisp.org>
13796
13797         sched: Ensure pid_t is defined.
13798         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13799         not define pid_t.
13800         * lib/sched.in.h: Include <sys/types.h>.
13801         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13802         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13803
13804 2011-09-19  Bruno Haible  <bruno@clisp.org>
13805
13806         msvc-inval: Ensure the entire expansion is a single statement.
13807         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13808         of braces.
13809
13810 2011-09-19  Jim Meyering  <meyering@redhat.com>
13811
13812         tests: use printf, not echo in init.sh's warn_ function
13813         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13814         misbehave when given strings containing a backslash or starting
13815         with e.g., -n.  James Youngman suggested setting IFS.
13816
13817 2011-09-19  Eric Blake  <eblake@redhat.com>
13818
13819         futimens: enhance test
13820         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13821         closed non-negative fd.
13822
13823         date: accept 'hence' as opposite of 'ago'
13824         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13825         * tests/test-parse-datetime.c (main): Enhance test.
13826         Suggested by Jesse Wilson.
13827
13828 2011-09-19  Jim Meyering  <meyering@redhat.com>
13829
13830         getcwd: don't fail in a deep directory on a system without openat
13831         Before this change, getcwd would fail when called from a directory
13832         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13833         the non-openat implementation used "..", "../..", "../../..", etc.
13834         to access ancestor directories.  With too many, that string would
13835         be longer than PATH_MAX.
13836         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13837         using gnulib's openat replacement.
13838         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13839         we're using the replacement function.
13840
13841 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13842
13843         maint.mk: avoid warnings from perl about missing files
13844         * top/maint.mk (def_sym_regex): Ignore files listed in
13845         $(gl_other_headers_) that do not exist, say because a project
13846         does not use a corresponding module.
13847
13848 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13849
13850         stat: use pathmax.h only if needed
13851         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13852         This is better for Emacs, which does not have a mingw port and
13853         therefore can avoid the pathmax module.
13854
13855         utimens: remove dependency on dup2
13856         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13857         to work around the Linux kernel bug.
13858         * modules/utimens (Depends-on): Remove dup2.
13859
13860 2011-09-18  Bruno Haible  <bruno@clisp.org>
13861
13862         inet_ntop, inet_pton: Look for it also in libresolv.
13863         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13864         libnsl, search for it in libresolv.
13865         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13866         Needed on Solaris 7.
13867
13868 2011-09-18  Bruno Haible  <bruno@clisp.org>
13869
13870         accept, accept4 tests: Avoid link error on Solaris.
13871         * modules/accept-tests (Makefile.am): Link test-accept against
13872         $(LIBSOCKET).
13873         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13874         $(LIBSOCKET).
13875
13876         accept4: Avoid link error on Solaris.
13877         * modules/accept4 (Link): New section.
13878
13879         socket functions: Avoid link errors on Solaris.
13880         * modules/accept (Depends-on): Add socketlib.
13881         (Link): New section.
13882         * modules/bind (Depends-on): Add socketlib.
13883         (Link): New section.
13884         * modules/connect (Depends-on): Add socketlib.
13885         (Link): New section.
13886         * modules/getpeername (Depends-on): Add socketlib.
13887         (Link): New section.
13888         * modules/getsockname (Depends-on): Add socketlib.
13889         (Link): New section.
13890         * modules/getsockopt (Depends-on): Add socketlib.
13891         (Link): New section.
13892         * modules/listen (Depends-on): Add socketlib.
13893         (Link): New section.
13894         * modules/recv (Depends-on): Add socketlib.
13895         (Link): New section.
13896         * modules/recvfrom (Depends-on): Add socketlib.
13897         (Link): New section.
13898         * modules/send (Depends-on): Add socketlib.
13899         (Link): New section.
13900         * modules/sendto (Depends-on): Add socketlib.
13901         (Link): New section.
13902         * modules/setsockopt (Depends-on): Add socketlib.
13903         (Link): New section.
13904         * modules/shutdown (Depends-on): Add socketlib.
13905         (Link): New section.
13906         * modules/socket (Depends-on): Add socketlib.
13907         (Link): New section.
13908
13909 2011-09-18  Bruno Haible  <bruno@clisp.org>
13910
13911         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13912         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13913         than 5 seconds.
13914         * modules/ptsname-tests (configure.ac): Test for alarm.
13915
13916 2011-09-18  Bruno Haible  <bruno@clisp.org>
13917
13918         posix_spawn_file_actions_add*: Fix module dependencies.
13919         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13920         posix_spawn_file_actions_init.
13921         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13922         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13923
13924 2011-09-18  Bruno Haible  <bruno@clisp.org>
13925
13926         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13927         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13928         * tests/test-renameat.c (main): Likewise.
13929
13930 2011-09-18  Bruno Haible  <bruno@clisp.org>
13931
13932         Tests for module 'accept4'.
13933         * modules/accept4-tests: New file.
13934         * tests/test-accept4.c: New file.
13935
13936 2011-09-18  Bruno Haible  <bruno@clisp.org>
13937
13938         Tests for module 'accept'.
13939         * modules/accept-tests: New file.
13940         * tests/test-accept.c: New file.
13941
13942 2011-09-18  Bruno Haible  <bruno@clisp.org>
13943
13944         dup2: Support for MSVC.
13945         * lib/dup2.c: Include msvc-inval.h.
13946         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13947         _get_osfhandle calls.
13948         * modules/dup2 (Depends-on): Add msvc-inval.
13949         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13950
13951         New module 'msvc-inval'.
13952         * lib/msvc-inval.h: New file.
13953         * lib/msvc-inval.c: New file.
13954         * m4/msvc-inval.m4: New file.
13955         * modules/msvc-inval: New file.
13956
13957 2011-09-17  Bruno Haible  <bruno@clisp.org>
13958
13959         Tests for module 'pclose'.
13960         * modules/pclose-tests: New file.
13961
13962         New module 'pclose'.
13963         * lib/stdio.in.h (pclose): New declaration.
13964         * lib/pclose.c: New file.
13965         * m4/pclose.m4: New file.
13966         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13967         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13968         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13969         * modules/pclose: New file.
13970         * modules/popen-tests (Depends-on): Add pclose.
13971         * modules/popen-safer-tests (Depends-on): Likewise.
13972         * doc/posix-functions/pclose.texi: Mention the new module.
13973
13974 2011-09-17  Bruno Haible  <bruno@clisp.org>
13975
13976         popen: Support for MSVC.
13977         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13978         * lib/popen.c (popen): Provide alternate definition for native Windows.
13979         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13981         * modules/popen (Depends-on, configure.ac): Update condition.
13982         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13983         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13984         fixed.
13985
13986 2011-09-17  Bruno Haible  <bruno@clisp.org>
13987
13988         isnanl, isnand, isnanf: Work around MSVC bug.
13989         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13990
13991 2011-09-17  Bruno Haible  <bruno@clisp.org>
13992
13993         sys_socket tests: Fix recent mistake.
13994         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13995
13996 2011-09-17  Bruno Haible  <bruno@clisp.org>
13997
13998         putenv: Support for MSVC.
13999         * modules/putenv (Depends-on): Add environ.
14000         * lib/putenv.c (environ): Disable declaration.
14001         * lib/unistd.in.h: Update comment.
14002
14003 2011-09-17  Bruno Haible  <bruno@clisp.org>
14004
14005         math: Avoid macro redefinition warnings on MSVC.
14006         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14007         Undefine before redefining.
14008
14009 2011-09-17  Bruno Haible  <bruno@clisp.org>
14010
14011         doc: Mention functions which are declared as macros.
14012         * doc/posix-functions/*[fl].texi: Mention that some functions are
14013         defined as macros with arguments only.
14014
14015 2011-09-17  Bruno Haible  <bruno@clisp.org>
14016
14017         Add dependencies to new dirent related modules.
14018         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14019         * modules/fts (Depends-on): Likewise.
14020         * modules/glob (Depends-on): Likewise.
14021         * modules/savedir (Depends-on): Likewise.
14022         * modules/scandir (Depends-on): Likewise.
14023         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14024         * modules/fdopendir (Depends-on): Add opendir.
14025
14026 2011-09-17  Bruno Haible  <bruno@clisp.org>
14027
14028         inet_pton: Support for MSVC on Windows Vista or newer.
14029         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14030         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14031         HAVE_DECL_INET_PTON is defined.
14032         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14033         On platforms with <winsock2.h>, test whether inet_pton is declared in
14034         <ws2tcpip.h>. If so, arrange to replace it.
14035         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14036         REPLACE_INET_PTON.
14037         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14038         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14039         (Depends-on, configure.ac): Update condition.
14040         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14041
14042 2011-09-17  Bruno Haible  <bruno@clisp.org>
14043
14044         inet_ntop: Support for MSVC on Windows Vista or newer.
14045         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14046         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14047         HAVE_DECL_INET_NTOP is defined.
14048         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14049         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14050         <ws2tcpip.h>. If so, arrange to replace it.
14051         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14052         REPLACE_INET_NTOP.
14053         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14054         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14055         (Depends-on, configure.ac): Update condition.
14056         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14057
14058 2011-09-16  Eric Blake  <eblake@redhat.com>
14059
14060         test-fsync: yet another enhancement
14061         * tests/test-fsync.c (main): Also test behavior on read-only text
14062         file.
14063
14064 2011-09-16  Bruno Haible  <bruno@clisp.org>
14065
14066         Enhance fsync, fdatasync tests.
14067         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14068         * tests/test-fdatasync.c (main): Likewise.
14069
14070 2011-09-16  Bruno Haible  <bruno@clisp.org>
14071
14072         Support for MSVC compiler: Ensure mode_t gets defined.
14073         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14074         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14075         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14076         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14077         * tests/test-fcntl-h.c: Check that mode_t is defined.
14078         * tests/test-sys_stat.c: Likewise.
14079         * tests/test-sys_types.c: Likewise.
14080         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14081         * doc/posix-headers/sys_stat.texi: Likewise.
14082         * doc/posix-headers/sys_types.texi: Likewise.
14083
14084 2011-09-16  Bruno Haible  <bruno@clisp.org>
14085
14086         sys_stat: Support for MSVC.
14087         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14088         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14089         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14090         MSVC.
14091
14092 2011-09-16  Bruno Haible  <bruno@clisp.org>
14093
14094         Support for MSVC compiler: Ensure off_t gets defined.
14095         * lib/unistd.in.h: Include <sys/types.h>.
14096         * tests/test-fcntl-h.c: Check that off_t is defined.
14097         * tests/test-sys_stat.c: Likewise.
14098         * tests/test-sys_types.c: Likewise.
14099
14100 2011-09-16  Eric Blake  <eblake@redhat.com>
14101
14102         fdatasync: port to Solaris
14103         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14104         * modules/fdatasync (Link): Document it.
14105         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14106
14107         fdatasync: port to MacOS X 10.7
14108         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14109         declared.
14110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14111         * modules/unistd (Makefile.am): Substitute it.
14112         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14113         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14114
14115         fdatasync: minor improvements
14116         * modules/fdatasync (Depends-on): Add condition for fsync.
14117         * lib/fdatasync.c (fdatasync): Add comment.
14118         * tests/test-unistd-c++.cc: Test fdatasync.
14119
14120         unistd: update refs to newer POSIX
14121         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14122         Suggested by Bruno Haible.
14123
14124         fdatasync: new module
14125         * modules/fsync (Description): Document difference to fdatasync.
14126         * modules/fdatasync: New module.
14127         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14128         * lib/fdatasync.c (fdatasync): Likewise.
14129         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14130         defaults.
14131         * modules/unistd (Makefile.am): Set witnesses.
14132         * lib/unistd.in.h (fdatasync): Declare.
14133         * MODULES.html.sh: Document it.
14134         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14135         * modules/fdatasync-tests: New test.
14136         * tests/test-fdatasync.c: Likewise.
14137
14138 2011-09-16  Eric Blake  <eblake@redhat.com>
14139
14140         test-fsync: enhance tests
14141         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14142         * tests/test-fsync.c (main): Enhance test.
14143
14144 2011-09-15  Bruno Haible  <bruno@clisp.org>
14145
14146         Support for MSVC compiler: Ensure ssize_t gets defined.
14147         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14148         * doc/posix-headers/stdio.texi: Likewise.
14149         * modules/stdio (Depends-on): Add ssize_t.
14150         * modules/sys_socket (Depends-on): Likewise.
14151         * modules/sys_types (Depends-on): Likewise.
14152         * modules/sys_uio (Depends-on): Likewise.
14153         * modules/unistd (Depends-on): Likewise.
14154         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14155         * tests/test-sys_types.c: Check that ssize_t is defined.
14156
14157 2011-09-14  Bruno Haible  <bruno@clisp.org>
14158
14159         Avoid using #, the m4 comment starter character, near brackets.
14160         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14161         delimiter character in sed expressions.
14162         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14163         Suggested by Eric Blake.
14164
14165         Properly quote AC_CHECK_DECLS' 4th argument.
14166         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14167         argument.
14168         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14169         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14170         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14171         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14172         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14173         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14175         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14176         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14177         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14178         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14179         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14180         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14181         * m4/isinf.m4 (gl_ISINF): Likewise.
14182         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14183         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14184         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14185         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14187         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14188         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14189         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14190         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14191         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14192         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14193         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14195         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14197         Reported by Eric Blake.
14198
14199         Properly quote AC_CHECK_DECL's 4th argument.
14200         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14201         argument.
14202         * m4/argp.m4 (gl_ARGP): Likewise.
14203         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14204         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14205         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14206         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14207         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14208         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14210         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14211         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14212         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14213         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14214         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14215         Reported by Eric Blake.
14216
14217 2011-09-14  Eric Blake  <eblake@redhat.com>
14218
14219         opendir: avoid compile warning
14220         * lib/opendir.c (includes): Always include errno.h.
14221         Reported by Tatsuro MATSUOKA.
14222
14223 2011-09-14  Jim Meyering  <meyering@redhat.com>
14224
14225         maint.mk: sc_tight_scope: propagate failure from sub-make
14226         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14227         Reported by Martin von Gagern.
14228
14229 2011-09-13  Bruno Haible  <bruno@clisp.org>
14230
14231         tempname: Support for MSVC.
14232         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14233         MSVC.
14234         * modules/tempname (Depends-on): Add fcntl-h.
14235
14236 2011-09-13  Bruno Haible  <bruno@clisp.org>
14237
14238         sys_time: Support for MSVC.
14239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14240         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14241         include <winsock2.h>.
14242         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14243         function declarations that collide with POSIX.
14244         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14245         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14246
14247 2011-09-13  Bruno Haible  <bruno@clisp.org>
14248
14249         stat: Support for MSVC.
14250         * lib/stat.c: Include pathmax.h.
14251         * modules/stat (Depends-on): Add pathmax.
14252
14253         pathmax: Support for native Windows.
14254         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14255
14256 2011-09-12  Bruno Haible  <bruno@clisp.org>
14257
14258         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14259         * lib/dirent.in.h (struct dirent): New type.
14260         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14261         DT_WHT): New macros.
14262         (DIR): New type.
14263         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14264         (readdir, rewinddir): New declarations.
14265         * lib/dirent-private.h: New file.
14266         * lib/opendir.c: New file.
14267         * lib/readdir.c: New file.
14268         * lib/rewinddir.c: New file.
14269         * lib/closedir.c: New file.
14270         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14271         * m4/opendir.m4: New file.
14272         * m4/readdir.m4: New file.
14273         * m4/rewinddir.m4: New file.
14274         * m4/closedir.m4: New file.
14275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14276         REPLACE_CLOSEDIR here.
14277         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14278         readdir, rewinddir are declared.
14279         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14280         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14281         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14282         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14283         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14284         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14285         * modules/opendir: New file.
14286         * modules/readdir: New file.
14287         * modules/rewinddir: New file.
14288         * modules/closedir: New file.
14289         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14290         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14291         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14292         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14293         * NEWS: Mention the 'fchdir' change.
14294
14295 2011-09-11  Bruno Haible  <bruno@clisp.org>
14296
14297         asm-underscore.m4: Support for MSVC.
14298         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14299         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14300
14301 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14302
14303         Doc about crypt functions.
14304         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14305         needing for _GNU_SOURCE to get crypt.
14306         * doc/posix-functions/encrypt.texi: Likewise.
14307         * doc/posix-functions/setkey.texi: Likewise.
14308
14309 2011-09-11  Bruno Haible  <bruno@clisp.org>
14310
14311         doc: Update regarding MSVC 9.
14312         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14313         tested".
14314         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14315         * doc/posix-headers/*.texi: Likewise.
14316         * doc/pastposix-functions/*.texi: Likewise.
14317         * doc/glibc-functions/*.texi: Likewise.
14318         * doc/glibc-headers/*.texi: Likewise.
14319
14320 2011-09-11  Bruno Haible  <bruno@clisp.org>
14321
14322         unistd et al.: Don't assume <unistd.h> exists.
14323         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14324         does not exist.
14325         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14326         exist. But include <stdlib.h>.
14327         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14328         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14329         symlink() does not exist.
14330         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14331         include <io.h> instead.
14332         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14333         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14334         include <direct.h> instead.
14335         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14336         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14337         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14338         <io.h> instead.
14339         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14340         correctly if the system does not have hard links.
14341         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14342         <direct.h> instead.
14343         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14344         it when looking for function declarations.
14345         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14346         <direct.h> and <io.h> instead.
14347         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14348
14349 2011-09-11  Bruno Haible  <bruno@clisp.org>
14350
14351         strcase: Support for MSVC.
14352         * modules/strcase (Status, Notice): Remove obsoletion mark.
14353         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14354         * doc/posix-functions/strncasecmp.texi: Likewise.
14355
14356         strings: Don't assume <strings.h> exists.
14357         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14358         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14359         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14360         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14361
14362 2011-09-11  Bruno Haible  <bruno@clisp.org>
14363
14364         dirent: Don't assume <dirent.h> exists.
14365         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14366         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14367         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14368         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14369
14370 2011-09-11  Bruno Haible  <bruno@clisp.org>
14371
14372         Fix wint_t on MSVC.
14373         * lib/wchar.in.h (wint_t): On MSVC, override it.
14374         * lib/wctype.in.h (wint_t): Likewise.
14375         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14376         MSVC.
14377         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14378         * doc/posix-headers/wctype.texi: Likewise.
14379
14380 2011-09-11  Bruno Haible  <bruno@clisp.org>
14381
14382         sys_types: Fix typo.
14383         * lib/sys_types.in.h: Fix typo in comment.
14384         Reported by Paul Eggert.
14385
14386         Support for MSVC compiler: Ensure size_t gets defined.
14387         * modules/strings (Depends-on): Add 'sys_types'.
14388         * modules/sys_uio (Depends-on): Likewise.
14389         * lib/sys_uio.in.h: Update comment.
14390
14391         C++ tests for module 'sys_types'.
14392         * modules/sys_types-c++-tests: New file.
14393         * tests/test-sys_types-c++.cc: New file.
14394
14395         Tests for module 'sys_types'.
14396         * modules/sys_types-tests: New file.
14397         * tests/test-sys_types.c: New file.
14398
14399         New module 'sys_types'.
14400         * lib/sys_types.in.h: New file.
14401         * m4/sys_types_h.m4: New file.
14402         * modules/sys_types: New file.
14403         * doc/posix-headers/sys_types.texi: Mention the new module and the
14404         size_t problem on MSVC 9.
14405
14406 2011-09-11  Bruno Haible  <bruno@clisp.org>
14407
14408         Support for MSVC compiler: Avoid division by a literal 0.
14409         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14411         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14412         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14413         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14414         * tests/infinity.h: New file.
14415         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14416         on MSVC.
14417         * tests/test-ceilf1.c: Include infinity.h.
14418         (main): Use Infinityf.
14419         * tests/test-ceil1.c: Include infinity.h.
14420         (main): Use Infinityd.
14421         * tests/test-ceill.c: Include infinity.h.
14422         (main): Use Infinityl.
14423         * tests/test-dprintf-posix.c: Include infinity.h.
14424         (test_function): Use Infinityd.
14425         * tests/test-floorf1.c: Include infinity.h.
14426         (main): Use Infinityf.
14427         * tests/test-floor1.c: Include infinity.h.
14428         (main): Use Infinityd.
14429         * tests/test-floorl.c: Include infinity.h.
14430         (main): Use Infinityl.
14431         * tests/test-fprintf-posix.c: Include infinity.h.
14432         (test_function): Use Infinityd.
14433         * tests/test-frexp.c: Include infinity.h.
14434         (main): Use Infinityd.
14435         * tests/test-frexpl.c: Include infinity.h.
14436         (main): Use Infinityl.
14437         * tests/test-isfinite.c: Include infinity.h.
14438         (test_isfinitef): Use Infinityf.
14439         (test_isfinited): Use Infinityd.
14440         (test_isfinitel): Use Infinityl.
14441         * tests/test-isinf.c: Include infinity.h.
14442         (test_isinff): Use Infinityf.
14443         (test_isinfd): Use Infinityd.
14444         (test_isinfl): Use Infinityl.
14445         * tests/test-isnan.c: Include infinity.h.
14446         (test_float): Use Infinityf.
14447         (test_double): Use Infinityd.
14448         (test_long_double): Use Infinityl.
14449         * tests/test-isnanf.h: Include infinity.h.
14450         (main): Use Infinityf.
14451         * tests/test-isnand.h: Include infinity.h.
14452         (main): Use Infinityd.
14453         * tests/test-isnanl.h: Include infinity.h.
14454         (main): Use Infinityl.
14455         * tests/test-ldexpl.c: Include infinity.h.
14456         (main): Use Infinityl.
14457         * tests/test-printf-posix.h: Include infinity.h.
14458         (test_function): Use Infinityd.
14459         * tests/test-roundf1.c: Include infinity.h.
14460         (main): Use Infinityf.
14461         * tests/test-round1.c: Include infinity.h.
14462         (main): Use Infinityd.
14463         * tests/test-roundl.c: Include infinity.h.
14464         (main): Use Infinityl.
14465         * tests/test-signbit.c: Include infinity.h.
14466         (test_signbitf): Use Infinityf.
14467         (test_signbitd): Use Infinityd.
14468         (test_signbitl): Use Infinityl.
14469         * tests/test-snprintf-posix.h: Include infinity.h.
14470         (test_function): Use Infinityd, Infinityl.
14471         * tests/test-sprintf-posix.h: Include infinity.h.
14472         (test_function): Use Infinityd, Infinityl.
14473         * tests/test-truncf1.c: Include infinity.h.
14474         (main): Use Infinityf.
14475         * tests/test-trunc1.c: Include infinity.h.
14476         (main): Use Infinityd.
14477         * tests/test-truncl.c: Include infinity.h.
14478         (main): Use Infinityl.
14479         * tests/test-vasnprintf-posix.c: Include infinity.h.
14480         (test_function): Use Infinityd, Infinityl.
14481         * tests/test-vasprintf-posix.c: Include infinity.h.
14482         (test_function): Use Infinityd, Infinityl.
14483         * modules/ceilf-tests (Files): Add tests/infinity.h.
14484         * modules/ceil-tests (Files): Likewise.
14485         * modules/ceill-tests (Files): Likewise.
14486         * modules/dprintf-posix-tests (Files): Likewise.
14487         * modules/floorf-tests (Files): Likewise.
14488         * modules/floor-tests (Files): Likewise.
14489         * modules/floorl-tests (Files): Likewise.
14490         * modules/fprintf-posix-tests (Files): Likewise.
14491         * modules/frexp-tests (Files): Likewise.
14492         * modules/frexp-nolibm-tests (Files): Likewise.
14493         * modules/frexpl-tests (Files): Likewise.
14494         * modules/frexpl-nolibm-tests (Files): Likewise.
14495         * modules/isfinite-tests (Files): Likewise.
14496         * modules/isinf-tests (Files): Likewise.
14497         * modules/isnan-tests (Files): Likewise.
14498         * modules/isnanf-tests (Files): Likewise.
14499         * modules/isnanf-nolibm-tests (Files): Likewise.
14500         * modules/isnand-tests (Files): Likewise.
14501         * modules/isnand-nolibm-tests (Files): Likewise.
14502         * modules/isnanl-tests (Files): Likewise.
14503         * modules/isnanl-nolibm-tests (Files): Likewise.
14504         * modules/ldexpl-tests (Files): Likewise.
14505         * modules/printf-posix-tests (Files): Likewise.
14506         * modules/roundf-tests (Files): Likewise.
14507         * modules/round-tests (Files): Likewise.
14508         * modules/roundl-tests (Files): Likewise.
14509         * modules/signbit-tests (Files): Likewise.
14510         * modules/snprintf-posix-tests (Files): Likewise.
14511         * modules/sprintf-posix-tests (Files): Likewise.
14512         * modules/truncf-tests (Files): Likewise.
14513         * modules/trunc-tests (Files): Likewise.
14514         * modules/truncl-tests (Files): Likewise.
14515         * modules/vasnprintf-posix-tests (Files): Likewise.
14516         * modules/vasprintf-posix-tests (Files): Likewise.
14517         * modules/vdprintf-posix-tests (Files): Likewise.
14518         * modules/vfprintf-posix-tests (Files): Likewise.
14519         * modules/vprintf-posix-tests (Files): Likewise.
14520         * modules/vsnprintf-posix-tests (Files): Likewise.
14521         * modules/vsprintf-posix-tests (Files): Likewise.
14522         * modules/xprintf-posix-tests (Files): Likewise.
14523
14524 2011-09-11  Bruno Haible  <bruno@clisp.org>
14525
14526         Ensure pid_t gets defined.
14527         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14528         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14529         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14530         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14531         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14532         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14533         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14534         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14535         * tests/test-fcntl-h.c: Check that pid_t is defined.
14536         * tests/test-sched.c: Likewise.
14537         * tests/test-termios.c: Likewise.
14538         * tests/test-time.c: Likewise.
14539         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14540         * doc/posix-headers/signal.texi: Likewise.
14541         * doc/posix-headers/sys_types.texi: Likewise.
14542         * doc/posix-headers/time.texi: Likewise.
14543
14544 2011-09-11  Bruno Haible  <bruno@clisp.org>
14545
14546         acl: Fix compilation on Solaris 10 (older version).
14547         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14548         of ACE_EVERYONE.
14549         * lib/set-mode-acl.c (qset_acl): Likewise.
14550         Reported by Christian Jullien <eligis@orange.fr>.
14551
14552 2011-09-10  Bruno Haible  <bruno@clisp.org>
14553
14554         iconv, unsetenv: Add support for MSVC compiler.
14555         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14556         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14557
14558 2011-09-10  Bruno Haible  <bruno@clisp.org>
14559
14560         *printf: Add support for MSVC compiler.
14561         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14562         handles the exception caused by the %n directive. When cross-compiling,
14563         guess no on native Windows.
14564         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14565         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14566         emulate it through vsnprintf.
14567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14568         * doc/posix-functions/dprintf.texi: Update documentation regarding
14569         MSVC 9.
14570         * doc/posix-functions/fprintf.texi: Likewise.
14571         * doc/posix-functions/printf.texi: Likewise.
14572         * doc/posix-functions/snprintf.texi: Likewise.
14573         * doc/posix-functions/sprintf.texi: Likewise.
14574         * doc/posix-functions/swprintf.texi: Likewise.
14575         * doc/posix-functions/vdprintf.texi: Likewise.
14576         * doc/posix-functions/vfprintf.texi: Likewise.
14577         * doc/posix-functions/vprintf.texi: Likewise.
14578         * doc/posix-functions/vsnprintf.texi: Likewise.
14579         * doc/posix-functions/vsprintf.texi: Likewise.
14580         * doc/glibc-functions/asprintf.texi: Likewise.
14581         * doc/glibc-functions/obstack_printf.texi: Likewise.
14582         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14583         * doc/glibc-functions/vasprintf.texi: Likewise.
14584
14585 2011-09-10  Bruno Haible  <bruno@clisp.org>
14586
14587         nocrash: Add support for native Windows.
14588         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14589
14590 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14591             Bruno Haible  <bruno@clisp.org>
14592
14593         absolute-header, include-next: Add support for MSVC compiler.
14594         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14595         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14596         directory separator in #line directives.
14597         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14598         recognize also backslash as directory separator in #line directives.
14599
14600 2011-09-08  Jim Meyering  <meyering@redhat.com>
14601
14602         maint.mk: mark the post-release commit log with "maint: " prefix
14603         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14604         one-line commit-log summary.
14605
14606 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14607             Bruno Haible  <bruno@clisp.org>
14608
14609         Doc about crypt functions.
14610         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14611         systems.
14612         * doc/posix-functions/encrypt.texi: Likewise.
14613         * doc/posix-functions/setkey.texi: Likewise.
14614
14615 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14616
14617         * lib/gc.h: Fix copyright header.
14618
14619 2011-09-07  Bruno Haible  <bruno@clisp.org>
14620
14621         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14622         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14623         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14624
14625 2011-09-07  Bruno Haible  <bruno@clisp.org>
14626
14627         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14628         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14629         * lib/freopen.c: Likewise.
14630         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14631         * lib/lstat.c: Likewise.
14632         * lib/stat.c: Likewise.
14633         * lib/open.c: Use different syntax for include of <fcntl.h>.
14634         * lib/openat.c: Include fcntl.h again, explicitly.
14635
14636 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14637
14638         parse-datetime: document the newly accepted format
14639         * doc/parse-datetime.texi (Combined date and time of day items):
14640         New section.
14641
14642 2011-09-06  Bruno Haible  <bruno@clisp.org>
14643
14644         acl: Fix a test failure on newer Solaris 10 with ZFS.
14645         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14646         ENOSYS as no ACL.
14647         Reported by Jim Meyering.
14648
14649 2011-09-06  Bruno Haible  <bruno@clisp.org>
14650
14651         acl: Update for AIX >= 5.3 with NFS.
14652         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14653         ENOSYS as no ACL.
14654
14655         acl: Fix a test failure on AIX >= 5.3 with NFS.
14656         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14657         as no ACL.
14658
14659 2011-09-06  Bruno Haible  <bruno@clisp.org>
14660
14661         acl: Fix a test failure on IRIX 6.5 with NFS.
14662         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14663         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14664         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14665         * lib/copy-acl.c (qcopy_acl): Likewise.
14666
14667 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         openat: port to AIX 7.1 with large files
14670         AIX 7.1 does a "#define openat open64at" if large files are in use,
14671         so we can't simply #undef openat.  Use the orig_openat trick (similar
14672         to orig_open in lib/open.c) to work around the problem.  Problem
14673         reported by Kevin Brott for GNU tar, in the thread containing
14674         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14675         * lib/openat.c (__need_system_fcntl_h): Define first.
14676         Include <fcntl.h> and <sys/types.h> before undefining.
14677         (orig_openat) [HAVE_OPENAT]: New inline function.
14678         (openat) [HAVE_OPENAT]: Do not undef.
14679         (rpl_openat): Use orig_openat, not openat.
14680
14681 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14682             Bruno Haible  <bruno@clisp.org>
14683
14684         acl: Avoid errors on NonStop Kernel.
14685         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14686         ENOTSUP errors.
14687
14688 2011-09-05  Bruno Haible  <bruno@clisp.org>
14689
14690         acl: Clean up Solaris code.
14691         * lib/acl-internal.h: Remove no-op #if.
14692         * lib/file-has-acl.c: Likewise.
14693         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14694         * lib/copy-acl.c (qcopy_acl): Likewise.
14695
14696 2011-09-05  Bruno Haible  <bruno@clisp.org>
14697
14698         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14699         binaries built on the original Solaris 10.
14700         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14701         trivial.
14702
14703 2011-09-05  Bruno Haible  <bruno@clisp.org>
14704
14705         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14706         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14707         10.
14708         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14709         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14710         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14711         instead of acl_get, facl_get, acl_set, facl_set.
14712
14713 2011-09-05  Bruno Haible  <bruno@clisp.org>
14714
14715         copy-file: Try unit tests on more file systems.
14716         * tests/test-copy-file-1.sh: New file.
14717         * tests/test-copy-file-2.sh: New file.
14718         * modules/copy-file-tests (Files): Add them.
14719         (Makefile.am): Add them to TESTS.
14720
14721         acl: Try unit tests on more file systems.
14722         * tests/test-file-has-acl-1.sh: New file.
14723         * tests/test-file-has-acl-2.sh: New file.
14724         * tests/test-set-mode-acl-1.sh: New file.
14725         * tests/test-set-mode-acl-2.sh: New file.
14726         * tests/test-copy-acl-1.sh: New file.
14727         * tests/test-copy-acl-2.sh: New file.
14728         * modules/acl-tests (Files): Add them.
14729         (Makefile.am): Add them to TESTS.
14730
14731 2011-09-04  Bruno Haible  <bruno@clisp.org>
14732
14733         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14734         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14735         10.
14736         (OLD_ALLOW, OLD_DENY): New macros.
14737         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14738         ACE_ACCESS_ALLOWED_ACE_TYPE.
14739         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14740         ACE_ACCESS_DENIED_ACE_TYPE.
14741         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14742         (NEW_ACE_EXECUTE): Fix value.
14743         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14744         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14745         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14746         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14747         NEW_ACE_SYNCHRONIZE): New macros.
14748         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14749         instead of acl_fromtext, acl_set, facl_set.
14750         Fixes a coreutils/tests/cp/perm failure.
14751
14752 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         openat: test for fstatat (..., 0) bug
14755         Further testing with tar suggests that fstatat (..., 0)
14756         does not work in general, on AIX 7.1; see
14757         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14758         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14759         replacement fstatat (which is what older AIX releases were using
14760         anyway).
14761         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14762         use is now changed to orig_fstatat.  This was probably the right
14763         thing to do anyway.
14764         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14765         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14766         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14767         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14768         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14769         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14770         if the bug is found.
14771
14772         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14773         This tests for another fstatat bug on AIX 7.1:
14774         fstatat (AT_FDCWD, ..., 0) does not work.  See
14775         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14776         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14777         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14778         (rpl_fstatat): Adjust so that it works around either (or both)
14779         bugs if present.
14780         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14781
14782 2011-09-03  Karl Berry  <karl@gnu.org>
14783
14784         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14785         in index entries.
14786
14787 2011-09-02  Bruno Haible  <bruno@clisp.org>
14788
14789         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14790         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14791         values of AR, ARFLAGS, RANLIB.
14792         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14793
14794 2011-09-02  Bruno Haible  <bruno@clisp.org>
14795
14796         Find 'ar' program that fits with --host argument.
14797         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14798
14799 2011-09-02  Bruno Haible  <bruno@clisp.org>
14800
14801         tests: init.sh: Support any non-GNU diff.
14802         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14803         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14804         Solaris 8.
14805
14806 2011-09-02  Bruno Haible  <bruno@clisp.org>
14807
14808         tests: init.sh: work also with any non-GNU diff that supports -u
14809         * tests/init.sh: Relax check for diff -u support.
14810         Rather than checking for GNU diff via --version, simply check
14811         for support for -u itself.  Useful at least on OpenBSD 4.9,
14812         AIX 7.1, IRIX 6.5, and Solaris 10.
14813
14814 2011-09-01  Bruno Haible  <bruno@clisp.org>
14815
14816         strtoimax, strtoumax: Document problem on HP-UX 11.
14817         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14818         * doc/posix-functions/strtoumax.texi: Likewise.
14819
14820 2011-09-01  Bruno Haible  <bruno@clisp.org>
14821
14822         strtoumax: Avoid link error on OSF/1 with DTK cc.
14823         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14824         defined as a function.
14825         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14826         strtoumax is defined, not whether it is declared.
14827
14828 2011-09-01  Bruno Haible  <bruno@clisp.org>
14829
14830         strtoimax: Avoid link error on OSF/1 with DTK cc.
14831         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14832         defined as a function.
14833         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14834         strtoimax is defined, not whether it is declared.
14835
14836 2011-09-01  Bruno Haible  <bruno@clisp.org>
14837
14838         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14839         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14840         as a function.
14841         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14842         whether it is declared.
14843
14844 2011-09-01  Bruno Haible  <bruno@clisp.org>
14845
14846         imaxabs: Avoid link error on OSF/1 with DTK cc.
14847         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14848         as a function.
14849         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14850         whether it is declared.
14851
14852 2011-09-01  Bruno Haible  <bruno@clisp.org>
14853
14854         Tests for module 'strtoumax'.
14855         * modules/strtoumax-tests: New file.
14856         * tests/test-strtoumax.c: New file.
14857
14858         Tests for module 'strtoimax'.
14859         * modules/strtoimax-tests: New file.
14860         * tests/test-strtoimax.c: New file.
14861
14862         Tests for module 'imaxdiv'.
14863         * modules/imaxdiv-tests: New file.
14864         * tests/test-imaxdiv.c: New file.
14865
14866         Tests for module 'imaxabs'.
14867         * modules/imaxabs-tests: New file.
14868         * tests/test-imaxabs.c: New file.
14869
14870 2011-09-01  Bruno Haible  <bruno@clisp.org>
14871
14872         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14873         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14874         pthread_create.
14875
14876 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14877
14878         openat: work around AIX 7.1 fstatat issue
14879         This should fix the problem that was not properly fixed
14880         in the previous change, dated 2011-08-30.
14881         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14882         __need_system_stat_h defined.
14883         (orig_fstatat) [HAVE_FSTATAT]: New function.
14884         (rpl_fstatat): Go back to the old way of doing things,
14885         except call orig_fstatat instead of fstatat.
14886         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14887         Remove unnecessary check whether fstatat fills in st_size etc.
14888
14889 2011-09-01  Bruno Haible  <bruno@clisp.org>
14890
14891         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14892         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14893         just include the system's header.
14894
14895 2011-08-31  Jim Meyering  <meyering@redhat.com>
14896
14897         tests: avoid spurious assertion failure in test-float.c on ppc64
14898         * tests/test-float.c (test_long_double): Comment out an assertion,
14899         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14900         with gcc-4.4.4.
14901
14902         maint: indent with spaces, not TABs
14903         I need to get in the habit of running gnulib's "make check".
14904         Both of these would have been caught.
14905         * m4/largefile.m4: Indent with spaces, not TABs.
14906         * lib/parse-datetime.y (iso_8601_time): Likewise.
14907         Spotted by Pádraig Brady.
14908
14909         test-parse-datetime.c: accommodate a relatively strict gcc warning
14910         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14911         to avoid a warning from gcc's -Werror=missing-declarations.
14912         Insert a few spaces-before-funcall-parenthesis.
14913
14914 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14915
14916         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14917         The parser now accepts ISO 8601 date-time strings with "T" as the
14918         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14919         with a space between the date and time strings.  Now it also parses
14920         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14921         variants like "2004-02-29T16:21:42.333-07:00"
14922         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14923         of day representation using the 'T' separator character.
14924         * doc/parse-datetime.texi (General date syntax): replace use of
14925         deprecated --iso-8601 option with --rfc-3339 in example of date
14926         command output formats that can be parsed.
14927         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14928         lib/parse-datetime.y.
14929         (gmt_offset): New function.
14930         (main): Add additional test cases to validate ISO8601 extended
14931         date and time of day parsing.
14932
14933 2011-08-31  Bruno Haible  <bruno@clisp.org>
14934
14935         freopen: Documentation.
14936         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14937         name.
14938         Reported by Claudio Bley <claudio.bley@gmail.com>.
14939
14940 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14941
14942         freopen: Don't crash if the filename argument is NULL.
14943         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14944         NULL.
14945
14946 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14947
14948         openat: work around AIX 7.1 fstatat bug
14949         Problem reported by Kevin Brott for GNU tar, in the thread containing
14950         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14951         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14952         FSTATAT_ST_SIZE_ETC_BROKEN.
14953         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14954         rpl_fstatat.
14955         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14956         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14957         AC_CHECK_FUNCS_ONCE for fstatat.
14958         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14959         fchmodat, mkdirat, openat and unlinkat.
14960
14961 2011-08-30  Bruno Haible  <bruno@clisp.org>
14962
14963         Avoid endless recursions if config.h includes some header files.
14964         * lib/fopen.c (__need_FILE): Define already before including config.h.
14965         * lib/freopen.c (__need_FILE): Likewise.
14966         * lib/open.c (__need_system_fcntl_h): Likewise.
14967         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14968         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14969         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14970
14971 2011-08-25  Karl Berry  <karl@gnu.org>
14972
14973         * config/srclist.txt (ylwrap): new try.
14974         * build-aux/ylwrap: new file.
14975
14976 2011-08-23  Bruno Haible  <bruno@clisp.org>
14977
14978         tmpdir: Use a good default directory on native Windows.
14979         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14980         (P_tmpdir): Default to _P_tmpdir on native Windows.
14981         (path_search): On native Windows, try the value returned by GetTempPath
14982         before trying P_tmpdir.
14983         * modules/tmpdir (Depends-on): Add pathmax.
14984         Suggested by John Darrington <john@darrington.wattle.id.au>.
14985
14986 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14987
14988         doc: fix typo in README-release
14989         * top/README-release: Capitalize first word of a sentence.
14990
14991 2011-08-19  Jim Meyering  <meyering@redhat.com>
14992
14993         fts: do not exhaust memory when processing million-entry directories
14994         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14995         directory would require about 256*N bytes of memory.  Thus, it was
14996         easy to construct a directory too large to be processed by any of
14997         those tools.  With this change, fts' maximum memory utilization is
14998         now limited to around 30MB.
14999         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15000         (fts_read): When we've processed the final entry (i.e., when
15001         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15002         using the parent entry to read any remaining entries.  Dispatch
15003         depending on what fts_build returns:
15004         - NULL+stop, aka failure: stop
15005         - NULL otherwise: move up in the dir hierarchy
15006         - non-NULL: handle this new entry
15007         (fts_build): Declare and use new local, continue_readdir.
15008         Prepare to be called from fts_read, when the entries
15009         from a partially-read directory have just been exhausted.
15010         In that case, we'll skip the opendir and instead use the parent's
15011         fts_dirp and derive dir_fd from that.
15012         Finally, in the readdir loop, if we read max_entries entries,
15013         exit the loop ensuring *not* to call closedir.  This is required
15014         so that fts_dirp can be reused on a subsequent call.
15015         Prompted by Ben England's report of memory exhaustion in find
15016         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15017
15018         maint: fts: move decl of `dp' down into while loop; split a long line
15019         * lib/fts.c (fts_build): No semantic change.
15020
15021         fts: add/use new struct member, fts_dirp
15022         We are about to use this to manage any directory with
15023         too many entries to read all of them into memory at once.
15024         To do that, we'll need to save the DIR* pointer in each
15025         affected FTSENT struct.
15026         * lib/fts_.h: Include <dirent.h>.
15027         (struct FTSENT) [fts_dirp]: New member.
15028         * lib/fts.c (closedir_and_clear): Define.
15029         Use it in place of closedir so that we are sure to
15030         clear the new fts_dirp member when done with it.
15031         (fts_alloc): Initialize the new member.
15032         (fts_lfree): Free, if needed.
15033
15034         maint: fts: give __opendir2 a new parameter and rename
15035         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15036         than surreptitiously using sole caller's "dir_fd".
15037         (fts_opendir): Rename from __opendir2.
15038
15039         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15040         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15041
15042         maint: fts.c: correct off-by-one indentation
15043         * lib/fts.c (fts_build): Correct indentation, change style
15044         of a couple of block comments, and bracing style.
15045
15046         maint: fts.c: move __opendir2 #define "up" out of function body
15047         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15048
15049         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15050         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15051         out for a long time and besides was useful only on BSD systems.
15052
15053 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15054
15055         regex: port to Stratus OpenVOS
15056         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15057         define to empty, rather than attempting nonportable optimizations.
15058         Problem reported by Paul Green in:
15059         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15060         and fix suggested by Eric Blake in:
15061         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15062
15063 2011-08-17  Eric Blake  <eblake@redhat.com>
15064
15065         getcwd: fix test failures on mingw
15066         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15067         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15068         test if long directory cannot be created, and allow mingw errno.
15069
15070         getcwd-lgpl: fix m4 to match relaxed test for BSD
15071         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15072         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15073         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15074         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15075         signature problem.
15076
15077         getcwd: fix compilation on mingw64
15078         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15079         getcwd.
15080         Reported by Marc-André Lureau.
15081
15082         pipe2: silence compiler warning
15083         * lib/pipe2.c (pipe2): Hide label if it is not used.
15084
15085 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15086
15087         relocatable-prog: fix link error
15088         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15089         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15090         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15091         into modules/relocatable-lib without noticing that
15092         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15093         also needs to build relocatable.c.
15094
15095 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15096
15097         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15099         shell code: it contained a 'break' that was not in a loop.
15100         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15101         via a shell-language loop; this may have been true in old Autoconf
15102         versions, but it's not true in Autoconf 2.68.  I found this bug
15103         when testing coreutils git on Solaris 8, whose shell complains
15104         about the syntax error.
15105
15106 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15107
15108         * lib/base64.c: Fix comment to reference RFC 4648.
15109         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15110         <gvtulder@gmail.com>.
15111
15112 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15113
15114         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15115
15116         po/Makefile.in.in: fix make -q problem
15117         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15118         rule, since there's no file named 'check-macro-version' and its
15119         use as a file breaks make -q.
15120         (all): Don't depend on check-macro-version.
15121         (CHECK_MACRO_VERSION): New macro.
15122         (stamp-po): Use it.
15123
15124         configmake: fix make -q problem
15125         * modules/configmake (configmake.h): Update configmake.h's time stamp
15126         even if the file does not change.  Otherwise, 'make -q' fails.
15127         Problem reported by Simon Josefsson in
15128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15129
15130 2011-08-11  Jim Meyering  <meyering@redhat.com>
15131
15132         git-version-gen: correct the advice in a comment
15133         * build-aux/git-version-gen: Correct comment.
15134         Don't recommend to list .tarball-version in .gitignore.
15135
15136 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         base64: fix off-by-one buffer size bug
15139         Problem and (trivial) fix reported by Gijs van Tulder in
15140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15141         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15142         * tests/test-base64.c (main): Catch the bug.
15143
15144 2011-08-10  Eric Blake  <eblake@redhat.com>
15145
15146         closein: correct comments
15147         * lib/closein.c (close_stdin): Improve comments.
15148
15149 2011-08-09  Bruno Haible  <bruno@clisp.org>
15150
15151         More tests for 'fseeko'.
15152         * tests/test-fseeko3.c: New file, from Eric Blake.
15153         * tests/test-fseeko3.sh: New file.
15154         * modules/fseeko-tests (Files): Add them.
15155         (TESTS): Add test-fseeko3.sh.
15156         (check_PROGRAMS): Add test-fseeko3.
15157
15158 2011-08-09  Eric Blake  <eblake@redhat.com>
15159
15160         fseeko: remove unneeded hack
15161         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15162
15163         fseeko: fix bug on glibc
15164         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15165         Reported by John W. Eaton.
15166
15167 2011-08-08  Bruno Haible  <bruno@clisp.org>
15168
15169         unictype/base: Fix interoperability with preinstalled libunistring.
15170         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15171         Reported by Simon Josefsson.
15172
15173 2011-08-08  Bruno Haible  <bruno@clisp.org>
15174
15175         iswblank: Detect declaration correctly.
15176         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15177         AC_CHECK_DECLS invocation.
15178
15179 2011-08-08  Bruno Haible  <bruno@clisp.org>
15180
15181         tcgetsid: Detect declaration correctly.
15182         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15183         AC_CHECK_DECLS invocation.
15184         Reported by Simon Josefsson.
15185
15186 2011-08-08  Eric Blake  <eblake@redhat.com>
15187
15188         largefile: fix typo that regressed large file support
15189         * modules/largefile (configure.ac-early): Fix section name.
15190
15191 2011-08-06  Karl Berry  <karl@gnu.org>
15192
15193         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15194         a separate module.
15195
15196 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15197
15198         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15199         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15200         get prototype for free.
15201
15202 2011-08-04  Bruno Haible  <bruno@clisp.org>
15203
15204         Tests for module 'pathmax'.
15205         * modules/pathmax-tests: New file.
15206         * tests/test-pathmax.c: New file.
15207
15208         canonicalize-lgpl: Support larger filenames on the Hurd.
15209         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15210         Reported by Paul Eggert.
15211
15212         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15213         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15214         * lib/chdir-long.h: Include pathmax.h.
15215         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15216         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15217         (PATH_MAX): Remove code that is done by pathmax.h.
15218         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15219         * lib/tmpfile.c: Add a comment.
15220         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15221         * modules/chdir-long (Depends-on): Add pathmax.
15222         * modules/getcwd (Depends-on): Add pathmax.
15223         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15224         is not defined.
15225         * doc/posix-headers/limits.texi: Mention the pathmax module.
15226         * NEWS: Mention the change.
15227
15228 2011-08-02  Bruno Haible  <bruno@clisp.org>
15229
15230         pthread_sigmask: Actually use results of gl_THREADLIB.
15231         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15232         gl_THREADLIB, not gl_[]THREADLIB.
15233         Reported by Eric Blake.
15234
15235 2011-08-02  Jim Meyering  <meyering@redhat.com>
15236
15237         maint.mk: relax the default _gl_TS_function_match regexp
15238         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15239         space between function name and "(" in an "extern" declaration.
15240         That would fail to match a decl with no space there: extern void foo();
15241
15242 2011-07-31  Iain Nicol  <iain@thenicols.net>
15243
15244         git-version-gen: document that EXTRA_DIST must include .version
15245         * build-aux/git-version-gen: In the how-to-use comment, document
15246         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15247         will fail when run from an unpacked distribution tarball.
15248
15249 2011-08-01  Bruno Haible  <bruno@clisp.org>
15250
15251         wctype-h: Fix last change.
15252         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15253         REPLACE_TOWLOWER to 0.
15254         Reported by Sam Steingold <sds@gnu.org>.
15255
15256 2011-07-31  Bruno Haible  <bruno@clisp.org>
15257
15258         frexpl: Update autoconf test.
15259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15260         according to changes of 2011-06-20.
15261
15262 2011-07-31  Bruno Haible  <bruno@clisp.org>
15263
15264         sys_utsname: Add support for Minix.
15265         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15266         <sys/utsname.h>.
15267         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15268         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15269
15270 2011-07-31  Bruno Haible  <bruno@clisp.org>
15271
15272         strings: Add support for Minix.
15273         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15274         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15275         * doc/posix-headers/strings.texi: Document the Minix problem.
15276
15277 2011-07-31  Bruno Haible  <bruno@clisp.org>
15278
15279         wctype-h: Add support for Minix.
15280         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15281         REPLACE_TOWLOWER.
15282         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15283         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15284         REPLACE_ISWCNTRL.
15285
15286 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15287
15288         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15289         This is a performance improvement for 64-bit hosts: it causes the
15290         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15291
15292 2011-07-31  Bruno Haible  <bruno@clisp.org>
15293
15294         stdioext: Add support for Minix.
15295         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15296         * lib/fpurge.c (fpurge): Likewise.
15297         * lib/freadahead.c (freadahead): Likewise.
15298         * lib/freadable.c (freadable): Likewise.
15299         * lib/freading.c (freading): Likewise.
15300         * lib/freadptr.c (freadptr): Likewise.
15301         * lib/freadseek.c (freadptrinc): Likewise.
15302         * lib/fseeko.c (rpl_fseeko): Likewise.
15303         * lib/fseterr.c (fseterr): Likewise.
15304         * lib/fwritable.c (fwritable): Likewise.
15305         * lib/fwriting.c (fwriting): Likewise.
15306         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15307         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15308
15309 2011-07-31  Bruno Haible  <bruno@clisp.org>
15310
15311         errno: Port to Minix.
15312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15313         ECONNABORTED are defined.
15314         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15315         GNULIB_defined_ECONNABORTED): New macros.
15316         * lib/strerror-override.h (strerror_override): Test also
15317         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15318         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15319         ECONNABORTED.
15320         * doc/posix-headers/errno.texi: Mention the Minix problem.
15321
15322 2011-07-31  Bruno Haible  <bruno@clisp.org>
15323
15324         Work around declaration collisions on Minix.
15325         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15326         defined, set REPLACE_MBSINIT.
15327         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15328         defined, set REPLACE_MBRTOWC.
15329         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15330         set REPLACE_MBRLEN.
15331         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15332         defined, set REPLACE_MBSRTOWCS.
15333         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15334         defined, set REPLACE_WCRTOMB.
15335         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15336         defined, set REPLACE_WCSRTOMBS.
15337
15338 2011-07-31  Bruno Haible  <bruno@clisp.org>
15339
15340         Add support for Minix with ACK compiler.
15341         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15342         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15343         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15344
15345 2011-07-31  Bruno Haible  <bruno@clisp.org>
15346
15347         Documentation about Minix.
15348         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15349         * doc/glibc-headers/*.texi: Likewise.
15350         * doc/posix-functions/*.texi: Likewise.
15351         * doc/glibc-functions/*.texi: Likewise.
15352
15353 2011-07-31  Bruno Haible  <bruno@clisp.org>
15354
15355         snippet/warn-on-use: Fix indentation.
15356         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15357
15358 2011-07-25  Jim Meyering  <meyering@redhat.com>
15359
15360         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15361         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15362         commands.
15363
15364 2011-07-27  Jim Meyering  <meyering@redhat.com>
15365
15366         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15367         * top/maint.mk (gl_extract_significant_defines_): Now that
15368         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15369         gnulib/lib/signal.in.h, and now that we recommend to
15370         define-if-undefined those two symbols in application code,
15371         we must filter them out of the "significant" list.
15372         This avoids a "make syntax-check" failure in coreutils.
15373
15374 2011-07-26  Eric Blake  <eblake@redhat.com>
15375
15376         warnings: add comments about previous patch
15377         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15378         * m4/include_next.m4: Likewise.
15379         * m4/warn-on-use.m4: Likewise.
15380         * m4/warnings.m4: Likewise, and simplify use.
15381         Suggested by Stefano Lattarini.
15382
15383         include-next, warnings: support older autoconf
15384         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15385         AS_VAR_PUSHDEF in a way that works with older autoconf.
15386         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15387         Reported by Daniel P. Berrange.
15388
15389 2011-07-25  Bruno Haible  <bruno@clisp.org>
15390
15391         fseek, ftell: Fix doc.
15392         * doc/posix-functions/fseek.texi: Reword statement about
15393         AC_SYS_LARGEFILE.
15394         * doc/posix-functions/ftell.texi: Likewise.
15395
15396 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15397             Bruno Haible  <bruno@clisp.org>
15398
15399         Add dependencies to the 'largefile' module.
15400         * modules/fopen (Depends-on): Add 'largefile'.
15401         * modules/freopen (Depends-on): Likewise.
15402         * modules/fseeko (Depends-on): Likewise.
15403         * modules/ftello (Depends-on): Likewise.
15404         * modules/glob (Depends-on): Likewise.
15405         * modules/lseek (Depends-on): Likewise.
15406         * modules/lstat (Depends-on): Likewise.
15407         * modules/mkostemp (Depends-on): Likewise.
15408         * modules/mkostemps (Depends-on): Likewise.
15409         * modules/mkstemp (Depends-on): Likewise.
15410         * modules/mkstemps (Depends-on): Likewise.
15411         * modules/open (Depends-on): Likewise.
15412         * modules/openat (Depends-on): Likewise.
15413         * modules/pread (Depends-on): Likewise.
15414         * modules/pwrite (Depends-on): Likewise.
15415         * modules/scandir (Depends-on): Likewise.
15416         * modules/stat (Depends-on): Likewise.
15417         * modules/tmpfile (Depends-on): Likewise.
15418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15419         since the containing module now depends on the largefile module.
15420         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15421         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15422         off_t is fixed by gnulib.
15423         * doc/posix-functions/freopen.texi: Likewise.
15424         * doc/posix-functions/fseeko.texi: Likewise.
15425         * doc/posix-functions/fstatat.texi: Likewise.
15426         * doc/posix-functions/ftello.texi: Likewise.
15427         * doc/posix-functions/glob.texi: Likewise.
15428         * doc/posix-functions/lseek.texi: Likewise.
15429         * doc/posix-functions/lstat.texi: Likewise.
15430         * doc/posix-functions/mkstemp.texi: Likewise.
15431         * doc/posix-functions/open.texi: Likewise.
15432         * doc/posix-functions/openat.texi: Likewise.
15433         * doc/posix-functions/pread.texi: Likewise.
15434         * doc/posix-functions/pwrite.texi: Likewise.
15435         * doc/posix-functions/scandir.texi: Likewise.
15436         * doc/posix-functions/stat.texi: Likewise.
15437         * doc/posix-functions/tmpfile.texi: Likewise.
15438         * doc/glibc-functions/mkostemp.texi: Likewise.
15439         * doc/glibc-functions/mkostemps.texi: Likewise.
15440         * doc/glibc-functions/mkstemps.texi: Likewise.
15441
15442 2011-07-25  Bruno Haible  <bruno@clisp.org>
15443
15444         fcntl: Move AC_LIBOBJ invocation to module description.
15445         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15446         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15447
15448         fcntl: Remove call-in from fchdir.m4.
15449         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15451
15452         dup3: Remove potential call-in from fchdir.m4.
15453         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15455
15456         dup2: Move AC_LIBOBJ invocation to module description.
15457         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15458         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15459         Don't invoke AC_LIBOBJ.
15460         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15461
15462         dup2: Remove call-in from fchdir.m4.
15463         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15465
15466         fclose: Move AC_LIBOBJ invocation to module description.
15467         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15468         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15469         to 1.
15470         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15471
15472         fclose: Remove call-in from close.m4.
15473         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15474         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15475
15476         close: Move AC_LIBOBJ invocation to module description.
15477         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15478         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15479         1.
15480         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15481
15482         close: Remove call-in from fchdir.m4.
15483         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15485
15486         open: Move AC_LIBOBJ invocation to module description.
15487         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15488         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15489         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15490
15491         open: Remove call-in from fchdir.m4.
15492         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15494
15495         fchdir: Start to remove gl_REPLACE_* idiom.
15496         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15497         (gl_FUNC_FCHDIR): Invoke it.
15498
15499 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15500
15501         * lib/ftell.c (ftell): Comment out cast.
15502
15503         close: use gl_REPLACE_FCLOSE only if defined
15504         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15505         is defined.  The close module doesn't depend on the fclose module
15506         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15508         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15509
15510 2011-07-24  Jim Meyering  <meyering@redhat.com>
15511
15512         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15513         * tests/test-select.h (test_function): Declare as "static".
15514
15515 2011-07-24  Bruno Haible  <bruno@clisp.org>
15516
15517         doc: Mention the effects of AC_SYS_LARGEFILE.
15518         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15519         on this function.
15520         * doc/posix-functions/aio_error.texi: Likewise.
15521         * doc/posix-functions/aio_fsync.texi: Likewise.
15522         * doc/posix-functions/aio_read.texi: Likewise.
15523         * doc/posix-functions/aio_return.texi: Likewise.
15524         * doc/posix-functions/aio_suspend.texi: Likewise.
15525         * doc/posix-functions/aio_write.texi: Likewise.
15526         * doc/posix-functions/fgetpos.texi: Likewise.
15527         * doc/posix-functions/fopen.texi: Likewise.
15528         * doc/posix-functions/freopen.texi: Likewise.
15529         * doc/posix-functions/fsetpos.texi: Likewise.
15530         * doc/posix-functions/fstatvfs.texi: Likewise.
15531         * doc/posix-functions/ftruncate.texi: Likewise.
15532         * doc/posix-functions/ftw.texi: Likewise.
15533         * doc/posix-functions/getrlimit.texi: Likewise.
15534         * doc/posix-functions/glob.texi: Likewise.
15535         * doc/posix-functions/lio_listio.texi: Likewise.
15536         * doc/posix-functions/lockf.texi: Likewise.
15537         * doc/posix-functions/mkstemp.texi: Likewise.
15538         * doc/posix-functions/mmap.texi: Likewise.
15539         * doc/posix-functions/nftw.texi: Likewise.
15540         * doc/posix-functions/openat.texi: Likewise.
15541         * doc/posix-functions/opendir.texi: Likewise.
15542         * doc/posix-functions/posix_fadvise.texi: Likewise.
15543         * doc/posix-functions/posix_fallocate.texi: Likewise.
15544         * doc/posix-functions/pread.texi: Likewise.
15545         * doc/posix-functions/pwrite.texi: Likewise.
15546         * doc/posix-functions/readdir.texi: Likewise.
15547         * doc/posix-functions/readdir_r.texi: Likewise.
15548         * doc/posix-functions/rewinddir.texi: Likewise.
15549         * doc/posix-functions/scandir.texi: Likewise.
15550         * doc/posix-functions/seekdir.texi: Likewise.
15551         * doc/posix-functions/setrlimit.texi: Likewise.
15552         * doc/posix-functions/statvfs.texi: Likewise.
15553         * doc/posix-functions/telldir.texi: Likewise.
15554         * doc/posix-functions/tmpfile.texi: Likewise.
15555         * doc/posix-functions/truncate.texi: Likewise.
15556         * doc/glibc-functions/fallocate.texi: Likewise.
15557         * doc/glibc-functions/fstatfs.texi: Likewise.
15558         * doc/glibc-functions/fts_children.texi: Likewise.
15559         * doc/glibc-functions/fts_read.texi: Likewise.
15560         * doc/glibc-functions/getdirentries.texi: Likewise.
15561         * doc/glibc-functions/mkostemp.texi: Likewise.
15562         * doc/glibc-functions/mkostemps.texi: Likewise.
15563         * doc/glibc-functions/mkstemps.texi: Likewise.
15564         * doc/glibc-functions/preadv.texi: Likewise.
15565         * doc/glibc-functions/pwritev.texi: Likewise.
15566         * doc/glibc-functions/sendfile.texi: Likewise.
15567         * doc/glibc-functions/statfs.texi: Likewise.
15568
15569 2011-07-24  Bruno Haible  <bruno@clisp.org>
15570
15571         doc: Fix typo.
15572         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15573
15574 2011-07-24  Bruno Haible  <bruno@clisp.org>
15575
15576         doc: Mention fsusage.
15577         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15578
15579 2011-07-24  Bruno Haible  <bruno@clisp.org>
15580
15581         doc: Mention new glibc headers and functions.
15582         * doc/glibc-headers/gshadow.texi: New file.
15583         * doc/glibc-functions/endsgent.texi: New file.
15584         * doc/glibc-functions/fgetsgent.texi: New file.
15585         * doc/glibc-functions/fgetsgent_r.texi: New file.
15586         * doc/glibc-functions/getsgent.texi: New file.
15587         * doc/glibc-functions/getsgent_r.texi: New file.
15588         * doc/glibc-functions/getsgnam.texi: New file.
15589         * doc/glibc-functions/getsgnam_r.texi: New file.
15590         * doc/glibc-functions/putsgent.texi: New file.
15591         * doc/glibc-functions/setsgent.texi: New file.
15592         * doc/glibc-functions/sgetsgent.texi: New file.
15593         * doc/glibc-functions/sgetsgent_r.texi: New file.
15594         * doc/glibc-functions/malloc_info.texi: New file.
15595         * doc/glibc-functions/preadv.texi: New file.
15596         * doc/glibc-functions/pwritev.texi: New file.
15597         * doc/glibc-functions/register_printf_modifier.texi: New file.
15598         * doc/glibc-functions/register_printf_specifier.texi: New file.
15599         * doc/glibc-functions/register_printf_type.texi: New file.
15600         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15601         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15602         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15603         * doc/glibc-functions/pthread_getname_np.texi: New file.
15604         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15605         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15606         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15607         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15608         * doc/glibc-functions/pthread_setname_np.texi: New file.
15609         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15610         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15611         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15612         * doc/glibc-functions/qsort_r.texi: New file.
15613         * doc/glibc-functions/quick_exit.texi: New file.
15614         * doc/glibc-functions/syncfs.texi: New file.
15615         * doc/gnulib.texi: Include them.
15616         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15617         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15618         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15619         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15620         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15621         * doc/glibc-functions/execvpe.texi: Likewise.
15622
15623 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15624
15625         ftell: don't include <unistd.h>
15626         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15627         guaranteed to define off_t, and the ftell module depends on the
15628         stdio module.
15629
15630         ftell: do not assume wraparound signed arithmetic
15631         * lib/ftell.c: Include <limits.h>.
15632         (ftell): Don't assume wraparound signed arithmetic.
15633
15634 2011-07-24  Bruno Haible  <bruno@clisp.org>
15635
15636         close: No longer depend on module 'fclose'.
15637         * modules/close (Depends-on): Remove fclose.
15638         * NEWS: Mention the change.
15639         Suggested by Sam Steingold <sds@gnu.org>.
15640
15641 2011-07-24  Bruno Haible  <bruno@clisp.org>
15642
15643         fsusage: Enable large volume support on AIX >= 5.2.
15644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15645         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15646         instead of STAT_STATVFS.
15647         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15648
15649         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15650         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15651         f_blocks field only on MacOS X.
15652
15653         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15655         * modules/fsusage (Depends-on): Add largefile.
15656
15657 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15658
15659         * README: Modernize discussion of signed integers.
15660         Assuming overflow wraparound is no longer safe.
15661         Mention ones' complement and signed magnitude.
15662
15663 2011-07-22  Bruno Haible  <bruno@clisp.org>
15664
15665         select tests, pselect tests: Refactor.
15666         * tests/test-select.h: New file, extracted from tests/test-select.c.
15667         (select_fn): New type.
15668         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15669         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15670         test_pipe): Add my_select argument.
15671         (test_function): Renamed from main. Add my_select argument.
15672         * tests/test-select.c: Move most code to tests/test-select.h. Include
15673         test-select.h.
15674         * modules/select-tests (Files): Add tests/test-select.h.
15675         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15676         (my_select, main): New functions.
15677         * modules/pselect-tests (Files): Add tests/test-select.h,
15678         tests/macros.h, tests/signature.h.
15679         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15680         (configure.ac): Check for <sys/wait.h>.
15681
15682 2011-07-22  Bruno Haible  <bruno@clisp.org>
15683
15684         sys_select tests: Check the signature of FD_*.
15685         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15686         signature tests from here...
15687         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15688         here.
15689         * modules/sys_select-tests (Files): Add tests/signature.h.
15690
15691 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15692
15693         largefile: new module, replacing large-inode
15694         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15695         * MODULES.html.sh: Add largefile, remove large-inode.
15696         * modules/largefile, m4/largefile.m4: New files.
15697         * modules/large-inode, m4/large-inode.m4: Remove.
15698
15699         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15700         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15701         implementations that use only 32 bits to count blocks.
15702         On typical hosts with 1024-byte blocks, this fails with file
15703         systems as small as 4 TiB.  Problem reported by Herb Wartens
15704         <http://debbugs.gnu.org/9140> and this should also fix a similar
15705         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15706
15707         large-inode: New module
15708         * MODULES.html.sh: Add it.
15709         * modules/large-inode, m4/large-inode.m4: New files.
15710
15711         extensions: Enable extensions on MacOS X 10.5 and later.
15712         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15713
15714 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15715
15716         file-has-acl: use acl_extended_file_nofollow if available
15717         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15718         (acl_extended_file): New macro.
15719         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15720         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15721
15722 2011-07-21  Bruno Haible  <bruno@clisp.org>
15723
15724         Declare system functions in a way that works with C++.
15725         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15726         declare fdopendir as extern "C".
15727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15728         declare frexpl as extern "C".
15729         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15730         declare gai_strerror as extern "C".
15731         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15732         programs, declare gai_strerror as extern "C".
15733         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15734         declare getlogin_r as extern "C".
15735         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15736         as extern "C".
15737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15738         declare ldexpl as extern "C".
15739         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15740         as extern "C".
15741         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15742         program, declare getmntinfo as extern "C".
15743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15744         stpncpy as extern "C".
15745         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15746         program, declare __xpg_strerror_r as extern "C".
15747         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15748         strndup as extern "C".
15749         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15750         declare memset and bzero as extern "C".
15751         Reported by Sam Steingold <sds@gnu.org>.
15752
15753 2011-07-12  Jim Meyering  <meyering@redhat.com>
15754
15755         maint.mk: prohibit inclusion of "verify.h" without use
15756         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15757
15758 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15759
15760         timer-time: A new module to check for timer_settime()
15761         * m4/timer_time.m4: Check for the posix function.
15762         * modules/timer-time: Add the new module.
15763         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15764         Mention it.
15765
15766 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15767             Bruno Haible  <bruno@clisp.org>
15768
15769         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15770         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15771         not defined, assume POSIX threads and look for pthread_sigmask in
15772         $LIBS, without changing $CPPFLAGS.
15773
15774 2011-07-19  Bruno Haible  <bruno@clisp.org>
15775
15776         strstr: Update cross-compilation guess.
15777         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15778         CPUs, guess no, in view of glibc
15779         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15780         Suggested by Eric Blake. Reported by Reuben Thomas.
15781
15782 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15783
15784         getopt-gnu: suppress core dumps from detection code
15785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15786         to suppress core dumps that may well occur on glibc systems.
15787         * modules/getopt-gnu: Depend on nocrash.
15788
15789 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15790
15791         pthread_sigmask: ensure usleep is declared
15792         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15793         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15794
15795 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15796
15797         doc: Document NonStop portability issues.
15798         * doc/posix-functions/sigaction.texi (sigaction):
15799         * doc/posix-headers/signal.texi (signal.h):
15800         Document NonStop.  See Joachim Schmitz in
15801         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15802
15803 2011-07-15  Bruno Haible  <bruno@clisp.org>
15804
15805         ffsl, ffsll: Avoid unportable behaviour.
15806         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15807
15808 2011-07-15  Bruno Haible  <bruno@clisp.org>
15809
15810         ffs: More tests.
15811         * tests/test-ffs.c (NBITS): New macro.
15812         (main): Add more tests.
15813         * tests/test-ffsl.c (NBITS): New macro.
15814         (main): Add more tests.
15815         * tests/test-ffsll.c (NBITS): New macro.
15816         (main): Add more tests.
15817
15818 2011-07-15  Eric Blake  <eblake@redhat.com>
15819
15820         ffsl, ffsll: new modules
15821         * modules/ffsl: New file.
15822         * modules/ffsll: Likewise.
15823         * m4/ffsl.m4: Likewise.
15824         * m4/ffsll.m4: Likewise.
15825         * lib/ffsl.c: Likewise.
15826         * lib/ffsl.h: Likewise.
15827         * lib/ffsll.c: Likewise.
15828         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15829         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15830         * modules/string (Makefile.am): Substitute witnesses.
15831         * lib/strings.in.h (ffsl, ffsll): Declare.
15832         * modules/ffsl-tests: New test file.
15833         * modules/ffsll-tests: Likewise.
15834         * tests/test-ffsl.c: Likewise.
15835         * tests/test-ffsll.c: Likewise.
15836         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15837         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15838         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15839
15840         ffs: fix m4 prerequisite
15841         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15842
15843         ffs: avoid undefined behavior
15844         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15845         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15846         Reported by Bruno Haible.
15847
15848 2011-07-12  Bruno Haible  <bruno@clisp.org>
15849
15850         pthread_sigmask: Rely on module 'threadlib'.
15851         * modules/pthread_sigmask (Depends-on): Add threadlib.
15852         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15853         is defined.
15854
15855 2011-07-12  Bruno Haible  <bruno@clisp.org>
15856
15857         regex: Depend on module 'strcase'.
15858         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15859
15860 2011-07-12  Jim Meyering  <meyering@redhat.com>
15861
15862         warn-on-use: fix typo in file name
15863         * modules/snippet/warn-on-use (Files): Correct file name:
15864         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15865
15866 2011-07-12  Bruno Haible  <bruno@clisp.org>
15867
15868         strings: Document module.
15869         * doc/posix-headers/strings.texi: Mention module 'strings'.
15870
15871 2011-07-12  Bruno Haible  <bruno@clisp.org>
15872
15873         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15874         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15875         (Files, Makefile.am): Update.
15876         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15877         * modules/stdlib (Depends-on): Update.
15878
15879 2011-07-12  Bruno Haible  <bruno@clisp.org>
15880
15881         * NEWS: Mention the changes.
15882
15883         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15884         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15885         (Files, Makefile.am): Update.
15886         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15887         * modules/arpa_inet (Depends-on): Update.
15888         * modules/ctype (Depends-on): Update.
15889         * modules/dirent (Depends-on): Update.
15890         * modules/fcntl-h (Depends-on): Update.
15891         * modules/glob (Depends-on): Update.
15892         * modules/iconv-h (Depends-on): Update.
15893         * modules/inttypes-incomplete (Depends-on): Update.
15894         * modules/langinfo (Depends-on): Update.
15895         * modules/locale (Depends-on): Update.
15896         * modules/math (Depends-on): Update.
15897         * modules/netdb (Depends-on): Update.
15898         * modules/poll-h (Depends-on): Update.
15899         * modules/pty (Depends-on): Update.
15900         * modules/search (Depends-on): Update.
15901         * modules/signal (Depends-on): Update.
15902         * modules/spawn (Depends-on): Update.
15903         * modules/stdio (Depends-on): Update.
15904         * modules/stdlib (Depends-on): Update.
15905         * modules/string (Depends-on): Update.
15906         * modules/strings (Depends-on): Update.
15907         * modules/sys_file (Depends-on): Update.
15908         * modules/sys_ioctl (Depends-on): Update.
15909         * modules/sys_select (Depends-on): Update.
15910         * modules/sys_socket (Depends-on): Update.
15911         * modules/sys_stat (Depends-on): Update.
15912         * modules/sys_time (Depends-on): Update.
15913         * modules/sys_times (Depends-on): Update.
15914         * modules/sys_utsname (Depends-on): Update.
15915         * modules/sys_wait (Depends-on): Update.
15916         * modules/termios (Depends-on): Update.
15917         * modules/time (Depends-on): Update.
15918         * modules/unistd (Depends-on): Update.
15919         * modules/wchar (Depends-on): Update.
15920         * modules/wctype-h (Depends-on): Update.
15921         * MODULES.html.sh (Support for building libraries and executables):
15922         Update.
15923
15924         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15925         * modules/snippet/unused-parameter: Renamed from
15926         modules/unused-parameter.
15927         (Files, Makefile.am): Update.
15928         * build-aux/snippet/unused-parameter.h: Renamed from
15929         build-aux/unused-parameter.h.
15930         * modules/selinux-h (Depends-on): Update.
15931         * modules/unistr/base (Depends-on): Update.
15932         * MODULES.html.sh (Core language properties): Update.
15933
15934         Rename module 'link-warning' to 'snippet/link-warning'.
15935         * modules/snippet/link-warning: Renamed from modules/link-warning.
15936         (Files, Makefile.am): Update.
15937         * build-aux/snippet/link-warning.h: Renamed from
15938         build-aux/link-warning.h.
15939         * MODULES.html.sh (Support for building libraries and executables):
15940         Update.
15941
15942         Rename module 'c++defs' to 'snippet/c++defs'.
15943         * modules/snippet/c++defs: Renamed from modules/c++defs.
15944         (Files, Makefile.am): Update.
15945         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15946         * modules/arpa_inet (Depends-on): Update.
15947         * modules/ctype (Depends-on): Update.
15948         * modules/dirent (Depends-on): Update.
15949         * modules/fcntl-h (Depends-on): Update.
15950         * modules/glob (Depends-on): Update.
15951         * modules/iconv-h (Depends-on): Update.
15952         * modules/langinfo (Depends-on): Update.
15953         * modules/locale (Depends-on): Update.
15954         * modules/math (Depends-on): Update.
15955         * modules/netdb (Depends-on): Update.
15956         * modules/poll-h (Depends-on): Update.
15957         * modules/pty (Depends-on): Update.
15958         * modules/search (Depends-on): Update.
15959         * modules/signal (Depends-on): Update.
15960         * modules/spawn (Depends-on): Update.
15961         * modules/stdio (Depends-on): Update.
15962         * modules/stdlib (Depends-on): Update.
15963         * modules/string (Depends-on): Update.
15964         * modules/strings (Depends-on): Update.
15965         * modules/sys_ioctl (Depends-on): Update.
15966         * modules/sys_select (Depends-on): Update.
15967         * modules/sys_socket (Depends-on): Update.
15968         * modules/sys_stat (Depends-on): Update.
15969         * modules/sys_time (Depends-on): Update.
15970         * modules/sys_wait (Depends-on): Update.
15971         * modules/termios (Depends-on): Update.
15972         * modules/time (Depends-on): Update.
15973         * modules/unistd (Depends-on): Update.
15974         * modules/wchar (Depends-on): Update.
15975         * modules/wctype-h (Depends-on): Update.
15976
15977         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15978         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15979         (Files, Makefile.am): Update.
15980         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15981         * modules/argv-iter (Depends-on): Update.
15982         * modules/arpa_inet (Depends-on): Update.
15983         * modules/dirent (Depends-on): Update.
15984         * modules/fcntl-h (Depends-on): Update.
15985         * modules/fnmatch (Depends-on): Update.
15986         * modules/getopt-posix (Depends-on): Update.
15987         * modules/glob (Depends-on): Update.
15988         * modules/iconv-h (Depends-on): Update.
15989         * modules/inttypes-incomplete (Depends-on): Update.
15990         * modules/locale (Depends-on): Update.
15991         * modules/math (Depends-on): Update.
15992         * modules/netdb (Depends-on): Update.
15993         * modules/search (Depends-on): Update.
15994         * modules/signal (Depends-on): Update.
15995         * modules/spawn (Depends-on): Update.
15996         * modules/stdio (Depends-on): Update.
15997         * modules/stdlib (Depends-on): Update.
15998         * modules/string (Depends-on): Update.
15999         * modules/strings (Depends-on): Update.
16000         * modules/sys_socket (Depends-on): Update.
16001         * modules/sys_stat (Depends-on): Update.
16002         * modules/sys_time (Depends-on): Update.
16003         * modules/sys_times (Depends-on): Update.
16004         * modules/sys_utsname (Depends-on): Update.
16005         * modules/time (Depends-on): Update.
16006         * modules/unistd (Depends-on): Update.
16007         * modules/wchar (Depends-on): Update.
16008         * MODULES.html.sh (Support for building libraries and executables):
16009         Update.
16010
16011 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16012
16013         Improvements on _Noreturn and related modules.
16014
16015         modules/_Exit-tests: test _Noreturn too
16016         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16017         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16018         (main): Use them.
16019
16020         stdnoreturn, stdnoreturn-tests: remove modules
16021         They're not needed here and a bit premature for use elsewhere.  See
16022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16023         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16024         * tests/test-stdnoreturn.c: Remove files.
16025         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16026         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16027         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16028         and using noreturn.
16029         * modules/openat, modules/sigpipe-die, modules/xalloc:
16030         * modules/xmemdup0, modules/xstrtol:
16031         Remove dependency on stdnoreturn.
16032
16033         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16034         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16035         Reparenthesize to avoid GCC warning.
16036         Support Microsoft's syntax.
16037         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16038
16039         _Noreturn-tests: remove module
16040         * modules/_Noreturn-tests: Remove.
16041         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16042         * tests/test-_Noreturn.c: Remove.
16043         * tests/test-stdnoreturn.c: Merge from the old
16044         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16045
16046 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16047
16048         _Noreturn, stdnoreturn, and related modules.
16049
16050         * top/maint.mk: Adjust to new noreturn support.
16051         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16052         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16053
16054         xalloc: use stdnoreturn.h
16055         * lib/xalloc.h: Include <stdnoreturn.h>.
16056         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16057         * modules/xalloc (Depends-on): Add stdnoreturn.
16058
16059         xstrtol: use stdnoreturn.h
16060         * lib/xstrtol.h: Include <stdnoreturn.h>.
16061         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16062         * modules/xstrtol (Depends-on): Add stdnoreturn.
16063
16064         xmemdup0: use stdnoreturn.h
16065         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16066         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16067         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16068
16069         sigpipe-die: use stdnoreturn.h
16070         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16071         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16072         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16073
16074         openat: use stdnoreturn.h
16075         * lib/openat.h: Include <stdnoreturn.h>.
16076         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16077         * modules/openat (Depends-on): Add stdnoreturn.
16078
16079         * lib/openat-die.c (openat_save_fail): Modernize comment.
16080
16081         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16082
16083         * lib/glthread/thread.h: Modernize comment.
16084
16085         obstack: use _Noreturn
16086         * lib/obstack.c (__attribute__): Remove macro.
16087         (print_and_abort): Use _Noreturn.
16088
16089         c-stack: use _Noreturn
16090         * lib/c-stack.c (die, overflow_handler, segv_handler):
16091         Use _Noreturn rather than __attribute__((noreturn)).
16092
16093         argmatch-tests, exclude_tests: use _Noreturn
16094         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16095         Remove.
16096         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16097
16098         stdlib: use _Noreturn
16099         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16100         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16101         * modules/stdlib (Depends-on): Add _Noreturn.
16102         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16103
16104         stdnoreturn-tests: new module
16105         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16106
16107         stdnoreturn: new module
16108         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16109         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16110
16111         _Noreturn-tests: new module
16112         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16113
16114         _Noreturn: new module
16115         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16116         New section, mentioning it.
16117         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16118
16119         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16120
16121 2011-07-11  Eric Blake  <eblake@redhat.com>
16122
16123         ffs: new module
16124         * modules/ffs: New file.
16125         * m4/ffs.m4: Likewise.
16126         * lib/ffs.c: Likewise.
16127         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16128         * modules/strings (Makefile.am): Substitute witness.
16129         (Depends-on): Add c++defs.
16130         * lib/strings.in.h (ffs): Declare.
16131         * modules/ffs-tests: New test file.
16132         * tests/test-ffs.c: Test new module.
16133         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16134         * doc/posix-functions/ffs.texi (ffs): Likewise.
16135
16136         regex: avoid compiler warning
16137         * lib/regex.c (includes): Include <strings.h>, for use of
16138         strcasecmp in regcomp.c.
16139         Reported by Joachim Schmitz.
16140
16141 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16142
16143         stdint: respect system's intmax_t if INTMAX_MAX
16144         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16145         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16146         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16147         long but int64_t is long long, and where we will clash with the
16148         system intmax_t if we override it.  See
16149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16150         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16151         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16152         similarly for UINTMAX_C.
16153
16154 2011-07-08  Bruno Haible  <bruno@clisp.org>
16155
16156         pthread_sigmask tests: Avoid a compiler warning.
16157         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16158         non-zero.
16159
16160         sigprocmask tests: A better way to avoid a compiler warning.
16161         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16162         (main): Complain if system() returns non-zero.
16163         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16164
16165 2011-07-08  Bruno Haible  <bruno@clisp.org>
16166
16167         pthread_sigmask: Work around IRIX bug.
16168         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16169         bug.
16170         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16171         there may be unblocked pending signals.
16172         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16173
16174 2011-07-08  Bruno Haible  <bruno@clisp.org>
16175
16176         pthread_sigmask: Work around Cygwin bug.
16177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16178         bug.
16179         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16180         the system's pthread_sigmask function.
16181         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16182
16183 2011-07-08  Bruno Haible  <bruno@clisp.org>
16184
16185         pthread_sigmask: Work around bug in single-threaded implementation.
16186         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16187         FreeBSD, HP-UX, Solaris bug.
16188         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16189         * lib/pthread_sigmask.c: Include <stddef.h>.
16190         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16191         the system's pthread_sigmask function.
16192         * modules/pthread_sigmask (configure.ac): Invoke
16193         gl_PREREQ_PTHREAD_SIGMASK.
16194         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16195         HP-UX, Solaris.
16196
16197 2011-07-08  Eric Blake  <eblake@redhat.com>
16198
16199         test-sigprocmask: avoid compiler warning
16200         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16201         * tests/test-sigprocmask.c (main): Use it to silence warning.
16202         Reported by Jim Meyering.
16203
16204         test-snprintf: avoid compiler warning
16205         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16206         * tests/test-vsnprintf.c (main): Likewise.
16207         Reported by Jim Meyering.
16208
16209 2011-07-08  Bruno Haible  <bruno@clisp.org>
16210
16211         Tests for module 'pthread_sigmask'.
16212         * modules/pthread_sigmask-tests: New file.
16213         * tests/test-pthread_sigmask1.c: New file, based on
16214         tests/test-sigprocmask.c.
16215         * tests/test-pthread_sigmask2.c: New file.
16216
16217 2011-07-08  Jim Meyering  <meyering@redhat.com>
16218
16219         test-getopt.h: avoid warning about an unused variable
16220         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16221
16222 2011-07-07  Jim Meyering  <meyering@redhat.com>
16223
16224         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16225         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16226         now that it no longer contains leading TABs.
16227         Remove unused "url=FIXME" statement.
16228
16229 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16230
16231         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16232         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16233         When gl_THREADLIB is not in use, assume that the POSIX sematics
16234         are desired.  This is better for Emacs, which uses POSIX semantics
16235         on GNUish and/or POSIXish platforms, and does not use threads at
16236         all otherwise.
16237
16238         pthread_sigmask: fix typo when testing for libraries
16239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16240         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16241
16242 2011-07-08  Eric Blake  <eblake@redhat.com>
16243
16244         fts: introduce FTS_NOATIME
16245         * lib/fts_.h (FTS_NOATIME): New bit flag.
16246         (FTS_OPTIONMASK): Adjust.
16247         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16248         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16249
16250 2011-07-08  Bruno Haible  <bruno@clisp.org>
16251
16252         Tests for module 'thread'.
16253         * modules/thread-tests: New file.
16254         * tests/test-thread_self.c: New file.
16255         * tests/test-thread_create.cc: New file.
16256
16257 2011-07-08  Bruno Haible  <bruno@clisp.org>
16258
16259         thread: Avoid gcc warnings when using gl_thread_self().
16260         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16261         'void *'.
16262         (gl_thread_self_pointer): Update.
16263
16264 2011-07-07  Bruno Haible  <bruno@clisp.org>
16265
16266         signal-c++-tests: Check declaration of pthread_sigmask.
16267         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16268         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16269         $(LIB_PTHREAD_SIGMASK).
16270
16271 2011-07-07  Bruno Haible  <bruno@clisp.org>
16272
16273         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16274         * lib/signal.in.h (pthread_sigmask): Override if
16275         REPLACE_PTHREAD_SIGMASK is 1.
16276         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16277         REPLACE_PTHREAD_SIGMASK.
16278         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16279         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16280         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16281         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16282         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16283
16284 2011-07-07  Bruno Haible  <bruno@clisp.org>
16285
16286         pthread_sigmask: Ensure declaration in <signal.h>.
16287         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16288         include <pthread.h>.
16289         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16290         problem.
16291
16292 2011-07-07  Bruno Haible  <bruno@clisp.org>
16293
16294         pthread_sigmask: Document the module.
16295         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16296
16297 2011-07-07  Bruno Haible  <bruno@clisp.org>
16298
16299         pthread_sigmask: Follow gnulib conventions.
16300         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16301         gl_PTHREAD_SIGMASK.
16302         * modules/pthread_sigmask (configure.ac): Update.
16303
16304 2011-07-07  Bruno Haible  <bruno@clisp.org>
16305
16306         pthread_sigmask: Make declaration C++ safe.
16307         * lib/signal.in.h: In two special conditions, just do an #include_next.
16308         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16309         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16310         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16311         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16312         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16313         not REPLACE_PTHREAD_MASK.
16314         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16315         not REPLACE_PTHREAD_MASK.
16316         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16317
16318 2011-07-07  Bruno Haible  <bruno@clisp.org>
16319
16320         pthread_sigmask: Fix return value.
16321         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16322         * lib/pthread_sigmask.c: New file.
16323         * modules/pthread_sigmask (Files): Add it.
16324         (configure.ac): Invoke AC_LIBOBJ.
16325
16326 2011-07-07  Eric Blake  <eblake@redhat.com>
16327
16328         getopt: more portable argv creation
16329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16330         const, use char arrays rather than strings.
16331         Suggested by Paul Eggert.
16332
16333 2011-07-07  Bruno Haible  <bruno@clisp.org>
16334
16335         Tests for module 'sigprocmask'.
16336         * modules/sigprocmask-tests: New file.
16337         * tests/test-sigprocmask.c: New file.
16338
16339 2011-07-07  Bruno Haible  <bruno@clisp.org>
16340
16341         float tests: Tweak.
16342         * tests/test-float.c (main): Tweak skip message.
16343
16344 2011-07-07  Eric Blake  <eblake@redhat.com>
16345
16346         getopt: avoid compiler warning during configure
16347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16348         assigning string literals to non-const pointer.
16349
16350         getopt-gnu: avoid crash in glibc getopt
16351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16352         * tests/test-getopt.h (test_getopt): Enhance test.
16353         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16354         * doc/posix-functions/getopt.texi (getopt): Document it.
16355         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16356         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16357         Likewise.
16358
16359 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16360
16361         getopt: handle W; without long options in getopt [BZ #12922]
16362         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16363         but no long options are defined, just return 'W'.
16364
16365 2011-07-07  Bruno Haible  <bruno@clisp.org>
16366
16367         Avoid literal tabs.
16368         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16369         variable containing a tab instead of a literal tab.
16370         Reported by Jim Meyering.
16371
16372 2011-07-07  Bruno Haible  <bruno@clisp.org>
16373
16374         Comments.
16375         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16376
16377 2011-07-06  Bruno Haible  <bruno@clisp.org>
16378
16379         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16380         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16381         <winsock2.h>.
16382         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16383         lib/sys_socket.in.h.
16384         (close, gethostname): Hide declarations from <winsock2.h>.
16385         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16386         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16387         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16388         (select): Don't override if gnulib's <sys/select.h> was already
16389         included.
16390         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16391         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16392         setsockopt, shutdown, select): Tweak indentation.
16393
16394 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16395
16396         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16397         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16398         in an application that does not use the sys_select module.
16399
16400 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16401
16402         poll: do not return 0 on timeout=-1
16403         * lib/poll.c: Loop with yield if no events occurred.
16404
16405 2011-07-06  Eric Blake  <eblake@redhat.com>
16406
16407         pthread_sigmask: always replace when not using pthread
16408         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16409         replacement when using some threading other than pthread.  Fix
16410         logic bug.
16411
16412 2011-07-06  Bruno Haible  <bruno@clisp.org>
16413
16414         Comments.
16415         * m4/printf.m4: Update comments about mingw.
16416
16417 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16418
16419         sys_select: define sigset_t more portably
16420         * lib/sys_select.in.h: Always include <sys/types.h>, since
16421         we now need sigset_t and mingw defines it there.
16422         Include <signal.h> before split inclusion guard, to avoid
16423         mishaps on Solaris, whose <signal.h> eventually includes us.
16424         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16425         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16426         which come from ...
16427         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16428         gl_CHECK_TYPE_SIGSET_T.
16429         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16430         does the real work.
16431         * modules/sys_select (Depends-on): Add 'signal'.
16432
16433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16434         Suggested by Bruno Haible.
16435
16436         pselect: Use pthread_sigmask, not sigprocmask.
16437         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16438         multithreaded apps better than sigprocmask does.
16439         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16440         sigprocmask directly.
16441
16442 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16443
16444         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16445         Don't #undef,  since we don't need any underlying pselect.
16446         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16447         (Depends-on): Add select.
16448         (Link): Add $(LIBSOCKET).
16449         These changes suggested by Bruno Haible.
16450
16451         pselect: document better
16452         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16453         * doc/posix-functions/pselect.texi (pselect): Document new module.
16454
16455         pthread_sigmask: new module
16456         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16457         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16458         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16459         This is done only as a macro; I don't know how well that'll
16460         work for C++.  Move <sys/types.h> include before the include_next,
16461         to avoid mishap on Solaris.
16462         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16463         * modules/signal (Makefile.am): Substitute the check's results.
16464         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16465
16466         test-pselect: new module
16467         * modules/pselect-tests, tests/test-pselect.c: New files.
16468         * tests/test-select.c, tests/test-sys_select-c++.cc:
16469         If TEST_PSELECT is defined, test pselect instead of testing select.
16470
16471         * tests/test-sys_select.c (sigset_t): Test for it, too.
16472         Suggested by Bruno Haible.
16473
16474 2011-07-05  Eric Blake  <eblake@redhat.com>
16475
16476         snprintf: guarantee %1$d, for libintl
16477         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16478         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16479         * doc/posix-functions/snprintf.texi (snprintf): Update.
16480         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16481         * tests/test-snprintf.c (main): Enhance test.
16482         * tests/test-vsnprintf.c (main): Likewise.
16483
16484 2011-07-05  Jim Meyering  <meyering@redhat.com>
16485
16486         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16487         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16488         per Bruno's request, to accommodate this idiom (no space after "#")
16489         even when the function is inside an #if block:
16490         char *
16491         gets (char *s)
16492         #undef gets
16493         {
16494           ...
16495         }
16496
16497 2011-07-04  Jim Meyering  <meyering@redhat.com>
16498
16499         maint: indent with spaces, not TABs, and add a rule to check this
16500         * tests/test-userspec.c: Indent with spaces, not TABs.
16501         * tests/test-argp.c: Likewise.
16502         * tests/test-c-stack2.sh: Likewise.
16503         * tests/test-parse-duration.sh: Likewise
16504         * m4/strtod.m4: Likewise.
16505         * m4/alloca.m4: Likewise.
16506         * m4/pselect.m4: Likewise.
16507         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16508
16509 2011-07-03  Jim Meyering  <meyering@redhat.com>
16510
16511         maint.mk: correct omissions in prohibit_argmatch_without_use check
16512         This rule would mistakenly report that argmatch.h is included without
16513         use even when both the argmatch and invalid_arg macro were used.
16514         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16515         of argmatch and invalid_arg.
16516
16517 2011-07-03  Bruno Haible  <bruno@clisp.org>
16518
16519         Comments about EINTR.
16520         * lib/safe-read.h: Explain the purpose of this module.
16521         * lib/safe-write.h: Likewise.
16522         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16523         module.
16524         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16525         module.
16526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16527
16528 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16529
16530         xnanosleep: Rewrite to use new dtotimespec module.
16531         It has the conversion code that used to be in xnanosleep.
16532         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16533         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16534         (TIME_T_MAX): Remove.
16535         (xnanosleep): Rewrite in terms of dtotimespec.
16536         * modules/xnanosleep (Depends-on): Add dtotimespec.
16537         Remove intprops, stdbool.
16538
16539         timespec-add, timespec-sub: new modules
16540         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16541         * lib/timespec-add.c, lib/timespec-sub.c:
16542         * modules/timespec-add, modules/timespec-sub: New files.
16543
16544         dtotimespec: new module
16545         * lib/timespec.h (dtotimespec): New decl.
16546         * lib/dtotimespec.c, modules/dtotimespec: New files.
16547
16548         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16549
16550         pselect: new module
16551         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16552         (pselect): New decls.
16553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16554         since the standard pselect decl uses 'restrict'.
16555         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16556         HAVE_PSELECT, REPLACE_PSELECT.
16557         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16558         HAVE_PSELECT, REPLACE_PSELECT.
16559         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16560
16561         sys_select: don't depend on sys_socket
16562         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16564         This fix works on GNU and GNU-like platforms, but has not been tested
16565         on native Windows.
16566         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16567         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16568         gl_HEADER_SYS_SOCKET.
16569         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16570         gl_PREREQ_SYS_H_WINSOCK2.
16571
16572 2011-06-29  Eric Blake  <eblake@redhat.com>
16573
16574         pipe2: fix C89 compile problem
16575         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16576         Reported by Bruno Haible.
16577
16578         pipe, pipe2: don't corrupt fd on error
16579         * lib/pipe.c (pipe): Leave fd unchanged on error.
16580         * lib/pipe2.c (pipe2): Likewise.
16581         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16582         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16583
16584 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16585
16586         mmap-anon: do not use regular expressions inadvertently
16587         * m4/mmap-anon.m4: Remove trailing period from strings sought
16588         in the output.
16589
16590 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16591
16592         nanosleep: fix integer overflow problem
16593         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16594         arithmetic wraps around on overflow.
16595
16596         nanosleep: simplify carrying
16597         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16598         first call to the underyling nanosleep, not for the last one.
16599         This doesn't fix any bugs, but it simplifies the computation of
16600         the remaining delay.  Found while auditing integer overflow issues.
16601
16602         dup2: remove test for existence of fcntl
16603         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16604         "#if HAVE_FCNTL", in the configure-time test program.
16605         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16606         and therefore speeds up "configure" a bit.  Found while
16607         adding the dup2 module to Emacs.
16608
16609 2011-06-24  Eric Blake  <eblake@redhat.com>
16610
16611         maint.mk: enhance useless header checks
16612         * top/maint.mk (_sc_header_without_use): Check both include
16613         styles.
16614         (sc_prohibit_assert_without_use)
16615         (sc_prohibit_close_stream_without_use)
16616         (sc_prohibit_getopt_without_use)
16617         (sc_prohibit_quotearg_without_use)
16618         (sc_prohibit_quote_without_use)
16619         (sc_prohibit_long_options_without_use)
16620         (sc_prohibit_inttostr_without_use)
16621         (sc_prohibit_ignore_value_without_use)
16622         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16623         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16624         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16625         (sc_prohibit_hash_pjw_without_use)
16626         (sc_prohibit_safe_read_without_use)
16627         (sc_prohibit_argmatch_without_use)
16628         (sc_prohibit_canonicalize_without_use)
16629         (sc_prohibit_root_dev_ino_without_use)
16630         (sc_prohibit_openat_without_use)
16631         (sc_prohibit_c_ctype_without_use)
16632         (sc_prohibit_signal_without_use)
16633         (sc_prohibit_stdio--_without_use)
16634         (sc_prohibit_stdio-safer_without_use)
16635         (sc_prohibit_strings_without_use)
16636         (sc_prohibit_intprops_without_use)
16637         (sc_prohibit_stddef_without_use)
16638         (sc_prohibit_xfreopen_without_use): Update clients.
16639
16640 2011-06-24  Jim Meyering  <meyering@redhat.com>
16641
16642         syntax-check: keep one maint.mk rule in sync with its header
16643         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16644         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16645         I prefer to avoid temporary files here, so use <(...), but that
16646         is not supported by /bin/sh, so...
16647         (SHELL): Define to /bin/bash.
16648
16649 2011-06-24  Eric Blake  <eblake@redhat.com>
16650
16651         maint.mk: update sc_prohibit_intprops_without_use
16652         * top/maint.mk (_intprops_names): Match recent changes.
16653
16654 2011-06-24  Bruno Haible  <bruno@clisp.org>
16655
16656         strerror-override: No-op tweak.
16657         * lib/strerror-override.h (strerror_override): Reorder conditions,
16658         for consistency with lib/strerror-override.c.
16659
16660 2011-06-23  Eric Blake  <eblake@redhat.com>
16661
16662         maint.mk: test further PATH_MAX issues
16663         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16664         (sc_prohibit_path_max_allocation): ...and also test alloca.
16665         Suggested by Jim Meyering.
16666
16667 2011-06-22  Eric Blake  <eblake@redhat.com>
16668
16669         maint.mk: add syntax-check to avoid char[PATH_MAX]
16670         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16671
16672         stat: be robust to PATH_MAX definition
16673         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16674         * modules/stat (Depends-on): Add verify.
16675
16676         link: work around IRIX bug
16677         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16678         * lib/link.c (rpl_link): Work around it.
16679         * tests/test-link.h (test_link): Enhance test.
16680         * doc/posix-functions/link.texi (link): Document the bug.
16681
16682         getopt: silence clang warning
16683         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16684         dereference.
16685         Reported by Gustavo Martin Domato.
16686
16687 2011-06-22  Jim Meyering  <meyering@redhat.com>
16688
16689         bootstrap: do not insert a blank line into each .gitignore file
16690         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16691
16692 2011-06-21  Eric Blake  <eblake@redhat.com>
16693
16694         perror: test for output mismatch
16695         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16696         perror on IRIX.
16697
16698         strerror_r: fix OpenBSD behavior on out-of-range
16699         * lib/strerror_r.c (strerror_r): Always use maximal string.
16700         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16701
16702         strerror_r: fix OpenBSD behavior on 0
16703         * lib/strerror-override.c (strerror_override): Also override 0
16704         when needed.
16705         * lib/strerror-override.h (strerror_override): Likewise.
16706         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16707         earlier.
16708         * lib/strerror_r.c (strerror_r): Likewise.
16709         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16710         behavior...
16711         (gl_FUNC_STRERROR_0): ...into new macro.
16712         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16713         is overridden.
16714         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16715         * modules/strerror-override (Files): Add strerror.m4.
16716         (configure.ac): Also provide override for 0 when needed.
16717         * doc/posix-functions/strerror.texi (strerror): Document this.
16718         * doc/posix-functions/perror.texi (perror): Likewise.
16719
16720         perror: adjust array size
16721         * modules/perror (Depends-on): Add strerror-override.
16722         * lib/perror.c (perror): Use it to avoid magic number.
16723
16724         strerror-override: reduce size
16725         * lib/strerror-override.c (strerror_override): Use fewer lines.
16726
16727 2011-06-20  Bruno Haible  <bruno@clisp.org>
16728
16729         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16730         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16731
16732 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         alloca: port to compilers that can optimize like GCC 4.6.0
16735         * lib/alloca.c (find_stack_direction): New signature, taken from
16736         Autoconf git.  This works with GCC 4.6.0.  This code should never
16737         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16738         be used with other compilers that optimize as well as GCC 4.6.0 does.
16739         (alloca): Adjust to new signature.
16740         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16741         New macro, which patches Autoconf in a similar way.
16742
16743         c-stack: stop worrying about stack direction
16744         * lib/c-stack.c (find_stack_direction): Remove.
16745         (segv_handler): Don't worry about stack direction growth, as it's
16746         too much of a pain to configure this correctly, given how compilers
16747         are optimizing-away our stack-growth detection code.  Instead, assume
16748         that any access to just before or just after the stack is OK.
16749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16750         Don't require AC_FUNC_ALLOCA; no longer needed.
16751
16752 2011-06-20  Eric Blake  <eblake@redhat.com>
16753
16754         test-stat: don't allocate PATH_MAX bytes
16755         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16756         PATH_MAX-sized buffer.
16757         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16758         * modules/stat-tests (Depends-on): Likewise.
16759         * tests/test-fstatat.c (includes): Drop pathmax.h.
16760         * tests/test-stat.c (includes): Likewise.
16761         Reported by Bruno Haible.
16762
16763 2011-06-20  Bruno Haible  <bruno@clisp.org>
16764
16765         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16766         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16767         * lib/float.c: New file.
16768         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16769         REPLACE_FLOAT_LDBL.
16770         * modules/float (Files): Add lib/float.c.
16771         (configure.ac): Invoke AC_LIBOBJ.
16772         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16773
16774 2011-06-20  Bruno Haible  <bruno@clisp.org>
16775
16776         Tests for module 'float'.
16777         * modules/float-tests: New file.
16778         * tests/test-float.c: New file.
16779
16780 2011-06-19  Bruno Haible  <bruno@clisp.org>
16781
16782         isinf: Coding style.
16783         * lib/isinf.c: Use GNU coding style.
16784
16785 2011-06-19  Bruno Haible  <bruno@clisp.org>
16786
16787         linkat test: Avoid test failure on AIX 7.1.
16788         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16789         * tests/test-link.h (test_link): Likewise.
16790
16791 2011-06-19  Bruno Haible  <bruno@clisp.org>
16792
16793         pread test: Avoid test failure on OpenBSD 4.9.
16794         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16795
16796 2011-06-19  Bruno Haible  <bruno@clisp.org>
16797
16798         sprintf-posix: Fix test failure on AIX 7.1.
16799         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16800         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16801         on AIX.
16802         * doc/posix-functions/fprintf.texi: Likewise.
16803         * doc/posix-functions/printf.texi: Likewise.
16804         * doc/posix-functions/snprintf.texi: Likewise.
16805         * doc/posix-functions/sprintf.texi: Likewise.
16806         * doc/posix-functions/vdprintf.texi: Likewise.
16807         * doc/posix-functions/vfprintf.texi: Likewise.
16808         * doc/posix-functions/vprintf.texi: Likewise.
16809         * doc/posix-functions/vsnprintf.texi: Likewise.
16810         * doc/posix-functions/vsprintf.texi: Likewise.
16811
16812 2011-06-19  Bruno Haible  <bruno@clisp.org>
16813
16814         roundl-ieee: Fix test failure on AIX 7.1.
16815         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16816         * doc/posix-functions/roundl.texi: Mention problem with negative
16817         arguments.
16818
16819 2011-06-19  Bruno Haible  <bruno@clisp.org>
16820
16821         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16822         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16823         * doc/posix-functions/round.texi: Mention problem with negative
16824         arguments.
16825         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16826
16827 2011-06-19  Bruno Haible  <bruno@clisp.org>
16828
16829         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16830         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16831         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16832         * doc/posix-functions/roundf.texi: Mention problem with negative
16833         arguments.
16834         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16835
16836 2011-06-19  Bruno Haible  <bruno@clisp.org>
16837
16838         ceilf-ieee: Work around bug on MacOS X 10.5.
16839         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16840
16841         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16842         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16843         IEEE compliant, avoid compiler optimizations.
16844         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16845         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16846         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16847         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16848         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16849         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16850         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16852         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16853         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16854
16855 2011-06-19  Bruno Haible  <bruno@clisp.org>
16856
16857         ceilf-ieee: Work around bug on AIX 7.1.
16858         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16859         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16860
16861 2011-06-19  Bruno Haible  <bruno@clisp.org>
16862
16863         ceil-ieee: Work around bug on AIX 7.1.
16864         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16865         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16866
16867 2011-06-18  Bruno Haible  <bruno@clisp.org>
16868
16869         fsync test: Avoid test failure on MacOS X and AIX.
16870         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16871         EINVAL.
16872
16873 2011-06-18  Bruno Haible  <bruno@clisp.org>
16874
16875         openat, fdopendir tests: Fix link errors.
16876         * modules/openat-tests (Depends-on): Add progname.
16877         * modules/fdopendir-tests (Depends-on): Likewise.
16878         * tests/test-fchownat.c: Include progname.h.
16879         (main): Call set_program_name.
16880         * tests/test-fstatat.c: Include progname.h.
16881         (main): Call set_program_name.
16882         * tests/test-mkdirat.c: Include progname.h.
16883         (main): Call set_program_name.
16884         * tests/test-openat.c: Include progname.h.
16885         (main): Call set_program_name.
16886         * tests/test-unlinkat.c: Include progname.h.
16887         (main): Call set_program_name.
16888         * tests/test-fdopendir.c: Include progname.h.
16889         (main): Call set_program_name.
16890
16891 2011-06-18  Bruno Haible  <bruno@clisp.org>
16892
16893         Doc update.
16894         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16895         HP-UX.
16896         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16897
16898 2011-06-18  Bruno Haible  <bruno@clisp.org>
16899
16900         getcwd tests: Avoid compilation error on HP-UX 11.31.
16901         * modules/getcwd-tests (Depends-on): Add pathmax.
16902         * tests/test-getcwd.c: Include pathmax.h.
16903
16904 2011-06-18  Bruno Haible  <bruno@clisp.org>
16905
16906         isfinite, isinf: Fix link error on AIX 6 and 7.
16907         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16908         needed, also test the macro with a 'float' argument.
16909         * m4/isinf.m4 (gl_ISINF): Likewise.
16910
16911 2011-06-18  Bruno Haible  <bruno@clisp.org>
16912
16913         getloadavg: Don't clobber LIBS. Regression from previous commit.
16914         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16915         AC_CHECK_LIB from here...
16916         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16917         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16918         gl_func_getloadavg_done.
16919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16920
16921 2011-06-18  Bruno Haible  <bruno@clisp.org>
16922
16923         clean-temp: Improve documentation.
16924         * lib/clean-temp.h: Explain better how to use this module.
16925         Reported by John Darrington <john@darrington.wattle.id.au>.
16926
16927 2011-06-17  Bruno Haible  <bruno@clisp.org>
16928
16929         pread, pwrite: Avoid cc warning on AIX.
16930         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16931         (pwrite): Likewise.
16932
16933 2011-06-17  Bruno Haible  <bruno@clisp.org>
16934
16935         spawn-pipe tests: Fix link error.
16936         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16938
16939 2011-06-17  Bruno Haible  <bruno@clisp.org>
16940
16941         Tests: Remove unnecessary dependency.
16942         * modules/canonicalize-tests (Depends-on): Remove progname.
16943         * modules/chown-tests (Depends-on): Likewise.
16944         * modules/dirname-tests (Depends-on): Likewise.
16945         * modules/fdopendir-tests (Depends-on): Likewise.
16946         * modules/fdutimensat-tests (Depends-on): Likewise.
16947         * modules/hash-tests (Depends-on): Likewise.
16948         * modules/lchown-tests (Depends-on): Likewise.
16949         * modules/linkat-tests (Depends-on): Likewise.
16950         * modules/renameat-tests (Depends-on): Likewise.
16951         * modules/spawn-pipe-tests (Depends-on): Likewise.
16952         * modules/utimensat-tests (Depends-on): Likewise.
16953
16954 2011-06-17  Bruno Haible  <bruno@clisp.org>
16955
16956         spawn-pipe tests: Fix link error.
16957         * tests/test-spawn-pipe-child.c: Undefine fflush.
16958
16959 2011-06-17  Bruno Haible  <bruno@clisp.org>
16960
16961         Fix tests link errors.
16962         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16963         * modules/chown-tests (Makefile.am): Don't link test-chown with
16964         LIBINTL.
16965         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16966         LIBINTL.
16967         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16968         LIBINTL.
16969         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16970         LIBINTL.
16971
16972 2011-06-16  Bruno Haible  <bruno@clisp.org>
16973
16974         crypto/gc-sha1: Fix recent regression.
16975         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16976         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16977
16978         crypto/gc-md5: Fix recent regression.
16979         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16980
16981         crypto/gc-md4: Fix recent regression.
16982         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16983         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16984
16985         crypto/gc-arctwo: Fix recent regression.
16986         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16987         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16988
16989         crypto/gc-rijndael: Fix recent regression.
16990         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16991         (configure.ac): Invoke AC_LIBOBJ here.
16992         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16993         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16994
16995         crypto/gc-hmac-sha1: Fix recent regression.
16996         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16997         (configure.ac): Invoke AC_LIBOBJ here.
16998         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17000
17001         crypto/gc-hmac-md5: Fix recent regression.
17002         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17003         (configure.ac): Invoke AC_LIBOBJ here.
17004         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17006
17007         crypto/gc-des: Fix recent regression.
17008         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17009         (configure.ac): Invoke AC_LIBOBJ here.
17010         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17012
17013         crypto/gc-arcfour: Fix recent regression.
17014         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17015         (configure.ac): Invoke AC_LIBOBJ here.
17016         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17018
17019 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17020
17021         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17022         After the 2011-05-21 change, this macro requires
17023         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17025
17026 2011-06-16  Bruno Haible  <bruno@clisp.org>
17027
17028         fprintftime: Move AC_LIBOBJ invocations to module description.
17029         * m4/fprintftime.m4: Remove file.
17030         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17031         (configure.ac): Remove gl_FPRINTFTIME call.
17032         (Makefile.am): Augment lib_SOURCES.
17033         Reported by Jim Meyering.
17034
17035 2011-06-16  Bruno Haible  <bruno@clisp.org>
17036
17037         tmpfile-safer: Finish 2011-05-23 commit.
17038         * m4/stdio-safer.m4: Really remove file.
17039         Reported by Jim Meyering.
17040
17041 2011-06-16  Bruno Haible  <bruno@clisp.org>
17042
17043         syntax-check: Fix typo.
17044         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17045         printf-posix.m4.
17046         Reported by Jim Meyering.
17047
17048 2011-06-13  Jim Meyering  <meyering@redhat.com>
17049
17050         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17051         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17052
17053 2011-05-23  Bruno Haible  <bruno@clisp.org>
17054
17055         yesno: Move AC_LIBOBJ invocations to module description.
17056         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17057         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17058
17059 2011-05-23  Bruno Haible  <bruno@clisp.org>
17060
17061         xstrtol: Move AC_LIBOBJ invocations to module description.
17062         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17063         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17064
17065 2011-05-23  Bruno Haible  <bruno@clisp.org>
17066
17067         xstrtold: Move AC_LIBOBJ invocations to module description.
17068         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17069         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17070
17071 2011-05-23  Bruno Haible  <bruno@clisp.org>
17072
17073         xstrtod: Move AC_LIBOBJ invocations to module description.
17074         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17075         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17076
17077 2011-05-23  Bruno Haible  <bruno@clisp.org>
17078
17079         xnanosleep: Move AC_LIBOBJ invocations to module description.
17080         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17081         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17082
17083 2011-05-23  Bruno Haible  <bruno@clisp.org>
17084
17085         xgetcwd: Move AC_LIBOBJ invocations to module description.
17086         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17087         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17088
17089 2011-05-23  Bruno Haible  <bruno@clisp.org>
17090
17091         xalloc: Move AC_LIBOBJ invocations to module description.
17092         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17093         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17094
17095 2011-05-23  Bruno Haible  <bruno@clisp.org>
17096
17097         write-any-file: Move AC_LIBOBJ invocations to module description.
17098         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17099         invocation.
17100         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17101
17102 2011-05-23  Bruno Haible  <bruno@clisp.org>
17103
17104         utimens: Move AC_LIBOBJ invocations to module description.
17105         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17106         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17107
17108 2011-05-23  Bruno Haible  <bruno@clisp.org>
17109
17110         utimecmp: Move AC_LIBOBJ invocations to module description.
17111         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17112         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17113
17114 2011-05-23  Bruno Haible  <bruno@clisp.org>
17115
17116         userspec: Move AC_LIBOBJ invocations to module description.
17117         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17118         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17119
17120 2011-05-23  Bruno Haible  <bruno@clisp.org>
17121
17122         unlinkdir: Move AC_LIBOBJ invocations to module description.
17123         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17124         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17125
17126 2011-05-23  Bruno Haible  <bruno@clisp.org>
17127
17128         unistd-safer: Move AC_LIBOBJ invocations to module description.
17129         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17130         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17131
17132 2011-05-23  Bruno Haible  <bruno@clisp.org>
17133
17134         tempname: Move AC_LIBOBJ invocations to module description.
17135         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17136         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17137
17138 2011-05-23  Bruno Haible  <bruno@clisp.org>
17139
17140         strftime: Move AC_LIBOBJ invocations to module description.
17141         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17142         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17143
17144 2011-05-23  Bruno Haible  <bruno@clisp.org>
17145
17146         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17147         * m4/stdlib-safer.m4: Remove file.
17148         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17149         (configure.ac): Remove gl_STDLIB_SAFER call.
17150         (Makefile.am): Augment lib_SOURCES.
17151
17152 2011-05-23  Bruno Haible  <bruno@clisp.org>
17153
17154         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17155         * m4/stdio-safer.m4: Remove file.
17156         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17157         (configure.ac): Remove gl_TMPFILE_SAFER call.
17158         (Makefile.am): Augment lib_SOURCES.
17159
17160 2011-05-23  Bruno Haible  <bruno@clisp.org>
17161
17162         popen-safer: Move AC_LIBOBJ invocations to module description.
17163         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17164         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17165         (configure.ac): Remove gl_POPEN_SAFER call.
17166         (Makefile.am): Augment lib_SOURCES.
17167
17168 2011-05-23  Bruno Haible  <bruno@clisp.org>
17169
17170         freopen-safer: Move AC_LIBOBJ invocations to module description.
17171         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17172         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17173         (configure.ac): Remove gl_FREOPEN_SAFER call.
17174         (Makefile.am): Augment lib_SOURCES.
17175
17176 2011-05-23  Bruno Haible  <bruno@clisp.org>
17177
17178         fopen-safer: Move AC_LIBOBJ invocations to module description.
17179         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17180         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17181         (configure.ac): Remove gl_FOPEN_SAFER call.
17182         (Makefile.am): Augment lib_SOURCES.
17183
17184 2011-05-23  Bruno Haible  <bruno@clisp.org>
17185
17186         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17187         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17188         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17189
17190 2011-05-23  Bruno Haible  <bruno@clisp.org>
17191
17192         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17193         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17194         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17195
17196 2011-05-23  Bruno Haible  <bruno@clisp.org>
17197
17198         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17199         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17200         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17201
17202 2011-05-23  Bruno Haible  <bruno@clisp.org>
17203
17204         settime: Move AC_LIBOBJ invocations to module description.
17205         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17206         * modules/settime (Makefile.am): Augment lib_SOURCES.
17207
17208 2011-05-23  Bruno Haible  <bruno@clisp.org>
17209
17210         savedir: Move AC_LIBOBJ invocations to module description.
17211         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17212         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17213
17214 2011-05-23  Bruno Haible  <bruno@clisp.org>
17215
17216         save-cwd: Move AC_LIBOBJ invocations to module description.
17217         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17218         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17219
17220 2011-05-23  Bruno Haible  <bruno@clisp.org>
17221
17222         same: Move AC_LIBOBJ invocations to module description.
17223         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17224         * modules/same (Makefile.am): Augment lib_SOURCES.
17225
17226 2011-05-23  Bruno Haible  <bruno@clisp.org>
17227
17228         safe-write: Move AC_LIBOBJ invocations to module description.
17229         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17230         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17231         instead of gl_SAFE_WRITE.
17232         (Makefile.am): Augment lib_SOURCES.
17233
17234 2011-05-23  Bruno Haible  <bruno@clisp.org>
17235
17236         safe-read: Move AC_LIBOBJ invocations to module description.
17237         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17238         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17239         of gl_SAFE_READ.
17240         (Makefile.am): Augment lib_SOURCES.
17241
17242 2011-05-23  Bruno Haible  <bruno@clisp.org>
17243
17244         safe-alloc: Move AC_LIBOBJ invocations to module description.
17245         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17246         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17247
17248 2011-05-23  Bruno Haible  <bruno@clisp.org>
17249
17250         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17251         * m4/rijndael.m4: Remove file.
17252         * modules/crypto/rijndael (Files): Remove it.
17253         (configure.ac): Remove gl_RIJNDAEL call.
17254         (Makefile.am): Augment lib_SOURCES.
17255
17256 2011-05-23  Bruno Haible  <bruno@clisp.org>
17257
17258         readtokens: Move AC_LIBOBJ invocations to module description.
17259         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17260         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17261
17262 2011-05-23  Bruno Haible  <bruno@clisp.org>
17263
17264         read-file: Move AC_LIBOBJ invocations to module description.
17265         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17266         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17267         of gl_FUNC_READ_FILE.
17268         (Makefile.am): Augment lib_SOURCES.
17269
17270 2011-05-23  Bruno Haible  <bruno@clisp.org>
17271
17272         quotearg: Move AC_LIBOBJ invocations to module description.
17273         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17274         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17275
17276 2011-05-23  Bruno Haible  <bruno@clisp.org>
17277
17278         quote: Move AC_LIBOBJ invocations to module description.
17279         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17280         * modules/quote (Makefile.am): Augment lib_SOURCES.
17281
17282 2011-05-23  Bruno Haible  <bruno@clisp.org>
17283
17284         posixver: Move AC_LIBOBJ invocations to module description.
17285         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17286         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17287
17288 2011-05-23  Bruno Haible  <bruno@clisp.org>
17289
17290         posixtm: Move AC_LIBOBJ invocations to module description.
17291         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17292         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17293
17294 2011-05-23  Bruno Haible  <bruno@clisp.org>
17295
17296         physmem: Move AC_LIBOBJ invocations to module description.
17297         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17298         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17299
17300 2011-05-23  Bruno Haible  <bruno@clisp.org>
17301
17302         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17303         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17304         invocation.
17305         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17306
17307 2011-05-23  Bruno Haible  <bruno@clisp.org>
17308
17309         mpsort: Move AC_LIBOBJ invocations to module description.
17310         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17311         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17312
17313 2011-05-23  Bruno Haible  <bruno@clisp.org>
17314
17315         modechange: Move AC_LIBOBJ invocations to module description.
17316         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17317         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17318
17319 2011-05-23  Bruno Haible  <bruno@clisp.org>
17320
17321         mkdir-p: Move AC_LIBOBJ invocations to module description.
17322         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17323         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17324
17325 2011-05-23  Bruno Haible  <bruno@clisp.org>
17326
17327         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17328         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17329         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17330
17331 2011-05-23  Bruno Haible  <bruno@clisp.org>
17332
17333         mgetgroups: Move AC_LIBOBJ invocations to module description.
17334         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17335         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17336
17337 2011-05-23  Bruno Haible  <bruno@clisp.org>
17338
17339         memxor: Move AC_LIBOBJ invocations to module description.
17340         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17341         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17342
17343 2011-05-23  Bruno Haible  <bruno@clisp.org>
17344
17345         memcoll: Move AC_LIBOBJ invocations to module description.
17346         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17347         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17348
17349 2011-05-23  Bruno Haible  <bruno@clisp.org>
17350
17351         memcasecmp: Move AC_LIBOBJ invocations to module description.
17352         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17353         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17354
17355 2011-05-23  Bruno Haible  <bruno@clisp.org>
17356
17357         crypto/md5: Move AC_LIBOBJ invocations to module description.
17358         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17359         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17360
17361 2011-05-23  Bruno Haible  <bruno@clisp.org>
17362
17363         crypto/md4: Move AC_LIBOBJ invocations to module description.
17364         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17365         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17366
17367 2011-05-23  Bruno Haible  <bruno@clisp.org>
17368
17369         crypto/md2: Move AC_LIBOBJ invocations to module description.
17370         * m4/md2.m4: Remove file.
17371         * modules/crypto/md2 (Files): Remove it.
17372         (configure.ac): Remove gl_MD2 call.
17373         (Makefile.am): Augment lib_SOURCES.
17374
17375 2011-05-23  Bruno Haible  <bruno@clisp.org>
17376
17377         long-options: Move AC_LIBOBJ invocations to module description.
17378         * m4/long-options.m4: Remove file.
17379         * modules/long-options (Files): Remove it.
17380         (configure.ac): Remove gl_LONG_OPTIONS call.
17381         (Makefile.am): Augment lib_SOURCES.
17382
17383 2011-05-23  Bruno Haible  <bruno@clisp.org>
17384
17385         i-ring: Move AC_LIBOBJ invocations to module description.
17386         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17387         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17388
17389 2011-05-23  Bruno Haible  <bruno@clisp.org>
17390
17391         idcache: Move AC_LIBOBJ invocations to module description.
17392         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17393         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17394
17395 2011-05-23  Bruno Haible  <bruno@clisp.org>
17396
17397         human: Move AC_LIBOBJ invocations to module description.
17398         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17399         * modules/human (Makefile.am): Augment lib_SOURCES.
17400
17401 2011-05-23  Bruno Haible  <bruno@clisp.org>
17402
17403         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17404         * m4/hmac-sha1.m4: Remove file.
17405         * modules/crypto/hmac-sha1 (Files): Remove it.
17406         (configure.ac): Remove gl_HMAC_SHA1 call.
17407         (Makefile.am): Augment lib_SOURCES.
17408
17409 2011-05-23  Bruno Haible  <bruno@clisp.org>
17410
17411         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17412         * m4/hmac-md5.m4: Remove file.
17413         * modules/crypto/hmac-md5 (Files): Remove it.
17414         (configure.ac): Remove gl_HMAC_MD5 call.
17415         (Makefile.am): Augment lib_SOURCES.
17416
17417 2011-05-23  Bruno Haible  <bruno@clisp.org>
17418
17419         hash: Move AC_LIBOBJ invocations to module description.
17420         * m4/hash.m4: Remove file.
17421         * modules/hash (Files): Remove it.
17422         (configure.ac): Remove gl_HASH call.
17423         (Makefile.am): Augment lib_SOURCES.
17424
17425 2011-05-23  Bruno Haible  <bruno@clisp.org>
17426
17427         hard-locale: Move AC_LIBOBJ invocations to module description.
17428         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17429         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17430
17431 2011-05-23  Bruno Haible  <bruno@clisp.org>
17432
17433         getugroups: Move AC_LIBOBJ invocations to module description.
17434         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17435         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17436
17437 2011-05-23  Bruno Haible  <bruno@clisp.org>
17438
17439         gettime: Move AC_LIBOBJ invocations to module description.
17440         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17441         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17442
17443 2011-05-23  Bruno Haible  <bruno@clisp.org>
17444
17445         getndelim2: Move AC_LIBOBJ invocations to module description.
17446         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17447         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17448
17449 2011-05-23  Bruno Haible  <bruno@clisp.org>
17450
17451         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17452         * m4/gc-pbkdf2-sha1.m4: Remove file.
17453         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17454         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17455         (Makefile.am): Augment lib_SOURCES.
17456
17457 2011-05-23  Bruno Haible  <bruno@clisp.org>
17458
17459         fts: Move AC_LIBOBJ invocations to module description.
17460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17461         * modules/fts (configure.ac): ... to here.
17462
17463 2011-05-23  Bruno Haible  <bruno@clisp.org>
17464
17465         file-type: Move AC_LIBOBJ invocations to module description.
17466         * m4/file-type.m4: Remove file.
17467         * modules/file-type (Files): Remove it.
17468         (configure.ac): Remove gl_FILE_TYPE call.
17469         (Makefile.am): Augment lib_SOURCES.
17470
17471 2011-05-23  Bruno Haible  <bruno@clisp.org>
17472
17473         filenamecat*: Respect rules for use of AC_LIBOBJ.
17474         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17475         Remove AC_LIBOBJ invocation.
17476         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17477         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17478
17479 2011-05-23  Bruno Haible  <bruno@clisp.org>
17480
17481         filemode: Move AC_LIBOBJ invocations to module description.
17482         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17483         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17484
17485 2011-05-23  Bruno Haible  <bruno@clisp.org>
17486
17487         openat-safer: Move AC_LIBOBJ invocations to module description.
17488         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17489         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17490
17491 2011-05-23  Bruno Haible  <bruno@clisp.org>
17492
17493         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17495         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17496
17497 2011-05-23  Bruno Haible  <bruno@clisp.org>
17498
17499         exclude: Move AC_LIBOBJ invocations to module description.
17500         * m4/exclude.m4: Remove file.
17501         * modules/exclude (Files): Remove it.
17502         (configure.ac): Remove gl_EXCLUDE call.
17503         (Makefile.am): Augment lib_SOURCES.
17504
17505 2011-05-23  Bruno Haible  <bruno@clisp.org>
17506
17507         dirname*: Respect rules for use of AC_LIBOBJ.
17508         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17509         invocations.
17510         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17511         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17512
17513 2011-05-23  Bruno Haible  <bruno@clisp.org>
17514
17515         dirent-safer: Move AC_LIBOBJ invocations to module description.
17516         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17517         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17518
17519 2011-05-23  Bruno Haible  <bruno@clisp.org>
17520
17521         crypto/des: Move AC_LIBOBJ invocations to module description.
17522         * m4/des.m4: Remove file.
17523         * modules/crypto/des (Files): Remove it.
17524         (configure.ac): Remove gl_DES call.
17525         (Makefile.am): Augment lib_SOURCES.
17526
17527 2011-05-23  Bruno Haible  <bruno@clisp.org>
17528
17529         cycle-check: Move AC_LIBOBJ invocations to module description.
17530         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17531         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17532
17533 2011-05-23  Bruno Haible  <bruno@clisp.org>
17534
17535         c-strtold: Move AC_LIBOBJ invocations to module description.
17536         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17537         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17538
17539 2011-05-23  Bruno Haible  <bruno@clisp.org>
17540
17541         c-strtod: Move AC_LIBOBJ invocations to module description.
17542         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17543         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17544
17545 2011-05-23  Bruno Haible  <bruno@clisp.org>
17546
17547         crc: Move AC_LIBOBJ invocations to module description.
17548         * m4/crc.m4: Remove file.
17549         * modules/crc (Files): Remove it.
17550         (configure.ac): Remove gl_CRC call.
17551         (Makefile.am): Augment lib_SOURCES.
17552
17553 2011-05-23  Bruno Haible  <bruno@clisp.org>
17554
17555         close-stream: Move AC_LIBOBJ invocations to module description.
17556         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17557         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17558
17559 2011-05-23  Bruno Haible  <bruno@clisp.org>
17560
17561         closeout: Move AC_LIBOBJ invocations to module description.
17562         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17563         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17564
17565 2011-05-23  Bruno Haible  <bruno@clisp.org>
17566
17567         closein: Move AC_LIBOBJ invocations to module description.
17568         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17569         * modules/closein (Makefile.am): Augment lib_SOURCES.
17570
17571 2011-05-23  Bruno Haible  <bruno@clisp.org>
17572
17573         cloexec: Move AC_LIBOBJ invocations to module description.
17574         * m4/cloexec.m4: Remove file.
17575         * modules/cloexec (Files): Remove it.
17576         (configure.ac): Remove gl_CLOEXEC call.
17577         (Makefile.am): Augment lib_SOURCES.
17578
17579 2011-05-23  Bruno Haible  <bruno@clisp.org>
17580
17581         check-version: Move AC_LIBOBJ invocations to module description.
17582         * m4/check-version.m4: Remove file.
17583         * modules/check-version (Files): Remove it.
17584         (configure.ac): Remove gl_CHECK_VERSION call.
17585         (Makefile.am): Augment lib_SOURCES.
17586
17587 2011-05-23  Bruno Haible  <bruno@clisp.org>
17588
17589         chdir-safer: Move AC_LIBOBJ invocations to module description.
17590         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17591         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17592
17593 2011-05-23  Bruno Haible  <bruno@clisp.org>
17594
17595         canonicalize: Move AC_LIBOBJ invocations to module description.
17596         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17597         AC_LIBOBJ invocation.
17598         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17599
17600 2011-05-23  Bruno Haible  <bruno@clisp.org>
17601
17602         canon-host: Move AC_LIBOBJ invocations to module description.
17603         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17604         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17605         instead of gl_CANON_HOST.
17606         (Makefile.am): Augment lib_SOURCES.
17607
17608 2011-05-23  Bruno Haible  <bruno@clisp.org>
17609
17610         backupfile: Move AC_LIBOBJ invocations to module description.
17611         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17612         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17613
17614 2011-05-23  Bruno Haible  <bruno@clisp.org>
17615
17616         argmatch: Move AC_LIBOBJ invocations to module description.
17617         * m4/argmatch.m4: Remove file.
17618         * modules/argmatch (Files): Remove it.
17619         (configure.ac): Remove gl_ARGMATCH call.
17620         (Makefile.am): Augment lib_SOURCES.
17621
17622 2011-05-23  Bruno Haible  <bruno@clisp.org>
17623
17624         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17625         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17626         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17627
17628 2011-05-23  Bruno Haible  <bruno@clisp.org>
17629
17630         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17631         * m4/arcfour.m4: Remove file.
17632         * modules/crypto/arcfour (Files): Remove it.
17633         (configure.ac): Remove gl_ARCFOUR call.
17634         (Makefile.am): Augment lib_SOURCES.
17635
17636 2011-05-22  Bruno Haible  <bruno@clisp.org>
17637
17638         write: Move AC_LIBOBJ invocations to module description.
17639         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17640         * modules/write (configure.ac): ... to here.
17641
17642 2011-05-22  Bruno Haible  <bruno@clisp.org>
17643
17644         wmemset: Move AC_LIBOBJ invocations to module description.
17645         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17646         here...
17647         * modules/wmemset (configure.ac): ... to here.
17648
17649 2011-05-22  Bruno Haible  <bruno@clisp.org>
17650
17651         wmemmove: Move AC_LIBOBJ invocations to module description.
17652         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17653         here...
17654         * modules/wmemmove (configure.ac): ... to here.
17655
17656 2011-05-22  Bruno Haible  <bruno@clisp.org>
17657
17658         wmemcpy: Move AC_LIBOBJ invocations to module description.
17659         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17660         here...
17661         * modules/wmemcpy (configure.ac): ... to here.
17662
17663 2011-05-22  Bruno Haible  <bruno@clisp.org>
17664
17665         wmemcmp: Move AC_LIBOBJ invocations to module description.
17666         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17667         here...
17668         * modules/wmemcmp (configure.ac): ... to here.
17669
17670 2011-05-22  Bruno Haible  <bruno@clisp.org>
17671
17672         wmemchr: Move AC_LIBOBJ invocations to module description.
17673         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17674         here...
17675         * modules/wmemchr (configure.ac): ... to here.
17676
17677 2011-05-22  Bruno Haible  <bruno@clisp.org>
17678
17679         wcswidth: Move AC_LIBOBJ invocations to module description.
17680         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17681         here...
17682         * modules/wcswidth (configure.ac): ... to here.
17683
17684 2011-05-22  Bruno Haible  <bruno@clisp.org>
17685
17686         wcwidth: Respect rules for use of AC_LIBOBJ.
17687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17688         invocation from here...
17689         * modules/wcwidth (configure.ac): ... to here.
17690         (Depends-on): Update conditions.
17691
17692 2011-05-22  Bruno Haible  <bruno@clisp.org>
17693
17694         wctype: Move AC_LIBOBJ invocations to module description.
17695         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17696         invocation from here...
17697         * modules/wctype (configure.ac): ... to here.
17698         (Depends-on): Update conditions.
17699
17700 2011-05-22  Bruno Haible  <bruno@clisp.org>
17701
17702         wctrans: Move AC_LIBOBJ invocations to module description.
17703         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17704         invocation from here...
17705         * modules/wctrans (configure.ac): ... to here.
17706
17707 2011-05-22  Bruno Haible  <bruno@clisp.org>
17708
17709         wctomb: Move AC_LIBOBJ invocations to module description.
17710         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17711         invocations from here...
17712         * modules/wctomb (configure.ac): ... to here.
17713
17714 2011-05-22  Bruno Haible  <bruno@clisp.org>
17715
17716         wctob: Move AC_LIBOBJ invocations to module description.
17717         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17718         gl_PREREQ_WCTOB invocations from here...
17719         * modules/wctob (configure.ac): ... to here.
17720         (Depends-on): Update conditions.
17721
17722 2011-05-22  Bruno Haible  <bruno@clisp.org>
17723
17724         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17725         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17726         here...
17727         * modules/wcsxfrm (configure.ac): ... to here.
17728
17729 2011-05-22  Bruno Haible  <bruno@clisp.org>
17730
17731         wcstok: Move AC_LIBOBJ invocations to module description.
17732         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17733         * modules/wcstok (configure.ac): ... to here.
17734
17735 2011-05-22  Bruno Haible  <bruno@clisp.org>
17736
17737         wcsstr: Move AC_LIBOBJ invocations to module description.
17738         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17739         * modules/wcsstr (configure.ac): ... to here.
17740
17741 2011-05-22  Bruno Haible  <bruno@clisp.org>
17742
17743         wcsspn: Move AC_LIBOBJ invocations to module description.
17744         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17745         * modules/wcsspn (configure.ac): ... to here.
17746
17747 2011-05-22  Bruno Haible  <bruno@clisp.org>
17748
17749         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17751         gl_PREREQ_WCSRTOMBS invocations from here...
17752         * modules/wcsrtombs (configure.ac): ... to here.
17753
17754 2011-05-22  Bruno Haible  <bruno@clisp.org>
17755
17756         wcsrchr: Move AC_LIBOBJ invocations to module description.
17757         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17758         here...
17759         * modules/wcsrchr (configure.ac): ... to here.
17760
17761 2011-05-22  Bruno Haible  <bruno@clisp.org>
17762
17763         wcspbrk: Move AC_LIBOBJ invocations to module description.
17764         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17765         here...
17766         * modules/wcspbrk (configure.ac): ... to here.
17767
17768 2011-05-22  Bruno Haible  <bruno@clisp.org>
17769
17770         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17771         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17772         gl_PREREQ_WCSNRTOMBS invocations from here...
17773         * modules/wcsnrtombs (configure.ac): ... to here.
17774
17775 2011-05-22  Bruno Haible  <bruno@clisp.org>
17776
17777         wcsnlen: Move AC_LIBOBJ invocations to module description.
17778         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17779         here...
17780         * modules/wcsnlen (configure.ac): ... to here.
17781
17782 2011-05-22  Bruno Haible  <bruno@clisp.org>
17783
17784         wcsncpy: Move AC_LIBOBJ invocations to module description.
17785         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17786         here...
17787         * modules/wcsncpy (configure.ac): ... to here.
17788
17789 2011-05-22  Bruno Haible  <bruno@clisp.org>
17790
17791         wcsncmp: Move AC_LIBOBJ invocations to module description.
17792         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17793         here...
17794         * modules/wcsncmp (configure.ac): ... to here.
17795
17796 2011-05-22  Bruno Haible  <bruno@clisp.org>
17797
17798         wcsncat: Move AC_LIBOBJ invocations to module description.
17799         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17800         here...
17801         * modules/wcsncat (configure.ac): ... to here.
17802
17803 2011-05-22  Bruno Haible  <bruno@clisp.org>
17804
17805         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17806         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17807         from here...
17808         * modules/wcsncasecmp (configure.ac): ... to here.
17809
17810 2011-05-22  Bruno Haible  <bruno@clisp.org>
17811
17812         wcslen: Move AC_LIBOBJ invocations to module description.
17813         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17814         * modules/wcslen (configure.ac): ... to here.
17815
17816 2011-05-22  Bruno Haible  <bruno@clisp.org>
17817
17818         wcsdup: Move AC_LIBOBJ invocations to module description.
17819         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17820         * modules/wcsdup (configure.ac): ... to here.
17821
17822 2011-05-22  Bruno Haible  <bruno@clisp.org>
17823
17824         wcscspn: Move AC_LIBOBJ invocations to module description.
17825         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17826         here...
17827         * modules/wcscspn (configure.ac): ... to here.
17828
17829 2011-05-22  Bruno Haible  <bruno@clisp.org>
17830
17831         wcscpy: Move AC_LIBOBJ invocations to module description.
17832         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17833         * modules/wcscpy (configure.ac): ... to here.
17834
17835 2011-05-22  Bruno Haible  <bruno@clisp.org>
17836
17837         wcscoll: Move AC_LIBOBJ invocations to module description.
17838         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17839         here...
17840         * modules/wcscoll (configure.ac): ... to here.
17841
17842 2011-05-22  Bruno Haible  <bruno@clisp.org>
17843
17844         wcscmp: Move AC_LIBOBJ invocations to module description.
17845         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17846         * modules/wcscmp (configure.ac): ... to here.
17847
17848 2011-05-22  Bruno Haible  <bruno@clisp.org>
17849
17850         wcschr: Move AC_LIBOBJ invocations to module description.
17851         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17852         * modules/wcschr (configure.ac): ... to here.
17853
17854 2011-05-22  Bruno Haible  <bruno@clisp.org>
17855
17856         wcscat: Move AC_LIBOBJ invocations to module description.
17857         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17858         * modules/wcscat (configure.ac): ... to here.
17859
17860 2011-05-22  Bruno Haible  <bruno@clisp.org>
17861
17862         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17863         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17864         here...
17865         * modules/wcscasecmp (configure.ac): ... to here.
17866
17867 2011-05-22  Bruno Haible  <bruno@clisp.org>
17868
17869         wcrtomb: Move AC_LIBOBJ invocations to module description.
17870         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17871         invocations from here...
17872         * modules/wcrtomb (configure.ac): ... to here.
17873
17874 2011-05-22  Bruno Haible  <bruno@clisp.org>
17875
17876         wcpncpy: Move AC_LIBOBJ invocations to module description.
17877         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17878         here...
17879         * modules/wcpncpy (configure.ac): ... to here.
17880
17881 2011-05-22  Bruno Haible  <bruno@clisp.org>
17882
17883         wcpcpy: Move AC_LIBOBJ invocations to module description.
17884         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17885         * modules/wcpcpy (configure.ac): ... to here.
17886
17887 2011-05-22  Bruno Haible  <bruno@clisp.org>
17888
17889         waitpid: Move AC_LIBOBJ invocations to module description.
17890         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17891         invocation from here...
17892         * modules/waitpid (configure.ac): ... to here.
17893
17894 2011-05-22  Bruno Haible  <bruno@clisp.org>
17895
17896         utimensat: Move AC_LIBOBJ invocations to module description.
17897         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17898         here...
17899         * modules/utimensat (configure.ac): ... to here.
17900
17901 2011-05-22  Bruno Haible  <bruno@clisp.org>
17902
17903         usleep: Move AC_LIBOBJ invocations to module description.
17904         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17905         here...
17906         * modules/usleep (configure.ac): ... to here.
17907
17908 2011-05-22  Bruno Haible  <bruno@clisp.org>
17909
17910         unlockpt: Move AC_LIBOBJ invocations to module description.
17911         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17912         gl_PREREQ_UNLOCKPT invocations from here...
17913         * modules/unlockpt (configure.ac): ... to here.
17914
17915 2011-05-22  Bruno Haible  <bruno@clisp.org>
17916
17917         unlink: Respect rules for use of AC_LIBOBJ.
17918         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17919         * modules/unlink (configure.ac): ... to here.
17920
17921 2011-05-22  Bruno Haible  <bruno@clisp.org>
17922
17923         uname: Move AC_LIBOBJ invocations to module description.
17924         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17925         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17926         here...
17927         * modules/uname (configure.ac): ... to here.
17928
17929 2011-05-22  Bruno Haible  <bruno@clisp.org>
17930
17931         ttyname_r: Move AC_LIBOBJ invocations to module description.
17932         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17933         gl_PREREQ_TTYNAME_R invocations from here...
17934         * modules/ttyname_r (configure.ac): ... to here.
17935
17936 2011-05-22  Bruno Haible  <bruno@clisp.org>
17937
17938         tsearch: Move AC_LIBOBJ invocations to module description.
17939         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17940         invocations from here...
17941         * modules/tsearch (configure.ac): ... to here.
17942
17943 2011-05-22  Bruno Haible  <bruno@clisp.org>
17944
17945         towctrans: Move AC_LIBOBJ invocations to module description.
17946         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17947         AC_LIBOBJ invocation from here...
17948         * modules/towctrans (configure.ac): ... to here.
17949
17950 2011-05-22  Bruno Haible  <bruno@clisp.org>
17951
17952         tmpfile: Move AC_LIBOBJ invocations to module description.
17953         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17954         invocations from here...
17955         * modules/tmpfile (configure.ac): ... to here.
17956
17957 2011-05-22  Bruno Haible  <bruno@clisp.org>
17958
17959         times: Move AC_LIBOBJ invocations to module description.
17960         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17961         * modules/times (configure.ac): ... to here.
17962
17963 2011-05-22  Bruno Haible  <bruno@clisp.org>
17964
17965         time_r: Move AC_LIBOBJ invocations to module description.
17966         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17967         invocations from here...
17968         * modules/time_r (configure.ac): ... to here.
17969
17970 2011-05-22  Bruno Haible  <bruno@clisp.org>
17971
17972         timegm: Move AC_LIBOBJ invocations to module description.
17973         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17974         invocations from here...
17975         * modules/timegm (configure.ac): ... to here.
17976
17977 2011-05-22  Bruno Haible  <bruno@clisp.org>
17978
17979         tcgetsid: Move AC_LIBOBJ invocations to module description.
17980         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17981         and gl_PREREQ_TCGETSID invocations from here...
17982         * modules/tcgetsid (configure.ac): ... to here.
17983         (Depends-on): Update conditions.
17984
17985 2011-05-22  Bruno Haible  <bruno@clisp.org>
17986
17987         symlinkat: Move AC_LIBOBJ invocations to module description.
17988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17989         here...
17990         * modules/symlinkat (configure.ac): ... to here.
17991
17992 2011-05-22  Bruno Haible  <bruno@clisp.org>
17993
17994         symlink: Move AC_LIBOBJ invocations to module description.
17995         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17996         here...
17997         * modules/symlink (configure.ac): ... to here.
17998
17999 2011-05-22  Bruno Haible  <bruno@clisp.org>
18000
18001         strverscmp: Move AC_LIBOBJ invocations to module description.
18002         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18004         from here...
18005         * modules/strverscmp (configure.ac): ... to here.
18006
18007 2011-05-22  Bruno Haible  <bruno@clisp.org>
18008
18009         strtok_r: Move AC_LIBOBJ invocations to module description.
18010         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18011         and gl_PREREQ_STRTOK_R invocations from here...
18012         * modules/strtok_r (configure.ac): ... to here.
18013         (Depends-on): Update conditions.
18014
18015 2011-05-22  Bruno Haible  <bruno@clisp.org>
18016
18017         strtoumax: Move AC_LIBOBJ invocations to module description.
18018         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18020         from here...
18021         * modules/strtoumax (configure.ac): ... to here.
18022
18023 2011-05-22  Bruno Haible  <bruno@clisp.org>
18024
18025         strtoimax: Move AC_LIBOBJ invocations to module description.
18026         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18028         from here...
18029         * modules/strtoimax (configure.ac): ... to here.
18030
18031 2011-05-22  Bruno Haible  <bruno@clisp.org>
18032
18033         strtoull: Move AC_LIBOBJ invocations to module description.
18034         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18036         from here...
18037         * modules/strtoull (configure.ac): ... to here.
18038
18039 2011-05-22  Bruno Haible  <bruno@clisp.org>
18040
18041         strtoll: Move AC_LIBOBJ invocations to module description.
18042         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18044         here...
18045         * modules/strtoll (configure.ac): ... to here.
18046
18047 2011-05-22  Bruno Haible  <bruno@clisp.org>
18048
18049         strtoul: Move AC_LIBOBJ invocations to module description.
18050         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18051         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18052         * modules/strtoul (configure.ac): ... to here.
18053
18054 2011-05-22  Bruno Haible  <bruno@clisp.org>
18055
18056         strtol: Move AC_LIBOBJ invocations to module description.
18057         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18058         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18059         * modules/strtol (configure.ac): ... to here.
18060
18061 2011-05-22  Bruno Haible  <bruno@clisp.org>
18062
18063         strtod: Move AC_LIBOBJ invocations to module description.
18064         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18065         invocations from here...
18066         * modules/strtod (configure.ac): ... to here.
18067
18068 2011-05-22  Bruno Haible  <bruno@clisp.org>
18069
18070         strstr*: Move AC_LIBOBJ invocations to module description.
18071         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18072         invocations from here...
18073         * modules/strstr-simple (configure.ac): ... to here.
18074         * modules/strstr (configure.ac): ... and here.
18075
18076 2011-05-22  Bruno Haible  <bruno@clisp.org>
18077
18078         strsignal: Move AC_LIBOBJ invocations to module description.
18079         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18080         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18081         * modules/strsignal (configure.ac): ... to here.
18082         (Depends-on): Update conditions.
18083
18084 2011-05-22  Bruno Haible  <bruno@clisp.org>
18085
18086         strsep: Move AC_LIBOBJ invocations to module description.
18087         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18088         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18089         here...
18090         * modules/strsep (configure.ac): ... to here.
18091
18092 2011-05-22  Bruno Haible  <bruno@clisp.org>
18093
18094         strptime: Move AC_LIBOBJ invocations to module description.
18095         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18096         gl_PREREQ_STRPTIME invocations from here...
18097         * modules/strptime (configure.ac): ... to here.
18098
18099 2011-05-22  Bruno Haible  <bruno@clisp.org>
18100
18101         strpbrk: Move AC_LIBOBJ invocations to module description.
18102         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18104         here...
18105         * modules/strpbrk (configure.ac): ... to here.
18106
18107 2011-05-22  Bruno Haible  <bruno@clisp.org>
18108
18109         strnlen: Move AC_LIBOBJ invocations to module description.
18110         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18111         invocations from here...
18112         * modules/strnlen (configure.ac): ... to here.
18113
18114 2011-05-22  Bruno Haible  <bruno@clisp.org>
18115
18116         strndup: Move AC_LIBOBJ invocations to module description.
18117         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18118         invocations from here...
18119         * modules/strndup (configure.ac): ... to here.
18120         (Depends-on): Update conditions.
18121
18122 2011-05-22  Bruno Haible  <bruno@clisp.org>
18123
18124         strncat: Move AC_LIBOBJ invocations to module description.
18125         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18126         invocations from here...
18127         * modules/strncat (configure.ac): ... to here.
18128
18129 2011-05-22  Bruno Haible  <bruno@clisp.org>
18130
18131         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18132         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18133         invocations from here...
18134         * modules/strdup (configure.ac): ... to here.
18135         * modules/strdup-posix (configure.ac): ... and here.
18136
18137 2011-05-22  Bruno Haible  <bruno@clisp.org>
18138
18139         strcspn: Move AC_LIBOBJ invocations to module description.
18140         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18142         here...
18143         * modules/strcspn (configure.ac): ... to here.
18144
18145 2011-05-22  Bruno Haible  <bruno@clisp.org>
18146
18147         strchrnul: Move AC_LIBOBJ invocations to module description.
18148         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18149         gl_PREREQ_STRCHRNUL invocations from here...
18150         * modules/strchrnul (configure.ac): ... to here.
18151
18152 2011-05-22  Bruno Haible  <bruno@clisp.org>
18153
18154         strcasestr*: Move AC_LIBOBJ invocations to module description.
18155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18156         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18157         * modules/strcasestr-simple (configure.ac): ... to here.
18158         * modules/strcasestr (configure.ac): ... and here.
18159
18160 2011-05-22  Bruno Haible  <bruno@clisp.org>
18161
18162         strcase: Move AC_LIBOBJ invocations to module description.
18163         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18164         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18165         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18166         gl_PREREQ_STRNCASECMP invocations from here...
18167         * modules/strcase (configure.ac): ... to here.
18168
18169 2011-05-22  Bruno Haible  <bruno@clisp.org>
18170
18171         stpncpy: Move AC_LIBOBJ invocations to module description.
18172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18173         here...
18174         * modules/stpncpy (configure.ac): ... to here.
18175
18176 2011-05-22  Bruno Haible  <bruno@clisp.org>
18177
18178         stpcpy: Move AC_LIBOBJ invocations to module description.
18179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18181         here...
18182         * modules/stpcpy (configure.ac): ... to here.
18183
18184 2011-05-21  Bruno Haible  <bruno@clisp.org>
18185
18186         stat: Move AC_LIBOBJ invocations to module description.
18187         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18188         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18189         here...
18190         * modules/stat (configure.ac): ... to here.
18191
18192 2011-05-21  Bruno Haible  <bruno@clisp.org>
18193
18194         sleep: Move AC_LIBOBJ invocations to module description.
18195         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18196         * modules/sleep (configure.ac): ... to here.
18197
18198 2011-05-21  Bruno Haible  <bruno@clisp.org>
18199
18200         signbit: Move AC_LIBOBJ invocations to module description.
18201         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18202         * modules/signbit (configure.ac): ... to here.
18203
18204 2011-05-21  Bruno Haible  <bruno@clisp.org>
18205
18206         sigprocmask: Move AC_LIBOBJ invocations to module description.
18207         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18208         gl_PREREQ_SIGPROMASK invocations from here...
18209         * modules/sigprocmask (configure.ac): ... to here.
18210
18211 2011-05-21  Bruno Haible  <bruno@clisp.org>
18212
18213         sigaction: Move AC_LIBOBJ invocations to module description.
18214         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18215         gl_PREREQ_SIGACTION invocations from here...
18216         * modules/sigaction (configure.ac): ... to here.
18217
18218 2011-05-21  Bruno Haible  <bruno@clisp.org>
18219
18220         sig2str: Move AC_LIBOBJ invocations to module description.
18221         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18223         here...
18224         * modules/sig2str (configure.ac): ... to here.
18225
18226 2011-05-21  Bruno Haible  <bruno@clisp.org>
18227
18228         setlocale: Move AC_LIBOBJ invocations to module description.
18229         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18230         gl_PREREQ_SETLOCALE invocations from here...
18231         * modules/setlocale (configure.ac): ... to here.
18232
18233 2011-05-21  Bruno Haible  <bruno@clisp.org>
18234
18235         unsetenv: Move AC_LIBOBJ invocations to module description.
18236         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18237         and gl_PREREQ_UNSETENV invocations from here...
18238         * modules/unsetenv (configure.ac): ... to here.
18239         (Depends-on): Update.
18240
18241 2011-05-21  Bruno Haible  <bruno@clisp.org>
18242
18243         setenv: Move AC_LIBOBJ invocations to module description.
18244         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18245         here...
18246         * modules/setenv (configure.ac): ... to here.
18247
18248 2011-05-21  Bruno Haible  <bruno@clisp.org>
18249
18250         selinux-h: Move AC_LIBOBJ invocations to module description.
18251         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18252         AC_LIBOBJ invocation from here...
18253         * modules/selinux-h (configure.ac): ... to here.
18254
18255 2011-05-21  Bruno Haible  <bruno@clisp.org>
18256
18257         select: Respect rules for use of AC_LIBOBJ.
18258         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18259         here...
18260         * modules/select (configure.ac): ... to here.
18261
18262 2011-05-21  Bruno Haible  <bruno@clisp.org>
18263
18264         scandir: Move AC_LIBOBJ invocations to module description.
18265         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18266         invocations from here...
18267         * modules/scandir (configure.ac): ... to here.
18268
18269 2011-05-21  Bruno Haible  <bruno@clisp.org>
18270
18271         rpmatch: Move AC_LIBOBJ invocations to module description.
18272         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18274         here...
18275         * modules/rpmatch (configure.ac): ... to here.
18276
18277 2011-05-21  Bruno Haible  <bruno@clisp.org>
18278
18279         rmdir: Respect rules for use of AC_LIBOBJ.
18280         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18281         * modules/rmdir (configure.ac): ... to here.
18282
18283 2011-05-21  Bruno Haible  <bruno@clisp.org>
18284
18285         renameat: Move AC_LIBOBJ invocations to module description.
18286         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18287         here...
18288         * modules/renameat (configure.ac): ... to here.
18289
18290 2011-05-21  Bruno Haible  <bruno@clisp.org>
18291
18292         rename: Respect rules for use of AC_LIBOBJ.
18293         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18294         here...
18295         * modules/rename (configure.ac): ... to here.
18296
18297 2011-05-21  Bruno Haible  <bruno@clisp.org>
18298
18299         remove: Move AC_LIBOBJ invocations to module description.
18300         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18301         here...
18302         * modules/remove (configure.ac): ... to here.
18303
18304 2011-05-21  Bruno Haible  <bruno@clisp.org>
18305
18306         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18307         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18308         macro.
18309         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18310         * modules/relocatable-lib (configure.ac): ... to here.
18311         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18312         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18313
18314 2011-05-21  Bruno Haible  <bruno@clisp.org>
18315
18316         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18317         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18318         here...
18319         * modules/relocatable-prog (configure.ac): ... to here.
18320
18321 2011-05-21  Bruno Haible  <bruno@clisp.org>
18322
18323         regex: Move AC_LIBOBJ invocations to module description.
18324         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18325         invocations from here...
18326         * modules/regex (configure.ac): ... to here.
18327
18328 2011-05-21  Bruno Haible  <bruno@clisp.org>
18329
18330         realloc-*: Move AC_LIBOBJ invocations to module description.
18331         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18332         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18333         AC_LIBOBJ invocations from here...
18334         * modules/realloc-gnu (configure.ac): ... to here.
18335         * modules/realloc-posix (configure.ac): ... and here.
18336
18337 2011-05-21  Bruno Haible  <bruno@clisp.org>
18338
18339         readutmp: Move AC_LIBOBJ invocations to module description.
18340         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18341         * modules/readutmp (configure.ac): ... to here.
18342
18343 2011-05-21  Bruno Haible  <bruno@clisp.org>
18344
18345         readlinkat: Move AC_LIBOBJ invocations to module description.
18346         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18347         here...
18348         * modules/readlinkat (configure.ac): ... to here.
18349
18350 2011-05-21  Bruno Haible  <bruno@clisp.org>
18351
18352         readlink: Move AC_LIBOBJ invocations to module description.
18353         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18354         gl_PREREQ_READLINK invocations from here...
18355         * modules/readlink (configure.ac): ... to here.
18356
18357 2011-05-21  Bruno Haible  <bruno@clisp.org>
18358
18359         readline: Move AC_LIBOBJ invocations to module description.
18360         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18361         gl_PREREQ_READLINE invocations from here...
18362         * modules/readline (configure.ac): ... to here.
18363
18364 2011-05-21  Bruno Haible  <bruno@clisp.org>
18365
18366         read: Move AC_LIBOBJ invocations to module description.
18367         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18368         * modules/read (configure.ac): ... to here.
18369
18370 2011-05-21  Bruno Haible  <bruno@clisp.org>
18371
18372         rawmemchr: Move AC_LIBOBJ invocations to module description.
18373         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18375         from here...
18376         * modules/rawmemchr (configure.ac): ... to here.
18377
18378 2011-05-21  Bruno Haible  <bruno@clisp.org>
18379
18380         random_r: Move AC_LIBOBJ invocations to module description.
18381         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18382         gl_PREREQ_RANDOM_R invocations from here...
18383         * modules/random_r (configure.ac): ... to here.
18384
18385 2011-05-21  Bruno Haible  <bruno@clisp.org>
18386
18387         pwrite: Move AC_LIBOBJ invocations to module description.
18388         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18389         * modules/pwrite (configure.ac): ... to here.
18390
18391 2011-05-21  Bruno Haible  <bruno@clisp.org>
18392
18393         putenv: Move AC_LIBOBJ invocations to module description.
18394         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18395         * modules/putenv (configure.ac): ... to here.
18396
18397 2011-05-21  Bruno Haible  <bruno@clisp.org>
18398
18399         login_tty: Move AC_LIBOBJ invocations to module description.
18400         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18401         * modules/login_tty (configure.ac): ... to here.
18402
18403 2011-05-21  Bruno Haible  <bruno@clisp.org>
18404
18405         openpty: Move AC_LIBOBJ invocations to module description.
18406         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18407         * modules/openpty (configure.ac): ... to here.
18408
18409 2011-05-21  Bruno Haible  <bruno@clisp.org>
18410
18411         forkpty: Move AC_LIBOBJ invocations to module description.
18412         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18413         * modules/forkpty (configure.ac): ... to here.
18414
18415 2011-05-21  Bruno Haible  <bruno@clisp.org>
18416
18417         ptsname: Move AC_LIBOBJ invocations to module description.
18418         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18419         invocations from here...
18420         * modules/ptsname (configure.ac): ... to here.
18421
18422 2011-05-21  Bruno Haible  <bruno@clisp.org>
18423
18424         pread: Move AC_LIBOBJ invocations to module description.
18425         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18426         * modules/pread (configure.ac): ... to here.
18427
18428 2011-05-21  Bruno Haible  <bruno@clisp.org>
18429
18430         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18431         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18432         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18433         * modules/posix_spawn (configure.ac): ... to here.
18434         * modules/posix_spawnp (configure.ac): ... and here.
18435
18436 2011-05-21  Bruno Haible  <bruno@clisp.org>
18437
18438         popen: Move AC_LIBOBJ invocations to module description.
18439         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18440         invocations from here...
18441         * modules/popen (configure.ac): ... to here.
18442
18443 2011-05-21  Bruno Haible  <bruno@clisp.org>
18444
18445         poll: Move AC_LIBOBJ invocations to module description.
18446         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18447         invocations from here...
18448         * modules/poll (configure.ac): ... to here.
18449
18450 2011-05-21  Bruno Haible  <bruno@clisp.org>
18451
18452         pipe-posix: Move AC_LIBOBJ invocations to module description.
18453         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18454         * modules/pipe-posix (configure.ac): ... to here.
18455
18456 2011-05-21  Bruno Haible  <bruno@clisp.org>
18457
18458         openat: Respect rules for use of AC_LIBOBJ.
18459         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18460         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18461         * modules/openat (configure.ac): ... to here.
18462
18463 2011-05-21  Bruno Haible  <bruno@clisp.org>
18464
18465         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18466         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18467         invocation from here...
18468         * modules/obstack-printf (configure.ac): ... to here.
18469         * modules/obstack-printf-posix (configure.ac): ... and here.
18470
18471 2011-05-21  Bruno Haible  <bruno@clisp.org>
18472
18473         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18474         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18475         from here...
18476         * modules/nl_langinfo (configure.ac): ... to here.
18477
18478 2011-05-21  Bruno Haible  <bruno@clisp.org>
18479
18480         nanosleep: Move AC_LIBOBJ invocations to module description.
18481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18482         gl_PREREQ_NANOSLEEP invocations from here...
18483         * modules/nanosleep (configure.ac): ... to here.
18484
18485 2011-05-21  Bruno Haible  <bruno@clisp.org>
18486
18487         mountlist: Move AC_LIBOBJ invocations to module description.
18488         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18489         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18490         * modules/mountlist (configure.ac): ... to here.
18491
18492 2011-05-21  Bruno Haible  <bruno@clisp.org>
18493
18494         mktime: Respect rules for use of AC_LIBOBJ.
18495         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18496         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18497         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18498         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18499         * modules/mktime (configure.ac): ... to here.
18500         * modules/mktime-internal (configure.ac): ... and here.
18501         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18502
18503 2011-05-21  Bruno Haible  <bruno@clisp.org>
18504
18505         mkstemps: Move AC_LIBOBJ invocations to module description.
18506         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18507         here...
18508         * modules/mkstemps (configure.ac): ... to here.
18509
18510 2011-05-21  Bruno Haible  <bruno@clisp.org>
18511
18512         mkstemp: Move AC_LIBOBJ invocations to module description.
18513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18514         gl_PREREQ_MKSTEMP invocations from here...
18515         * modules/mkstemp (configure.ac): ... to here.
18516
18517 2011-05-21  Bruno Haible  <bruno@clisp.org>
18518
18519         mkostemps: Move AC_LIBOBJ invocations to module description.
18520         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18521         here...
18522         * modules/mkostemps (configure.ac): ... to here.
18523
18524 2011-05-21  Bruno Haible  <bruno@clisp.org>
18525
18526         mkostemp: Move AC_LIBOBJ invocations to module description.
18527         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18528         gl_PREREQ_MKOSTEMP invocations from here...
18529         * modules/mkostemp (configure.ac): ... to here.
18530
18531 2011-05-21  Bruno Haible  <bruno@clisp.org>
18532
18533         mknod: Move AC_LIBOBJ invocations to module description.
18534         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18535         * modules/mknod (configure.ac): ... to here.
18536
18537 2011-05-21  Bruno Haible  <bruno@clisp.org>
18538
18539         mkfifoat: Move AC_LIBOBJ invocations to module description.
18540         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18541         here...
18542         * modules/mkfifoat (configure.ac): ... to here.
18543
18544 2011-05-21  Bruno Haible  <bruno@clisp.org>
18545
18546         mkfifo: Respect rules for use of AC_LIBOBJ.
18547         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18548         here...
18549         * modules/mkfifo (configure.ac): ... to here.
18550
18551 2011-05-21  Bruno Haible  <bruno@clisp.org>
18552
18553         mkdtemp: Move AC_LIBOBJ invocations to module description.
18554         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18555         invocations from here...
18556         * modules/mkdtemp (configure.ac): ... to here.
18557
18558 2011-05-21  Bruno Haible  <bruno@clisp.org>
18559
18560         mkdir: Move AC_LIBOBJ invocations to module description.
18561         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18562         * modules/mkdir (configure.ac): ... to here.
18563
18564 2011-05-21  Bruno Haible  <bruno@clisp.org>
18565
18566         memset: Move AC_LIBOBJ invocations to module description.
18567         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18569         here...
18570         * modules/memset (configure.ac): ... to here.
18571
18572 2011-05-21  Bruno Haible  <bruno@clisp.org>
18573
18574         memrchr: Move AC_LIBOBJ invocations to module description.
18575         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18577         here...
18578         * modules/memrchr (configure.ac): ... to here.
18579
18580 2011-05-21  Bruno Haible  <bruno@clisp.org>
18581
18582         mempcpy: Move AC_LIBOBJ invocations to module description.
18583         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18585         here...
18586         * modules/mempcpy (configure.ac): ... to here.
18587
18588 2011-05-21  Bruno Haible  <bruno@clisp.org>
18589
18590         memmove: Move AC_LIBOBJ invocations to module description.
18591         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18593         here...
18594         * modules/memmove (configure.ac): ... to here.
18595
18596 2011-05-21  Bruno Haible  <bruno@clisp.org>
18597
18598         memmem*: Move AC_LIBOBJ invocations to module description.
18599         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18600         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18601         here...
18602         (gl_FUNC_MEMMEM): ... and here...
18603         * modules/memmem-simple (configure.ac): ... to here.
18604         * modules/memmem (configure.ac): ... and here.
18605
18606 2011-05-21  Bruno Haible  <bruno@clisp.org>
18607
18608         memcpy: Move AC_LIBOBJ invocations to module description.
18609         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18610         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18611         here...
18612         * modules/memcpy (configure.ac): ... to here.
18613
18614 2011-05-21  Bruno Haible  <bruno@clisp.org>
18615
18616         memcmp: Simplify autoconf macro.
18617         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18618         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18619         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18620
18621 2011-05-21  Bruno Haible  <bruno@clisp.org>
18622
18623         memcmp: Move AC_LIBOBJ invocations to module description.
18624         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18625         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18626         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18627         * modules/memcmp (configure.ac): ... to here.
18628         (Depends-on): Update conditions.
18629
18630 2011-05-21  Bruno Haible  <bruno@clisp.org>
18631
18632         memchr: Respect rules for use of AC_LIBOBJ.
18633         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18634         invocations from here...
18635         * modules/memchr (configure.ac): ... to here.
18636
18637 2011-05-21  Bruno Haible  <bruno@clisp.org>
18638
18639         mbtowc: Move AC_LIBOBJ invocations to module description.
18640         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18641         invocations from here...
18642         * modules/mbtowc (configure.ac): ... to here.
18643
18644 2011-05-21  Bruno Haible  <bruno@clisp.org>
18645
18646         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18647         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18648         gl_PREREQ_MBSRTOWCS invocations from here...
18649         * modules/mbsrtowcs (configure.ac): ... to here.
18650
18651 2011-05-21  Bruno Haible  <bruno@clisp.org>
18652
18653         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18654         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18655         gl_PREREQ_MBSNRTOWCS invocations from here...
18656         * modules/mbsnrtowcs (configure.ac): ... to here.
18657
18658 2011-05-21  Bruno Haible  <bruno@clisp.org>
18659
18660         mbsinit: Move AC_LIBOBJ invocations to module description.
18661         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18662         invocations from here...
18663         * modules/mbsinit (configure.ac): ... to here.
18664
18665 2011-05-21  Bruno Haible  <bruno@clisp.org>
18666
18667         mbrlen: Move AC_LIBOBJ invocations to module description.
18668         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18669         invocations from here...
18670         * modules/mbrlen (configure.ac): ... to here.
18671
18672 2011-05-21  Bruno Haible  <bruno@clisp.org>
18673
18674         mbrtowc: Respect rules for use of AC_LIBOBJ.
18675         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18676         invocations from here...
18677         * modules/mbrtowc (configure.ac): ... to here.
18678
18679 2011-05-21  Bruno Haible  <bruno@clisp.org>
18680
18681         malloc-*: Move AC_LIBOBJ invocations to module description.
18682         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18683         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18684         AC_LIBOBJ invocations from here...
18685         * modules/malloc-gnu (configure.ac): ... to here.
18686         * modules/malloc-posix (configure.ac): ... and here.
18687
18688 2011-05-21  Bruno Haible  <bruno@clisp.org>
18689
18690         lstat, openat: Respect rules for use of AC_LIBOBJ.
18691         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18692         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18693         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18694         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18695         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18696         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18697         here.
18698         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18699
18700 2011-05-21  Bruno Haible  <bruno@clisp.org>
18701
18702         lseek: Move AC_LIBOBJ invocations to module description.
18703         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18704         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18705         * modules/lseek (configure.ac): ... to here.
18706
18707 2011-05-21  Bruno Haible  <bruno@clisp.org>
18708
18709         linkat: Move AC_LIBOBJ invocations to module description.
18710         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18711         here...
18712         * modules/linkat (configure.ac): ... to here.
18713
18714 2011-05-21  Bruno Haible  <bruno@clisp.org>
18715
18716         link: Respect rules for use of AC_LIBOBJ.
18717         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18718         * modules/link (configure.ac): ... to here.
18719
18720 2011-05-21  Bruno Haible  <bruno@clisp.org>
18721
18722         lchown: Move AC_LIBOBJ invocations to module description.
18723         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18724         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18725         * modules/lchown (configure.ac): ... to here.
18726
18727 2011-05-21  Bruno Haible  <bruno@clisp.org>
18728
18729         iswctype: Move AC_LIBOBJ invocations to module description.
18730         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18731         here...
18732         * modules/iswctype (configure.ac): ... to here.
18733
18734 2011-05-21  Bruno Haible  <bruno@clisp.org>
18735
18736         iswblank: Move AC_LIBOBJ invocations to module description.
18737         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18738         here...
18739         * modules/iswblank (configure.ac): ... to here.
18740
18741 2011-05-21  Bruno Haible  <bruno@clisp.org>
18742
18743         atanl: Move AC_LIBOBJ invocations to module description.
18744         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18745         * modules/atanl (configure.ac): ... to here.
18746
18747 2011-05-21  Bruno Haible  <bruno@clisp.org>
18748
18749         acosl: Move AC_LIBOBJ invocations to module description.
18750         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18751         * modules/acosl (configure.ac): ... to here.
18752
18753 2011-05-21  Bruno Haible  <bruno@clisp.org>
18754
18755         asinl: Respect rules for use of AC_LIBOBJ.
18756         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18757         * modules/asinl (configure.ac): ... to here.
18758
18759 2011-05-21  Bruno Haible  <bruno@clisp.org>
18760
18761         tanl: Move AC_LIBOBJ invocations to module description.
18762         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18763         * modules/tanl (configure.ac): ... to here.
18764
18765 2011-05-21  Bruno Haible  <bruno@clisp.org>
18766
18767         cosl: Move AC_LIBOBJ invocations to module description.
18768         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18769         * modules/cosl (configure.ac): ... to here.
18770
18771 2011-05-21  Bruno Haible  <bruno@clisp.org>
18772
18773         sinl: Move AC_LIBOBJ invocations to module description.
18774         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18775         * modules/sinl (configure.ac): ... to here.
18776
18777 2011-05-21  Bruno Haible  <bruno@clisp.org>
18778
18779         logl: Move AC_LIBOBJ invocations to module description.
18780         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18781         * modules/logl (configure.ac): ... to here.
18782
18783 2011-05-21  Bruno Haible  <bruno@clisp.org>
18784
18785         expl: Move AC_LIBOBJ invocations to module description.
18786         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18787         * modules/expl (configure.ac): ... to here.
18788
18789 2011-05-21  Bruno Haible  <bruno@clisp.org>
18790
18791         roundl: Move AC_LIBOBJ invocations to module description.
18792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18793         * modules/roundl (configure.ac): ... to here.
18794
18795 2011-05-21  Bruno Haible  <bruno@clisp.org>
18796
18797         round: Move AC_LIBOBJ invocations to module description.
18798         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18799         * modules/round (configure.ac): ... to here.
18800
18801 2011-05-21  Bruno Haible  <bruno@clisp.org>
18802
18803         roundf: Move AC_LIBOBJ invocations to module description.
18804         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18805         * modules/roundf (configure.ac): ... to here.
18806
18807 2011-05-21  Bruno Haible  <bruno@clisp.org>
18808
18809         truncl: Move AC_LIBOBJ invocations to module description.
18810         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18811         * modules/truncl (configure.ac): ... to here.
18812
18813 2011-05-21  Bruno Haible  <bruno@clisp.org>
18814
18815         trunc: Move AC_LIBOBJ invocations to module description.
18816         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18817         * modules/trunc (configure.ac): ... to here.
18818
18819 2011-05-21  Bruno Haible  <bruno@clisp.org>
18820
18821         truncf: Move AC_LIBOBJ invocations to module description.
18822         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18823         * modules/truncf (configure.ac): ... to here.
18824
18825 2011-05-21  Bruno Haible  <bruno@clisp.org>
18826
18827         ceill: Move AC_LIBOBJ invocations to module description.
18828         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18829         * modules/ceill (configure.ac): ... to here.
18830
18831 2011-05-21  Bruno Haible  <bruno@clisp.org>
18832
18833         ceil: Move AC_LIBOBJ invocations to module description.
18834         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18835         * modules/ceil (configure.ac): ... to here.
18836
18837 2011-05-21  Bruno Haible  <bruno@clisp.org>
18838
18839         ceilf: Move AC_LIBOBJ invocations to module description.
18840         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18841         * modules/ceilf (configure.ac): ... to here.
18842
18843 2011-05-21  Bruno Haible  <bruno@clisp.org>
18844
18845         floorl: Respect rules for use of AC_LIBOBJ.
18846         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18847         * modules/floorl (configure.ac): ... to here.
18848
18849 2011-05-21  Bruno Haible  <bruno@clisp.org>
18850
18851         floor: Respect rules for use of AC_LIBOBJ.
18852         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18853         * modules/floor (configure.ac): ... to here.
18854
18855 2011-05-21  Bruno Haible  <bruno@clisp.org>
18856
18857         floorf: Move AC_LIBOBJ invocations to module description.
18858         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18859         * modules/floorf (configure.ac): ... to here.
18860
18861 2011-05-20  Bruno Haible  <bruno@clisp.org>
18862
18863         sqrtl: Respect rules for use of AC_LIBOBJ.
18864         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18865         * modules/sqrtl (configure.ac): ... to here.
18866
18867 2011-05-20  Bruno Haible  <bruno@clisp.org>
18868
18869         ldexpl: Respect rules for use of AC_LIBOBJ.
18870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18871         * modules/ldexpl (configure.ac): ... to here.
18872
18873 2011-05-20  Bruno Haible  <bruno@clisp.org>
18874
18875         frexpl*: Respect rules for use of AC_LIBOBJ.
18876         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18877         invocation from here...
18878         * modules/frexpl (configure.ac): ... to here.
18879         * modules/frexpl-nolibm (configure.ac): ... and here.
18880
18881 2011-05-20  Bruno Haible  <bruno@clisp.org>
18882
18883         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18884         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18885         invocation from here...
18886         * modules/frexp (configure.ac): ... to here.
18887         * modules/frexp-nolibm (configure.ac): ... and here.
18888
18889 2011-05-20  Bruno Haible  <bruno@clisp.org>
18890
18891         isnan: Respect rules for use of AC_LIBOBJ.
18892         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18893         invocations here.
18894         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18895         REPLACE_ISNAN.
18896         * modules/isnand (configure.ac): Likewise.
18897         * modules/isnanl (configure.ac): Likewise.
18898
18899 2011-05-20  Bruno Haible  <bruno@clisp.org>
18900
18901         isnanl*: Respect rules for use of AC_LIBOBJ.
18902         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18903         invocation from here...
18904         * modules/isnanl (configure.ac): ... to here.
18905         * modules/isnanl-nolibm (configure.ac): ... and here.
18906
18907 2011-05-20  Bruno Haible  <bruno@clisp.org>
18908
18909         isnand*: Move AC_LIBOBJ invocations to module description.
18910         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18911         invocation from here...
18912         * modules/isnand (configure.ac): ... to here.
18913         * modules/isnand-nolibm (configure.ac): ... and here.
18914
18915 2011-05-20  Bruno Haible  <bruno@clisp.org>
18916
18917         isnanf*: Move AC_LIBOBJ invocations to module description.
18918         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18919         invocation from here...
18920         * modules/isnanf (configure.ac): ... to here.
18921         * modules/isnanf-nolibm (configure.ac): ... and here.
18922
18923 2011-05-20  Bruno Haible  <bruno@clisp.org>
18924
18925         isnan*: Separate the AC_LIBOBJ invocations.
18926         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18927         AC_LIBOBJ invocation.
18928         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18929         here.
18930         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18931         AC_LIBOBJ invocation.
18932         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18933         here.
18934         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18935         AC_LIBOBJ invocation.
18936         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18937         here.
18938         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18939
18940 2011-05-08  Bruno Haible  <bruno@clisp.org>
18941
18942         isinf: Move AC_LIBOBJ invocations to module description.
18943         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18944         * modules/isinf (configure.ac): ... to here.
18945
18946 2011-05-08  Bruno Haible  <bruno@clisp.org>
18947
18948         isfinite: Move AC_LIBOBJ invocations to module description.
18949         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18950         * modules/isfinite (configure.ac): ... to here.
18951
18952 2011-05-08  Bruno Haible  <bruno@clisp.org>
18953
18954         isblank: Move AC_LIBOBJ invocations to module description.
18955         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18956         here...
18957         * modules/isblank (configure.ac): ... to here.
18958
18959 2011-05-08  Bruno Haible  <bruno@clisp.org>
18960
18961         isapipe: Move AC_LIBOBJ invocations to module description.
18962         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18963         gl_PREREQ_ISAPIPE invocations from here...
18964         * modules/isapipe (configure.ac): ... to here.
18965         (Depends-on): Update condition.
18966
18967 2011-05-08  Bruno Haible  <bruno@clisp.org>
18968
18969         ioctl: Move AC_LIBOBJ invocations to module description.
18970         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18971         invocations from here...
18972         * modules/ioctl (configure.ac): ... to here.
18973         (Depends-on): Update condition.
18974
18975 2011-05-08  Bruno Haible  <bruno@clisp.org>
18976
18977         imaxdiv: Move AC_LIBOBJ invocations to module description.
18978         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18979         invocations from here...
18980         * modules/imaxdiv (configure.ac): ... to here.
18981
18982 2011-05-08  Bruno Haible  <bruno@clisp.org>
18983
18984         imaxabs: Move AC_LIBOBJ invocations to module description.
18985         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18986         invocations from here...
18987         * modules/imaxabs (configure.ac): ... to here.
18988
18989 2011-05-08  Bruno Haible  <bruno@clisp.org>
18990
18991         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18993         AC_LIBOBJ invocations from here...
18994         * modules/getaddrinfo (configure.ac): ... to here.
18995         (Depends-on): Add conditions.
18996
18997 2011-05-08  Bruno Haible  <bruno@clisp.org>
18998
18999         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19000         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19001         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19002         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19003         (gl_PREREQ_INET_PTON): ... from here.
19004         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19005         gl_PREREQ_INET_PTON here.
19006         (Depends-on): Update condition.
19007
19008 2011-05-08  Bruno Haible  <bruno@clisp.org>
19009
19010         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19011         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19012         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19013         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19014         (gl_PREREQ_INET_NTOP): ... from here.
19015         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19016         gl_PREREQ_INET_NTOP here.
19017         (Depends-on): Update condition.
19018
19019 2011-05-08  Bruno Haible  <bruno@clisp.org>
19020
19021         iconv_open: Move AC_LIBOBJ invocations to module description.
19022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19023         AC_LIBOBJ invocations from here...
19024         * modules/iconv_open (configure.ac): ... to here.
19025
19026 2011-05-08  Bruno Haible  <bruno@clisp.org>
19027
19028         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19029         If module 'iconv_open' is among the main modules and module
19030         'iconv_open-utf' is among the tests dependencies, then
19031         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19032         return the special iconv_t values. Therefore iconv() and iconv_close()
19033         must support these special iconv_t values, already in lib, not only in
19034         tests.
19035         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19036         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19037         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19038         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19039         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19040         (Depends-on): Add the dependencies of iconv_open-utf.
19041         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19042         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19043         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19044
19045 2011-05-08  Bruno Haible  <bruno@clisp.org>
19046
19047         group-member: Move AC_LIBOBJ invocations to module description.
19048         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19049         gl_PREREQ_GROUP_MEMBER invocations from here...
19050         * modules/group-member (configure.ac): ... to here.
19051
19052 2011-05-08  Bruno Haible  <bruno@clisp.org>
19053
19054         grantpt: Move AC_LIBOBJ invocations to module description.
19055         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19056         invocations from here...
19057         * modules/grantpt (configure.ac): ... to here.
19058
19059 2011-05-08  Bruno Haible  <bruno@clisp.org>
19060
19061         glob: Move AC_LIBOBJ invocations to module description.
19062         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19063         from here...
19064         * modules/glob (configure.ac): ... to here.
19065
19066 2011-05-08  Bruno Haible  <bruno@clisp.org>
19067
19068         getusershell: Move AC_LIBOBJ invocations to module description.
19069         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19070         Move AC_LIBOBJ invocation from here...
19071         * modules/getusershell (configure.ac): ... to here.
19072         (Depends-on): Update condition.
19073
19074 2011-05-08  Bruno Haible  <bruno@clisp.org>
19075
19076         gettimeofday: Move AC_LIBOBJ invocations to module description.
19077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19078         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19079         gl_PREREQ_GETTIMEOFDAY invocations from here...
19080         * modules/gettimeofday (configure.ac): ... to here.
19081
19082 2011-05-08  Bruno Haible  <bruno@clisp.org>
19083
19084         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19085         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19086         just gl_FUNC_TZSET.
19087         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19088         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19090         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19091
19092 2011-05-08  Bruno Haible  <bruno@clisp.org>
19093
19094         getsubopt: Move AC_LIBOBJ invocations to module description.
19095         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19096         gl_PREREQ_GETSUBOPT invocations from here...
19097         * modules/getsubopt (configure.ac): ... to here.
19098
19099 2011-05-08  Bruno Haible  <bruno@clisp.org>
19100
19101         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19102         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19103         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19104         * modules/getpass-gnu (configure.ac): ... to here.
19105
19106 2011-05-08  Bruno Haible  <bruno@clisp.org>
19107
19108         getpass: Move AC_LIBOBJ invocations to module description.
19109         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19110         gl_PREREQ_GETPASS invocations from here...
19111         * modules/getpass (configure.ac): ... to here.
19112
19113 2011-05-08  Bruno Haible  <bruno@clisp.org>
19114
19115         getpagesize: Move AC_LIBOBJ invocations to module description.
19116         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19117         from here...
19118         * modules/getpagesize (configure.ac): ... to here.
19119
19120 2011-05-08  Bruno Haible  <bruno@clisp.org>
19121
19122         getopt: Move AC_LIBOBJ invocations to module description.
19123         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19124         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19125         invocations from here...
19126         * modules/getopt-gnu (configure.ac): ... to here.
19127         * modules/getopt-posix (configure.ac): ... and here.
19128         (Depends-on): Update condition.
19129
19130 2011-05-08  Bruno Haible  <bruno@clisp.org>
19131
19132         getopt, argp: Respect rules for use of AC_LIBOBJ.
19133         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19134         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19135         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19136         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19137
19138 2011-05-08  Bruno Haible  <bruno@clisp.org>
19139
19140         getlogin_r: Move AC_LIBOBJ invocations to module description.
19141         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19142         gl_PREREQ_GETLOGIN_R invocations from here...
19143         * modules/getlogin_r (configure.ac): ... to here.
19144
19145 2011-05-08  Bruno Haible  <bruno@clisp.org>
19146
19147         getlogin: Move AC_LIBOBJ invocations to module description.
19148         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19149         here...
19150         * modules/getlogin (configure.ac): ... to here.
19151
19152 2011-05-08  Bruno Haible  <bruno@clisp.org>
19153
19154         getloadavg: Move AC_LIBOBJ invocations to module description.
19155         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19156         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19157         * modules/getloadavg (configure.ac): ... to here.
19158
19159 2011-05-08  Bruno Haible  <bruno@clisp.org>
19160
19161         gethrxtime: Move AC_LIBOBJ invocations to module description.
19162         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19163         LIB_GETHRXTIME from here...
19164         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19165         invocations from here...
19166         * modules/gethrxtime (configure.ac): ... to here.
19167
19168 2011-05-08  Bruno Haible  <bruno@clisp.org>
19169
19170         gethostname: Move AC_LIBOBJ invocations to module description.
19171         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19172         gl_PREREQ_GETHOSTNAME invocations from here...
19173         * modules/gethostname (configure.ac): ... to here.
19174
19175 2011-05-08  Bruno Haible  <bruno@clisp.org>
19176
19177         getgroups: Move AC_LIBOBJ invocations to module description.
19178         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19179         here...
19180         * modules/getgroups (configure.ac): ... to here.
19181
19182 2011-05-08  Bruno Haible  <bruno@clisp.org>
19183
19184         getdtablesize: Move AC_LIBOBJ invocations to module description.
19185         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19186         invocation from here...
19187         * modules/getdtablesize (configure.ac): ... to here.
19188
19189 2011-05-08  Bruno Haible  <bruno@clisp.org>
19190
19191         getdomainname: Move AC_LIBOBJ invocations to module description.
19192         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19193         gl_PREREQ_GETDOMAINNAME invocations from here...
19194         * modules/getdomainname (configure.ac): ... to here.
19195
19196 2011-05-08  Bruno Haible  <bruno@clisp.org>
19197
19198         getline: Move AC_LIBOBJ invocations to module description.
19199         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19200         invocations from here...
19201         * modules/getline (configure.ac): ... to here.
19202
19203 2011-05-08  Bruno Haible  <bruno@clisp.org>
19204
19205         getline: Simplify.
19206         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19207         It's already handled through the module dependency.
19208
19209 2011-05-08  Bruno Haible  <bruno@clisp.org>
19210
19211         getdelim: Move AC_LIBOBJ invocations to module description.
19212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19213         and gl_PREREQ_GETDELIM invocations from here...
19214         * modules/getdelim (configure.ac): ... to here.
19215         (Depends-on): Fix condition.
19216
19217 2011-05-08  Bruno Haible  <bruno@clisp.org>
19218
19219         getcwd: Move AC_LIBOBJ invocations to module description.
19220         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19221         invocations from here...
19222         * modules/getcwd (configure.ac): ... to here.
19223
19224 2011-05-08  Bruno Haible  <bruno@clisp.org>
19225
19226         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19227         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19228         here...
19229         * modules/getcwd-lgpl (configure.ac): ... to here.
19230
19231 2011-05-07  Bruno Haible  <bruno@clisp.org>
19232
19233         crypto/gc: Move AC_LIBOBJ invocations to module description.
19234         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19235         * modules/crypto/gc (configure.ac): ... to here.
19236
19237 2011-05-07  Bruno Haible  <bruno@clisp.org>
19238
19239         fwriting: Move AC_LIBOBJ invocations to module description.
19240         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19241         here...
19242         * modules/fwriting (configure.ac): ... to here.
19243
19244 2011-05-07  Bruno Haible  <bruno@clisp.org>
19245
19246         fwritable: Move AC_LIBOBJ invocations to module description.
19247         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19248         here...
19249         * modules/fwritable (configure.ac): ... to here.
19250
19251 2011-05-07  Bruno Haible  <bruno@clisp.org>
19252
19253         futimens: Move AC_LIBOBJ invocations to module description.
19254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19255         here...
19256         * modules/futimens (configure.ac): ... to here.
19257
19258 2011-05-07  Bruno Haible  <bruno@clisp.org>
19259
19260         ftruncate: Move AC_LIBOBJ invocations to module description.
19261         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19262         gl_PREREQ_FTRUNCATE invocations from here...
19263         * modules/ftruncate (configure.ac): ... to here.
19264
19265 2011-05-07  Bruno Haible  <bruno@clisp.org>
19266
19267         fsync: Move AC_LIBOBJ invocations to module description.
19268         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19269         invocations from here...
19270         * modules/fsync (configure.ac): ... to here.
19271
19272 2011-05-07  Bruno Haible  <bruno@clisp.org>
19273
19274         fsusage: Move AC_LIBOBJ invocations to module description.
19275         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19276         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19277         * modules/fsusage (configure.ac): ... to here.
19278
19279 2011-05-07  Bruno Haible  <bruno@clisp.org>
19280
19281         freopen: Move AC_LIBOBJ invocations to module description.
19282         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19283         invocations from here...
19284         * modules/freopen (configure.ac): ... to here.
19285
19286 2011-05-07  Bruno Haible  <bruno@clisp.org>
19287
19288         free: Move AC_LIBOBJ invocations to module description.
19289         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19290         invocations from here...
19291         * modules/free (configure.ac): ... to here.
19292
19293 2011-05-07  Bruno Haible  <bruno@clisp.org>
19294
19295         freadable: Move AC_LIBOBJ invocations to module description.
19296         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19297         here...
19298         * modules/freadable (configure.ac): ... to here.
19299
19300 2011-05-07  Bruno Haible  <bruno@clisp.org>
19301
19302         fpurge: Move AC_LIBOBJ invocations to module description.
19303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19304         invocations from here...
19305         * modules/fpurge (configure.ac): ... to here.
19306
19307 2011-05-07  Bruno Haible  <bruno@clisp.org>
19308
19309         fpending: Move AC_LIBOBJ invocations to module description.
19310         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19311         gl_FUNC_FPENDING.
19312         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19313         invocations from here...
19314         * modules/fpending (configure.ac): ... to here.
19315
19316 2011-05-07  Bruno Haible  <bruno@clisp.org>
19317
19318         fopen: Move AC_LIBOBJ invocations to module description.
19319         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19320         invocations from here...
19321         * modules/fopen (configure.ac): ... to here.
19322
19323 2011-05-07  Bruno Haible  <bruno@clisp.org>
19324
19325         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19326         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19327         gl_FUNC_FNMATCH_POSIX.
19328         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19329         invocations from here...
19330         * modules/fnmatch (configure.ac): ... to here.
19331         * modules/fnmatch-gnu (configure.ac): ... and here.
19332
19333 2011-05-07  Bruno Haible  <bruno@clisp.org>
19334
19335         flock: Move AC_LIBOBJ invocations to module description.
19336         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19337         invocations from here...
19338         * modules/flock (configure.ac): ... to here.
19339
19340 2011-05-07  Bruno Haible  <bruno@clisp.org>
19341
19342         fileblocks: Move AC_LIBOBJ invocations to module description.
19343         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19344         gl_PREREQ_FILEBLOCKS invocations from here...
19345         * modules/fileblocks (configure.ac): ... to here.
19346
19347 2011-05-06  Bruno Haible  <bruno@clisp.org>
19348
19349         fflush: Move AC_LIBOBJ invocations to module description.
19350         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19351         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19352         invocations from here...
19353         * modules/fflush (configure.ac): ... to here.
19354
19355 2011-05-06  Bruno Haible  <bruno@clisp.org>
19356
19357         fdopendir: Move AC_LIBOBJ invocations to module description.
19358         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19359         here...
19360         * modules/fdopendir (configure.ac): ... to here.
19361         (Depends-on): Improve conditions.
19362
19363 2011-05-06  Bruno Haible  <bruno@clisp.org>
19364
19365         _Exit: Move AC_LIBOBJ invocations to module description.
19366         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19367         invocations from here...
19368         * modules/_Exit (configure.ac): ... to here.
19369
19370 2011-05-21  Bruno Haible  <bruno@clisp.org>
19371
19372         euidaccess: Respect rules for use of AC_LIBOBJ.
19373         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19375         from here...
19376         * modules/euidaccess (configure.ac): ... to here.
19377
19378 2011-05-06  Bruno Haible  <bruno@clisp.org>
19379
19380         error: Move AC_LIBOBJ invocations to module description.
19381         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19382         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19383         invocations from here...
19384         * modules/error (configure.ac): ... to here.
19385
19386 2011-05-06  Bruno Haible  <bruno@clisp.org>
19387
19388         duplocale: Move AC_LIBOBJ invocations to module description.
19389         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19390         gl_PREREQ_DUPLOCALE invocations from here...
19391         * modules/duplocale (configure.ac): ... to here.
19392
19393 2011-05-05  Bruno Haible  <bruno@clisp.org>
19394
19395         dirfd: Move AC_LIBOBJ invocations to module description.
19396         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19397         gl_FUNC_DIRFD.
19398         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19399         here...
19400         * modules/dirfd (configure.ac): ... to here.
19401         (Depends-on): Fix condition.
19402
19403 2011-05-05  Bruno Haible  <bruno@clisp.org>
19404
19405         chown: Respect rules for use of AC_LIBOBJ.
19406         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19407         * modules/chown (configure.ac): ... to here.
19408
19409 2011-05-05  Bruno Haible  <bruno@clisp.org>
19410
19411         chdir-long: Move AC_LIBOBJ invocations to module description.
19412         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19413         gl_PREREQ_CHDIR_LONG invocations from here...
19414         * modules/chdir-long (configure.ac): ... to here.
19415
19416 2011-05-05  Bruno Haible  <bruno@clisp.org>
19417
19418         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19419         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19420         from here...
19421         * modules/canonicalize-lgpl (configure.ac): ... to here.
19422
19423 2011-05-05  Bruno Haible  <bruno@clisp.org>
19424
19425         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19426         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19427         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19428         REPLACE_CALLOC.
19429         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19430         * modules/calloc-gnu (configure.ac): Likewise.
19431
19432 2011-05-05  Bruno Haible  <bruno@clisp.org>
19433
19434         btowc: Move AC_LIBOBJ invocations to module description.
19435         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19436         invocations from here...
19437         * modules/btowc (configure.ac): ... to here.
19438
19439 2011-05-21  Bruno Haible  <bruno@clisp.org>
19440
19441         atexit: Move AC_LIBOBJ invocations to module description.
19442         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19443         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19444         here...
19445         * modules/atexit (configure.ac): ... to here.
19446
19447 2011-05-05  Bruno Haible  <bruno@clisp.org>
19448
19449         atoll: Move AC_LIBOBJ invocations to module description.
19450         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19451         invocations from here...
19452         * modules/atoll (configure.ac): ... to here.
19453
19454 2011-05-05  Bruno Haible  <bruno@clisp.org>
19455
19456         argz: Move AC_LIBOBJ invocations to module description.
19457         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19458         * modules/argz (configure.ac): ... to here.
19459
19460 2011-05-05  Bruno Haible  <bruno@clisp.org>
19461
19462         alphasort: Move AC_LIBOBJ invocations to module description.
19463         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19464         gl_PREREQ_ALPHASORT invocations from here...
19465         * modules/alphasort (configure.ac): ... to here.
19466
19467 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         verify: new macro verify_expr; verify_true deprecated
19470         * NEWS: Mention this.
19471         * doc/verify.texi (Compile-time Assertions): Document this.
19472         * lib/verify.h (verify_true): Deprecate.
19473         (verify_expr): New macro.
19474         * tests/test-verify.c (function): Test verify_expr.
19475
19476 2011-06-14  Jim Meyering  <meyering@redhat.com>
19477
19478         init.sh: give more portable redirection-related advice in a comment
19479         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19480         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19481         for lots of discussion.  Stefano Lattarini suggested the solution
19482         of putting "9>&2" after the command.  Reported by Bruno Haible.
19483
19484 2011-06-13  Bruno Haible  <bruno@clisp.org>
19485
19486         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19487         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19488         'none'.
19489
19490 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19491
19492         ftoastr: use strtof only if HAVE_STRTOF
19493         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19495         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19496         * modules/ftoastr (configure.ac): Check for strtof.
19497
19498 2011-06-13  Bruno Haible  <bruno@clisp.org>
19499
19500         gnulib-tool: Addendum to 2011-06-08 commit.
19501         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19502         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19503
19504 2011-06-13  Bruno Haible  <bruno@clisp.org>
19505
19506         fseeko: Provide a non-inline replacement of fseek().
19507         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19508         * modules/fseeko (Depends-on): Add fseek.
19509         * modules/fseek (License): Change to LGPLv2+.
19510
19511 2011-06-13  Bruno Haible  <bruno@clisp.org>
19512
19513         ftello: Provide a non-inline replacement of ftell().
19514         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19515         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19516         not have ftello() (such as on mingw).
19517         * modules/ftello (Depends-on): Add ftell.
19518         * modules/ftell (License): Change to LGPLv2+.
19519
19520 2011-05-07  Bruno Haible  <bruno@clisp.org>
19521
19522         ftell: Move AC_LIBOBJ invocations to module description.
19523         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19524         * modules/ftell (configure.ac): ... to here.
19525
19526 2011-05-07  Bruno Haible  <bruno@clisp.org>
19527
19528         ftello: Respect rules for use of AC_LIBOBJ.
19529         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19530         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19531         here...
19532         * modules/ftello (configure.ac): ... to here.
19533
19534 2011-05-07  Bruno Haible  <bruno@clisp.org>
19535
19536         fseeko: Simplify.
19537         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19538         (gl_FUNC_FSEEKO): Inline it here.
19539
19540 2011-05-07  Bruno Haible  <bruno@clisp.org>
19541
19542         fseek: Move AC_LIBOBJ invocations to module description.
19543         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19544         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19545         * modules/fseek (configure.ac): ... to here.
19546
19547 2011-05-07  Bruno Haible  <bruno@clisp.org>
19548
19549         fseek: Respect rules for use of AC_LIBOBJ.
19550         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19551         here...
19552         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19553
19554 2011-05-07  Bruno Haible  <bruno@clisp.org>
19555
19556         fseeko: Respect rules for use of AC_LIBOBJ.
19557         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19558         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19559         here...
19560         * modules/fseeko (configure.ac): ... to here.
19561
19562 2011-06-13  Bruno Haible  <bruno@clisp.org>
19563
19564         gnulib-tool: Allow comments in the 'Depends-on' section.
19565         * doc/gnulib.texi (Module description): Mention comment syntax in the
19566         Depends-on section.
19567         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19568
19569 2011-06-13  Bruno Haible  <bruno@clisp.org>
19570
19571         file-set.h: guard __attibute__ use, now that it's not always defined
19572         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19573         versions that support it.  This fixes a coreutils build failure with
19574         the vendor cc on HP-UX 11.31.
19575
19576 2011-06-12  Bruno Haible  <bruno@clisp.org>
19577
19578         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19579         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19580         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19581         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19582         (acl, aclsort): New declarations.
19583         (aclv_nontrivial): New declaration.
19584         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19585         (file_has_acl): Read also the second kind of HP-UX ACLs.
19586         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19587         kind of HP-UX ACLs if the first kind fails.
19588         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19589         second kind of HP-UX ACLs.
19590         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19591         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19592         agree.
19593         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19594         hpuxjfs.
19595         Handle hpuxjfs.
19596         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19597         hpuxjfs.
19598         Handle hpuxjfs.
19599         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19600         (func_test_same_acls): Use both lsacl and getacl.
19601         Handle hpuxjfs.
19602         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19603         (func_test_same_acls): Use both lsacl and getacl.
19604         Handle hpuxjfs.
19605
19606 2011-06-12  Bruno Haible  <bruno@clisp.org>
19607
19608         acl: Complete the 2010-08-10 fix.
19609         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19610         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19611         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19612         explicitly.
19613         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19614         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19615
19616 2011-06-12  Bruno Haible  <bruno@clisp.org>
19617
19618         spawn-pipe tests: Comments.
19619         * tests/test-spawn-pipe-child.c (main): Update comment.
19620         Reported by James Youngman <jay@gnu.org>.
19621
19622 2011-06-11  James Youngman  <jay@gnu.org>
19623
19624         New module 'stat-size'.
19625         * modules/stat-size: New module.  Provides macros for accessing
19626         file size information in instances of struct stat.  Depends on the
19627         fileblocks module because it calls st_blocks.
19628         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19629         * doc/gnulib.texi: Include stat-size.texi.
19630         * doc/stat-size.texi: Documentation for this module.
19631         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19632         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19633         AC_STRUCT_ST_BLOCKS.
19634
19635 2011-06-09  Bruno Haible  <bruno@clisp.org>
19636
19637         thread: Support pthreads-win32.
19638         * lib/glthread/thread.h (gl_thread_self): Define differently on
19639         pthreads-win32.
19640         (gl_null_thread): New declaration.
19641         (gl_thread_self_pointer): New macro.
19642         * lib/glthread/thread.c (gl_null_thread): New constant.
19643         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19644         gl_thread_self.
19645         * tests/test-tls.c: Likewise.
19646         Suggested by Paul Eggert. Reported by Eric Blake.
19647
19648 2011-06-09  Bruno Haible  <bruno@clisp.org>
19649
19650         thread: Fix confusion between NULL and 0.
19651         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19652         Reported by Paul Eggert.
19653
19654 2011-06-09  Bruno Haible  <bruno@clisp.org>
19655
19656         spawn-pipe tests: Avoid test failure on HP-UX 11.
19657         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19658         is closed.
19659
19660 2011-06-09  Bruno Haible  <bruno@clisp.org>
19661
19662         acl tests: Fix compilation error on HP-UX 11.
19663         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19664
19665 2011-06-09  Bruno Haible  <bruno@clisp.org>
19666
19667         rmdir: Avoid test failure on HP-UX 10.20.
19668         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19669         EEXIST.
19670
19671 2011-06-08  Eric Blake  <eblake@redhat.com>
19672
19673         perror: fix test on mingw
19674         * modules/perror-tests (Depends-on): Add dup2.
19675
19676         strerror_r-posix: fix on MacOS
19677         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19678         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19679         logic bug.
19680         * lib/strerror_r.c (strerror_r): Fix the bug.
19681         * lib/strerror.c (strerror): Likewise.
19682         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19683         problem.
19684         * doc/posix-functions/strerror.texi (strerror): Likewise.
19685         * doc/posix-functions/perror.texi (perror): Likewise.
19686         * tests/test-strerror.c (main): Enhance test.
19687         * tests/test-strerror_r.c (main): Likewise.
19688
19689 2011-06-08  Bruno Haible  <bruno@clisp.org>
19690
19691         gnulib-tool: Better isolation between different gnulib-tool invocations.
19692         * gnulib-tool: New option --witness-c-macro.
19693         (witness_c_macro): New variable.
19694         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19695         AM_CPPFLAGS define it as a C macro.
19696         (func_emit_tests_Makefile_am): Likewise.
19697         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19698         read it from there.
19699         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19700         m4_define, not AC_DEFUN.
19701         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19702         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19703         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19704         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19705         s|...|...|, to substitute the values of the GNULIB_* module indicator
19706         variables.
19707         * modules/dirent (Makefile.am): Likewise.
19708         * modules/fcntl-h (Makefile.am): Likewise.
19709         * modules/iconv-h (Makefile.am): Likewise.
19710         * modules/langinfo (Makefile.am): Likewise.
19711         * modules/locale (Makefile.am): Likewise.
19712         * modules/math (Makefile.am): Likewise.
19713         * modules/netdb (Makefile.am): Likewise.
19714         * modules/poll-h (Makefile.am): Likewise.
19715         * modules/pty (Makefile.am): Likewise.
19716         * modules/search (Makefile.am): Likewise.
19717         * modules/signal (Makefile.am): Likewise.
19718         * modules/spawn (Makefile.am): Likewise.
19719         * modules/stdio (Makefile.am): Likewise.
19720         * modules/stdlib (Makefile.am): Likewise.
19721         * modules/string (Makefile.am): Likewise.
19722         * modules/sys_ioctl (Makefile.am): Likewise.
19723         * modules/sys_select (Makefile.am): Likewise.
19724         * modules/sys_socket (Makefile.am): Likewise.
19725         * modules/sys_stat (Makefile.am): Likewise.
19726         * modules/sys_times (Makefile.am): Likewise.
19727         * modules/sys_utsname (Makefile.am): Likewise.
19728         * modules/sys_wait (Makefile.am): Likewise.
19729         * modules/termios (Makefile.am): Likewise.
19730         * modules/time (Makefile.am): Likewise.
19731         * modules/unistd (Makefile.am): Likewise.
19732         * modules/wchar (Makefile.am): Likewise.
19733
19734 2011-06-08  Eric Blake  <eblake@redhat.com>
19735
19736         strerror: simplify replacement
19737         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19738         * modules/strerror (configure.ac): No prereqs needed here...
19739         * modules/strerror-override (configure.ac): ...but this needs it.
19740         (Files): Add file for needed prereq macro.
19741
19742 2011-06-08  Bruno Haible  <bruno@clisp.org>
19743
19744         strerror_r-posix: Tweaks.
19745         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19746         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19747         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19748         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19749         (gl_FUNC_STRERROR_R): ... to here.
19750         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19751
19752 2011-06-07  Eric Blake  <eblake@redhat.com>
19753
19754         perror: document fixed bugs
19755         * doc/posix-functions/perror.texi (perror): Document recent
19756         patches.
19757
19758 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19759
19760         stat-time: get_stat_birthtime failure is better-defined
19761         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19762         return a timestamp whose tv_sec and tv_nsec values are both -1.
19763         Previously, the spec said only that the tv_nsec value was negative.
19764         This upward-compatible change simplifies GNU tar a bit.
19765
19766 2011-06-07  Eric Blake  <eblake@redhat.com>
19767
19768         strerror_r-posix: work around cygwin 1.7.9
19769         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19770         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19771         bug without replacing strerror_r.
19772         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19773         strerror_r is buggy, but without requiring strerror_r compilation.
19774         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19775
19776         test-perror: relax test to ignore cygwin bug
19777         * tests/test-perror2.c (main): Relax test on requiring detection
19778         of stream errors, and use unbuffered stream.
19779         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19780         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19781         * doc/posix-functions/fputc.texi (fputc): Likewise.
19782         * doc/posix-functions/fputs.texi (fputs): Likewise.
19783         * doc/posix-functions/fputws.texi (fputws): Likewise.
19784         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19785         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19786         * doc/posix-functions/getopt.texi (getopt): Likewise.
19787         * doc/posix-functions/perror.texi (perror): Likewise.
19788         * doc/posix-functions/printf.texi (printf): Likewise.
19789         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19790         * doc/posix-functions/psignal.texi (psignal): Likewise.
19791         * doc/posix-functions/putc.texi (putc): Likewise.
19792         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19793         Likewise.
19794         * doc/posix-functions/putchar.texi (putchar): Likewise.
19795         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19796         Likewise.
19797         * doc/posix-functions/puts.texi (puts): Likewise.
19798         * doc/posix-functions/putwc.texi (putwc): Likewise.
19799         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19800         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19801         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19802         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19803         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19804         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19805         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19806         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19807
19808 2011-05-22  Bruno Haible  <bruno@clisp.org>
19809
19810         strerror: Move AC_LIBOBJ invocations to module description.
19811         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19812         gl_PREREQ_STRERROR invocations from here...
19813         * modules/strerror (configure.ac): ... to here.
19814
19815 2011-05-21  Bruno Haible  <bruno@clisp.org>
19816
19817         perror: Use common idiom.
19818         * modules/perror (configure.ac): Reorder statements.
19819
19820 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19821
19822         tests: fix usage message in 'mktempd_'
19823         * tests/init.sh (mktempd_): In the usage message, use literal
19824         'mktempd_', not '$ME' (which is even undefined), as the name of
19825         the subroutine.
19826
19827 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19828
19829         tests init: new function 'fatal_', for hard errors
19830         Before this patch, the only way offered by tests/init.sh to
19831         properly signal a hard error was the `framework_failure_'
19832         function.  But the error message issued by that function,
19833         as its name would suggest, refers to a set-up failure in the
19834         testsuite, while hard errors can obviously also be due to
19835         other reasons.  The best way to fix this inconsistency is to
19836         introduce a new function with a more general error message.
19837         * tests/init.sh (fatal_): New function.
19838
19839 2011-06-06  Eric Blake  <eblake@redhat.com>
19840
19841         canonicalize-lgpl: use common idiom
19842         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19843         over newer POSIX -Rf.
19844         Reported by Bruno Haible.
19845
19846         canonicalize-lgpl: work around AIX realpath bug
19847         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19848         * doc/posix-functions/realpath.texi (realpath): Document it.
19849         Reported by Bruno Haible.
19850
19851         strerror: work around FreeBSD bug
19852         * lib/strerror.c (strerror): Special case 0.
19853         Reported by Bruno Haible.
19854
19855         strerror-override: avoid bloating errno module
19856         * modules/errno (Files, configure.ac): Move replacement strings...
19857         * modules/strerror-override: ...to new module.
19858         * modules/strerror (Depends-on): Add strerror-override.
19859         * modules/strerror_r-posix (Depends-on): Likewise.
19860         * MODULES.html.sh: Document new module.
19861         Reported by Bruno Haible.
19862
19863 2011-06-06  Bruno Haible  <bruno@clisp.org>
19864
19865         spawn-pipe tests: Rename program.
19866         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19867         * tests/test-spawn-pipe-child.c: Update comment.
19868         * tests/test-spawn-pipe.sh: Update.
19869         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19870
19871         spawn-pipe tests: Link the child program only against libc.
19872         * tests/test-spawn-pipe-child.c: New file, extracted from
19873         tests/test-spawn-pipe.c.
19874         (main): Expect only one argument.
19875         (is_open): New function, copied from tests/test-pipe.c.
19876         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19877         (child_main): Remove function.
19878         (test_pipe): Pass only one argument to the child program.
19879         (main): Remove child process code. Expect the child program's name as
19880         first argument.
19881         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19882         argument.
19883         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19884         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19885         test-spawn-pipe-child against no libraries.
19886
19887 2011-06-06  Bruno Haible  <bruno@clisp.org>
19888
19889         careadlinkat: Avoid mismatch between ssize_t and int.
19890         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19891         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19892
19893 2011-06-06  Jim Meyering  <meyering@redhat.com>
19894
19895         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19896         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19897         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19898
19899 2011-06-05  Bruno Haible  <bruno@clisp.org>
19900
19901         ansi-c++-opt: Interoperability with libtool.
19902         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19903         set the variable to "no", not to ":".
19904         * NEWS: Mention the change.
19905
19906 2011-06-05  Bruno Haible  <bruno@clisp.org>
19907
19908         acl: Fix test failure on AIX 7.
19909         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19910         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19911
19912 2011-06-05  Bruno Haible  <bruno@clisp.org>
19913
19914         pipe-filter-ii: Fix test failure on AIX and IRIX.
19915         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19916         with EAGAIN, retry with a smaller buffer size.
19917
19918 2011-06-05  Bruno Haible  <bruno@clisp.org>
19919
19920         localename: Fix link dependencies.
19921         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19922         * modules/localename-tests (Makefile.am): Link test-localename with
19923         $(LIBTHREAD).
19924
19925 2011-06-05  Bruno Haible  <bruno@clisp.org>
19926
19927         error: Avoid gcc warning.
19928         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19929
19930 2011-06-05  Bruno Haible  <bruno@clisp.org>
19931
19932         unsetenv: Avoid gcc warning.
19933         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19934
19935 2011-06-05  Bruno Haible  <bruno@clisp.org>
19936
19937         setenv: Avoid gcc warning.
19938         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19939
19940 2011-06-05  Bruno Haible  <bruno@clisp.org>
19941
19942         sys_select: Ensure memset is declared also on AIX 7.
19943         * lib/sys_select.in.h: Include <string.h> also on AIX.
19944         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19945         self-contained also on AIX 7.1.
19946
19947 2011-06-04  Jim Meyering  <meyering@redhat.com>
19948
19949         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19950         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19951         function name, "error".
19952         (_gl_translatable_diag_func_re): New configurable variable.
19953
19954 2011-06-04  Bruno Haible  <bruno@clisp.org>
19955
19956         getopt: Avoid gcc warning.
19957         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19958
19959 2011-06-04  Bruno Haible  <bruno@clisp.org>
19960
19961         strerror_r: Fix comments.
19962         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19963         commit.
19964
19965 2011-06-04  Bruno Haible  <bruno@clisp.org>
19966
19967         perror: Fix compilation error.
19968         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19969         Undefine fprintf, not sprintf.
19970         * modules/perror (Depends-on): Remove intprops, verify.
19971
19972 2011-06-04  Bruno Haible  <bruno@clisp.org>
19973
19974         setlocale: Enable replacement on Cygwin 1.5.
19975         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19976         Cygwin 1.5.x.
19977         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19978         LC_CTYPE category also exists on Cygwin 1.5.x.
19979
19980 2011-06-04  Bruno Haible  <bruno@clisp.org>
19981
19982         strerror-override: Don't disable symbol renamings.
19983         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19984         * lib/strerror-override.c: Include config.h.
19985         (strerror_override): Don't undefine.
19986
19987 2011-06-03  Bruno Haible  <bruno@clisp.org>
19988
19989         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19990         * lib/localename.h: Update copyright header.
19991         * lib/localename.c: Likewise.
19992         * lib/relocatable.h: Likewise.
19993         * lib/relocatable.c: Likewise.
19994
19995 2011-06-02  Bruno Haible  <bruno@clisp.org>
19996
19997         doc: Fix a module name.
19998         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19999
20000 2011-06-02  Bruno Haible  <bruno@clisp.org>
20001
20002         pipe2: Remove dependency on 'nonblocking' module.
20003         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20004         O_NONBLOCK is defined by gnulib.
20005         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20006         is zero.
20007         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20008         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20009         defined by gnulib.
20010         (get_nonblocking_flag): New function.
20011         (main): Test O_NONBLOCK flag only if it is nonzero.
20012         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20013
20014 2011-06-03  Jim Meyering  <meyering@redhat.com>
20015
20016         maint: three new prohibit-header-without-use rules
20017         Prohibit use of cloexec.h, posixver.h, same.h without use.
20018         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20019         (sc_prohibit_posixver_without_use): Likewise.
20020         (sc_prohibit_same_without_use): Likewise.
20021
20022 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20023
20024         allocator: 'die' routine is now given requested size
20025         * lib/allocator.h (struct allocator.die): New size arg.
20026         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20027         If the actual problem is an ssize_t limitation, not a size_t or
20028         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20029
20030 2011-06-01  Eric Blake  <eblake@redhat.com>
20031
20032         strerror: drop strerror_r dependency
20033         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20034         * lib/strerror-override.c (strerror_override): ...to new file.
20035         * lib/strerror-override.h: Add prototype.
20036         * lib/strerror-impl.h: Delete.
20037         * lib/strerror.c (strerror): New implementation.
20038         * modules/errno (Files): Add new files.
20039         (configure.ac): Compile new file as appropriate.
20040         * modules/strerror (Files): Drop unused file.
20041         (Depends-on): Drop strerror_r-posix.
20042         * MODULES.html.sh: Document strerror_r-posix.
20043         Requested by Sam Steingold.
20044
20045         perror: call strerror_r directly
20046         * modules/perror (Files): Drop strerror-impl.h.
20047         * lib/perror.c (perror): Use our own stack buffer, rather than
20048         calling a wrapper that uses static storage.
20049         * doc/posix-functions/perror.texi (perror): Document a limitation
20050         of our replacement.
20051
20052         strerror_r: fix includes for FreeBSD
20053         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20054         since we use abort on some platforms.
20055         Reported by Matthias Bolte.
20056
20057 2011-05-31  Bruno Haible  <bruno@clisp.org>
20058
20059         Fix link errors in tests: openat-die uses gettext-h.
20060         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20061         against $(LIBINTL).
20062         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20063         against $(LIBINTL).
20064         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20065         $(LIBINTL).
20066         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20067         against $(LIBINTL).
20068         * modules/linkat-tests (Makefile.am): Link test-linkat against
20069         $(LIBINTL).
20070         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20071         $(LIBINTL).
20072         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20073         against $(LIBINTL).
20074         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20075         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20076         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20077         $(LIBINTL).
20078         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20079         $(LIBINTL).
20080         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20081         $(LIBINTL).
20082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20083
20084 2011-05-31  Bruno Haible  <bruno@clisp.org>
20085
20086         Fix link errors in tests: wait-process uses gettext-h.
20087         * modules/nonblocking-pipe-tests (Makefile.am): Set
20088         test_nonblocking_pipe_main_LDADD.
20089         * modules/nonblocking-socket-tests (Makefile.am): Link
20090         test-nonblocking-socket-main against $(LIBINTL).
20091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20092
20093 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20094
20095         assert-h: work around 'verify' incompatibility
20096         * lib/verify.h: Use @...@ directives, not ifdef.
20097         * modules/assert-h (assert.h): Implement the directives.
20098         (assert.h): Substitute the symbol-prefix more consistently.
20099
20100 2011-05-29  Jim Meyering  <meyering@redhat.com>
20101
20102         trim: remove three superfluous assignments
20103         * lib/trim.c (trim2): Remove three superfluous assignments
20104         and correct brace positioning.
20105
20106 2011-05-29  Bruno Haible  <bruno@clisp.org>
20107
20108         wctype-h: Avoid namespace pollution on Solaris 2.6.
20109         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20110         identifiers.
20111         * doc/posix-headers/wctype.texi: Mention the problem.
20112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20113
20114 2011-05-28  Jim Meyering  <meyering@redhat.com>
20115
20116         parse-datetime.y: accommodate -Wstrict-overflow
20117         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20118         placate -Wstrict-overflow.
20119
20120         trim: avoid a warning from -O2 -Wstrict-overflow
20121         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20122
20123 2011-05-29  Bruno Haible  <bruno@clisp.org>
20124
20125         gnulib-tool: Fix bug in yesterday's commit.
20126         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20127         twice.
20128
20129 2011-05-29  Bruno Haible  <bruno@clisp.org>
20130
20131         Allow multiple gnulib generated include files to be combined.
20132         * gnulib-tool (func_compute_include_guard_prefix): New function.
20133         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20134         ${gl_include_guard_prefix} references.
20135         (func_import, func_create_testdir): Invoke
20136         func_compute_include_guard_prefix.
20137         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20138         * lib/ctype.in.h: Likewise.
20139         * lib/dirent.in.h: Likewise.
20140         * lib/errno.in.h: Likewise.
20141         * lib/fcntl.in.h: Likewise.
20142         * lib/float.in.h: Likewise.
20143         * lib/getopt.in.h: Likewise.
20144         * lib/iconv.in.h: Likewise.
20145         * lib/langinfo.in.h: Likewise.
20146         * lib/locale.in.h: Likewise.
20147         * lib/math.in.h: Likewise.
20148         * lib/netdb.in.h: Likewise.
20149         * lib/netinet_in.in.h: Likewise.
20150         * lib/poll.in.h: Likewise.
20151         * lib/pthread.in.h: Likewise.
20152         * lib/pty.in.h: Likewise.
20153         * lib/sched.in.h: Likewise.
20154         * lib/se-selinux.in.h: Likewise.
20155         * lib/search.in.h: Likewise.
20156         * lib/signal.in.h: Likewise.
20157         * lib/spawn.in.h: Likewise.
20158         * lib/stdarg.in.h: Likewise.
20159         * lib/stddef.in.h: Likewise.
20160         * lib/stdint.in.h: Likewise.
20161         * lib/stdio.in.h: Likewise.
20162         * lib/stdlib.in.h: Likewise.
20163         * lib/string.in.h: Likewise.
20164         * lib/strings.in.h: Likewise.
20165         * lib/sys_file.in.h: Likewise.
20166         * lib/sys_ioctl.in.h: Likewise.
20167         * lib/sys_select.in.h: Likewise.
20168         * lib/sys_socket.in.h: Likewise.
20169         * lib/sys_stat.in.h: Likewise.
20170         * lib/sys_time.in.h: Likewise.
20171         * lib/sys_times.in.h: Likewise.
20172         * lib/sys_uio.in.h: Likewise.
20173         * lib/sys_utsname.in.h: Likewise.
20174         * lib/sys_wait.in.h: Likewise.
20175         * lib/sysexits.in.h: Likewise.
20176         * lib/termios.in.h: Likewise.
20177         * lib/time.in.h: Likewise.
20178         * lib/unistd.in.h: Likewise.
20179         * lib/wchar.in.h: Likewise.
20180         * lib/wctype.in.h: Likewise.
20181         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20182         * modules/ctype (Makefile.am): Likewise.
20183         * modules/dirent (Makefile.am): Likewise.
20184         * modules/errno (Makefile.am): Likewise.
20185         * modules/fcntl-h (Makefile.am): Likewise.
20186         * modules/float (Makefile.am): Likewise.
20187         * modules/getopt-posix (Makefile.am): Likewise.
20188         * modules/iconv-h (Makefile.am): Likewise.
20189         * modules/langinfo (Makefile.am): Likewise.
20190         * modules/locale (Makefile.am): Likewise.
20191         * modules/math (Makefile.am): Likewise.
20192         * modules/netdb (Makefile.am): Likewise.
20193         * modules/netinet_in (Makefile.am): Likewise.
20194         * modules/poll-h (Makefile.am): Likewise.
20195         * modules/pthread (Makefile.am): Likewise.
20196         * modules/pty (Makefile.am): Likewise.
20197         * modules/sched (Makefile.am): Likewise.
20198         * modules/search (Makefile.am): Likewise.
20199         * modules/selinux-h (Makefile.am): Likewise.
20200         * modules/signal (Makefile.am): Likewise.
20201         * modules/spawn (Makefile.am): Likewise.
20202         * modules/stdarg (Makefile.am): Likewise.
20203         * modules/stddef (Makefile.am): Likewise.
20204         * modules/stdint (Makefile.am): Likewise.
20205         * modules/stdio (Makefile.am): Likewise.
20206         * modules/stdlib (Makefile.am): Likewise.
20207         * modules/string (Makefile.am): Likewise.
20208         * modules/strings (Makefile.am): Likewise.
20209         * modules/sys_file (Makefile.am): Likewise.
20210         * modules/sys_ioctl (Makefile.am): Likewise.
20211         * modules/sys_select (Makefile.am): Likewise.
20212         * modules/sys_socket (Makefile.am): Likewise.
20213         * modules/sys_stat (Makefile.am): Likewise.
20214         * modules/sys_time (Makefile.am): Likewise.
20215         * modules/sys_times (Makefile.am): Likewise.
20216         * modules/sys_uio (Makefile.am): Likewise.
20217         * modules/sys_utsname (Makefile.am): Likewise.
20218         * modules/sys_wait (Makefile.am): Likewise.
20219         * modules/sysexits (Makefile.am): Likewise.
20220         * modules/termios (Makefile.am): Likewise.
20221         * modules/time (Makefile.am): Likewise.
20222         * modules/unistd (Makefile.am): Likewise.
20223         * modules/wchar (Makefile.am): Likewise.
20224         * modules/wctype-h (Makefile.am): Likewise.
20225         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20226
20227 2011-05-29  Bruno Haible  <bruno@clisp.org>
20228
20229         assert-h: Allow multiple gnulib generated replacements to coexist.
20230         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20231
20232 2011-05-29  Bruno Haible  <bruno@clisp.org>
20233
20234         argp: Allow coexistence with strerror_r-posix module.
20235         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20236         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20237         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20238         not the glibc signature.
20239
20240 2011-05-28  Bruno Haible  <bruno@clisp.org>
20241
20242         gnulib-tool: Alternative structure of testdirs, similar to --import.
20243         * gnulib-tool: New option --single-configure.
20244         (func_usage): Document it.
20245         (single_configure): New variable.
20246         (func_modules_transitive_closure_separately,
20247         func_modules_transitive_closure_separately,
20248         func_determine_use_libtests, func_modules_add_dummy_separately,
20249         func_modules_to_filelist_separately): New functions, extracted from
20250         func_import.
20251         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20252         (func_import): Use the new functions.
20253         (func_create_testdir): Set final_modules. Handle $single_configure =
20254         true case.
20255
20256 2011-05-28  Bruno Haible  <bruno@clisp.org>
20257
20258         getloadavg: Remove an unreliable safety check.
20259         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20260         getloadavg.c is in place.
20261         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20262         Reported by Sam Steingold <sds@gnu.org>.
20263
20264 2011-05-28  Bruno Haible  <bruno@clisp.org>
20265
20266         doc: Cleanup yet another file produced by texinfo.tex.
20267         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20268
20269 2011-05-28  Bruno Haible  <bruno@clisp.org>
20270
20271         Finish the conditional dependencies mechanism.
20272         * gnulib-tool: New option --no-conditional-dependencies.
20273         (func_usage): Document it. Don't mark --conditional-dependencies as
20274         experimental.
20275         (cond_dependencies): The possible values can now be true, false, empty.
20276         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20277         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20278         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20279
20280 2011-05-28  Bruno Haible  <bruno@clisp.org>
20281
20282         doc: Use a recent texinfo.tex.
20283         * doc/Makefile (tex_opts): New variable.
20284         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20285
20286 2011-05-28  Jim Meyering  <meyering@redhat.com>
20287
20288         intprops.h: adjust comment to match code change
20289         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20290         only once, it *may* have side effects.  Also fix an unrelated typo.
20291         (_GL_INT_SIGNED): Likewise.
20292
20293 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20294
20295         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20296
20297 2011-05-26  Bruno Haible  <bruno@clisp.org>
20298
20299         mbsrchr: Avoid collision with system function on Interix.
20300         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20301         Reported by Markus Duft <mduft@gentoo.org>.
20302
20303 2011-05-15  James Youngman  <jay@gnu.org>
20304
20305         getopt: for ambiguous options, enumerate the possibilities.
20306         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20307         the ambiguous options when an ambiguous prefix is given. This was
20308         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20309         glibc change was
20310         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20311
20312 2011-05-25  Eric Blake  <eblake@redhat.com>
20313
20314         getcwd: work around mingw bug
20315         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20316         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20317         Reported by Matthias Bolte.
20318
20319 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20320
20321         test-intprops: disable -Wtype-limits diagnostics
20322         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20323         diagnostics.  Otherwise, the integer overflow macros generate many
20324         diagnostics.  Reported by Jim Meyering in
20325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20326
20327         intprops: shorten, to pacify gcc -Woverlength-strings
20328         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20329         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20330         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20331         likely to run afoul of C compiler limits for string constant lengths.
20332         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20333
20334 2011-05-24  Eric Blake  <eblake@redhat.com>
20335
20336         docs: document recently fixed glibc printf bug
20337         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20338         * doc/posix-functions/printf.texi (printf): Likewise.
20339         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20340         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20341
20342         closein-tests: convert to init.sh
20343         * modules/closein-tests (Files): Add init.sh
20344         * tests/test-closein.sh Use it.
20345
20346         yesno-tests: convert to init.sh
20347         * modules/yesno-tests (Files): Add init.sh.
20348         * tests/test-yesno.sh: Use it.
20349
20350         atexit-tests: ensure reliable exit status
20351         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20352         Reported by Bruno Haible.
20353
20354 2011-05-24  Bruno Haible  <bruno@clisp.org>
20355
20356         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20358         gl_PREREQ_STRERROR_R invocations from here...
20359         * modules/strerror_r-posix (configure.ac): ... to here.
20360
20361 2011-05-24  Eric Blake  <eblake@redhat.com>
20362
20363         strerror_r: fix missing header
20364         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20365
20366         strerror_r: fix AIX test failures
20367         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20368         ERANGE failure.
20369
20370         strerror_r: fix Solaris test failures
20371         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20372         failures.
20373         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20374
20375         strerror_r: enforce POSIX recommendations
20376         * lib/strerror_r.c (safe_copy): New helper method.
20377         (strerror_r): Guarantee a non-empty string.
20378         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20379         recent POSIX rulings and to match our strerror guarantees.
20380         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20381
20382 2011-05-24  Jim Meyering  <meyering@redhat.com>
20383
20384         test-perror2.c: avoid warning about unused variable
20385         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20386
20387 2011-05-24  Eric Blake  <eblake@redhat.com>
20388
20389         perror: avoid spurious test failure on HP-UX
20390         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20391
20392         tests: fix logic bug in init.sh
20393         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20394         shell.
20395
20396 2011-05-24  Jim Meyering  <meyering@redhat.com>
20397
20398         utimensat: do not reference an out-of-scope buffer
20399         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20400         declared in an inner scope, yet "times" would be dereferenced outside
20401         the scope in which "ts" was valid.
20402         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20403         of ts[2] "out/up", so that the use of aliased "times" (via
20404         "times = ts;") does not end up referencing an out-of-scope "ts"
20405
20406         opendir-safer.c: don't clobber errno; don't close negative FD
20407         * lib/opendir-safer.c (opendir_safer):
20408         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20409         file descriptor, and more importantly, don't clobber the
20410         offending errno value with EINVAL.  Before, upon failure
20411         of dup_safer, we would pass the negative file descriptor to
20412         fdopendir, which would clobber errno.
20413
20414 2011-05-23  Bruno Haible  <bruno@clisp.org>
20415
20416         idcache: Fix module description.
20417         * modules/idcache (Include): Set to "idcache.h".
20418
20419 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20420
20421         gnulib-tool: fix portability problem with MacOS sed
20422         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20423         before the "}".  Problem reported by Leo in
20424         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20425         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20426         sed_extract_condition1, sed_extract_condition2.
20427
20428 2011-05-23  Bruno Haible  <bruno@clisp.org>
20429
20430         hash: Simplify autoconf macro.
20431         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20432
20433 2011-05-23  Bruno Haible  <bruno@clisp.org>
20434
20435         getugroups: Fix module description.
20436         * modules/getugroups (Include): Set to "getugroups.h".
20437
20438 2011-05-23  Bruno Haible  <bruno@clisp.org>
20439
20440         linkat: Simplify autoconf macro.
20441         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20442
20443 2011-05-23  Bruno Haible  <bruno@clisp.org>
20444             Eric Blake  <eblake@redhat.com>
20445
20446         linkat, renameat: Update dependencies.
20447         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20448         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20449         symlinkat.
20450
20451 2011-05-23  Jim Meyering  <meyering@redhat.com>
20452
20453         maint.mk: more tight_scope improvements
20454         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20455         (_gl_TS_headers): Define only in if-0'd block.
20456         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20457         sometimes we must *not* use it.  Adjust uses accordingly.
20458         (sc_tight_scope): Use much simpler grep-based test to determine
20459         whether we skip this rule.
20460
20461         maint.mk: generalize/improve the tight-scope rule
20462         * top/maint.mk: Emit a warning when the test is skipped.
20463         (_gl_TS_dir): Add $(srcdir)/ prefix.
20464         (_gl_TS_function_match): Simplify, rather than trying
20465         to enumerate common types.  Otherwise, it would fail to match an
20466         "extern unsigned char const *" declaration in idutils.
20467         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20468         a way to support use of that type of macro.
20469         (_gl_TS_var_match): Simplify regexp.
20470         (_gl_TS_obj_files): New configurable variable.
20471         (_gl_TS_headers): Likewise.
20472
20473 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20474
20475         verify: fix bug when gnulib <assert.h> is also included
20476         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20477         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20478         Perhaps there's a better way, but this fixes the immediate problem.
20479         Problem reported by Bruno Haible in
20480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20481
20482 2011-05-22  Bruno Haible  <bruno@clisp.org>
20483
20484         xgetcwd: Simplify autoconf macro.
20485         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20486
20487 2011-05-22  Bruno Haible  <bruno@clisp.org>
20488
20489         New module 'mktime-internal'.
20490         * modules/mktime-internal: New file.
20491         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20492         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20493         mktime_internal as a C macro if libc has __mktime_internal.
20494         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20495         conditions.
20496         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20497
20498 2011-05-22  Bruno Haible  <bruno@clisp.org>
20499
20500         timegm: Correct mktime replacement statements.
20501         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20502         defining mktime as a C macro. This completes a 2009-07-28 commit.
20503
20504 2011-05-22  Bruno Haible  <bruno@clisp.org>
20505
20506         timegm: Simplify autoconf macro.
20507         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20508
20509 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20510
20511         clock-time: change to LGPLv2+.
20512         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20513         BSD-like but we have no mark for that; this is good enough for now.
20514
20515 2011-05-21  Bruno Haible  <bruno@clisp.org>
20516
20517         strerror_r: Fix comments.
20518         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20519
20520 2011-05-21  Bruno Haible  <bruno@clisp.org>
20521
20522         relocatable-prog-wrapper: Fix possible link error.
20523         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20524         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20525         (gl_FUNC_SETENV): ... to here.
20526         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20527         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20528
20529 2011-05-21  Bruno Haible  <bruno@clisp.org>
20530
20531         relocatable-prog-wrapper: Assume strerror() exists.
20532         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20533         m4/strerror.m4.
20534         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20535         * lib/relocwrapper.c: Remove mention of strerror module.
20536         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20537         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20538         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20539         C macro.
20540
20541 2011-05-21  Bruno Haible  <bruno@clisp.org>
20542
20543         select: Simplify replacement idiom.
20544         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20545         Win32 platforms.
20546         * lib/sys_select.in.h (select): Simplify accordingly.
20547         * modules/select (Depends-on): Likewise.
20548
20549 2011-05-21  Bruno Haible  <bruno@clisp.org>
20550
20551         mkdir-p: Simplify autoconf macro.
20552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20553         gl_FUNC_LCHOWN.
20554
20555 2011-05-21  Eric Blake  <eblake@redhat.com>
20556
20557         strerror_r: avoid clobbering strerror on cygwin
20558         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20559         fall back instead to sys_errlist.
20560         * modules/strerror (configure.ac): Add witness.
20561         * tests/test-strerror_r.c (main): Enhance test.
20562         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20563         * tests/test-perror2.c (main): Free memory before exit.
20564
20565 2011-05-21  Bruno Haible  <bruno@clisp.org>
20566
20567         mkdtemp: Use gnulib naming conventions.
20568         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20569         * modules/mkdtemp (configure.ac): Update.
20570
20571 2011-05-20  Eric Blake  <eblake@redhat.com>
20572
20573         strerror_r: avoid corrupting errno on Solaris
20574         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20575         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20576
20577         strerror_r: avoid compiler warning
20578         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20579
20580         strerror_r: simplify AIX code
20581         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20582
20583         test-perror: avoid spurious failure on FreeBSD
20584         * modules/perror-tests (Depends-on): Add strerror, now that
20585         strerror_r no longer pulls it in.
20586
20587 2011-05-20  Bruno Haible  <bruno@clisp.org>
20588
20589         strerror_r-posix: Remove unused dependencies.
20590         * modules/strerror_r-posix (Depends-on): Remove strerror.
20591         Reported by Eric Blake.
20592
20593 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20594
20595         intprops: remove assumption about A|B representation
20596         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20597         is a valid integer if both A and B are.  Although this is true for
20598         all known practical hosts, the C standard doesn't guarantee it,
20599         and the code need not assume it.  Also, this change may work around
20600         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20602
20603 2011-05-20  Eric Blake  <eblake@redhat.com>
20604
20605         perror: work around FreeBSD bug
20606         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20607         is broken.  Move AC_LIBOBJ...
20608         * modules/perror (configure.ac): Here.
20609         * doc/posix-functions/perror.texi (perror): Document this.
20610         * tests/test-perror2.c (main): Enhance test.
20611
20612         test-perror: check for strerror interactions
20613         * tests/macros.h (STREQ): Add macro.
20614         * modules/perror-tests (Files): Add second test.
20615         * tests/test-perror2.c (main): New file.
20616         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20617
20618         test-perror: rewrite to use init script
20619         * modules/perror-tests (Files): Add init.sh.
20620         * tests/test-perror.sh: Use temporary directory.
20621
20622 2011-05-20  Jim Meyering  <meyering@redhat.com>
20623
20624         maint: replace misused "a" with "an"
20625         * doc/intprops.texi: "a integer"
20626         * doc/regex.texi: "a explanation"
20627         * lib/alignof.h: "a object"
20628         * lib/argmatch.h: "a explanation"
20629         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20630         * lib/stdint.in.h: "a integer"
20631         * lib/userspec.c: "a owner"
20632         * doc/gnulib.texi: Fix "a idea", and reword.
20633
20634 2011-05-19  Jim Meyering  <meyering@redhat.com>
20635
20636         maint: correct misuse of "a" and "an"
20637         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20638         * lib/argp-help.c: "an docum...": s/an/a/
20639         * lib/argp-parse.c: "An vector": s/An/A/
20640         * lib/execute.c: "an native": s/an/a/
20641         * lib/spawn-pipe.c: Likewise.
20642         * lib/gc.h: "an Gc_rc": s/an/a/
20643         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20644         * lib/fts.c: "an stat.st_dev": s/an/a/
20645
20646 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20647
20648         intprops-tests: work around HP-UX 11.23 cc bug with constants
20649         * tests/test-intprops.c (VERIFY): New macro.
20650         (main): Use it, instead of verify, to work around the compiler bug; see
20651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20652
20653         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20654         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20655         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20656         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20657         (_GL_REMAINDER_OVERFLOW): Use it.
20658
20659         intprops-tests: revert unsigned part of previous change
20660         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20661         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20662         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20664
20665 2011-05-19  Bruno Haible  <bruno@clisp.org>
20666
20667         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20668         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20669         strerror_r() returned without filling the buffer.
20670         Reported by Eric Blake.
20671
20672 2011-05-19  Eric Blake  <eblake@redhat.com>
20673
20674         strerror_r: guarantee unchanged errno
20675         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20676         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20677         failure.
20678         * tests/test-strerror_r.c (main): Enhance test.
20679
20680 2011-05-19  Bruno Haible  <bruno@clisp.org>
20681
20682         strerror_r: Reorder #if blocks.
20683         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20684         for consistency with the previous commit.
20685
20686 2011-05-19  Bruno Haible  <bruno@clisp.org>
20687
20688         perror: Avoid clobbering the strerror buffer when possible.
20689         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20690         * lib/strerror.c: Include it.
20691         * modules/strerror (Files): Add lib/strerror-impl.h.
20692         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20693         (my_strerror): New function, defined through lib/strerror-impl.h.
20694         (perror): Use it instead of strerror.
20695         * modules/perror (Files): Add lib/strerror-impl.h.
20696         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20697
20698 2011-05-19  Eric Blake  <eblake@redhat.com>
20699
20700         strerror_r: fix on newer cygwin
20701         * lib/strerror_r.c (strerror_r): Cygwin now has
20702         __xpg_strerror_r, use it.
20703
20704 2011-05-19  Bruno Haible  <bruno@clisp.org>
20705
20706         strerror_r: Avoid clobbering the strerror buffer when possible.
20707         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20708         (sys_nerr, sys_errlist): New declarations.
20709         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20710         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20711         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20712
20713 2011-05-19  Bruno Haible  <bruno@clisp.org>
20714
20715         strerror_r: Fix test failure on mingw.
20716         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20717         EXTEND_STRERROR_R.
20718         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20719         macros from errno.in.h instead.
20720
20721 2011-05-19  Eric Blake  <eblake@redhat.com>
20722
20723         strerror: relax test for Solaris
20724         * tests/test-strerror.c (main): Permit Solaris behavior.
20725         * tests/test-strerror_r.c (main): Likewise.
20726
20727         strerror: enforce POSIX ruling on strerror(0)
20728         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20729         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20730         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20731         * doc/posix-functions/strerror.texi (strerror): Document it.
20732         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20733         * tests/test-strerror.c (main): Strengthen test.
20734         * tests/test-strerror_r.c (main): Likewise.
20735
20736 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20737
20738         intprop-tests: port to older and more-pedantic compilers
20739         * modules/intprops-tests (Files): Add tests/macros.h.
20740         * tests/test-intprops.c: Include macros.h.
20741         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20742         it's no longer documented to expand to an integer constant expression.
20743         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20744         argument is floating point, as it's no longer documented to expand
20745         to an integer constant expression in that case.
20746         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20747         compiler bugs reported by Bruno Haible.  See
20748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20749         (U0, U1): New constants, to work around the same bugs.  Also,
20750         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20751
20752         intprops: work around C compiler bugs
20753         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20754         bug in Sun C 5.11 2010/08/13 and other compilers; see
20755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20756
20757         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20758         * doc/intprops.texi (Integer Type Determination): Fix
20759         documentation for TYPE_IS_INTEGER: it returns an constant
20760         expression, not an integer constant expression.  Fix doc for
20761         TYPE_SIGNED: it returns an integer constant expression only if its
20762         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20763         hardly worth documented that way....)
20764
20765 2011-05-18  Bruno Haible  <bruno@clisp.org>
20766
20767         strerror_r: Avoid clobbering the strerror buffer when possible.
20768         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20769         Handle gnulib defined errno values here. When strerror() returns NULL
20770         or an empty string, return EINVAL.
20771         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20772         gnulib defined errno values here.
20773         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20774
20775 2011-05-18  Eric Blake  <eblake@redhat.com>
20776
20777         fnmatch: avoid compiler warning
20778         * lib/fnmatch_loop.c (FCT): Use correct type.
20779         Reported by Matthias Bolte.
20780
20781 2011-05-13  Jim Meyering  <meyering@redhat.com>
20782
20783         maint.mk: three new prohibit_<HDR>_without_use rules
20784         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20785         (sc_prohibit_stdio-safer_without_use): Likewise.
20786         (sc_prohibit_xfreopen_without_use): Likewise.
20787
20788 2011-05-17  Jim Meyering  <meyering@redhat.com>
20789
20790         announce-gen: fail if the NEWS delta is empty
20791         If there's nothing noteworthy in NEWS, then either you forgot
20792         or you shouldn't be releasing.
20793         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20794
20795 2011-05-17  Pádraig Brady <P@draigBrady.com>
20796
20797         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20798         reserved symbols starting with double underscore from the check.
20799
20800 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20801
20802         intprops: add doc
20803         * doc/intprops.texi: New file, documenting intprops.
20804         * doc/gnulib.texi (Particular Modules): Include it.
20805
20806         verify: add doc to gnulib manual and fix example
20807         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20808         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20809         (Compile-time Assertions): Fix example so it can't overflow.
20810
20811 2011-05-17  Jim Meyering  <meyering@redhat.com>
20812
20813         warnings.m4: don't usurp save_CPPFLAGS variable name
20814         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20815
20816         doc: fix typo
20817         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20818
20819 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20820             Bruno Haible  <bruno@clisp.org>
20821
20822         doc: Tweak recent change.
20823         * README (Portability guidelines): Tweak new text.
20824         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20825         Interix 6.1.
20826
20827 2011-05-16  Eric Blake  <eblake@redhat.com>
20828
20829         inttypes: avoid autoconf warning
20830         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20831         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20832
20833 2011-05-16  Sam Steingold <sds@gnu.org>
20834         and Eric Blake  <eblake@redhat.com>
20835
20836         vc-list-files: accept multiple directory operands
20837         * build-aux/vc-list-files: Iterate over all remaining operands.
20838
20839 2011-05-16  Bruno Haible  <bruno@clisp.org>
20840
20841         Fix confusion regarding deprecated modules.
20842         * modules/calloc (Status, Notice): Mark module as deprecated, not
20843         obsolete.
20844         * modules/fnmatch-posix (Status, Notice): Likewise.
20845         * modules/getdate (Status, Notice): Likewise.
20846         * modules/getopt (Status, Notice): Likewise.
20847         * modules/malloc (Status, Notice): Likewise.
20848         * modules/pipe (Status, Notice): Likewise.
20849         * modules/realloc (Status, Notice): Likewise.
20850         * modules/rename-dest-slash (Status, Notice): Likewise.
20851         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20852         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20853         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20854         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20855         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20856
20857 2011-05-16  Bruno Haible  <bruno@clisp.org>
20858
20859         doc: List the target platforms.
20860         * doc/gnulib-intro.texi (Target Platforms): New section.
20861         * doc/gnulib.texi (Introduction): Update menu.
20862         * README (Portability guidelines): Refer to the new section. Update
20863         statement about oldest supported environment. Remove rationale why
20864         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20865         unportable C89 function.
20866         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20867         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20868
20869 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20872
20873 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20874
20875         intprops-tests: new module
20876         * modules/intprops-tests, tests/test-intprops.c: New files.
20877
20878         intprops: add safe, portable integer overflow checking
20879         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20880         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20881         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20882         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20883         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20884         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20885         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20886         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20887         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20888         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20889         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20890
20891 2011-05-12  James Youngman  <jay@gnu.org>
20892
20893         Add a test for glibc's Bugzilla bug #12378.
20894         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20895         doesn't allow the literal matching of a lone "[" (which is
20896         required by POSIX).
20897         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20898
20899 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20900
20901         Sync glibc change fixing Bugzilla bug #12378.
20902         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20903         beginning and fall back to matching as normal character if the
20904         string ends before the matching ']' is found.  This is what POSIX
20905         requires.
20906
20907 2011-05-13  Eric Blake  <eblake@redhat.com>
20908
20909         getcwd-lgpl: relax test for FreeBSD
20910         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20911         issue.
20912         * tests/test-getcwd-lgpl.c (main): Relax test.
20913         Reported by Matthias Bolte.
20914
20915 2011-05-11  Eric Blake  <eblake@redhat.com>
20916
20917         test-fflush: silence compiler warning
20918         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20919
20920 2011-05-11  Bruno Haible  <bruno@clisp.org>
20921
20922         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20923         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20924         * modules/canonicalize (Depends-on): Add 'nocrash'.
20925         * modules/canonicalize-lgpl (Depends-on): Likewise.
20926         * doc/posix-functions/realpath.texi: Update platforms list.
20927         Reported by Ryan Schmidt <ryandesign@macports.org>.
20928
20929 2011-05-11  Bruno Haible  <bruno@clisp.org>
20930
20931         group-member: Declare function in <unistd.h>.
20932         * lib/unistd.in.h (group_member): New declaration.
20933         * lib/group-member.h: Remove file.
20934         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20935         * tests/test-unistd-c++.cc: Check signature of group_member.
20936         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20937         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20938         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20939         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20940         HAVE_GROUP_MEMBER.
20941         * modules/group-member (Files): Remove lib/group-member.h.
20942         (Depends-on): Add unistd. Specify conditions.
20943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20944         (Include): Change to <unistd.h>.
20945         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20946         HAVE_GROUP_MEMBER.
20947         * NEWS: Mention the change.
20948         * lib/euidaccess.c: Don't include group-member.h.
20949
20950 2011-05-11  Bruno Haible  <bruno@clisp.org>
20951
20952         group-member: Document module.
20953         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20954         module.
20955
20956 2011-05-11  Bruno Haible  <bruno@clisp.org>
20957
20958         fclose: Fix mistake earlier today.
20959         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20960
20961 2011-05-11  Eric Blake  <eblake@redhat.com>
20962
20963         fclose: preserve fflush errors
20964         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20965         Reported by Jim Meyering.
20966
20967         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20968         * build-aux/bootstrap (check_versions): When no specific version
20969         is required, merely check that the app produces an exit status
20970         that indicates its existence.
20971
20972         maint.mk: drop redundant check
20973         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20974         the same but better.
20975
20976 2011-05-11  Bruno Haible  <bruno@clisp.org>
20977
20978         fclose: Fix possible link error.
20979         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20980         unregister_shadow_fd. Improve comments.
20981         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20982         Eric Blake.
20983
20984 2011-05-11  Jim Meyering  <meyering@redhat.com>
20985
20986         maint.mk: improve "can not" detection and generalize rule name
20987         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20988         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20989         Use the same technique as in sc_prohibit_doubled_word, so that
20990         we recognize "can not" also when the words are separated by a newline.
20991         Suggested by Eric Blake.
20992         (perl_filename_lineno_text_): Define.  Factored out of...
20993         (prohibit_doubled_word_): ...here.  Use the new definition.
20994         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20995         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20996         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20997
20998 2011-05-10  Eric Blake  <eblake@redhat.com>
20999
21000         fclose: avoid double close race when possible
21001         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21002         all but WINDOWS_SOCKETS.
21003
21004 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21005
21006         openat: correct new comment
21007         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21008
21009 2011-05-10  Jim Meyering  <meyering@redhat.com>
21010
21011         openat: add comments
21012         * lib/openat-proc.c (openat_proc_name): Add comments,
21013         mostly from Eric Blake.
21014
21015 2011-05-09  Eric Blake  <eblake@redhat.com>
21016
21017         openat: reduce syscalls in first probe of /proc
21018         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21019         be a directory.  Simplify the probe for .. bugs.
21020         * modules/openat (Depends-on): Drop same-inode.
21021         Reported by Bastien ROUCARIES.
21022
21023 2011-05-09  Jim Meyering  <meyering@redhat.com>
21024
21025         maint.mk: change semantics/name of tight_scope variables
21026         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21027         Rename variables to align with semantics that make them more useful.
21028
21029         maint.mk: tweak new rule's name not to impinge
21030         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21031         (sc_tight_scope): Use new rule name rather than $@-0.
21032
21033         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21034         * top/maint.mk (sc_tight_scope): New rule.
21035         (sc_tight_scope-0): New rule, ifdef'd out.
21036         (_gl_TS_dir): Default.
21037         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21038         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21039
21040 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21041
21042         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21043         Haible <bruno@clisp.org>.
21044
21045 2011-05-08  Bruno Haible  <bruno@clisp.org>
21046
21047         Comments.
21048         * m4/isnanf.m4: Add comment.
21049         * m4/isnanl.m4: Likewise.
21050
21051 2011-05-08  Bruno Haible  <bruno@clisp.org>
21052
21053         glob: Remove obsolete macro.
21054         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21055
21056 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21057
21058         intprops: Sun C 5.11 supports __typeof__
21059         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21060         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21061         which is new.
21062         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21063
21064         intprops: switch to usual gnulib indenting and naming
21065         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21066         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21067
21068         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21069
21070 2011-05-08  Jim Meyering  <meyering@redhat.com>
21071
21072         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21073         * top/maint.mk (release-prep): Use make's --no-print-directory
21074         option when generating the announcement.  This eliminates the
21075         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21076         generated announcement template.
21077
21078 2011-05-08  Bruno Haible  <bruno@clisp.org>
21079
21080         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21081         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21082         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21083
21084 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21085
21086         ignore-value, verify: Omit include files from lib_SOURCES.
21087         * modules/ignore-value, modules/verify (Makefile.am):
21088         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21089         that leads Automake to duplicate use of am__objects_... variables
21090         in Makefile.in.  See
21091         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21092
21093 2011-05-07  Bruno Haible  <bruno@clisp.org>
21094
21095         fclose: Simplify autoconf macro.
21096         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21097         defined.
21098
21099 2011-05-07  Bruno Haible  <bruno@clisp.org>
21100
21101         canonicalize-lgpl: Fix autoconf macro ordering bug.
21102         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21103         gl_STDLIB_H_DEFAULTS.
21104
21105 2011-05-06  Eric Blake  <eblake@redhat.com>
21106
21107         maintainer-makefile: make sc_po_check easier to tune
21108         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21109         to probe for strings, such as an alternate location for gnulib.
21110
21111         fclose: guarantee behavior on seekable stdin
21112         * modules/fclose (Depends-on): Add fflush.
21113         * doc/posix-functions/fclose.texi (fclose): Document this.
21114         * tests/test-fclose.c (main): Make test for this unconditional.
21115
21116 2011-05-06  Bruno Haible  <bruno@clisp.org>
21117
21118         fflush, fpurge: Relicense under LGPLv2+.
21119         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21120         * modules/fpurge (License): Likewise.
21121         With permission from Eric Blake and Jim Meyering.
21122         Suggested by Eric Blake.
21123
21124 2011-05-06  Karl Berry  <karl@gnu.org>
21125
21126         * MODULES.html.sh (func_all_modules): remove exit.
21127
21128 2011-05-06  Jim Meyering  <meyering@redhat.com>
21129
21130         maint.mk: use info-gnu@ as the default only for a stable release
21131         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21132         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21133         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21135
21136 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21137
21138         assert-h: new module, which supports C1X-style static_assert
21139         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21140         * lib/verify.h: Revamp so that this can be copied into assert.h,
21141         while retaining the ability to use it standalone as before.
21142         Rename private identifiers so as not to encroach on the
21143         standard C namespace, since this is now used by assert.h.
21144         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21145         the old verify_true.
21146         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21147         the old verify_true.  Use _GL_VERIFY_TYPE.
21148         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21149         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21150         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21151         defined when this file is copied into the replacement assert.h.
21152         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21153         and _Static_assert is not built in.
21154         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21155         defined, and use the new macros mentioned above.
21156         * doc/posix-headers/assert.texi: Document this.
21157
21158 2011-05-05  Bruno Haible  <bruno@clisp.org>
21159
21160         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21161         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21162         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21163         gl_REPLACE_FCLOSE here.
21164         * modules/fflush (Depends-on): Remove fclose.
21165         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21166         combination with module 'fclose'.
21167
21168 2011-05-05  Bruno Haible  <bruno@clisp.org>
21169
21170         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21171         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21172         gl_FUNC_FFLUSH.
21173         (gl_FUNC_FFLUSH): Use it.
21174         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21175         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21176         gl_REPLACE_FSEEKO here.
21177
21178 2011-05-05  Bruno Haible  <bruno@clisp.org>
21179
21180         tzset: Relicense under LGPL.
21181         * modules/tzset (License): Change to LGPL.
21182         No agreement needed; it's a no-op.
21183
21184         strtoimax, strtoumax: Relicense under LGPL.
21185         * modules/strtoimax (License): Change to LGPL.
21186         * modules/strtoumax (License): Likewise.
21187         With permission from Jim Meyering, Paul Eggert:
21188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21190
21191         getgroups: Relicense under LGPL.
21192         * modules/getgroups (License): Change to LGPL.
21193         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21197
21198         nanosleep: Relicense under LGPL.
21199         * modules/nanosleep (License): Change to LGPL.
21200         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21201         Haible:
21202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21206
21207         futimens: Relicense under LGPL.
21208         * modules/futimens (License): Change to LGPL.
21209         With permission from Eric Blake:
21210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21211
21212         fflush: Relicense under LGPL.
21213         * modules/fflush (License): Change to LGPL.
21214         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21218
21219         tmpfile: Relicense under LGPL.
21220         * modules/tmpfile (License): Change to LGPL.
21221         With permission from Ben Pfaff:
21222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21223
21224         isfinite: Relicense under LGPL.
21225         * modules/isfinite (License): Change to LGPL.
21226         With permission from Ben Pfaff, Bruno Haible:
21227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21229
21230         acosl..tanl: Relicense under LGPL.
21231         * modules/acosl (License): Change to LGPL.
21232         * modules/asinl (License): Likewise.
21233         * modules/atanl (License): Likewise.
21234         * modules/cosl (License): Likewise.
21235         * modules/expl (License): Likewise.
21236         * modules/logl (License): Likewise.
21237         * modules/sinl (License): Likewise.
21238         * modules/sqrtl (License): Likewise.
21239         * modules/tanl (License): Likewise.
21240         Source code originally from glibc and Paolo Bonzini. Agreements:
21241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21243
21244 2011-05-05  Bruno Haible  <bruno@clisp.org>
21245
21246         signal: Define sighandler_t.
21247         * lib/signal.in.h (sighandler_t): New type.
21248         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21249         whether sighandler_t is defined.
21250         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21251         * modules/signal (Depends-on): Add extensions.
21252         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21253         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21254         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21255
21256 2011-05-05  Eric Blake  <eblake@redhat.com>
21257
21258         maint: remove useless REPLACE_*_H macros
21259         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21260         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21261         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21262         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21263         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21264         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21265         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21266         * m4/btowc.m4: Update callers.
21267         * m4/dirfd.m4: Likewise.
21268         * m4/duplocale.m4: Likewise.
21269         * m4/fchdir.m4: Likewise.
21270         * m4/fdopendir.m4: Likewise.
21271         * m4/inet_ntop.m4: Likewise.
21272         * m4/inet_pton.m4: Likewise.
21273         * m4/ioctl.m4: Likewise.
21274         * m4/mbrlen.m4: Likewise.
21275         * m4/mbrtowc.m4: Likewise.
21276         * m4/mbsinit.m4: Likewise.
21277         * m4/mbsnrtowcs.m4: Likewise.
21278         * m4/mbsrtowcs.m4: Likewise.
21279         * m4/poll.m4: Likewise.
21280         * m4/setlocale.m4: Likewise.
21281         * m4/wcrtomb.m4: Likewise.
21282         * m4/wcsnrtombs.m4: Likewise.
21283         * m4/wcsrtombs.m4: Likewise.
21284         * m4/wctob.m4: Likewise.
21285         * m4/wcwidth.m4: Likewise.
21286         * modules/posix_spawn: Likewise.
21287         * modules/posix_spawn_file_actions_addclose: Likewise.
21288         * modules/posix_spawn_file_actions_adddup2: Likewise.
21289         * modules/posix_spawn_file_actions_addopen: Likewise.
21290         * modules/posix_spawn_file_actions_destroy: Likewise.
21291         * modules/posix_spawn_file_actions_init: Likewise.
21292         * modules/posix_spawnattr_destroy: Likewise.
21293         * modules/posix_spawnattr_getflags: Likewise.
21294         * modules/posix_spawnattr_getpgroup: Likewise.
21295         * modules/posix_spawnattr_getschedparam: Likewise.
21296         * modules/posix_spawnattr_getschedpolicy: Likewise.
21297         * modules/posix_spawnattr_getsigdefault: Likewise.
21298         * modules/posix_spawnattr_getsigmask: Likewise.
21299         * modules/posix_spawnattr_init: Likewise.
21300         * modules/posix_spawnattr_setflags: Likewise.
21301         * modules/posix_spawnattr_setpgroup: Likewise.
21302         * modules/posix_spawnattr_setschedparam: Likewise.
21303         * modules/posix_spawnattr_setschedpolicy: Likewise.
21304         * modules/posix_spawnattr_setsigdefault: Likewise.
21305         * modules/posix_spawnattr_setsigmask: Likewise.
21306         * modules/posix_spawnp: Likewise.
21307
21308 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21309
21310         Add option to do-release-commit-and-tag to specify branch.
21311         * build-aux/do-release-commit-and-tag: Add --branch.
21312
21313 2011-05-03  Bruno Haible  <bruno@clisp.org>
21314
21315         Avoid unnecessary compilation units, through conditional dependencies.
21316         * modules/accept (Depends-on): Add conditions to the dependencies.
21317         * modules/acosl (Depends-on): Likewise.
21318         * modules/argz (Depends-on): Likewise.
21319         * modules/asinl (Depends-on): Likewise.
21320         * modules/atanl (Depends-on): Likewise.
21321         * modules/atoll (Depends-on): Likewise.
21322         * modules/bind (Depends-on): Likewise.
21323         * modules/btowc (Depends-on): Likewise.
21324         * modules/canonicalize-lgpl (Depends-on): Likewise.
21325         * modules/ceil (Depends-on): Likewise.
21326         * modules/ceilf (Depends-on): Likewise.
21327         * modules/ceill (Depends-on): Likewise.
21328         * modules/chdir-long (Depends-on): Likewise.
21329         * modules/chown (Depends-on): Likewise.
21330         * modules/close (Depends-on): Likewise.
21331         * modules/connect (Depends-on): Likewise.
21332         * modules/cosl (Depends-on): Likewise.
21333         * modules/dirfd (Depends-on): Likewise.
21334         * modules/dprintf (Depends-on): Likewise.
21335         * modules/dprintf-posix (Depends-on): Likewise.
21336         * modules/error (Depends-on): Likewise.
21337         * modules/euidaccess (Depends-on): Likewise.
21338         * modules/expl (Depends-on): Likewise.
21339         * modules/faccessat (Depends-on): Likewise.
21340         * modules/fchdir (Depends-on): Likewise.
21341         * modules/fclose (Depends-on): Likewise.
21342         * modules/fcntl (Depends-on): Likewise.
21343         * modules/fdopendir (Depends-on): Likewise.
21344         * modules/fflush (Depends-on): Likewise.
21345         * modules/floor (Depends-on): Likewise.
21346         * modules/floorf (Depends-on): Likewise.
21347         * modules/floorl (Depends-on): Likewise.
21348         * modules/fnmatch (Depends-on): Likewise.
21349         * modules/fopen (Depends-on): Likewise.
21350         * modules/fprintf-posix (Depends-on): Likewise.
21351         * modules/frexp (Depends-on): Likewise.
21352         * modules/frexp-nolibm (Depends-on): Likewise.
21353         * modules/frexpl (Depends-on): Likewise.
21354         * modules/frexpl-nolibm (Depends-on): Likewise.
21355         * modules/fseek (Depends-on): Likewise.
21356         * modules/fsusage (Depends-on): Likewise.
21357         * modules/ftell (Depends-on): Likewise.
21358         * modules/ftello (Depends-on): Likewise.
21359         * modules/futimens (Depends-on): Likewise.
21360         * modules/getcwd (Depends-on): Likewise.
21361         * modules/getcwd-lgpl (Depends-on): Likewise.
21362         * modules/getdelim (Depends-on): Likewise.
21363         * modules/getdomainname (Depends-on): Likewise.
21364         * modules/getgroups (Depends-on): Likewise.
21365         * modules/gethostname (Depends-on): Likewise.
21366         * modules/getline (Depends-on): Likewise.
21367         * modules/getlogin_r (Depends-on): Likewise.
21368         * modules/getopt-posix (Depends-on): Likewise.
21369         * modules/getpeername (Depends-on): Likewise.
21370         * modules/getsockname (Depends-on): Likewise.
21371         * modules/getsockopt (Depends-on): Likewise.
21372         * modules/getsubopt (Depends-on): Likewise.
21373         * modules/getusershell (Depends-on): Likewise.
21374         * modules/glob (Depends-on): Likewise.
21375         * modules/grantpt (Depends-on): Likewise.
21376         * modules/iconv_open (Depends-on): Likewise.
21377         * modules/iconv_open-utf (Depends-on): Likewise.
21378         * modules/inet_ntop (Depends-on): Likewise.
21379         * modules/inet_pton (Depends-on): Likewise.
21380         * modules/ioctl (Depends-on): Likewise.
21381         * modules/isapipe (Depends-on): Likewise.
21382         * modules/isfinite (Depends-on): Likewise.
21383         * modules/isinf (Depends-on): Likewise.
21384         * modules/lchown (Depends-on): Likewise.
21385         * modules/ldexpl (Depends-on): Likewise.
21386         * modules/link (Depends-on): Likewise.
21387         * modules/linkat (Depends-on): Likewise.
21388         * modules/listen (Depends-on): Likewise.
21389         * modules/logl (Depends-on): Likewise.
21390         * modules/lstat (Depends-on): Likewise.
21391         * modules/mbrlen (Depends-on): Likewise.
21392         * modules/mbrtowc (Depends-on): Likewise.
21393         * modules/mbsinit (Depends-on): Likewise.
21394         * modules/mbsnrtowcs (Depends-on): Likewise.
21395         * modules/mbsrtowcs (Depends-on): Likewise.
21396         * modules/mbtowc (Depends-on): Likewise.
21397         * modules/memcmp (Depends-on): Likewise.
21398         * modules/mkdir (Depends-on): Likewise.
21399         * modules/mkdtemp (Depends-on): Likewise.
21400         * modules/mkfifo (Depends-on): Likewise.
21401         * modules/mkfifoat (Depends-on): Likewise.
21402         * modules/mknod (Depends-on): Likewise.
21403         * modules/mkostemp (Depends-on): Likewise.
21404         * modules/mkostemps (Depends-on): Likewise.
21405         * modules/mkstemp (Depends-on): Likewise.
21406         * modules/mkstemps (Depends-on): Likewise.
21407         * modules/mktime (Depends-on): Likewise.
21408         * modules/nanosleep (Depends-on): Likewise.
21409         * modules/open (Depends-on): Likewise.
21410         * modules/openat (Depends-on): Likewise.
21411         * modules/perror (Depends-on): Likewise.
21412         * modules/poll (Depends-on): Likewise.
21413         * modules/popen (Depends-on): Likewise.
21414         * modules/posix_spawn (Depends-on): Likewise.
21415         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21416         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21417         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21418         * modules/posix_spawnp (Depends-on): Likewise.
21419         * modules/pread (Depends-on): Likewise.
21420         * modules/printf-posix (Depends-on): Likewise.
21421         * modules/ptsname (Depends-on): Likewise.
21422         * modules/putenv (Depends-on): Likewise.
21423         * modules/pwrite (Depends-on): Likewise.
21424         * modules/readline (Depends-on): Likewise.
21425         * modules/readlink (Depends-on): Likewise.
21426         * modules/readlinkat (Depends-on): Likewise.
21427         * modules/recv (Depends-on): Likewise.
21428         * modules/recvfrom (Depends-on): Likewise.
21429         * modules/regex (Depends-on): Likewise.
21430         * modules/remove (Depends-on): Likewise.
21431         * modules/rename (Depends-on): Likewise.
21432         * modules/renameat (Depends-on): Likewise.
21433         * modules/rmdir (Depends-on): Likewise.
21434         * modules/round (Depends-on): Likewise.
21435         * modules/roundf (Depends-on): Likewise.
21436         * modules/roundl (Depends-on): Likewise.
21437         * modules/rpmatch (Depends-on): Likewise.
21438         * modules/select (Depends-on): Likewise.
21439         * modules/send (Depends-on): Likewise.
21440         * modules/sendto (Depends-on): Likewise.
21441         * modules/setenv (Depends-on): Likewise.
21442         * modules/setlocale (Depends-on): Likewise.
21443         * modules/setsockopt (Depends-on): Likewise.
21444         * modules/shutdown (Depends-on): Likewise.
21445         * modules/sigaction (Depends-on): Likewise.
21446         * modules/signbit (Depends-on): Likewise.
21447         * modules/sigprocmask (Depends-on): Likewise.
21448         * modules/sinl (Depends-on): Likewise.
21449         * modules/sleep (Depends-on): Likewise.
21450         * modules/snprintf (Depends-on): Likewise.
21451         * modules/snprintf-posix (Depends-on): Likewise.
21452         * modules/socket (Depends-on): Likewise.
21453         * modules/sprintf-posix (Depends-on): Likewise.
21454         * modules/sqrtl (Depends-on): Likewise.
21455         * modules/stat (Depends-on): Likewise.
21456         * modules/strchrnul (Depends-on): Likewise.
21457         * modules/strdup-posix (Depends-on): Likewise.
21458         * modules/strerror (Depends-on): Likewise.
21459         * modules/strerror_r-posix (Depends-on): Likewise.
21460         * modules/strndup (Depends-on): Likewise.
21461         * modules/strnlen (Depends-on): Likewise.
21462         * modules/strptime (Depends-on): Likewise.
21463         * modules/strsep (Depends-on): Likewise.
21464         * modules/strsignal (Depends-on): Likewise.
21465         * modules/strstr-simple (Depends-on): Likewise.
21466         * modules/strtod (Depends-on): Likewise.
21467         * modules/strtoimax (Depends-on): Likewise.
21468         * modules/strtok_r (Depends-on): Likewise.
21469         * modules/strtoumax (Depends-on): Likewise.
21470         * modules/symlink (Depends-on): Likewise.
21471         * modules/symlinkat (Depends-on): Likewise.
21472         * modules/tanl (Depends-on): Likewise.
21473         * modules/tcgetsid (Depends-on): Likewise.
21474         * modules/tmpfile (Depends-on): Likewise.
21475         * modules/trunc (Depends-on): Likewise.
21476         * modules/truncf (Depends-on): Likewise.
21477         * modules/truncl (Depends-on): Likewise.
21478         * modules/uname (Depends-on): Likewise.
21479         * modules/unlink (Depends-on): Likewise.
21480         * modules/unlockpt (Depends-on): Likewise.
21481         * modules/unsetenv (Depends-on): Likewise.
21482         * modules/usleep (Depends-on): Likewise.
21483         * modules/utimensat (Depends-on): Likewise.
21484         * modules/vasprintf (Depends-on): Likewise.
21485         * modules/vdprintf (Depends-on): Likewise.
21486         * modules/vdprintf-posix (Depends-on): Likewise.
21487         * modules/vfprintf-posix (Depends-on): Likewise.
21488         * modules/vprintf-posix (Depends-on): Likewise.
21489         * modules/vsnprintf (Depends-on): Likewise.
21490         * modules/vsnprintf-posix (Depends-on): Likewise.
21491         * modules/vsprintf-posix (Depends-on): Likewise.
21492         * modules/wcrtomb (Depends-on): Likewise.
21493         * modules/wcscasecmp (Depends-on): Likewise.
21494         * modules/wcscspn (Depends-on): Likewise.
21495         * modules/wcsdup (Depends-on): Likewise.
21496         * modules/wcsncasecmp (Depends-on): Likewise.
21497         * modules/wcsnrtombs (Depends-on): Likewise.
21498         * modules/wcspbrk (Depends-on): Likewise.
21499         * modules/wcsrtombs (Depends-on): Likewise.
21500         * modules/wcsspn (Depends-on): Likewise.
21501         * modules/wcsstr (Depends-on): Likewise.
21502         * modules/wcstok (Depends-on): Likewise.
21503         * modules/wcswidth (Depends-on): Likewise.
21504         * modules/wctob (Depends-on): Likewise.
21505         * modules/wctomb (Depends-on): Likewise.
21506         * modules/wctype (Depends-on): Likewise.
21507         * modules/wcwidth (Depends-on): Likewise.
21508         * modules/write (Depends-on): Likewise.
21509
21510 2011-05-03  Bruno Haible  <bruno@clisp.org>
21511
21512         Support for conditional dependencies.
21513         * doc/gnulib.texi (Module description): Document the syntax of
21514         conditional dependencies.
21515         * gnulib-tool: New option --conditional-dependencies.
21516         (func_usage): Document it.
21517         (cond_dependencies): New variable.
21518         (func_get_automake_snippet_conditional,
21519         func_get_automake_snippet_unconditional): New functions, extracted from
21520         func_get_automake_snippet.
21521         (func_get_automake_snippet): Use them.
21522         (sed_first_32_chars): New variable.
21523         (func_module_shellfunc_name): New function.
21524         (func_module_shellvar_name): New function.
21525         (func_module_conditional_name): New function.
21526         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21527         func_cond_module_condition): New functions.
21528         (func_modules_transitive_closure): Add support for conditional
21529         dependencies.
21530         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21531         conditional automake snippet in an automake conditional.
21532         (func_emit_autoconf_snippets): Emit shell functions that contain the
21533         code for conditional modules.
21534         (func_import, func_create_testdir): Update specification.
21535
21536 2011-05-03  Eric Blake  <eblake@redhat.com>
21537
21538         test-getaddrinfo: report error information
21539         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21540
21541 2011-05-03  Jim Meyering  <meyering@redhat.com>
21542
21543         bootstrap: avoid build failure when $GZIP is set
21544         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21545         program name.  If defined at all, it is supposed to list gzip options.
21546         Reported by Alan Curry in http://debbugs.gnu.org/8609
21547
21548 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21549
21550         readme-release: new module with release instructions
21551         * modules/readme-release: New module.
21552         * top/README-release: New file, from coreutils, grep, diffutils.
21553         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21554
21555 2011-05-02  Eric Blake  <eblake@redhat.com>
21556
21557         fflush: also replace fclose when fixing fflush
21558         * modules/fflush (Depends-on): Add fclose.
21559         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21560         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21561         memstreams with no backing fd.
21562         * doc/posix-functions/fclose.texi (fclose): Document the use of
21563         fflush module to fix the bug.
21564         * tests/test-fclose.c (main): Relax test when fclose is used in
21565         isolation.
21566
21567         fclose: add some tests
21568         * modules/fclose-tests: New test module.
21569         * tests/test-fclose.c: New file.
21570         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21571
21572         fclose: reduced dependencies
21573         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21574         simpler lseek.
21575         * lib/fclose.c (rpl_fclose): Likewise.
21576         Reported by Simon Josefsson.
21577
21578         exit: drop remaining clients
21579         * modules/argmatch (Depends-on): Replace exit with stdlib.
21580         * modules/copy-file (Depends-on): Likewise.
21581         * modules/execute (Depends-on): Likewise.
21582         * modules/exitfail (Depends-on): Likewise.
21583         * modules/obstack (Depends-on): Likewise.
21584         * modules/pagealign_alloc (Depends-on): Likewise.
21585         * modules/pipe-filter-gi (Depends-on): Likewise.
21586         * modules/pipe-filter-ii (Depends-on): Likewise.
21587         * modules/savewd (Depends-on): Likewise.
21588         * modules/spawn-pipe (Depends-on): Likewise.
21589         * modules/wait-process (Depends-on): Likewise.
21590         * modules/xsetenv (Depends-on): Likewise.
21591         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21592         * modules/git-merge-changelog (Depends-on): Likewise.
21593         * modules/long-options (Depends-on): Likewise.
21594         * modules/pt_chown (Depends-on): Likewise.
21595         * modules/sysexits (Depends-on): Likewise.
21596
21597         freading: relax license from LGPLv3+ to LGPLv2+
21598         * modules/freading (License): Relax LGPL version.
21599
21600 2011-05-02  Bruno Haible  <bruno@clisp.org>
21601
21602         fchdir: Remove unused dependencies.
21603         * modules/fchdir (Depends-on): Remove include_next.
21604
21605 2011-05-02  Bruno Haible  <bruno@clisp.org>
21606
21607         gnulib-tool: Refactor.
21608         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21609         from func_emit_autoconf_snippets.
21610         (func_emit_autoconf_snippets): Use it.
21611
21612 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21613
21614         * NEWS: Document removal of 'exit'.
21615         * modules/exit: Remove file.
21616
21617 2011-05-01  Bruno Haible  <bruno@clisp.org>
21618
21619         Update DEPENDENCIES.
21620         * DEPENDENCIES (gettext): Recommend the newest release.
21621         Reported by Simon Josefsson.
21622
21623 2011-05-01  Bruno Haible  <bruno@clisp.org>
21624
21625         gnulib-tool: Reduce code duplication.
21626         * gnulib-tool (func_emit_autoconf_snippets): New function.
21627         (func_import, func_create_testdir): Use it.
21628
21629 2011-04-30  Eric Blake  <eblake@redhat.com>
21630
21631         fclose: don't fail on non-seekable input stream
21632         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21633         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21634         since fflush is allowed to fail in that case.
21635
21636 2011-04-30  Bruno Haible  <bruno@clisp.org>
21637
21638         dup3: cleanup
21639         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21640
21641 2011-04-30  Bruno Haible  <bruno@clisp.org>
21642
21643         netdb: Make it work in C++ mode.
21644         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21645         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21646         module.
21647         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21648         gl_MODULE_INDICATOR_FOR_TESTS.
21649         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21650         * modules/netdb-c++-tests: New file.
21651         * tests/test-netdb-c++.cc: New file.
21652
21653 2011-04-30  Bruno Haible  <bruno@clisp.org>
21654
21655         New modules 'vfscanf', 'vscanf'.
21656         * modules/vfscanf: New file.
21657         * modules/vscanf: New file.
21658         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21659         here.
21660         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21661         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21662
21663 2011-04-30  Bruno Haible  <bruno@clisp.org>
21664
21665         passfd: Add comments.
21666         * lib/passfd.c: Add comments about platforms.
21667
21668 2011-04-30  Bruno Haible  <bruno@clisp.org>
21669
21670         sys_uio: Make <sys/uio.h> self-contained.
21671         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21672         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21673
21674 2011-04-30  Bruno Haible  <bruno@clisp.org>
21675
21676         sys_socket: Ensure 'struct iovec' definition.
21677         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21678         <sys/socket.h>.
21679         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21680
21681 2011-04-30  Bruno Haible  <bruno@clisp.org>
21682
21683         sys_uio: Protect definition of 'struct iovec'.
21684         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21685         it as a C struct.
21686
21687 2011-04-30  Bruno Haible  <bruno@clisp.org>
21688
21689         manywarnings: fix indentation
21690         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21691
21692 2011-04-30  Pádraig Brady <P@draigBrady.com>
21693
21694         manywarnings: add -Wno-missing-field-initializers if needed.
21695         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21696         option if it's needed to allow initialization with { 0, }
21697
21698 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21699
21700         announce-gen: cosmetic improvement
21701         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21702
21703 2011-04-29  Jim Meyering  <meyering@redhat.com>
21704
21705         vc-list-files: indent with spaces, not TABs
21706         * build-aux/vc-list-files: Convert leading TABs to spaces,
21707         to match the style of most other files in gnulib.
21708
21709         announce-gen: indent with spaces, not TABs
21710         * build-aux/announce-gen: Convert all TABs to spaces, to match
21711         the style of most other files in gnulib.
21712
21713 2011-04-29  Eric Blake  <eblake@redhat.com>
21714
21715         quotearg: avoid uninitialized variable use
21716         * lib/quotearg.c (quoting_options_from_style): Initialize
21717         remaining fields, and ensure that custom styles are only used via
21718         quoting_options rather than quoting_style.
21719
21720 2011-04-29  Jim Meyering  <meyering@redhat.com>
21721
21722         maint.mk: remove unused VC-tag variable
21723         * top/maint.mk (VC-tag): Remove unused variable.
21724
21725 2011-04-29  Bruno Haible  <bruno@clisp.org>
21726
21727         netdb: fix gai_strerror replacements
21728         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21729         * modules/netdb: Substitute it.
21730
21731 2011-04-29  Jim Meyering  <meyering@redhat.com>
21732
21733         test-getcwd.c: avoid new set-but-not-used warning
21734         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21735         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21736         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21737         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21738
21739         test-hash.c: avoid a new shadowing warning
21740         * tests/test-hash.c (main): Don't shadow "dup".
21741
21742 2011-04-28  Eric Blake  <eblake@redhat.com>
21743
21744         getaddrinfo: fix gai_strerror signature
21745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21746         and work around mingw with UNICODE defined.
21747         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21748         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21749         * modules/netdb (Makefile.am): Substitute it.
21750         * lib/netdb.in.h (gai_strerror): Declare replacement.
21751         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21752         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21753         the fix.
21754
21755         getsockopt: avoid compiler warning
21756         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21757         Reported by Matthias Bolte.
21758
21759         tests: drop unused link dependency
21760         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21761         * modules/dirent-safer-tests (Makefile.am): Likewise.
21762         * modules/fdopendir-tests (Makefile.am): Likewise.
21763         * modules/mkfifoat-tests (Makefile.am): Likewise.
21764         * modules/openat-safer-tests (Makefile.am): Likewise.
21765         * modules/openat-tests (Makefile.am): Likewise.
21766         * modules/readlinkat-tests (Makefile.am): Likewise.
21767         * modules/symlinkat-tests (Makefile.am): Likewise.
21768         * modules/linkat-tests (Makefile.am): Likewise.
21769         (Depends-on): Switch to filenamecat-lgpl.
21770         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21771         LIBINTL.
21772         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21773         * tests/test-linkat.c (main): Don't require xalloc.
21774
21775         hash, mgetgroups: drop xalloc dependency
21776         * lib/hash.c (includes): Adjust includes.
21777         * lib/mgetgroups.c (includes): Likewise.
21778         (xgetgroups): Move...
21779         * lib/xgetgroups.c: ...to new file.
21780         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21781         * modules/xgetgroups: New file, split from...
21782         * modules/mgetgroups: ...here.
21783         (Depends-on): Add xalloc-oversized.
21784         * modules/hash (Depends-on): Likewise.
21785         * modules/hash-tests (Depends-on): Drop xalloc.
21786         (test_hash_LDADD): Drop unused library.
21787         * tests/test-hash.c (main): Break xalloc dependency.
21788         (includes): Drop unused include.
21789
21790         xalloc-oversized: new module
21791         * modules/xalloc-oversized: New module.
21792         * modules/xalloc (Depends-on): Add it.
21793         * lib/xalloc.h (xalloc_oversized): Move...
21794         * lib/xalloc-oversized.h: ...into new file.
21795
21796         utimecmp: drop dependency on xmalloc
21797         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21798         due to memory pressure.
21799         * modules/utimecmp (Depends-on): Drop xalloc.
21800
21801 2011-04-27  Eric Blake  <eblake@redhat.com>
21802
21803         getcwd: fix mingw bugs
21804         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21805         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21806         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21807
21808 2011-04-27  Bruno Haible  <bruno@clisp.org>
21809
21810         mkstemps: Ensure declaration on MacOS X 10.5.
21811         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21812         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21813         MacOS X.
21814
21815 2011-04-27  Bruno Haible  <bruno@clisp.org>
21816
21817         mkstemp: More documentation.
21818         * doc/posix-functions/mkstemp.texi: Document header file problem on
21819         MacOS X.
21820
21821 2011-04-27  Bruno Haible  <bruno@clisp.org>
21822
21823         mkstemp: Tweak configure message when cross-compiling.
21824         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21825         result as a guess.
21826
21827 2011-04-27  Bruno Haible  <bruno@clisp.org>
21828
21829         clean-temp: Clarify what it does.
21830         * lib/clean-temp.h: Add more comments.
21831         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21832         module.
21833         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21834         * doc/glibc-functions/mkstemps.texi: Likewise.
21835         * doc/glibc-functions/mkostemps.texi: Likewise.
21836
21837 2011-04-27  Eric Blake  <eblake@redhat.com>
21838
21839         fchdir: avoid extra chdir and fix test
21840         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21841         getcwd-lgpl.
21842         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21843         have to be canonical.
21844         (canonicalize_file_name): Drop unused macro.
21845         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21846
21847         filenamecat-lgpl: fix licence
21848         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21849         when it was first created.
21850
21851         linkat, renameat: add missing dependency
21852         * modules/linkat (Depends-on): Require getcwd-lgpl.
21853         * modules/renameat (Depends-on): Likewise.
21854
21855         tests: reduce dependencies
21856         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21857         * tests/test-renameat.c (main): Likewise.
21858         * modules/linkat-tests (Depends-on): Relax dependency.
21859         * modules/renameat-tests (Depends-on): Likewise.
21860         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21861         dependency explicit.
21862
21863         save-cwd: reduce default dependency
21864         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21865         * lib/save-cwd.c: Update comments.
21866         * NEWS: Document the semantic change.
21867
21868         getcwd: enhance tests
21869         * tests/test-getcwd-lgpl.c: New file, taken from...
21870         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21871         repeat long path stress tests from m4 probe.
21872         * modules/getcwd-lgpl-tests: New module.
21873         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21874         * m4/getcwd-abort-bug.m4: Update comment.
21875         * m4/getcwd-path-max.m4: Likewise.
21876
21877         getcwd-lgpl: new module
21878         * modules/getcwd-lgpl: New module.
21879         * lib/getcwd-lgpl.c: New file.
21880         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21881         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21882         * modules/getcwd (configure.ac): Set C witness.
21883         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21884
21885         getcwd: tweak comments
21886         * m4/getcwd-abort-bug.m4: Fix comments.
21887         * m4/getcwd-path-max.m4: Likewise.
21888         * m4/getcwd.m4: Likewise.
21889
21890 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21891         and Eric Blake  <eblake@redhat.com>
21892
21893         mkstemp: replace if system version uses wrong permissions
21894         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21895         read/write mode bits set in file created by mkstemp.
21896         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21897
21898 2011-04-27  Eric Blake  <eblake@redhat.com>
21899
21900         passfd: avoid compiler warning
21901         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21902         Reported by Laine Stump.
21903
21904 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21905
21906         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21907         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21908
21909 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21910         and Eric Blake  <eblake@redhat.com>
21911
21912         mkstemp: mention clean-temp module
21913         * lib/mkstemp.c: Add comment.
21914         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21915
21916 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21917
21918         inttypes: also provide default values for 32-bit tests
21919         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21920         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21921
21922 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21923
21924         strtoumax: remove dependency on strtoimax
21925         This is like the strtoull change of yesterday.
21926         * modules/strtoumax (Files): Add lib/strtoimax.c.
21927         (Depends-on): Remove strtoimax and add verify.
21928
21929         inttypes-incomplete: new module
21930         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21931         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21932         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21933         of gl_INTTYPES_H.
21934         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21935         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21936         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21937         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21938         * modules/strtoumax, modules/xstrtol (Depends-on):
21939         Depend on inttypes-incomplete, not inttypes.
21940         * modules/inttypes-incomplete: New module, containing the contents
21941         of the old modules/inttypes module, except that the Files: section
21942         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21943         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21944         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21945         (Depends-on): Depend only on inttypes-incomplete.
21946         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21947
21948         inttypes: omit now-redundant strtoimax and strtoumax work
21949         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21950         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21951
21952         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21953         This supports apps that need pointers to strtoimax and strtoumax,
21954         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21955         nonexistent functions.  See
21956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21957         et seq.
21958         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21959         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21960         a macro.
21961         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21962
21963 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21964
21965         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21966
21967 2011-04-25  Bruno Haible  <bruno@clisp.org>
21968
21969         strtol, strtoul: Mark modules as obsolete.
21970         * modules/strtol (Status, Notice): New sections.
21971         * modules/strtoul (Status, Notice): New sections.
21972
21973 2011-04-25  Bruno Haible  <bruno@clisp.org>
21974
21975         strtod: Remove check for strtod, unless supporting old platforms.
21976         * modules/strtod-obsolete: New file.
21977         * m4/strtod-obsolete.m4: New file.
21978         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21979         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21980         * modules/strtod (Depends-on): Add strtod-obsolete.
21981         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21982
21983 2011-04-25  Bruno Haible  <bruno@clisp.org>
21984
21985         strcase: Make module obsolete.
21986         * modules/strcase (Status, Notice): New sections.
21987
21988 2011-04-25  Bruno Haible  <bruno@clisp.org>
21989
21990         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21991         * modules/dup2-obsolete: New file.
21992         * m4/dup2-obsolete.m4: New file.
21993         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21994         gl_FUNC_DUP2_OBSOLETE is not also defined.
21995         * modules/dup2 (Depends-on): Add dup2-obsolete.
21996         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21997
21998 2011-04-25  Bruno Haible  <bruno@clisp.org>
21999
22000         strnlen: Avoid memchr related link error on old obsolete platforms.
22001         * modules/memchr-obsolete: New file.
22002         * m4/memchr-obsolete.m4: New file.
22003         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22004         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22005         * modules/memchr (Depends-on): Add memchr-obsolete.
22006         * modules/strnlen (Depends-on): Likewise.
22007         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22008
22009 2011-04-25  Jim Meyering  <meyering@redhat.com>
22010
22011         maint.mk: makefile_at_at_check extend and clean up
22012         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22013         in addition to */Makefile.am.
22014         Exempt legitimate uses of @VAR@ notation, e.g.,
22015         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22016         Remove obsolete coreutils-specific comment.
22017         Prompted by discussion here:
22018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22019
22020 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22021
22022         strtoul: remove dependency on strtol
22023         This is so that 'configure' need not check for strtol merely because
22024         the application needs strtoul.
22025         * modules/strtoul (Files): Add lib/strtol.c.
22026         (Depends-on): Remove strtol.
22027
22028         strtoull: remove dependency on strtoul
22029         This is like the strtoll change.
22030         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22031         (Depends-on): Remove strtoul.
22032
22033         strtoll: remove dependency on strtol
22034         This is so that 'configure' need not check for strtol merely because
22035         the application needs strtoll.
22036         * modules/strtoll (Files): Add lib/strtol.c.
22037         (Depends-on): Remove strtol.
22038
22039 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22040
22041         inttypes: Move some configure check to module 'imaxdiv'.
22042         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22043         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22044         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22045
22046 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22047
22048         inttypes: Move some configure check to module 'imaxabs'.
22049         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22050         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22051         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22052
22053 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22054
22055         inttypes: Remove configure tests that are not needed since 2009-12-31.
22056         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22057         gl_cv_header_working_inttypes_h.
22058
22059 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22060
22061         * modules/strnlen (Depends-on): Remove memchr.
22062         The strnlen implementation doesn't need the memchr module's fixes; see
22063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22064
22065         strtol: remove dependency on wchar
22066         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22067         * modules/strtol (Depends-on): Remove wchar.
22068
22069 2011-04-21  Eric Blake  <eblake@redhat.com>
22070
22071         passfd: fix test regression on Linux
22072         * modules/passfd-tests (configure.ac): Correct socketpair check.
22073
22074         passfd: speed up configure and drop unused code
22075         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22076         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22077         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22078         Instead of probing at configure for unix_scm_rights_bsd44_way,
22079         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22080         check to a struct member probe.
22081         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22082         (sendfd, recvfd): Update preprocessor checks.
22083         * modules/passfd (Files): Reflect rename, and drop unused file.
22084         (Depends-on): Drop unused dependency.
22085
22086         passfd: allow compilation on mingw
22087         * modules/sys_socket (Depends-on): Add sys_uio.
22088         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22089         iovec and a minimal struct msghdr.
22090         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22091         * tests/test-sys_socket.c (main): Enhance test.
22092         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22093         guaranteed to provide what we need.
22094         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22095         * modules/passfd-tests (Depends-on): Add sys_wait.
22096         * tests/test-passfd.c (main): Skip test on mingw, for now.
22097         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22098         partial 'struct msghdr' implementation.
22099
22100         sys_uio: new module
22101         * modules/sys_uio: New module.
22102         * modules/sys_uio-tests: Likewise.
22103         * lib/sys_uio.in.h: New file.
22104         * m4/sys_uio_h.m4: Likewise.
22105         * tests/test-sys_uio.c: Likewise.
22106         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22107         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22108
22109 2011-04-20  Jim Meyering  <meyering@redhat.com>
22110
22111         useless-if-before-free: avoid false-positive
22112         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22113         disjunct so that it too requires a terminating ";".  Without that,
22114         this script would identify as useless one statement from gcc that
22115         was not:
22116           if (aligned_ptr)
22117             free (((void **) aligned_ptr) [-1]);
22118
22119 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22120
22121         doc: update users.txt.
22122         * users.txt: Add barcode.
22123
22124 2011-04-19  Bruno Haible  <bruno@clisp.org>
22125
22126         ioctl: Remove link dependency on native Windows.
22127         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22128         (gl_close_fn, gl_ioctl_fn): New types.
22129         (struct fd_hook): Renamed from struct close_hook. Change type of
22130         private_close_fn field. Add private_ioctl_fn field.
22131         (close_hook_fn): Add parameter for primary close method.
22132         (execute_close_hooks, execute_all_close_hooks): Likewise.
22133         (ioctl_hook_fn): New type.
22134         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22135         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22136         argument.
22137         (unregister_fd_hook): Renamed from unregister_close_hook.
22138         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22139         Don't include <unistd.h>.
22140         (close): Remove undef.
22141         (anchor): Update.
22142         (execute_close_hooks): Add argument for primary close method.
22143         (execute_all_close_hooks): Likewise.
22144         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22145         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22146         argument. Allow each argument to be NULL.
22147         (unregister_fd_hook): Renamed from unregister_close_hook.
22148         * lib/close.c (rpl_close): Pass 'close' function pointer to
22149         execute_all_close_hooks.
22150         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22151         (primary_ioctl): New function.
22152         (ioctl): Don't call ioctlsocket here. Instead, call
22153         execute_all_ioctl_hooks.
22154         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22155         close method.
22156         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22157         (fd_sockets_hook): Renamed from close_sockets_hook.
22158         (gl_sockets_startup, gl_sockets_cleanup): Update.
22159         * modules/fd-hook: Renamed from modules/close-hook. Update.
22160         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22161         * modules/sockets (Depends-on): Likewise.
22162         * modules/ioctl (Depends-on): Add fd-hook.
22163         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22164         GNULIB_SOCKET.
22165
22166 2011-04-19  Bruno Haible  <bruno@clisp.org>
22167
22168         Move the support of O_NONBLOCK in open() to the 'open' module.
22169         * modules/nonblocking (Depends-on): Remove 'open'.
22170         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22171         gl_cv_have_open_O_NONBLOCK.
22172         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22173         O_NONBLOCK support.
22174         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22175
22176 2011-04-17  Bruno Haible  <bruno@clisp.org>
22177
22178         pipe2: Simplify code.
22179         * lib/pipe2.c (pipe2): Reduce code duplication.
22180
22181 2011-04-17  Bruno Haible  <bruno@clisp.org>
22182
22183         nonblocking: Add comment.
22184         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22185
22186 2011-04-17  Bruno Haible  <bruno@clisp.org>
22187
22188         nonblocking: Add tests for sockets.
22189         * tests/test-nonblocking-socket.sh: New file.
22190         * tests/test-nonblocking-socket-main.c: New file.
22191         * tests/test-nonblocking-socket-child.c: New file.
22192         * tests/test-nonblocking-socket.h: New file.
22193         * tests/socket-server.h: New file.
22194         * tests/socket-client.h: New file.
22195         * modules/nonblocking-socket-tests: New file.
22196         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22197
22198 2011-04-17  Bruno Haible  <bruno@clisp.org>
22199
22200         nonblocking: Add tests for pipes.
22201         * tests/test-nonblocking-pipe.sh: New file.
22202         * tests/test-nonblocking-pipe-main.c: New file.
22203         * tests/test-nonblocking-pipe-child.c: New file.
22204         * tests/test-nonblocking-pipe.h: New file.
22205         * tests/test-nonblocking-writer.h: New file.
22206         * tests/test-nonblocking-reader.h: New file.
22207         * tests/test-nonblocking-misc.h: New file.
22208         * modules/nonblocking-pipe-tests: New file.
22209         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22210
22211 2011-04-16  Bruno Haible  <bruno@clisp.org>
22212
22213         gettext: Clarify the needed programmer actions.
22214         * modules/gettext (Notice): New field.
22215         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22216
22217 2011-04-16  Bruno Haible  <bruno@clisp.org>
22218
22219         strchrnul: Tweak last commit.
22220         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22221         bug.
22222         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22223         as in _GL_FUNCDECL_SYS.
22224         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22225         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22226
22227 2011-04-15  Eric Blake  <eblake@redhat.com>
22228
22229         strchrnul: work around cygwin bug
22230         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22231         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22233         * modules/string (Makefile.am): Substitute it.
22234         * lib/string.in.h (strchrnul): Use it.
22235
22236 2011-04-15  Bruno Haible  <bruno@clisp.org>
22237
22238         Don't require lib/stdio-write.c when only module 'stdio' is used.
22239         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22240         invocation.
22241         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22242
22243 2011-04-14  Bruno Haible  <bruno@clisp.org>
22244
22245         Support non-blocking pipe I/O in read() on native Windows.
22246         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22247         (read): New declaration.
22248         * lib/read.c: New file.
22249         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22250         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22251         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22252         vscanf): New declarations.
22253         * lib/stdio-read.c: New file.
22254         * m4/read.m4: New file.
22255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22256         REPLACE_READ.
22257         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22258         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22259         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22260         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22261         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22262         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22263         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22264         * modules/read: New file.
22265         * modules/nonblocking (Files): Add lib/stdio-read.c.
22266         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22267         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22268         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22269         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22270         * modules/pread (Depends-on): Add read.
22271         * modules/safe-read (Depends-on): Likewise.
22272         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22273         gets, scanf, vfscanf, vscanf): Verify signatures.
22274         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22275         problem with non-blocking pipes.
22276         * doc/posix-functions/fgetc.texi: Likewise.
22277         * doc/posix-functions/fgets.texi: Likewise.
22278         * doc/posix-functions/fread.texi: Likewise.
22279         * doc/posix-functions/fscanf.texi: Likewise.
22280         * doc/posix-functions/getc.texi: Likewise.
22281         * doc/posix-functions/getchar.texi: Likewise.
22282         * doc/posix-functions/gets.texi: Likewise.
22283         * doc/posix-functions/scanf.texi: Likewise.
22284         * doc/posix-functions/vfscanf.texi: Likewise.
22285         * doc/posix-functions/vscanf.texi: Likewise.
22286
22287 2011-04-14  Bruno Haible  <bruno@clisp.org>
22288
22289         Support non-blocking pipe I/O in write() on native Windows.
22290         * lib/write.c (rpl_write): Split a write request that failed merely
22291         because the byte count was larger than the pipe buffer's size.
22292         * doc/posix-functions/write.texi: Mention the problem with large byte
22293         counts.
22294
22295 2011-04-14  Bruno Haible  <bruno@clisp.org>
22296
22297         wchar: Ensure that wchar_t gets defined on uClibc.
22298         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22299         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22300
22301 2011-04-13  Bruno Haible  <bruno@clisp.org>
22302
22303         safe-write, full-read: Avoid unnecessary compilation units.
22304         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22305         (Depends-on): Remove safe-read. Add ssize_t.
22306         * modules/full-read (Files): Add lib/full-write.c.
22307         (Depends-on): Add full-write.
22308
22309 2011-04-13  Bruno Haible  <bruno@clisp.org>
22310
22311         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22312         * modules/pwrite (Depends-on): Add 'write'.
22313
22314 2011-04-13  Bruno Haible  <bruno@clisp.org>
22315
22316         Support non-blocking pipe I/O in write() on native Windows.
22317         * lib/unistd.in.h (write): Enable replacement also if
22318         GNULIB_UNISTD_H_NONBLOCKING is 1.
22319         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22320         (rpl_write): When failing to write on a non-blocking pipe, change
22321         errno from ENOSPC to EAGAIN.
22322         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22323         putchar, puts, vfprintf, vprintf): Enable replacement also if
22324         GNULIB_STDIO_H_NONBLOCKING is 1.
22325         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22326         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22327         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22328         CALL_WITH_SIGPIPE_EMULATION.
22329         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22330         * m4/nonblocking.m4: New file.
22331         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22332         for non-blocking I/O support.
22333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22334         GNULIB_UNISTD_H_NONBLOCKING.
22335         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22336         required for non-blocking I/O support.
22337         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22338         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22339         lib/stdio-write.c, m4/asm-underscore.m4.
22340         (Depends-on): Add stdio, unistd.
22341         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22342         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22343         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22344         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22345         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22346         problem with non-blocking pipes.
22347         * doc/posix-functions/fputc.texi: Likewise.
22348         * doc/posix-functions/fputs.texi: Likewise.
22349         * doc/posix-functions/fwrite.texi: Likewise.
22350         * doc/posix-functions/printf.texi: Likewise.
22351         * doc/posix-functions/putc.texi: Likewise.
22352         * doc/posix-functions/putchar.texi: Likewise.
22353         * doc/posix-functions/puts.texi: Likewise.
22354         * doc/posix-functions/vfprintf.texi: Likewise.
22355         * doc/posix-functions/vprintf.texi: Likewise.
22356         * doc/posix-functions/write.texi: Likewise.
22357
22358 2011-04-10  Jim Meyering  <meyering@redhat.com>
22359
22360         maint.mk: prohibit doubled words
22361         Detect them also when they're separated by a newline.
22362         There are 3 ways to customize it:
22363           - disable the test on a per file basis, as usual with rules using
22364             $(VC_LIST_EXCEPT)
22365           - replace the default doubled-word-selecting regexp (affects all files)
22366           - ignore a particular file-vs-doubled-word match
22367         I nearly used that last one to ignore the "is is" match in
22368         coreutils' NEWS file, since the text was "ls -is is ..."
22369         To do that, I would have added this line to cfg.mk:
22370           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22371         but it would have ignored any "is is" match in NEWS.
22372         Low probability, but still...
22373         Instead, I changed the text, slightly:
22374           -  ls -is is now consistent with ls -lis in ignoring values returned
22375           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22376         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22377         (prohibit_doubled_word_): Define.
22378         (sc_prohibit_doubled_word): New rule.
22379         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22380
22381 2011-04-10  Jim Meyering  <meyering@redhat.com>
22382
22383         maint: fix doubled-word typo in comment
22384         * m4/gethostname.m4: s/is is/it is/
22385         * m4/getdomainname.m4: Likewise.
22386
22387 2011-04-10  Jim Meyering  <meyering@redhat.com>
22388
22389         maint: remove doubled word: s/it it/it/
22390         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22391
22392 2011-04-10  Jim Meyering  <meyering@redhat.com>
22393
22394         maint.mk: remove useless semicolon and backslash
22395         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22396         semicolon and backslash.
22397
22398 2011-04-10  Bruno Haible  <bruno@clisp.org>
22399
22400         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22401         * modules/stdint-tests (Depends-on): Add wchar.
22402
22403 2011-04-10  Jim Meyering  <meyering@redhat.com>
22404
22405         maint: remove doubled words in comments, e.g., s/a a/a/
22406         * lib/strptime.c (day_of_the_week): s/the the/the/
22407         * tests/test-chown.h (test_chown): s/a a/a/
22408
22409         test-chown.h: correct a cast
22410         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22411         when the destination is a stat.st_gid.
22412
22413 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22414
22415         getaddrinfo: Fix test for sa_len member.
22416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22417         include <sys/types.h> before <sys/socket.h>.
22418
22419 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22420
22421         maint: change "can not" to "cannot"
22422         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22423         boundaries.
22424
22425 2011-04-09  Jim Meyering  <meyering@redhat.com>
22426
22427         maint: change "a a" to "a"
22428         * tests/test-lchown.h (test_lchown): s/a a/a/
22429
22430         maint.mk: prohibit \<the the\>
22431         * top/maint.mk (sc_prohibit_the_the): New rule.
22432
22433         maint: fix "the the" in comment
22434         * lib/count-one-bits.h: s/the the/the/
22435
22436         maint: change "can not" to "cannot"
22437         But do not change the occurrences in maintain.texi or in
22438         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22439         * doc/gnulib-tool.texi: s/can not/cannot/
22440         * doc/posix-functions/accept.texi (accept): Likewise.
22441         * doc/posix-functions/socket.texi (socket): Likewise.
22442         * lib/mbrtowc.c: Likewise.
22443
22444         maint.mk: prohibit use of "can not"
22445         * top/maint.mk (sc_prohibit_can_not): New rule.
22446         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22447
22448 2011-04-09  Bruno Haible  <bruno@clisp.org>
22449
22450         careadlinkat: Guard against misuse of careadlinkatcwd.
22451         * lib/careadlinkat.c: Include <stdlib.h>.
22452         (careadlinkatcwd): Check that the fd argument is as expected.
22453
22454 2011-04-09  Bruno Haible  <bruno@clisp.org>
22455
22456         careadlinkat: Use common coding style.
22457         * lib/careadlinkat.c: Move gnulib includes after system includes.
22458
22459 2011-04-09  Bruno Haible  <bruno@clisp.org>
22460
22461         careadlinkat: Clarify specification.
22462         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22463         (careadlinkatcwd): Add comment.
22464         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22465
22466 2011-04-09  Bruno Haible  <bruno@clisp.org>
22467
22468         areadlinkat: Avoid link error on many platforms.
22469         * modules/areadlinkat (Depends-on): Add areadlink.
22470
22471 2011-04-09  Bruno Haible  <bruno@clisp.org>
22472
22473         allocator, careadlinkat: Fix double-inclusion guard.
22474         * lib/allocator.h: Fix double-inclusion guard.
22475         * lib/careadlinkat.h: Likewise.
22476
22477 2011-04-09  Bruno Haible  <bruno@clisp.org>
22478
22479         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22480         * lib/relocwrapper.c: Update dependencies hierarchy.
22481         * build-aux/install-reloc: Update list of files to be compiled.
22482         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22483         lib/allocator.[hc].
22484
22485 2011-04-08  Eric Blake  <eblake@redhat.com>
22486
22487         strftime: silence gnulib-tool warning
22488         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22489
22490 2011-04-08  Bruno Haible  <bruno@clisp.org>
22491
22492         verify: Fix syntax error with GCC 4.6 in C++ mode.
22493         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22494         (HAVE_STATIC_ASSERT): New macro.
22495         (verify_true, verify): Use 'static_assert' if it is supported and
22496         '_Static_assert' is not supported.
22497
22498 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         allocator: New module.
22501         * modules/allocator, lib/allocator.c: New files.
22502         * lib/allocator.h (stdlib_allocator): New decl.
22503         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22504         Remove.  Do not include <stdlib.h>.
22505         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22506         * modules/careadlinkat (Files): Remove lib/allocator.h.
22507         (Depends-on): Add allocator.
22508
22509         stdlib: let modules use system malloc, realloc
22510         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22511         if !_GL_USE_STDLIB_ALLOC.
22512         (malloc, realloc): Limit this change to a smaller scope.
22513
22514         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22515         (malloc, realloc): Don't #undef; no longer needed.
22516         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22517         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22518         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22519         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22520         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22521         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22522         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22523         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22524
22525         careadlinkat: rename members to avoid problem
22526         * lib/allocator.h (struct allocator): Rename members from
22527         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22528         and realloc are #define'd.  Reported by Eric Blake in
22529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22530         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22531
22532 2011-04-08  Eric Blake  <eblake@redhat.com>
22533
22534         nonblocking: reduce dependency
22535         * tests/test-nonblocking.c: Only test sockets when in use.
22536         * modules/nonblocking-tests (Depends-on): Drop socket.
22537         (Makefile.am): Link even if sockets are not present.
22538         * modules/pipe2-tests (Makefile.am): Likewise.
22539         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22540
22541         pipe2: fix O_NONBLOCK support on mingw
22542         * modules/pipe2 (Depends-on): Add nonblocking.
22543         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22544         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22545         * tests/test-nonblocking.c (main): Likewise.
22546         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22547
22548         fcntl-h: fix O_ACCMODE on cygwin
22549         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22550         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22551
22552         pipe-filter: drop O_NONBLOCK workarounds
22553         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22554         * modules/pipe-filter-ii (Depends-on): Likewise.
22555         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22556
22557         nonblocking: provide O_NONBLOCK for mingw
22558         * modules/nonblocking (Depends-on): Add open.
22559         (configure.ac): Set new witness macro.
22560         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22561         * modules/fcntl-h (Makefile.am): Substitute it.
22562         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22563         nonblocking module is in use.
22564         * lib/nonblocking.c: Adjust portability test.
22565         * lib/open.c (open): Don't let native open see gnulib flag.
22566         * tests/test-fcntl-h.c (main): Enhance test.
22567         * tests/test-open.h (test_open): Likewise.
22568         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22569
22570         careadlinkat: fix compilation error on mingw
22571         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22572         within struct allocator.
22573
22574 2011-04-06  Eric Blake  <eblake@redhat.com>
22575
22576         binary-io: relicense under LGPLv2+
22577         * modules/binary-io (License): Relax to LGPLv2+.
22578         Requested for libvirt, and required by pipe2.
22579
22580 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22581
22582         verify: use _Static_assert if available
22583         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22584         (verify_true, verify): Use it if available.  This generates better
22585         diagnostics with GCC 4.6.0 and later.
22586
22587 2011-04-05  Bruno Haible  <bruno@clisp.org>
22588
22589         Remove leftover generated .h files after config.status changed.
22590
22591         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22592         GL_GENERATE_ALLOCA_H.
22593         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22594         GL_GENERATE_ALLOCA_H evaluates to false.
22595
22596         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22597         GL_GENERATE_ARGZ_H.
22598         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22599         evaluates to false.
22600
22601         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22602         GL_GENERATE_BYTESWAP_H.
22603         * modules/byteswap (Makefile.am): Remove byteswap.h if
22604         GL_GENERATE_BYTESWAP_H evaluates to false.
22605
22606         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22607         GL_GENERATE_ERRNO_H.
22608         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22609         evaluates to false.
22610
22611         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22612         GL_GENERATE_FLOAT_H.
22613         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22614         evaluates to false.
22615
22616         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22617         GL_GENERATE_FNMATCH_H.
22618         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22619         GL_GENERATE_FNMATCH_H evaluates to false.
22620
22621         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22622         GL_GENERATE_GLOB_H.
22623         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22624         evaluates to false.
22625
22626         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22627         automake conditional GL_GENERATE_ICONV_H.
22628         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22629         evaluates to false.
22630
22631         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22632         GL_GENERATE_NETINET_IN_H.
22633         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22634         GL_GENERATE_NETINET_IN_H evaluates to false.
22635
22636         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22637         conditional GL_GENERATE_PTHREAD_H.
22638         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22639         * modules/pthread (Makefile.am): Remove pthread.h if
22640         GL_GENERATE_PTHREAD_H evaluates to false.
22641
22642         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22643         GL_GENERATE_SCHED_H.
22644         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22645         evaluates to false.
22646
22647         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22648         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22649         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22650         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22651
22652         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22653         GL_GENERATE_STDARG_H.
22654         * modules/stdarg (Makefile.am): Remove stdarg.h if
22655         GL_GENERATE_STDARG_H evaluates to false.
22656
22657         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22658         GL_GENERATE_STDBOOL_H.
22659         * modules/stdbool (Makefile.am): Remove stdbool.h if
22660         GL_GENERATE_STDBOOL_H evaluates to false.
22661
22662         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22663         conditional GL_GENERATE_STDDEF_H.
22664         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22665         * modules/stddef (Makefile.am): Remove stddef.h if
22666         GL_GENERATE_STDDEF_H evaluates to false.
22667
22668         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22669         GL_GENERATE_STDINT_H.
22670         * modules/stdint (Makefile.am): Remove stdint.h if
22671         GL_GENERATE_STDINT_H evaluates to false.
22672
22673         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22674         GL_GENERATE_SYSEXITS_H.
22675         * modules/sysexits (Makefile.am): Remove sysexits.h if
22676         GL_GENERATE_SYSEXITS_H evaluates to false.
22677
22678         Reported by Karl Berry and Ralf Wildenhues.
22679
22680 2011-04-05  Bruno Haible  <bruno@clisp.org>
22681
22682         Ensure to rebuild generated .h files when config.status has changed.
22683         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22684         config.status.
22685         * modules/ctype (Makefile.am): Likewise.
22686         * modules/dirent (Makefile.am): Likewise.
22687         * modules/errno (Makefile.am): Likewise.
22688         * modules/fcntl-h (Makefile.am): Likewise.
22689         * modules/float (Makefile.am): Likewise.
22690         * modules/getopt-posix (Makefile.am): Likewise.
22691         * modules/glob (Makefile.am): Likewise.
22692         * modules/iconv-h (Makefile.am): Likewise.
22693         * modules/inttypes (Makefile.am): Likewise.
22694         * modules/langinfo (Makefile.am): Likewise.
22695         * modules/locale (Makefile.am): Likewise.
22696         * modules/math (Makefile.am): Likewise.
22697         * modules/netdb (Makefile.am): Likewise.
22698         * modules/netinet_in (Makefile.am): Likewise.
22699         * modules/poll-h (Makefile.am): Likewise.
22700         * modules/pthread (Makefile.am): Likewise.
22701         * modules/pty (Makefile.am): Likewise.
22702         * modules/sched (Makefile.am): Likewise.
22703         * modules/search (Makefile.am): Likewise.
22704         * modules/selinux-h (Makefile.am): Likewise.
22705         * modules/signal (Makefile.am): Likewise.
22706         * modules/spawn (Makefile.am): Likewise.
22707         * modules/stdarg (Makefile.am): Likewise.
22708         * modules/stdbool (Makefile.am): Likewise.
22709         * modules/stddef (Makefile.am): Likewise.
22710         * modules/stdint (Makefile.am): Likewise.
22711         * modules/stdio (Makefile.am): Likewise.
22712         * modules/stdlib (Makefile.am): Likewise.
22713         * modules/string (Makefile.am): Likewise.
22714         * modules/strings (Makefile.am): Likewise.
22715         * modules/sys_file (Makefile.am): Likewise.
22716         * modules/sys_ioctl (Makefile.am): Likewise.
22717         * modules/sys_select (Makefile.am): Likewise.
22718         * modules/sys_socket (Makefile.am): Likewise.
22719         * modules/sys_stat (Makefile.am): Likewise.
22720         * modules/sys_time (Makefile.am): Likewise.
22721         * modules/sys_times (Makefile.am): Likewise.
22722         * modules/sys_utsname (Makefile.am): Likewise.
22723         * modules/sys_wait (Makefile.am): Likewise.
22724         * modules/sysexits (Makefile.am): Likewise.
22725         * modules/termios (Makefile.am): Likewise.
22726         * modules/time (Makefile.am): Likewise.
22727         * modules/unistd (Makefile.am): Likewise.
22728         * modules/wchar (Makefile.am): Likewise.
22729         * modules/wctype-h (Makefile.am): Likewise.
22730         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22731
22732 2011-04-05  Bruno Haible  <bruno@clisp.org>
22733
22734         pipe2: Relicense under LGPLv2+.
22735         * modules/pipe2 (License): Change to LGPLv2+.
22736         Requested by Eric Blake, for libvirt.
22737
22738 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22739
22740         bootstrap: compute gnulib_extra_files after updating build_aux
22741         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22742         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22743
22744 2011-04-05  Eric Blake  <eblake@redhat.com>
22745
22746         bootstrap: preserve git whitelist item sorting
22747         * build-aux/bootstrap (sort_patterns): New function.
22748         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22749
22750 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22751
22752         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22753         sc_space_tab check.
22754
22755 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22756
22757         areadlink, areadlinkat: rewrite in terms of careadlinkat
22758         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22759         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22760         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22761         (malloc, realloc): Remove #undefs.
22762         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22763         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22764         readlink, ssize_t, stdint, unistd.
22765         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22766         areadlink, stdint.
22767
22768         careadlinkat: new module
22769         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22770         * modules/careadlinkat: New files, written by me with
22771         a review and feedback from Ben Pfaff in
22772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22773
22774 2011-04-01  Bruno Haible  <bruno@clisp.org>
22775
22776         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22777         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22778         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22779         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22780         Reported by Bruce Korb <bruce.korb@gmail.com>.
22781
22782 2011-04-01  Bruno Haible  <bruno@clisp.org>
22783
22784         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22785         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22786         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22787         * modules/wcpcpy (Depends-on): Add extensions.
22788         * modules/wcpncpy (Depends-on): Likewise.
22789         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22790         systems.
22791         * doc/posix-functions/wcpncpy.texi: Likewise.
22792         * doc/posix-functions/wcwidth.texi: Likewise.
22793
22794 2011-03-31  Eric Blake  <eblake@redhat.com>
22795
22796         nonblocking: fix mingw test failures
22797         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22798         non-blocking flag on regular file.
22799         (get_nonblocking_flag): Set errno on invalid fd.
22800         * tests/test-nonblocking.c (main): Avoid test failure on
22801         directories if fchdir is not active.
22802         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22803
22804 2011-03-31  Bruno Haible  <bruno@clisp.org>
22805
22806         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22807         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22808         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22809         Reported by Simon Josefsson <simon@josefsson.org>.
22810
22811 2011-03-31  Bruno Haible  <bruno@clisp.org>
22812         and Eric Blake  <eblake@redhat.com>
22813
22814         nonblocking: new module
22815         * modules/nonblocking: New module.
22816         * modules/nonblocking-tests: Likewise.
22817         * lib/nonblocking.h: New file.
22818         * lib/nonblocking.c: Likewise.
22819         * tests/test-nonblocking.c: New test.
22820         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22821
22822 2011-03-30  Bruno Haible  <bruno@clisp.org>
22823
22824         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22825         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22826         instead of 'printf' format for GCC >= 4.4.
22827         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22828         (fprintf, printf, vfprintf, vprintf): Declare with
22829         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22830         the system's vfprintf() function.
22831         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22832
22833 2011-03-30  Eric Blake  <eblake@redhat.com>
22834
22835         passfd: fix scoping bug
22836         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22837         before sendmsg/recvmsg.
22838
22839         passfd: standardize coding conventions
22840         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22841         can be learned at compile time.
22842         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22843         ifdefs.
22844         (sendfd, recvfd): Follow gnulib code conventions.
22845
22846         passfd: fix incorrect sendmsg arguments
22847         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22848         incorrect msg_controllen value.
22849         * modules/passfd-tests (Depends-on): Check for alarm.
22850         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22851         Reported by Bastien ROUCARIES.
22852
22853 2011-03-30  Bruno Haible  <bruno@clisp.org>
22854
22855         c-strcasestr: Relicense under LGPLv2+.
22856         * modules/c-strcasestr (License): Change to LGPLv2+.
22857         Requested by Eric Blake, for libvirt.
22858
22859 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22860
22861         * users.txt: Add libidn2.  Fix libtasn1 link.
22862
22863 2011-03-30  Jim Meyering  <meyering@redhat.com>
22864
22865         tests: readlink* ("",... fails with EINVAL on newer kernels
22866         readlink and readlinkat have typically failed with ENOENT for
22867         the invalid, empty file name,  "".  However, with the advent
22868         of linux-2.6.39, they fail with EINVAL.
22869         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22870         when operating on the empty file name.
22871         * tests/test-readlink.h (test_readlink): Likewise.
22872
22873 2011-03-29  Bruno Haible  <bruno@clisp.org>
22874
22875         Relicense some modules under LGPLv2+, for libidn2.
22876         * modules/array-mergesort (License): Change to LGPLv2+.
22877         * modules/c-strcaseeq (License): Likewise.
22878         * modules/striconveh (License): Likewise.
22879         * modules/striconveha (License): Likewise.
22880         * modules/uniconv/base (License): Likewise.
22881         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22882         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22883         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22884         * modules/unictype/base (License): Likewise.
22885         * modules/unictype/bidiclass-of (License): Likewise.
22886         * modules/unictype/category-M (License): Likewise.
22887         * modules/unictype/category-none (License): Likewise.
22888         * modules/unictype/category-of (License): Likewise.
22889         * modules/unictype/category-test (License): Likewise.
22890         * modules/unictype/category-test-withtable (License): Likewise.
22891         * modules/unictype/combining-class (License): Likewise.
22892         * modules/unictype/joiningtype-of (License): Likewise.
22893         * modules/unictype/scripts (License): Likewise.
22894         * modules/uninorm/base (License): Likewise.
22895         * modules/uninorm/canonical-decomposition (License): Likewise.
22896         * modules/uninorm/composition (License): Likewise.
22897         * modules/uninorm/decompose-internal (License): Likewise.
22898         * modules/uninorm/decomposition-table (License): Likewise.
22899         * modules/uninorm/nfc (License): Likewise.
22900         * modules/uninorm/nfd (License): Likewise.
22901         * modules/uninorm/u32-normalize (License): Likewise.
22902         * modules/unistr/base (License): Likewise.
22903         * modules/unistr/u32-cpy (License): Likewise.
22904         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22905         * modules/unistr/u32-to-u8 (License): Likewise.
22906         * modules/unistr/u32-uctomb (License): Likewise.
22907         * modules/unistr/u8-check (License): Likewise.
22908         * modules/unistr/u8-mblen (License): Likewise.
22909         * modules/unistr/u8-mbtouc (License): Likewise.
22910         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22911         * modules/unistr/u8-mbtoucr (License): Likewise.
22912         * modules/unistr/u8-prev (License): Likewise.
22913         * modules/unistr/u8-strlen (License): Likewise.
22914         * modules/unistr/u8-to-u32 (License): Likewise.
22915         * modules/unistr/u8-uctomb (License): Likewise.
22916         * modules/unitypes (License): Likewise.
22917         Requested by Simon Josefsson.
22918
22919 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22920
22921         lib-symbol-visibility: Add a notice.
22922         * modules/lib-symbol-visibility (Notice): New field.
22923
22924 2011-03-29  Bruno Haible  <bruno@clisp.org>
22925
22926         getaddrinfo: Doc fix.
22927         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22928         section "fixed in Gnulib".
22929
22930 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22931
22932         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22933         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22934
22935 2011-03-26  Bruno Haible  <bruno@clisp.org>
22936
22937         unictype/property-byname: Reduce the number of load-time relocations.
22938         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22939         (UC_PROPERTY_INDEX_*): New enumeration values.
22940         (uc_property_byname): Convert an index from the lookup table to an
22941         uc_property_t.
22942         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22943         values.
22944
22945 2011-03-26  Bruno Haible  <bruno@clisp.org>
22946
22947         unictype/property-byname: Allow omitted word separators and aliases.
22948         * lib/unictype/pr_byname.gperf: Add property names without word
22949         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22950         for 'space'.
22951
22952 2011-03-26  Bruno Haible  <bruno@clisp.org>
22953
22954         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22955         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22956         also hyphens to space.
22957         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22958         without spaces.
22959         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22960
22961 2011-03-26  Bruno Haible  <bruno@clisp.org>
22962
22963         unictype/joiningtype-byname: Recognize long names as well.
22964         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22965         a long name.
22966         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22967         unictype/joiningtype_byname.h.
22968         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22969         * lib/unictype/joiningtype_byname.gperf: New file.
22970         * modules/unictype/joiningtype-byname (Files): Add
22971         lib/unictype/joiningtype_byname.gperf.
22972         (Depends-on): Add gperf.
22973         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22974         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22975         long names.
22976
22977         Tests for module 'unictype/joiningtype-longname'.
22978         * modules/unictype/joiningtype-longname-tests: New file.
22979         * tests/unictype/test-joiningtype_longname.c: New file.
22980
22981         New module 'unictype/joiningtype-longname'.
22982         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22983         * lib/unictype/joiningtype_longname.c: New file.
22984         * modules/unictype/joiningtype-longname: New file.
22985         * modules/unictype/joiningtype-all (Depends-on): Add
22986         unictype/joiningtype-longname.
22987
22988 2011-03-26  Bruno Haible  <bruno@clisp.org>
22989
22990         unictype/bidiclass-byname: Recognize long names as well.
22991         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22992         name.
22993         * lib/unictype/bidi_byname.c: Include <string.h>,
22994         unictype/bidi_byname.h.
22995         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22996         * lib/unictype/bidi_byname.gperf: New file.
22997         * modules/unictype/bidiclass-byname (Files): Add
22998         lib/unictype/bidi_byname.gperf.
22999         (Depends-on): Add gperf.
23000         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23001         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23002         long names.
23003
23004         Tests for module 'unictype/bidiclass-longname'.
23005         * modules/unictype/bidiclass-longname-tests: New file.
23006         * tests/unictype/test-bidi_longname.c: New file.
23007
23008         New module 'unictype/bidiclass-longname'.
23009         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23010         * lib/unictype/bidi_longname.c: New file.
23011         * modules/unictype/bidiclass-longname: New file.
23012         * modules/unictype/bidiclass-all (Depends-on): Add
23013         unictype/bidiclass-longname.
23014
23015 2011-03-26  Bruno Haible  <bruno@clisp.org>
23016
23017         unictype/bidi*: Rename modules.
23018         * modules/unictype/bidiclass-all: Renamed from
23019         modules/unictype/bidicategory-all.
23020         * modules/unictype/bidiclass-name: Renamed from
23021         modules/unictype/bidiclass-name.
23022         (Description): Update.
23023         * modules/unictype/bidiclass-name-tests: Renamed from
23024         modules/unictype/bidicategory-name-tests.
23025         * modules/unictype/bidiclass-byname: Renamed from
23026         modules/unictype/bidicategory-byname.
23027         (Description): Update.
23028         * modules/unictype/bidiclass-byname-tests: Renamed from
23029         modules/unictype/bidicategory-byname-tests.
23030         * modules/unictype/bidiclass-of: Renamed from
23031         modules/unictype/bidicategory-of.
23032         (Description): Update.
23033         * modules/unictype/bidiclass-of-tests: Renamed from
23034         modules/unictype/bidicategory-of-tests.
23035         * modules/unictype/bidiclass-test: Renamed from
23036         modules/unictype/bidicategory-test.
23037         (Description): Update.
23038         * modules/unictype/bidiclass-test-tests: Renamed from
23039         modules/unictype/bidicategory-test-tests.
23040         * modules/unictype/bidicategory-all: New file, a simple redirection.
23041         * modules/unictype/bidicategory-name: Likewise.
23042         * modules/unictype/bidicategory-byname: Likewise.
23043         * modules/unictype/bidicategory-of: Likewise.
23044         * modules/unictype/bidicategory-test: Likewise.
23045         * modules/unictype/property-bidi-* (Dependencies): Update.
23046         * lib/unictype/bidi_*.c: Update comment.
23047
23048 2011-03-26  Bruno Haible  <bruno@clisp.org>
23049
23050         unictype/bidi*: Rename functions, part 2.
23051         * modules/unictype/bidicategory-name (configure.ac): Update required
23052         libunistring version.
23053         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23054
23055 2011-03-25  Bruno Haible  <bruno@clisp.org>
23056
23057         New module 'unictype/combining-class-all'.
23058         * modules/unictype/combining-class-all: New file.
23059
23060         Tests for module 'unictype/combining-class-byname'.
23061         * modules/unictype/combining-class-byname-tests: New file.
23062         * tests/unictype/test-combiningclass_byname.c: New file.
23063
23064         New module 'unictype/combining-class-byname'.
23065         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23066         * lib/unictype/combiningclass_byname.c: New file.
23067         * lib/unictype/combiningclass_byname.gperf: New file.
23068         * modules/unictype/combining-class-byname: New file.
23069
23070         Tests for module 'unictype/combining-class-longname'.
23071         * modules/unictype/combining-class-longname-tests: New file.
23072         * tests/unictype/test-combiningclass_longname.c: New file.
23073
23074         New module 'unictype/combining-class-longname'.
23075         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23076         * lib/unictype/combiningclass_longname.c: New file.
23077         * modules/unictype/combining-class-longname: New file.
23078
23079         Tests for module 'unictype/combining-class-name'.
23080         * modules/unictype/combining-class-name-tests: New file.
23081         * tests/unictype/test-combiningclass_name.c: New file.
23082
23083         New module 'unictype/combining-class-name'.
23084         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23085         * lib/unictype/combiningclass_name.c: New file.
23086         * modules/unictype/combining-class-name: New file.
23087
23088 2011-03-25  Bruno Haible  <bruno@clisp.org>
23089
23090         unictype/combining-class: Rename source files.
23091         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23092         of unictype/combining.h.
23093         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23094         Update.
23095         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23096         * modules/unictype/combining-class (Description): Fix.
23097         (Files, Makefile.am): Update.
23098         * tests/unictype/test-combiningclass.c: Renamed from
23099         tests/unictype/test-combining.c.
23100         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23101
23102 2011-03-25  Bruno Haible  <bruno@clisp.org>
23103
23104         unictype: Update list of canonical combining classes.
23105         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23106
23107 2011-03-25  Bruno Haible  <bruno@clisp.org>
23108
23109         unictype/category-byname: Recognize long names as well.
23110         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23111         a long name.
23112         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23113         unictype/categ_byname.h.
23114         (UC_CATEGORY_INDEX_*): New enumeration values.
23115         (uc_general_category_byname): Use uc_general_category_lookup and
23116         convert from index to value.
23117         * lib/unictype/categ_byname.gperf: New file.
23118         * modules/unictype/category-byname (Files): Add
23119         lib/unictype/categ_byname.gperf.
23120         (Depends-on): Add gperf.
23121         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23122         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23123         long names.
23124
23125         Tests for module 'unictype/category-longname'.
23126         * modules/unictype/category-longname-tests: New file.
23127         * tests/unictype/test-categ_longname.c: New file.
23128
23129         New module 'unictype/category-longname'.
23130         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23131         * lib/unictype/categ_longname.c: New file.
23132         * modules/unictype/category-longname: New file.
23133         * modules/unictype/category-all (Depends-on): Add it.
23134
23135 2011-03-25  Bruno Haible  <bruno@clisp.org>
23136
23137         Tests for module 'unictype/category-LC'.
23138         * modules/unictype/category-LC-tests: New file.
23139         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23140
23141         New module 'unictype/category-LC'.
23142         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23143         (UC_CATEGORY_LC): New declaration.
23144         (UC_CASED_LETTER): New macro.
23145         * lib/gen-uni-tables.c (is_category_LC): New function.
23146         (output_categories): Also handle category LC.
23147         (UC_CATEGORY_MASK_LC): New enumeration value.
23148         (general_category_byname): Also handle category LC.
23149         * lib/unictype/categ_LC.c: New file.
23150         * lib/unictype/categ_LC.h: New file, automatically generated.
23151         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23152         category LC.
23153         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23154         * modules/unictype/category-LC: New file.
23155         * modules/unictype/category-byname (Depends-on): Add
23156         unictype/category-LC.
23157         * modules/unictype/category-all (Depends-on): Likewise.
23158
23159 2011-03-25  Eric Blake  <eblake@redhat.com>
23160
23161         xmalloc: revert yesterday's regression
23162         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23163         realloc's underlying behavior (allowing allocation of zero-size
23164         objects, especially if malloc-gnu is also in use).
23165
23166 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23167
23168         maint.mk: add missing version to VC-tag
23169         * top/maint.mk: git tag was missing actual tag name; add it.
23170
23171         valgrind: do leak checking, and exit with code 1 on error (not 0)
23172         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23173         to VALGRIND.
23174
23175 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23176
23177         posix-modules: say what it does.
23178         * posix-modules: Add a line to the --help output saying what it does.
23179
23180 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23181
23182         xmalloc: Do not leak if underlying realloc is C99 compatible.
23183         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23184         This avoids a leak on C99-based systems.  See
23185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23186
23187 2011-03-24  Eric Blake  <eblake@redhat.com>
23188
23189         realloc: document portability problem
23190         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23191         passing 0 size to realloc.
23192
23193 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23194
23195         doc: update users.txt
23196         * users.txt: Add cvsps, tmpwatch
23197
23198 2011-03-23  Matt Rice  <ratmice@gmail.com>
23199
23200         doc: update users.txt
23201         * users.txt: Add gdb.
23202
23203 2011-03-23  Jim Meyering  <meyering@redhat.com>
23204
23205         doc: update users.txt
23206         Looking through matches up to the following URL (there are still
23207         several more pages), I found several projects that use gnulib:
23208         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23209         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23210         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23211
23212 2011-03-22  Bruno Haible  <bruno@clisp.org>
23213
23214         unictype/bidi*: Rename functions.
23215         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23216         uc_bidi_class, uc_is_bidi_class): New declarations.
23217         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23218         uc_bidi_category_byname.
23219         (uc_bidi_category_byname): New function.
23220         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23221         u_bidi_category_name.
23222         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23223         (uc_bidi_category_name): New function.
23224         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23225         uc_bidi_category.
23226         (uc_bidi_category): New function.
23227         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23228         uc_is_bidi_category. Invoke uc_bidi_class.
23229         (uc_is_bidi_category): New function.
23230         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23231         instead of uc_bidi_category_byname.
23232         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23233         instead of uc_bidi_category_name.
23234         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23235         uc_bidi_category.
23236         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23237         instead of uc_is_bidi_category.
23238
23239 2011-03-21  Bruno Haible  <bruno@clisp.org>
23240
23241         New module 'unictype/joininggroup-all'.
23242         * modules/unictype/joininggroup-all: New file.
23243
23244         Tests for module 'unictype/joininggroup-of'.
23245         * modules/unictype/joininggroup-of-tests: New file.
23246         * tests/unictype/test-joininggroup_of.c: New file.
23247         * tests/unictype/test-joininggroup_of.h: New file, automatically
23248         generated by gen-uni-tables.
23249
23250         New module 'unictype/joininggroup-of'.
23251         * modules/unictype/joininggroup-of: New file.
23252         * lib/unictype/joininggroup_of.c: New file.
23253         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23254         gen-uni-tables.
23255
23256         Tests for module 'unictype/joininggroup-byname'.
23257         * modules/unictype/joininggroup-byname-tests: New file.
23258         * tests/unictype/test-joininggroup_byname.c: New file.
23259
23260         New module 'unictype/joininggroup-byname'.
23261         * modules/unictype/joininggroup-byname: New file.
23262         * lib/unictype/joininggroup_byname.c: New file.
23263         * lib/unictype/joininggroup_byname.gperf: New file.
23264
23265         Tests for module 'unictype/joininggroup-name'.
23266         * modules/unictype/joininggroup-name-tests: New file.
23267         * tests/unictype/test-joininggroup_name.c: New file.
23268
23269         New module 'unictype/joininggroup-name'.
23270         * modules/unictype/joininggroup-name: New file.
23271         * lib/unictype/joininggroup_name.c: New file.
23272         * lib/unictype/joininggroup_name.h: New file.
23273
23274         New module 'unictype/joiningtype-all'.
23275         * modules/unictype/joiningtype-all: New file.
23276
23277         Tests for module 'unictype/joiningtype-of'.
23278         * modules/unictype/joiningtype-of-tests: New file.
23279         * tests/unictype/test-joiningtype_of.c: New file.
23280         * tests/unictype/test-joiningtype_of.h: New file, automatically
23281         generated by gen-uni-tables.
23282
23283         New module 'unictype/joiningtype-of'.
23284         * modules/unictype/joiningtype-of: New file.
23285         * lib/unictype/joiningtype_of.c: New file.
23286         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23287         gen-uni-tables.
23288
23289         Tests for module 'unictype/joiningtype-byname'.
23290         * modules/unictype/joiningtype-byname-tests: New file.
23291         * tests/unictype/test-joiningtype_byname.c: New file.
23292
23293         New module 'unictype/joiningtype-byname'.
23294         * modules/unictype/joiningtype-byname: New file.
23295         * lib/unictype/joiningtype_byname.c: New file.
23296
23297         Tests for module 'unictype/joiningtype-name'.
23298         * modules/unictype/joiningtype-name-tests: New file.
23299         * tests/unictype/test-joiningtype_name.c: New file.
23300
23301         New module 'unictype/joiningtype-name'.
23302         * modules/unictype/joiningtype-name: New file.
23303         * lib/unictype/joiningtype_name.c: New file.
23304
23305         unictype: Add support for Arabic shaping properties.
23306         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23307         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23308         declarations.
23309         (UC_JOINING_GROUP_*): New enumeration values.
23310         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23311         declarations.
23312         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23313         (unicode_joining_type): New variable.
23314         (UC_JOINING_GROUP_*): New enumeration values.
23315         (unicode_joining_group): New variable.
23316         (fill_arabicshaping, joining_type_as_c_identifier,
23317         output_joining_type_test, output_joining_type,
23318         joining_group_as_c_identifier, output_joining_group_test,
23319         output_joining_group): New functions.
23320         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23321         fill_arabicshaping and output_joining_type_test, output_joining_type,
23322         output_joining_group_test, output_joining_group.
23323         Reported by Simon Josefsson.
23324
23325 2011-03-21  Jim Meyering  <meyering@redhat.com>
23326
23327         strftime: fix a bug in yesterday's change
23328         * lib/strftime.c (add): Accommodate width's initial value of -1.
23329         Otherwise, nstrftime would copy uninitialized data into
23330         the result buffer.
23331
23332 2011-03-21  Jim Meyering  <meyering@redhat.com>
23333
23334         tests: add strftime-tests module
23335         * tests/test-strftime.c: New file.
23336         * modules/strftime-tests: New module.
23337
23338 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23339
23340         strftime: don't assume a byte count fits in 'int'
23341         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23342         found this problem by static analysis, using gcc -Wstrict-overflow
23343         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23344         on an integer overflow having undefined behavior, but it turns out
23345         that the argument is a size, which might not fit in 'int' anyway,
23346
23347 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23348
23349         stdio: don't require ignore_value around fwrite
23350
23351         This patch works around libc bug 11959
23352         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23353         Without this patch, applications must often write
23354         ignore_value (fwrite (...)) even though the ignore_value is
23355         not helpful here.  It's common to write many objects, using
23356         fwrite/printf/etc., and then use ferror to detect output error.
23357
23358         I considered making this patch optional, but decided against it,
23359         because libc is obviously being inconsistent here: there is no
23360         reason libc should insist that user code must inspect fwrite
23361         return's value without also insisting that it inspect printf's,
23362         putchar's, etc.  If user code wants to have a strict style where
23363         all these functions' values are checked (so that ferror need not
23364         be checked), we could add support for that style in a new gnulib
23365         module, but in the meantime it's better to be consistent and to
23366         support common usage.
23367
23368         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23369         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23370         that we are compiling in checking mode, and if not C++, and
23371         if not already wrapping fwrite for some other reason.
23372         (fwrite): #define to rpl_fwrite if the latter is defined.
23373
23374 2011-03-20  Bruno Haible  <bruno@clisp.org>
23375
23376         verror: Fix compilation error introduced on 2011-02-13.
23377         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23378         instead of __attribute__.
23379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23380
23381 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23382             Bruno Haible  <bruno@clisp.org>
23383
23384         socklen: do not depend on sys_socket
23385         While trying to modify Emacs to use gnulib's socklen module,
23386         I discovered a circular dependency: socklen depends on sys_socket
23387         and vice versa.  Emacs can use socklen, but it does not need
23388         sys_socket because it has its own substitute for sys/socket.h.
23389         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23390         gl_TYPE_SOCKLEN_T.
23391         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23392         gl_PREREQ_SYS_H_SOCKET.
23393         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23394         gl_PREREQ_SYS_H_SOCKET.
23395         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23396         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23397         * modules/socklen (Depends-on): Do not depend on sys_socket.
23398         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23399
23400 2011-03-20  Jim Meyering  <meyering@redhat.com>
23401
23402         maint.mk: sort file names *after* new transformation
23403         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23404         prefix would have led to an unwarranted failure in GNU parted.
23405         Sort after that transformation.
23406
23407 2011-03-19  Jim Meyering  <meyering@redhat.com>
23408
23409         maint.mk: fix po-file syntax-check rule
23410         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23411         Patch by Bruno Haible.
23412
23413 2011-03-19  Bruno Haible  <bruno@clisp.org>
23414
23415         socklen: Update comment.
23416         * m4/socklen.m4: Update comment about platforms.
23417
23418 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23419             Bruno Haible  <bruno@clisp.org>
23420
23421         inet_ntop, inet_pton: Simplify.
23422         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23423         documented to provide socklen_t and we already depend on sys_socket.
23424         * modules/inet_pton (Depends-on): Likewise.
23425         * lib/arpa_inet.in.h: Adjust comment.
23426
23427 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23428             Bruno Haible  <bruno@clisp.org>
23429
23430         netdb: Simplify.
23431         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23432         documented to provide socklen_t and we already depend on sys_socket.
23433         * lib/netdb.in.h: Adjust comment.
23434
23435 2011-03-19  Bruno Haible  <bruno@clisp.org>
23436
23437         sys_socket, netdb: Document problem with socklen_t.
23438         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23439         platforms.
23440         * doc/posix-headers/netdb.texi: Likewise.
23441
23442 2011-03-18  Eric Blake  <eblake@redhat.com>
23443
23444         maint.mk: let po check work in VPATH build
23445         * top/maint.mk (po_file): Allow cfg.mk override.
23446         (sc_po_check): Allow VPATH use.
23447         Reported by Jiri Denemark.
23448
23449 2011-03-16  Jim Meyering  <meyering@redhat.com>
23450
23451         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23452         Before, you would have had to create one .x-sc_ file per rule in order
23453         to exempt offending files.  Now, you may instead use a Make variable --
23454         usually defined in cfg.mk -- whose name identifies the affected rule.
23455         * top/maint.mk (_sc_excl): Define.
23456         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23457         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23458
23459 2011-03-13  Bruno Haible  <bruno@clisp.org>
23460
23461         ignore-value tests: Avoid warnings.
23462         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23463         empty for gcc < 3.4.
23464
23465 2011-03-13  Bruno Haible  <bruno@clisp.org>
23466
23467         passfd: Fix link error on Solaris.
23468         * modules/passfd (Description): Correct.
23469         (Depends-on): Add socketlib.
23470         (Link): New section.
23471         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23472
23473 2011-03-13  Bruno Haible  <bruno@clisp.org>
23474
23475         passfd: Fix link error on AIX 5.2.
23476         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23477
23478 2011-03-13  Bruno Haible  <bruno@clisp.org>
23479
23480         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23481         * lib/sys_socket.in.h: Include <stddef.h>.
23482         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23483         CMSG_FIRSTHDR. Remove unused variable.
23484
23485 2011-03-13  Bruno Haible  <bruno@clisp.org>
23486
23487         passfd: Fix compilation error on OpenBSD.
23488         * lib/passfd.c: Include <sys/uio.h>.
23489
23490 2011-03-13  Bruno Haible  <bruno@clisp.org>
23491
23492         passfd test: Fix warnings.
23493         * tests/test-passfd.c: Include <sys/wait.h>.
23494         (main): Fix typo.
23495
23496 2011-03-13  Bruno Haible  <bruno@clisp.org>
23497
23498         passfd module, part 4, tweaks.
23499         * tests/test-passfd.c: Reorder includes.
23500         (main): Fix perror and printf calls.
23501
23502 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23503
23504         passfd module, part 4.
23505         * modules/passfd-tests: New file.
23506         * tests/test-passfd.c: New file.
23507
23508 2011-03-13  Jim Meyering  <meyering@redhat.com>
23509
23510         Makefile: rely on GNU make; derive syntax-check rule names
23511         Rather than requiring that each sc_ rule be listed as a dependent
23512         of "check", use features of GNU make to derive the list.
23513         * Makefile (syntax-check-rules): Define.
23514         (check): Depend on the new variable, not the hard-coded list.
23515
23516 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23517             Bruno Haible  <bruno@clisp.org>
23518
23519         passfd module, part 3.
23520         * lib/passfd.h (recvfd): Add a flags argument.
23521         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23522         (recvfd): Add a flags argument.
23523         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23524         exists.
23525         * modules/passfd (Depends-on): Add cloexec.
23526         Suggested by Eric Blake.
23527
23528 2011-03-13  Bruno Haible  <bruno@clisp.org>
23529
23530         passfd module, part 2, tweaks.
23531         * modules/passfd (Files): Reorder.
23532         (Depends-on): Remove errno.
23533         (Include): Remove <sys/socket.h>, <sys/un.h>.
23534         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23535         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23536         specification header. Include <sys/socket.h> always. Don't include
23537         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23538         (sendfd): Clarify that it sets errno when it fails.
23539         (recvfd): Fix specification.
23540
23541 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23542
23543         passfd module, part 2.
23544         * modules/passfd: New file.
23545         * lib/passfd.h: New file.
23546         * lib/passfd.c: New file.
23547
23548 2011-03-12  Bruno Haible  <bruno@clisp.org>
23549
23550         wcswidth, mbswidth: Avoid integer overflow.
23551         * lib/wcswidth.c: Include <limits.h>.
23552         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23553         * lib/mbswidth.c: Include <limits.h>.
23554         (mbsnwidth): Avoid 'int' overflow.
23555         Reported by Jim Meyering.
23556
23557 2011-03-12  Bruno Haible  <bruno@clisp.org>
23558
23559         futimens, utimensat: Avoid endless recursion on Solaris 10.
23560         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23561         Solaris.
23562         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23563         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23564
23565 2011-03-11  Jim Meyering  <meyering@redhat.com>
23566
23567         maint.mk: relax a regexp to accommodate other formatting styles
23568         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23569         between "ngettext" and the following "(".
23570
23571 2011-03-11  Pádraig Brady <P@draigBrady.com>
23572
23573         maint.mk: suppress a false positive warning
23574         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23575         diagnostics are marked with ngettext.
23576
23577 2011-03-10  Eric Blake  <eblake@redhat.com>
23578
23579         wchar: add explicit dependencies, for Tru64
23580         * modules/mbmemcasecoll (Depends-on): Add wchar.
23581         * modules/mbtowc (Depends-on): Likewise.
23582         * modules/vasnprintf (Depends-on): Likewise.
23583         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23584         * modules/wctomb (Depends-on): Likewise.
23585         Reported by Peter O'Gorman.
23586
23587 2011-03-08  Bruno Haible  <bruno@clisp.org>
23588
23589         passfd module, part 1, tweaks.
23590         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23591         Improve indentation. Improve AC_MSG_CHECKING messages.
23592         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23593         gl_SOCKET_FAMILIES.
23594
23595 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23596
23597         passfd module, part 1.
23598         * m4/afunix.m4: New file.
23599         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23600         sockets.
23601
23602 2011-03-08  Bruno Haible  <bruno@clisp.org>
23603
23604         regex-quote: New API.
23605         * lib/regex-quote.h: Include <stdbool.h>.
23606         (struct regex_quote_spec): New type.
23607         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23608         New declarations.
23609         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23610         'const struct regex_quote_spec *' argument.
23611         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23612         (pcre_special): New constant.
23613         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23614         New functions.
23615         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23616         'const struct regex_quote_spec *' argument.
23617         * modules/regex-quote (Depends-on): Add stdbool.
23618         * tests/test-regex-quote.c (check): Update for new API. Add test for
23619         anchored results.
23620         * NEWS: Mention the API change.
23621         Reported by Reuben Thomas and Eric Blake.
23622
23623 2011-03-06  Bruno Haible  <bruno@clisp.org>
23624
23625         regex-quote: Fix creation of POSIX extended regular expressions.
23626         * lib/regex-quote.c (ere_special): Add grouping and alternation
23627         operators.
23628
23629 2011-03-05  Bruno Haible  <bruno@clisp.org>
23630
23631         doc: Improve doc regarding autopoint vs. gnulib.
23632         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23633         disable autopoint while running autoreconf.
23634         Suggested by Ralf Wildenhues.
23635
23636 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23637
23638         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23639         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23640
23641 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23642
23643         parse-duration: remove xalloc.h dependency
23644         * lib/parse-duration.c (parse_period): handle NULL return from
23645         strdup instead of calling xstrdup().
23646         * modules/parse-duration: remove "xalloc" dependency
23647
23648 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23649
23650         bootstrap: honor m4_base when running aclocal
23651         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23652
23653 2011-03-02  Jim Meyering  <meyering@redhat.com>
23654
23655         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23656         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23657         on request from Matt Booth.
23658
23659 2011-03-01  Eric Blake  <eblake@redhat.com>
23660
23661         test-link: work on Hurd
23662         * tests/test-link.h (test_link): Hurd rejects linking directories
23663         with EISDIR instead of the POSIX-mandated EPERM.
23664
23665 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23666
23667         stdio: simplify by moving files to printf-posix, sigpipe
23668         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23669         since this symbol is needed only if printf is replaced.
23670         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23671         Require gl_ASM_SYMBOL_PREFIX.
23672         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23673         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23674         (Depends-on): Add 'raise'.
23675         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23676         * modules/stdio (Files): Remove lib/stdio-write.c,
23677         m4/asm-underscore.m4.
23678         (Depends-on): Remove 'raise'.
23679
23680         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23681         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23682         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23683         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23684
23685 2011-02-28  Bruno Haible  <bruno@clisp.org>
23686
23687         localcharset: Assume ANSI C behaviour of free().
23688         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23689         calling free().
23690         Suggested by Simon Josefsson <simon@josefsson.org>.
23691
23692 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23693             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23694             Bruno Haible  <bruno@clisp.org>  (tiny change)
23695
23696         On Cygwin, use /proc file system instead of win32 API.
23697         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23698         Win32 file names.
23699         (DllMain): Simplify by removing Cygwin specific code.
23700         (find_shared_library_fullname): Use Linux specific implementation also
23701         for Cygwin.
23702         (get_shared_library_fullname): Update accordingly.
23703         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23704         Win32 file names.
23705         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23706         Cygwin specific code.
23707
23708 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23709             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23710
23711         Fix OpenMP flag detection for various Fortran compilers.
23712         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23713         OpenMP-conditional compilation construct, to force compile
23714         failure with missing OpenMP flag.
23715         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23716
23717 2011-02-25  Eric Blake  <eblake@redhat.com>
23718
23719         strstr: expand test coverage
23720         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23721         compilation.
23722         * tests/test-memmem.c (main): Duplicate tests.
23723         * tests/test-strcasestr.c (main): Likewise.
23724         * tests/test-c-strcasestr.c (main): Likewise.
23725
23726 2011-02-25  Jim Meyering  <meyering@redhat.com>
23727
23728         maint.mk: detect missing-NL-at-EOF, too
23729         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23730         it also detects when a file lacks a newline at EOF.
23731         (require_exactly_one_NL_at_EOF_): Renamed from
23732         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23733         since people may well have .x-sc_... file names tied to the
23734         existing name.  Suggested by Eric Blake.
23735
23736 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23737
23738         dirname: move m4/dos.m4 functionality into lib/dosname.h
23739
23740         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23741         extracts symbols from it, puts them into config.h; but it's much
23742         easier to use the symbols directly.  filename.h already does this,
23743         but it disagrees with dos.m4 in some respects.  This patch
23744         introduces a different include file dosname.h that packages up
23745         dos.m4, and then later we can work on merging filename.h and
23746         dosname.h.  Applications that need only the easy-to-configure
23747         symbols should consider including dosname.h rather than dirname.h.
23748         * NEWS: Mention incompatible changes.
23749         * m4/dos.m4: Remove.
23750         * lib/dosname.h, modules/dosname: New files.
23751         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23752         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23753         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23754         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23755         Include dosname.h, not dirname.h.
23756         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23757         Include dosname.h, for definitions of symbols like ISSLASH
23758         that used to be in config.h.
23759         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23761         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23762         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23763         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23764         * modules/rmdir (Files): Likewise.
23765         * modules/stat (Files): Likewise.
23766         * modules/unlink (Files): Likewise.
23767         * modules/dirname-lgpl (Depends-on): Add dosname.
23768         * modules/lstat (Depends-on): Likewise.
23769         * modules/openat (Depends-on): Likewise.
23770         * modules/rmdir (Depends-on): Likewise.
23771         * modules/savewd (Depends-on): Likewise.
23772         * modules/stat (Depends-on): Likewise.
23773         * modules/unlink (Depends-on): Likewise.
23774         * modules/openat (Depends-on): Remove dirname-lgpl.
23775         * modules/savewd (Depends-on): Likewise.
23776         * tests/test-dirname.c: Do not use removed symbols like
23777         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23778         the remaining symbols, e.g., ISSLASH ('\\').
23779
23780 2011-02-25  Eric Blake  <eblake@redhat.com>
23781
23782         strstr: revert patches that introduced bug and pessimization
23783         * lib/str-two-way.h: Add another reference.
23784         (two_way_short_needle, two_way_long_needle): Revert changes from
23785         2011-02-24; they pessimize search speed.
23786         (critical_factorization): Partially revert changes from
23787         2010-06-22; they violate the requirement that the left half of the
23788         needle be smaller than the period of the needle.
23789
23790 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         filenamecat: remove unnecessary dependency on dirname-lgpl
23793         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23794         is no direct dependency, just an indirect one via filenamecat-lgpl.
23795
23796         remove: remove unnecessary use of m4/dos.m4
23797         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23798         * modules/remove (FILES): Remove m4/dos.m4.
23799
23800         * lib/openat-proc.c: Don't include dirname.h; not needed.
23801
23802         backupfile: remove unnecessary use of m4/dos.m4
23803         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23804         of its symbols are used by the backupfile code.  backupfile.c does
23805         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23806         for the rare case of programs that want all their backup file
23807         names to live within 8+3 limits, and dos.m4 doesn't address that.
23808         * modules/backupfile (Files): Remove m4/dos.m4.
23809
23810 2011-02-24  Jim Meyering  <meyering@redhat.com>
23811
23812         strstr: fix a bug whereby strstr would mistakenly return NULL
23813         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23814         in period calculation.
23815         (two_way_long_needle): Likewise.
23816         The original problem was reported by Mike Stump in
23817         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23818         Ralf Wildenhues provided the short needle and haystack.
23819         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23820         Add a more involved test to trigger the bug in two_way_long_needle.
23821
23822 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23823
23824         gnulib-tool: remove use of bold display in help screen
23825         * gnulib-tool (func_usage): Do not use bold display anymore in the
23826         help screen.  That was just meant to be a temporary emphasis for a
23827         backward-incompatible change.
23828
23829 2011-02-23  Bruno Haible  <bruno@clisp.org>
23830
23831         Fix misindentation of preprocessor directives.
23832         * lib/argp-namefrob.h: Reindent preprocessor directives.
23833         * lib/getopt_int.h (struct _getopt_data): Likewise.
23834         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23835         * lib/vasnprintf.c (decode_long_double): Likewise.
23836         * tests/test-argmatch.c: Insert blank lines, for clarity.
23837         * tests/test-exclude.c: Likewise.
23838
23839 2011-02-22  Bruno Haible  <bruno@clisp.org>
23840
23841         ioctl: Fix for MacOS X in 64-bit mode.
23842         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23843         value.
23844         Suggested by Eric Blake.
23845         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23846
23847 2011-02-22  Jim Meyering  <meyering@redhat.com>
23848
23849         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23850         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23851         in lib/.
23852
23853 2011-02-22  Eric Blake  <eblake@redhat.com>
23854
23855         maint: avoid any CDPATH issue
23856         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23857
23858         maint: adjust cpp indentation for my modules, as well
23859         * Makefile (sc_cpp_indent_check): Add my name.
23860         * lib/fbufmode.c: Filter through cppi.
23861         * lib/fpurge.c: Likewise.
23862         * lib/freadable.c: Likewise.
23863         * lib/freading.c: Likewise.
23864         * lib/fwritable.c: Likewise.
23865         * lib/fwriting.c: Likewise.
23866         * lib/sigaction.c: Likewise.
23867
23868 2011-02-22  Jim Meyering  <meyering@redhat.com>
23869
23870         maint: adjust cpp indentation to reflect nesting depth
23871         I.e., in a block of code that begins with an unnested "#if",
23872         put one space between the "#" in column 1 and following token.
23873         For example,
23874         -#include <sys/vfs.h>
23875         +# include <sys/vfs.h>
23876         Do this only in .c files that are part of a module I maintain.
23877         * lib/linkat.c: Filter through cppi.
23878         * lib/nanosleep.c: Likewise.
23879         * lib/openat.c: Likewise.
23880         * lib/openat-die.c: Likewise.
23881         * lib/dup3.c: Likewise.
23882         * lib/fchownat.c: Likewise.
23883         * lib/flock.c: Likewise.
23884         * lib/fsync.c: Likewise.
23885         * lib/fts.c: Likewise.
23886         * lib/getpass.c: Likewise.
23887         * lib/gettimeofday.c: Likewise.
23888         * lib/userspec.c: Likewise.
23889         * Makefile (sc_cpp_indent_check): New rule, to check this.
23890
23891 2011-02-22  Bruno Haible  <bruno@clisp.org>
23892
23893         New module 'wctomb'.
23894         * lib/stdlib.in.h (wctomb): New declaration.
23895         * lib/wctomb.c: New file.
23896         * lib/wctomb-impl.h: New file.
23897         * m4/wctomb.m4: New file.
23898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23899         REPLACE_WCTOMB.
23900         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23901         REPLACE_WCTOMB.
23902         * modules/wctomb: New file.
23903         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23904         * doc/posix-functions/wctomb.texi: Mention the new module.
23905         * modules/wctob (Depends-on): Add wctomb.
23906
23907 2011-02-22  Bruno Haible  <bruno@clisp.org>
23908
23909         New module 'mbtowc'.
23910         * lib/stdlib.in.h (mbtowc): New declaration.
23911         * lib/mbtowc.c: New file.
23912         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23913         * m4/mbtowc.m4: New file.
23914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23915         REPLACE_MBTOWC.
23916         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23917         REPLACE_MBTOWC.
23918         * modules/mbtowc: New file.
23919         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23920         * doc/posix-functions/mbtowc.texi: Mention the new module.
23921         * modules/btowc (Depends-on): Add mbtowc.
23922
23923 2011-02-22  Bruno Haible  <bruno@clisp.org>
23924
23925         wcrtomb: Add more tests for native Windows platforms.
23926         * tests/test-wcrtomb-w32-1.sh: New file.
23927         * tests/test-wcrtomb-w32-2.sh: New file.
23928         * tests/test-wcrtomb-w32-3.sh: New file.
23929         * tests/test-wcrtomb-w32-4.sh: New file.
23930         * tests/test-wcrtomb-w32-5.sh: New file.
23931         * tests/test-wcrtomb-w32.c: New file.
23932         * modules/wcrtomb-tests (Files): Add them.
23933         (Makefile.am): Arrange to run these tests.
23934         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23935         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23936
23937 2011-02-20  Bruno Haible  <bruno@clisp.org>
23938
23939         wcrtomb: Enhance test.
23940         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23941
23942 2011-02-20  Bruno Haible  <bruno@clisp.org>
23943
23944         mbrtowc: Tiny optimization.
23945         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23946
23947 2011-02-20  Jim Meyering  <meyering@redhat.com>
23948
23949         test-exclude.c: remove unmatched #endif
23950         * tests/test-exclude.c: Remove stray #endif, left over from
23951         the change of a week ago.
23952
23953 2011-02-19  Jim Meyering  <meyering@redhat.com>
23954
23955         git-version-gen: skip "-dirty" check when appropriate
23956         * build-aux/git-version-gen: Don't run any git commands when the
23957         version string comes from .tarball-version.  Prior to this, we
23958         would run git update-index --refresh even from a just-unpacked
23959         tarball directory, and that could affect a .git/ directory in a
23960         parent of the build directory.  Reported by Mike Frysinger.
23961
23962 2011-02-19  Bruno Haible  <bruno@clisp.org>
23963
23964         unictype/property-byname: Reduce the size of the 'data' segment.
23965         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23966
23967 2011-02-19  Bruno Haible  <bruno@clisp.org>
23968
23969         unictype/scripts: Reduce the size of the 'data' segment.
23970         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23971         '%pic'.
23972         * lib/unictype/scripts_byname.gperf: Regenerated.
23973
23974 2011-02-19  Bruno Haible  <bruno@clisp.org>
23975
23976         stdint: Update documentation.
23977         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23978
23979 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23980
23981         stdint: omit redundant check for wchar.h
23982         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23983         always tests whether wchar.h exists, so remove the now-redundant test.
23984
23985 2011-02-18  Bruno Haible  <bruno@clisp.org>
23986
23987         stdint: Cut dependency to module 'wchar'.
23988         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23989         include the necessary prerequisites.
23990         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23991         * modules/stdint (Depends-on): Remove wchar.
23992         (Makefile.am): Substitute HAVE_WCHAR_H.
23993         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23994
23995 2011-02-18  Eric Blake  <eblake@redhat.com>
23996
23997         longlong: skip, rather than fail, on cross-compilation
23998         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23999         when cross-compiling; regression from 2011-02-16.
24000
24001 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24002
24003         * NEWS: Mention 2011-02-08 change to stdlib.
24004
24005 2011-02-17  Bruno Haible  <bruno@clisp.org>
24006
24007         getloadavg: Add comments about platforms.
24008         * m4/getloadavg.m4: Add comment.
24009         * lib/getloadavg.c: Likewise.
24010
24011 2011-02-17  Bruno Haible  <bruno@clisp.org>
24012
24013         getloadavg: Fix link error on Solaris 2.6.
24014         * modules/getloadavg (Link): New section.
24015         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24016         linking test-getloadavg.
24017         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24018         getloadavg.
24019
24020 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24021
24022         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24023         It was 'int', but this doesn't match the IRIX 6.5 manual.
24024         Suggested by Bruno Haible in
24025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24026
24027 2011-02-17  Bruno Haible  <bruno@clisp.org>
24028
24029         havelib: Fix comments.
24030         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24031         change.
24032
24033 2011-02-17  Bruno Haible  <bruno@clisp.org>
24034
24035         havelib: Update config.rpath.
24036         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24037
24038 2011-02-17  Bruno Haible  <bruno@clisp.org>
24039
24040         getloadavg test: Add some plausibility checks.
24041         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24042         is improbable.
24043
24044 2011-02-16  Eric Blake  <eblake@redhat.com>
24045
24046         maintainer-makefile: make syntax-check a no-op from tarballs
24047         * top/maint.mk (no-vc-detected): New rule.
24048         (local-checks-available): Use it to avoid hanging if someone tries
24049         'make syntax-check' from a tarball.  Also append to any non-syntax
24050         checks already defined in cfg.mk.
24051
24052 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24053
24054         longlong: tune, particularly for common case of c99
24055
24056         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24057         or running anything if c99, or if unsigned long long int does not
24058         work.  In either case, we know the answer without further tests.
24059         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24060         it at most once, and use its results for both long long int and
24061         unsigned long long int.  This is more likely to be efficient in
24062         the common case where the program wants to check for both long
24063         long int and unsigned long long int.
24064         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24065         since the answer is already known.
24066
24067 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24068
24069         getloadavg: set errno
24070         * lib/getloadavg.c: Set errno when returning -1.  If no other
24071         error number looks appropriate, set it to ENOSYS if the getloadavg
24072         looks like it can't possibly ever work, ENOTSUP otherwise.
24073         Suggested by Bruno Haible in
24074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24075
24076         getloadavg: trim unused parts and speed up 'configure'
24077         * NEWS: Document this.
24078         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24079         always compiled if getloadavg is absent.
24080         Move test code to ...
24081         * tests/test-getloadavg.c: New file, containing previous
24082         contents of test from lib/getloadavg.c.  It also contains
24083         suggestions by Bruno Haible in
24084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24085         * modules/getloadavg-tests: New file.
24086         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24087         Do tests in the same order as they're needed for getloadavg.c.
24088         Omit setgid-related tests that generate symbols KMEM_GROUP,
24089         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24090         Do only the tests that are needed to see whether the system has
24091         getloadavg, moving the other tests into ...
24092         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24093         NLIST_NAME_UNION; nobody should be using it.  Do not define
24094         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24095         relevant, as the user of this module shouldn't care how getloadavg
24096         is implemented.
24097
24098         getloadavg: omit unused var
24099         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24100
24101 2011-02-15  Jim Meyering  <meyering@redhat.com>
24102
24103         doc: update users.txt
24104         * users.txt: Update iwhd's URL.
24105
24106 2011-02-13  Bruno Haible  <bruno@clisp.org>
24107
24108         Consistent macro naming for macros that use GCC __attribute__.
24109         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24110         _ATTRIBUTE_NONNULL_.
24111         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24112         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24113         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24114         ATTRIBUTE_DEPRECATED.
24115         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24116         ATTRIBUTE_NORETURN.
24117         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24118         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24119         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24120         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24121         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24122         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24123         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24124         ATTRIBUTE_SENTINEL.
24125         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24126         ATTRIBUTE_RETURN_CHECK.
24127         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24128         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24129         ATTRIBUTE_NORETURN.
24130         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24131         Reported by Paul Eggert.
24132
24133 2011-02-13  Bruno Haible  <bruno@clisp.org>
24134
24135         Don't interfere with a program's definition of __attribute__.
24136         * lib/argp.h (__attribute__): Remove definition.
24137         (_GL_ATTRIBUTE_FORMAT): New macro.
24138         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24139         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24140         (_GL_ATTRIBUTE_FORMAT): New macro.
24141         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24142         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24143         GCC 3 or newer.
24144         * lib/error.h (__attribute__): Remove definition.
24145         (_GL_ATTRIBUTE_FORMAT): New macro.
24146         (error, error_at_line): Use it.
24147         * lib/hash.h (__attribute__): Remove definition.
24148         (ATTRIBUTE_WUR): Update definition. Define always.
24149         * lib/openat.h (__attribute__): Remove definition.
24150         (ATTRIBUTE_NORETURN): Update definition. Define always.
24151         * lib/sigpipe-die.h (__attribute__): Remove definition.
24152         (ATTRIBUTE_NORETURN): Update definition. Define always.
24153         * lib/vasnprintf.h (__attribute__): Remove definition.
24154         (_GL_ATTRIBUTE_FORMAT): New macro.
24155         (asnprintf, vasnprintf): Use it.
24156         * lib/xalloc.h (__attribute__): Remove definition.
24157         (ATTRIBUTE_NORETURN): Update definition. Define always.
24158         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24159         * lib/xmemdup0.h (__attribute__): Remove definition.
24160         (ATTRIBUTE_NORETURN): Update definition. Define always.
24161         * lib/xprintf.h (__attribute__): Remove definition.
24162         (_GL_ATTRIBUTE_FORMAT): New macro.
24163         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24164         * lib/xstrtol.h (__attribute__): Remove definition.
24165         (ATTRIBUTE_NORETURN): Update definition. Define always.
24166         * lib/xvasprintf.h (__attribute__): Remove definition.
24167         (_GL_ATTRIBUTE_FORMAT): New macro.
24168         (xasprintf, xvasprintf): Use it.
24169         * tests/test-argmatch.c (__attribute__): Remove definition.
24170         (ATTRIBUTE_NORETURN): Update definition. Define always.
24171         * tests/test-exclude.c (__attribute__): Remove definition.
24172         (ATTRIBUTE_NORETURN): Update definition. Define always.
24173         Reported by Paul Eggert.
24174
24175 2011-02-13  Bruno Haible  <bruno@clisp.org>
24176
24177         mbrtowc: Add more tests for native Windows platforms.
24178         * tests/test-mbrtowc-w32-1.sh: New file.
24179         * tests/test-mbrtowc-w32-2.sh: New file.
24180         * tests/test-mbrtowc-w32-3.sh: New file.
24181         * tests/test-mbrtowc-w32-4.sh: New file.
24182         * tests/test-mbrtowc-w32-5.sh: New file.
24183         * tests/test-mbrtowc-w32.c: New file.
24184         * modules/mbrtowc-tests (Files): Add them.
24185         (Makefile.am): Arrange to run these tests.
24186         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24187         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24188
24189 2011-02-13  Bruno Haible  <bruno@clisp.org>
24190
24191         mbrtowc: Work around native Windows bug.
24192         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24193         guess when no suitable locale for testing was found.
24194         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24195
24196 2011-02-13  Bruno Haible  <bruno@clisp.org>
24197
24198         mbsinit: Work around mingw bug.
24199         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24200         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24201         Windows.
24202         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24203
24204 2011-02-13  Bruno Haible  <bruno@clisp.org>
24205
24206         mbsinit: Don't crash for a NULL argument.
24207         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24208         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24209
24210 2011-02-13  Bruno Haible  <bruno@clisp.org>
24211
24212         Don't interfere with a program's definition of __attribute__.
24213         * lib/stdio.in.h (__attribute__): Remove definition.
24214         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24215         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24216         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24217         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24218         * lib/string.in.h (__attribute__): Remove definition.
24219         Reported by Paul Eggert.
24220
24221 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24222
24223         stdlib: don't get in the way of non-GCC __attribute__
24224         See thread starting at
24225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24226         Revert previous stdlib change, installing the following instead:
24227         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24228         to get in the way of a non-GCC compiler that supports __attribute__.
24229         (_GL_ATTRIBUTE_RETURN): New macro.
24230         (_Exit): Use it instead of __attribute__.
24231
24232 2011-02-12  Bruno Haible  <bruno@clisp.org>
24233
24234         quotearg test: Avoid test failure on mingw.
24235         * tests/test-quotearg.sh: Convert the locale identifier from native
24236         Windows syntax to Unix syntax.
24237
24238 2011-02-12  Bruno Haible  <bruno@clisp.org>
24239
24240         setlocale: Prefer gnulib's override over libintl's override.
24241         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24242         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24243         GNULIB_defined_setlocale is set.
24244
24245 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24246
24247         stdlib: support non-GCC __attribute__
24248
24249         Fix a serious and tricky problem encountered when attempting to
24250         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24251         5.5, but it crashed due to memory corruption on Solaris 10 with
24252         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24253         bits that are otherwise zero.  This tagging is optional inside
24254         Emacs but is preferred and is used when __attribute__ ((__aligned
24255         (8))) works, as it does with both recent-enough GCC and with Sun C
24256         5.11.  However, Sun C 5.11 is not GCC and does not #define
24257         __GNUC__ and __GNUC_MINOR__.
24258
24259         When I added the getloadavg module to Emacs, it brought in
24260         stdlib.in.h, which contained this fragment:
24261
24262            #ifndef __attribute__
24263            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24264            #  define __attribute__(Spec)   /* empty */
24265            # endif
24266            #endif
24267
24268         When files that include <stdlib.h> were compiled with Sun C 5.11,
24269         the above code disabled __attribute__ ((__aligned (8))), which
24270         caused variables to not be properly aligned, which eventually led
24271         to the pointer corruption mentioned above.  (This was a bit hard
24272         to diagnose, unfortunately.)
24273
24274         Several "#define __attribute__(X) /* empty */" code snippets need
24275         to be eradicated from Gnulib to work with non-GCC compilers that
24276         support __attribute__.  The Autoconf way to do this is to test for
24277         each kind of attribute that we want support for, and selectively
24278         enable that in source code.
24279
24280         Fix this problem just for stdlib.h, by adding a test for the
24281         __noreturn__ attribute, and change stdlib.in.h to use that test
24282         when needed.  This technique can be easily generalized to the
24283         other *.in.h files and attributes, and a similar technique can be
24284         used for *.h and *.c files.  This patch is enough to solve the
24285         problem for Emacs + getloadavg, and I thought I'd publish it for
24286         feedback before undertaking further, similar fixes in other
24287         modules.
24288
24289         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24290         because it's not needed for stdlib.h.  It merely substitutes the
24291         value directly into stdlib.h.  We may well need to #define it, or
24292         similar symbols, for other modules, but it's nice to also have an
24293         option to not #define it for applications like Emacs that do not
24294         need it.
24295
24296         * lib/stdlib.in.h (__attribute__): Do not #define.
24297         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24298         be defined only if the _Exit module is also used.
24299         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24301         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24302         platforms.
24303         * modules/_Exit (Files): Add m4/attribute.m4.
24304         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24305         * m4/attribute.m4: New file.
24306
24307 2011-02-12  Bruno Haible  <bruno@clisp.org>
24308
24309         wcsrtombs: Work around bug on native Windows.
24310         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24311         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24312         instead of len.
24313         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24314
24315 2011-02-12  Bruno Haible  <bruno@clisp.org>
24316
24317         mbsrtowcs: Work around bug on native Windows.
24318         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24319         against mingw bug.
24320         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24321
24322 2011-02-12  Bruno Haible  <bruno@clisp.org>
24323
24324         Avoid setlocale bugs in tests.
24325         * modules/btowc (Dependencies): Add setlocale.
24326         * modules/c-strcase (Dependencies): Likewise.
24327         * modules/mbmemcasecmp (Dependencies): Likewise.
24328         * modules/mbmemcasecoll (Dependencies): Likewise.
24329         * modules/mbrtowc (Dependencies): Likewise.
24330         * modules/mbscasecmp (Dependencies): Likewise.
24331         * modules/mbscasestr (Dependencies): Likewise.
24332         * modules/mbschr (Dependencies): Likewise.
24333         * modules/mbscspn (Dependencies): Likewise.
24334         * modules/mbsinit (Dependencies): Likewise.
24335         * modules/mbsncasecmp (Dependencies): Likewise.
24336         * modules/mbsnrtowcs (Dependencies): Likewise.
24337         * modules/mbspbrk (Dependencies): Likewise.
24338         * modules/mbspcasecmp (Dependencies): Likewise.
24339         * modules/mbsrchr (Dependencies): Likewise.
24340         * modules/mbsrtowcs (Dependencies): Likewise.
24341         * modules/mbsspn (Dependencies): Likewise.
24342         * modules/mbsstr (Dependencies): Likewise.
24343         * modules/nl_langinfo (Dependencies): Likewise.
24344         * modules/quotearg (Dependencies): Likewise.
24345         * modules/unicase/locale-language (Dependencies): Likewise.
24346         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24347         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24348         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24349         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24350         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24351         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24352         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24353         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24354         * modules/vasnprintf-posix (Dependencies): Likewise.
24355         * modules/wcrtomb (Dependencies): Likewise.
24356         * modules/wcsnrtombs (Dependencies): Likewise.
24357         * modules/wcsrtombs (Dependencies): Likewise.
24358
24359 2011-02-12  Bruno Haible  <bruno@clisp.org>
24360
24361         setlocale: Workaround native Windows bug.
24362         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24363         succeeds but sets LC_CTYPE to "C", report a failure.
24364         * tests/test-setlocale2.sh: New file.
24365         * tests/test-setlocale2.c: New file.
24366         * modules/setlocale-tests (Files): Add the new files.
24367         (Makefile.am): Enable test-setlocale2.sh test.
24368         * doc/posix-functions/setlocale.texi: Mention workaround.
24369
24370 2011-02-11  Bruno Haible  <bruno@clisp.org>
24371
24372         Tests for module 'setlocale'.
24373         * modules/setlocale-tests: New file.
24374         * tests/test-setlocale1.sh: New file.
24375         * tests/test-setlocale1.c: New file.
24376
24377         New module 'setlocale'.
24378         * lib/locale.in.h (setlocale): New declaration.
24379         * lib/setlocale.c: New file, based on
24380         gettext/gettext-runtime/intl/setlocale.c.
24381         * m4/setlocale.m4: New file.
24382         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24383         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24384         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24385         REPLACE_SETLOCALE.
24386         * modules/setlocale: New file.
24387         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24388         * doc/posix-functions/setlocale.texi: Mention the new module.
24389
24390 2011-02-11  Bruno Haible  <bruno@clisp.org>
24391
24392         Prepare for locale dependent tests on mingw.
24393         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24394         because it has the wrong locale encoding.
24395         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24396         French_France.1252 instead of "fr".
24397         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24398         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24399         because it has the wrong locale encoding.
24400         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24401         native Windows, try Turkish_Turkey.65001.
24402         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24403         Chinese_China.54936.
24404
24405         Prepare for locale dependent tests on mingw.
24406         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24407         differently.
24408         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24409         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24410         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24411         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24412
24413 2011-02-11  Eric Blake  <eblake@redhat.com>
24414
24415         strptime: avoid compiler warnings
24416         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24417         compiler warnings about dead code.
24418         Reported by Daniel P. Berrange.
24419
24420 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24421
24422         doc: update users.txt
24423         * users.txt: Add rcs.
24424
24425 2011-02-10  John W. Eaton  <jwe@gnu.org>
24426
24427         doc: update users.txt
24428         * users.txt: Add octave.
24429
24430 2011-02-10  Jim Meyering  <meyering@redhat.com>
24431
24432         doc: update users.txt
24433         * users.txt: Add iwhd.
24434
24435 2011-02-09  Bruno Haible  <bruno@clisp.org>
24436
24437         gnulib-tool: Make copyright notice adjustment more robust.
24438         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24439         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24440         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24441         License".
24442         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24443
24444 2011-02-06  Bruno Haible  <bruno@clisp.org>
24445
24446         New module 'towctrans'.
24447         * modules/towctrans: New file.
24448         * lib/wctype.in.h (towctrans): New declaration.
24449         * lib/towctrans.c: New file.
24450         * lib/towctrans-impl.h: New file.
24451         * m4/towctrans.m4: New file.
24452         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24453         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24454         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24455         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24456         * doc/posix-functions/towctrans.texi: Mention the new module.
24457
24458 2011-02-06  Bruno Haible  <bruno@clisp.org>
24459
24460         New module 'wctrans'.
24461         * modules/wctrans: New file.
24462         * lib/wctype.in.h (wctrans): New declaration.
24463         * lib/wctrans.c: New file.
24464         * lib/wctrans-impl.h: New file.
24465         * m4/wctrans.m4: New file.
24466         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24467         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24468         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24469         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24470         * doc/posix-functions/wctrans.texi: Mention the new module.
24471
24472 2011-02-06  Bruno Haible  <bruno@clisp.org>
24473
24474         New module 'iswctype'.
24475         * modules/iswctype: New file.
24476         * lib/wctype.in.h (iswctype): New declaration.
24477         * lib/iswctype.c: New file.
24478         * lib/iswctype-impl.h: New file.
24479         * m4/iswctype.m4: New file.
24480         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24481         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24482         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24483         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24484         * doc/posix-functions/iswctype.texi: Mention the new module and the
24485         HP-UX 11.00 problem.
24486
24487 2011-02-06  Bruno Haible  <bruno@clisp.org>
24488
24489         New module 'wctype'.
24490         * modules/wctype: Change to represent the wctype() substitute.
24491         * lib/wctype.in.h (wctype): New declaration.
24492         * lib/wctype.c: New file.
24493         * lib/wctype-impl.h: New file.
24494         * m4/wctype.m4: New file.
24495         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24496         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24497         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24498         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24499         * doc/posix-functions/wctype.texi: Mention the new module and the
24500         HP-UX 11.00 problem.
24501
24502 2011-02-06  Bruno Haible  <bruno@clisp.org>
24503
24504         wctype-h: Ensure wctype_t and wctrans_t are defined.
24505         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24506         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24507         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24508         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24509         HAVE_WCTRANS_T.
24510         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24511
24512 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24513
24514         flock: fix license typo
24515
24516         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24517         omitted.
24518
24519 2011-02-08  Bruno Haible  <bruno@clisp.org>
24520
24521         Split large sed scripts, for HP-UX sed.
24522         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24523         to avoid HP-UX limit of 99 commands, in the near future.
24524         * modules/stdlib (Makefile.am): Likewise.
24525         * modules/unistd (Makefile.am): Likewise.
24526         * modules/wchar (Makefile.am): Likewise.
24527         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24528         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24529         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24530
24531 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24532             Bruno Haible  <bruno@clisp.org>
24533
24534         stdlib: improve random_r modularization
24535         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24536         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24537         you also need the random_r module to get this material right.
24538         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24539         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24540         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24541
24542 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24543
24544         stdlib: don't depend on stdint
24545         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24546         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24547         be independent of whether stdint.h is needed.
24548         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24549         here, instead of ...
24550         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24551         struct random_data should be using the random_r module, not just
24552         the stdlib module (which wouldn't make sense: what package needs
24553         just struct random_data without also needing random_r?).
24554         * modules/stdlib (Depends-on): Remove stdint.
24555
24556         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24557         See the thread rooted at
24558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24559         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24560         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24561         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24562         __VMS)); previously it was always included (via fcntl--.h).
24563         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24564         hand; this is good enough for load averages.  Also, do not use
24565         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24566         flags directly if available and don't bother otherwise.  (Packages
24567         that need the extra reliability should use the modules that define
24568         these flags on older platforms that lack them.)
24569         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24570         fcntl-safer.
24571
24572 2011-02-08  Jim Meyering  <meyering@redhat.com>
24573
24574         di-set.h, ino-map.h: add multiple-inclusion guard
24575         Technically, the guard is required only for ino-map.h, due to its
24576         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24577         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24578         * lib/ino-map.h: Likewise.
24579
24580 2011-02-06  Bruno Haible  <bruno@clisp.org>
24581
24582         iswblank: Ensure declaration on glibc systems.
24583         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24584         * modules/iswblank (Dependencies): Add 'extensions'.
24585         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24586
24587 2011-02-06  Bruno Haible  <bruno@clisp.org>
24588
24589         New module 'iswblank'.
24590         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24591         * modules/iswblank: New file.
24592         * modules/wctype-h (Files): Remove lib/iswblank.c.
24593         (Makefile.am): Substitute GNULIB_ISWBLANK.
24594         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24595         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24596         (gl_WCTYPE_H_DEFAULTS): New macro.
24597         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24598         * modules/iswblank-tests: New file.
24599         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24600         * tests/test-wctype-h.c (main): Remove iswblank tests.
24601         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24602         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24603         of 'wctype-h'.
24604         * NEWS: Mention the change.
24605         * modules/mbchar (Depends-on): Add iswblank.
24606
24607 2011-02-08  Bruno Haible  <bruno@clisp.org>
24608
24609         di-set tests: Refactor.
24610         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24611         unnecessary includes.
24612         (ASSERT): Remove macro.
24613         (main): Make C90 compliant by avoiding variable declaration after
24614         statement.
24615         * modules/di-set-tests (Files): Add tests/macros.h.
24616
24617 2011-02-08  Bruno Haible  <bruno@clisp.org>
24618
24619         ino-map tests: Refactor.
24620         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24621         unnecessary includes.
24622         (ASSERT): Remove macro.
24623         (main): Make C90 compliant by avoiding variable declaration after
24624         statement.
24625         * modules/ino-map-tests (Files): Add tests/macros.h.
24626
24627 2011-02-08  Jim Meyering  <meyering@redhat.com>
24628
24629         di-set: add "const" to a cast
24630         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24631         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24632
24633 2011-02-06  Bruno Haible  <bruno@clisp.org>
24634
24635         Rename module 'wctype' to 'wctype-h'.
24636         * modules/wctype-h: Renamed from modules/wctype.
24637         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24638         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24639         (Files, Depends-on, Makefile.am): Update.
24640         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24641         (Files, Makefile.am): Update.
24642         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24643         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24644         * doc/posix-headers/wctype.texi: Update.
24645         * doc/posix-functions/iswalnum.texi: Update.
24646         * doc/posix-functions/iswalpha.texi: Update.
24647         * doc/posix-functions/iswblank.texi: Update.
24648         * doc/posix-functions/iswcntrl.texi: Update.
24649         * doc/posix-functions/iswdigit.texi: Update.
24650         * doc/posix-functions/iswgraph.texi: Update.
24651         * doc/posix-functions/iswlower.texi: Update.
24652         * doc/posix-functions/iswprint.texi: Update.
24653         * doc/posix-functions/iswpunct.texi: Update.
24654         * doc/posix-functions/iswspace.texi: Update.
24655         * doc/posix-functions/iswupper.texi: Update.
24656         * doc/posix-functions/iswxdigit.texi: Update.
24657         * doc/posix-functions/towlower.texi: Update.
24658         * doc/posix-functions/towupper.texi: Update.
24659         * NEWS: Mention the change.
24660         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24661         * modules/mbchar (Dependencies): Likewise.
24662         * modules/mbswidth (Dependencies): Likewise.
24663         * modules/quotearg (Dependencies): Likewise.
24664         * modules/regex (Dependencies): Likewise.
24665         * modules/wcscasecmp (Dependencies): Likewise.
24666         * modules/wcsncasecmp (Dependencies): Likewise.
24667         * modules/wcwidth (Dependencies): Likewise.
24668
24669 2011-02-06  Bruno Haible  <bruno@clisp.org>
24670
24671         New module 'wcswidth'.
24672         * modules/wcswidth: New file.
24673         * lib/wchar.in.h (wcswidth): New declaration.
24674         * lib/wcswidth.c: New file.
24675         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24676         * m4/wcswidth.m4: New file.
24677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24679         REPLACE_WCSWIDTH.
24680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24681         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24682         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24683         * doc/posix-functions/wcswidth.texi: Mention the new module.
24684
24685 2011-02-06  Bruno Haible  <bruno@clisp.org>
24686
24687         New module 'wcstok'.
24688         * modules/wcstok: New file.
24689         * lib/wchar.in.h (wcstok): New declaration.
24690         * lib/wcstok.c: New file.
24691         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24692         * m4/wcstok.m4: New file.
24693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24696         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24697         * doc/posix-functions/wcstok.texi: Mention the new module.
24698
24699 2011-02-06  Bruno Haible  <bruno@clisp.org>
24700
24701         New module 'wcsstr'.
24702         * modules/wcsstr: New file.
24703         * lib/wchar.in.h (wcsstr): New declaration.
24704         * lib/wcsstr.c: New file.
24705         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24706         * m4/wcsstr.m4: New file.
24707         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24708         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24709         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24710         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24711         * doc/posix-functions/wcsstr.texi: Mention the new module.
24712
24713 2011-02-06  Bruno Haible  <bruno@clisp.org>
24714
24715         New module 'wcspbrk'.
24716         * modules/wcspbrk: New file.
24717         * lib/wchar.in.h (wcspbrk): New declaration.
24718         * lib/wcspbrk.c: New file.
24719         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24720         * m4/wcspbrk.m4: New file.
24721         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24722         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24723         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24724         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24725         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24726
24727 2011-02-06  Bruno Haible  <bruno@clisp.org>
24728
24729         New module 'wcsspn'.
24730         * modules/wcsspn: New file.
24731         * lib/wchar.in.h (wcsspn): New declaration.
24732         * lib/wcsspn.c: New file.
24733         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24734         * m4/wcsspn.m4: New file.
24735         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24736         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24737         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24738         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24739         * doc/posix-functions/wcsspn.texi: Mention the new module.
24740
24741 2011-02-06  Bruno Haible  <bruno@clisp.org>
24742
24743         New module 'wcscspn'.
24744         * modules/wcscspn: New file.
24745         * lib/wchar.in.h (wcscspn): New declaration.
24746         * lib/wcscspn.c: New file.
24747         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24748         * m4/wcscspn.m4: New file.
24749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24752         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24753         * doc/posix-functions/wcscspn.texi: Mention the new module.
24754
24755 2011-02-06  Bruno Haible  <bruno@clisp.org>
24756
24757         New module 'wcsrchr'.
24758         * modules/wcsrchr: New file.
24759         * lib/wchar.in.h (wcsrchr): New declaration.
24760         * lib/wcsrchr.c: New file.
24761         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24762         * m4/wcsrchr.m4: New file.
24763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24765         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24766         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24767         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24768
24769 2011-02-06  Bruno Haible  <bruno@clisp.org>
24770
24771         New module 'wcschr'.
24772         * modules/wcschr: New file.
24773         * lib/wchar.in.h (wcschr): New declaration.
24774         * lib/wcschr.c: New file.
24775         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24776         * m4/wcschr.m4: New file.
24777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24780         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24781         * doc/posix-functions/wcschr.texi: Mention the new module.
24782
24783 2011-02-06  Bruno Haible  <bruno@clisp.org>
24784
24785         New module 'wcsdup'.
24786         * modules/wcsdup: New file.
24787         * lib/wchar.in.h (wcsdup): New declaration.
24788         * lib/wcsdup.c: New file.
24789         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24790         * m4/wcsdup.m4: New file.
24791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24794         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24795         * doc/posix-functions/wcsdup.texi: Mention the new module.
24796
24797 2011-02-06  Bruno Haible  <bruno@clisp.org>
24798
24799         New module 'wcsxfrm'.
24800         * modules/wcsxfrm: New file.
24801         * lib/wchar.in.h (wcsxfrm): New declaration.
24802         * lib/wcsxfrm.c: New file.
24803         * lib/wcsxfrm-impl.h: New file.
24804         * m4/wcsxfrm.m4: New file.
24805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24808         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24809         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24810
24811 2011-02-06  Bruno Haible  <bruno@clisp.org>
24812
24813         New module 'wcscoll'.
24814         * modules/wcscoll: New file.
24815         * lib/wchar.in.h (wcscoll): New declaration.
24816         * lib/wcscoll.c: New file.
24817         * lib/wcscoll-impl.h: New file.
24818         * m4/wcscoll.m4: New file.
24819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24822         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24823         * doc/posix-functions/wcscoll.texi: Mention the new module.
24824
24825 2011-02-06  Bruno Haible  <bruno@clisp.org>
24826
24827         New module 'wcsncasecmp'.
24828         * modules/wcsncasecmp: New file.
24829         * lib/wchar.in.h (wcsncasecmp): New declaration.
24830         * lib/wcsncasecmp.c: New file.
24831         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24832         * m4/wcsncasecmp.m4: New file.
24833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24836         HAVE_WCSNCASECMP.
24837         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24838         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24839
24840 2011-02-06  Bruno Haible  <bruno@clisp.org>
24841
24842         New module 'wcscasecmp'.
24843         * modules/wcscasecmp: New file.
24844         * lib/wchar.in.h (wcscasecmp): New declaration.
24845         * lib/wcscasecmp.c: New file.
24846         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24847         * m4/wcscasecmp.m4: New file.
24848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24851         HAVE_WCSCASECMP.
24852         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24853         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24854
24855 2011-02-05  Bruno Haible  <bruno@clisp.org>
24856
24857         New module 'wcsncmp'.
24858         * modules/wcsncmp: New file.
24859         * lib/wchar.in.h (wcsncmp): New declaration.
24860         * lib/wcsncmp.c: New file.
24861         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24862         * m4/wcsncmp.m4: New file.
24863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24866         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24867         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24868
24869 2011-02-05  Bruno Haible  <bruno@clisp.org>
24870
24871         New module 'wcscmp'.
24872         * modules/wcscmp: New file.
24873         * lib/wchar.in.h (wcscmp): New declaration.
24874         * lib/wcscmp.c: New file.
24875         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24876         * m4/wcscmp.m4: New file.
24877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24879         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24880         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24881         * doc/posix-functions/wcscmp.texi: Mention the new module.
24882
24883 2011-02-05  Bruno Haible  <bruno@clisp.org>
24884
24885         New module 'wcsncat'.
24886         * modules/wcsncat: New file.
24887         * lib/wchar.in.h (wcsncat): New declaration.
24888         * lib/wcsncat.c: New file.
24889         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24890         * m4/wcsncat.m4: New file.
24891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24894         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24895         * doc/posix-functions/wcsncat.texi: Mention the new module.
24896
24897 2011-02-05  Bruno Haible  <bruno@clisp.org>
24898
24899         New module 'wcscat'.
24900         * modules/wcscat: New file.
24901         * lib/wchar.in.h (wcscat): New declaration.
24902         * lib/wcscat.c: New file.
24903         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24904         * m4/wcscat.m4: New file.
24905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24908         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24909         * doc/posix-functions/wcscat.texi: Mention the new module.
24910
24911 2011-02-05  Bruno Haible  <bruno@clisp.org>
24912
24913         New module 'wcpncpy'.
24914         * modules/wcpncpy: New file.
24915         * lib/wchar.in.h (wcpncpy): New declaration.
24916         * lib/wcpncpy.c: New file.
24917         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24918         * m4/wcpncpy.m4: New file.
24919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24921         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24922         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24923         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24924
24925 2011-02-05  Bruno Haible  <bruno@clisp.org>
24926
24927         New module 'wcsncpy'.
24928         * modules/wcsncpy: New file.
24929         * lib/wchar.in.h (wcsncpy): New declaration.
24930         * lib/wcsncpy.c: New file.
24931         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24932         * m4/wcsncpy.m4: New file.
24933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24936         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24937         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24938
24939 2011-02-05  Bruno Haible  <bruno@clisp.org>
24940
24941         New module 'wcpcpy'.
24942         * modules/wcpcpy: New file.
24943         * lib/wchar.in.h (wcpcpy): New declaration.
24944         * lib/wcpcpy.c: New file.
24945         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24946         * m4/wcpcpy.m4: New file.
24947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24949         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24950         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24951         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24952
24953 2011-02-05  Bruno Haible  <bruno@clisp.org>
24954
24955         New module 'wcscpy'.
24956         * modules/wcscpy: New file.
24957         * lib/wchar.in.h (wcscpy): New declaration.
24958         * lib/wcscpy.c: New file.
24959         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24960         * m4/wcscpy.m4: New file.
24961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24964         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24965         * doc/posix-functions/wcscpy.texi: Mention the new module.
24966
24967 2011-02-05  Bruno Haible  <bruno@clisp.org>
24968
24969         New module 'wcsnlen'.
24970         * modules/wcsnlen: New file.
24971         * lib/wchar.in.h (wcsnlen): New declaration.
24972         * lib/wcsnlen.c: New file.
24973         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24974         * m4/wcsnlen.m4: New file.
24975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24978         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24979         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24980
24981 2011-02-05  Bruno Haible  <bruno@clisp.org>
24982
24983         New module 'wcslen'.
24984         * modules/wcslen: New file.
24985         * lib/wchar.in.h (wcslen): New declaration.
24986         * lib/wcslen.c: New file.
24987         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24988         * m4/wcslen.m4: New file.
24989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24992         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24993         * doc/posix-functions/wcslen.texi: Mention the new module.
24994
24995 2011-02-05  Bruno Haible  <bruno@clisp.org>
24996
24997         New module 'wmemset'.
24998         * modules/wmemset: New file.
24999         * lib/wchar.in.h (wmemset): New declaration.
25000         * lib/wmemset.c: New file.
25001         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25002         * m4/wmemset.m4: New file.
25003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25005         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25006         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25007         * doc/posix-functions/wmemset.texi: Mention the new module.
25008
25009 2011-02-05  Bruno Haible  <bruno@clisp.org>
25010
25011         New module 'wmemmove'.
25012         * modules/wmemmove: New file.
25013         * lib/wchar.in.h (wmemmove): New declaration.
25014         * lib/wmemmove.c: New file.
25015         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25016         * m4/wmemmove.m4: New file.
25017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25019         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25020         HAVE_WMEMMOVE.
25021         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25022         * doc/posix-functions/wmemmove.texi: Mention the new module.
25023
25024 2011-02-05  Bruno Haible  <bruno@clisp.org>
25025
25026         New module 'wmemcpy'.
25027         * modules/wmemcpy: New file.
25028         * lib/wchar.in.h (wmemcpy): New declaration.
25029         * lib/wmemcpy.c: New file.
25030         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25031         * m4/wmemcpy.m4: New file.
25032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25034         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25035         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25036         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25037
25038 2011-02-05  Bruno Haible  <bruno@clisp.org>
25039
25040         New module 'wmemcmp'.
25041         * modules/wmemcmp: New file.
25042         * lib/wchar.in.h (wmemcmp): New declaration.
25043         * lib/wmemcmp.c: New file.
25044         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25045         * m4/wmemcmp.m4: New file.
25046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25048         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25049         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25050         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25051
25052 2011-02-07  Jim Meyering  <meyering@redhat.com>
25053
25054         di-set, ino-map: new modules, from coreutils
25055         * lib/di-set.c: New file.
25056         * lib/di-set.h: Likewise.
25057         * lib/ino-map.c: Likewise.
25058         * lib/ino-map.h: Likewise.
25059         * modules/di-set: Likewise.
25060         * modules/di-set-tests: Likewise.
25061         * modules/ino-map: Likewise.
25062         * modules/ino-map-tests: Likewise.
25063         * tests/test-di-set.c: Likewise.
25064         * tests/test-ino-map.c: Likewise.
25065
25066 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25067
25068         getloadavg: merge minor changes from Emacs
25069
25070         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25071         (getloadavg): Use memset, not bzero.
25072
25073         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25074         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25075         clash (bug#86).
25076
25077 2010-11-14  Bruno Haible  <bruno@clisp.org>
25078
25079         Allow multiple gnulib generated replacements to coexist.
25080         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25081         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25082         * lib/langinfo.in.h (nl_item): Likewise.
25083         * lib/math.in.h (_NaN, NAN): Likewise.
25084         * lib/netdb.in.h (struct addrinfo): Likewise.
25085         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25086         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25087         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25088         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25089         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25090         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25091         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25092         pthread_mutexattr_init, pthread_mutexattr_settype,
25093         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25094         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25095         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25096         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25097         * lib/sched.in.h (struct sched_param): Likewise.
25098         * lib/se-selinux.in.h (security_class_t, security_context_t,
25099         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25100         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25101         lsetfilecon, fsetfilecon, security_check_context,
25102         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25103         Likewise.
25104         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25105         Likewise.
25106         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25107         _gl_function_taking_int_returning_void_t, union sigval,
25108         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25109         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25110         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25111         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25112         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25113         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25114         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25115         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25116         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25117         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25118         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25119         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25120         socklen_t, rpl_fd_isset): Likewise.
25121         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25122         * lib/sys_time.in.h (struct timeval): Likewise.
25123         * lib/sys_times.in.h (struct tms): Likewise.
25124         * lib/sys_utsname.in.h (struct utsname):
25125         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25126         * lib/unistd.in.h (getpagesize): Likewise.
25127         * lib/wchar.in.h (mbstate_t): Likewise.
25128         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25129         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25130         towlower, towupper): Likewise.
25131         Reported by Sam Steingold <sds@gnu.org>.
25132
25133 2011-02-05  Eric Blake  <eblake@redhat.com>
25134
25135         unsetenv: work around Haiku issues
25136         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25137         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25138
25139 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25140
25141         libposix: avoid calling error() within libposix
25142         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25143         is defined.
25144
25145 2011-02-05  Eric Blake  <eblake@redhat.com>
25146
25147         strerror_r-posix: port to cygwin
25148         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25149         implementation.
25150         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25151         * tests/test-strerror_r.c (main): Fix test.
25152         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25153         issue.
25154
25155 2011-02-05  Bruno Haible  <bruno@clisp.org>
25156
25157         New module 'wmemchr'.
25158         * modules/wmemchr: New file.
25159         * lib/wchar.in.h (wmemchr): New declaration.
25160         * lib/wmemchr.c: New file.
25161         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25162         * m4/wmemchr.m4: New file.
25163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25165         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25166         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25167         * doc/posix-functions/wmemchr.texi: Mention the new module.
25168
25169 2011-02-04  Eric Blake  <eblake@redhat.com>
25170
25171         fdopendir: detect FreeBSD bug
25172         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25173         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25174
25175 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25176
25177         stdbool: do not define HAVE_STDBOOL_H
25178         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25179         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25180         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25181         imported from the latest Autoconf git.  It was motivated by Emacs,
25182         which uses gnulib but does not need HAVE_STDBOOL_H.
25183
25184 2011-02-04  Bruno Haible  <bruno@clisp.org>
25185
25186         wcsnrtombs: Prepare for new module wwcsnrtombs.
25187         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25188         * lib/wcsnrtombs.c: Include it.
25189         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25190
25191         wcsrtombs: Prepare for new module wwcsrtombs.
25192         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25193         * lib/wcsrtombs.c: Include it.
25194         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25195
25196         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25197         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25198         * lib/mbsnrtowcs.c: Include it.
25199         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25200
25201         mbsrtowcs: Prepare for new module mbsrtowwcs.
25202         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25203         * lib/mbsrtowcs.c: Include it.
25204         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25205
25206 2011-02-04  Bruno Haible  <bruno@clisp.org>
25207
25208         vasnprintf: Reduce use of malloc for small format strings.
25209         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25210         (arguments): Add room for the first 7 arguments.
25211         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25212         (char_directives, u8_directives, u16_directives, u32_directives): Add
25213         room for the first 7 directives.
25214         * lib/printf-parse.c: Include <string.h>.
25215         (PRINTF_PARSE): Change memory handling code so that it uses the first
25216         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25217         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25218         Reported by Pádraig Brady <P@draigbrady.com>.
25219
25220 2011-01-31  Eric Blake  <eblake@redhat.com>
25221
25222         dup2: work around Haiku bug
25223         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25224         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25225         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25226         * tests/test-dup2.c (main): Enhance test.
25227
25228 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25229
25230         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25231         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25232         declared by eglibc 2.11.2.
25233         * lib/stdio.in.h: Likewise.
25234
25235 2011-01-31  Eric Blake  <eblake@redhat.com>
25236
25237         ignore-value: add missing test dependency
25238         * tests/test-ignore-value.c: Revert previous change; stdio.h
25239         provides off_t.
25240         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25241
25242 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25243
25244         mktime: clarify long_int width checking
25245         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25246         the top level, to make it clearer that the assumption about
25247         long_int width is being checked.  See
25248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25249
25250 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25251
25252         ignore-value: Fix self-test.
25253         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25254
25255 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25256
25257         TYPE_MAXIMUM: avoid theoretically undefined behavior
25258         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25259         negative number, which the C Standard says has undefined behavior.
25260         In practice this is not a problem, but might as well do it by the book.
25261         Reported by Rich Felker and Eric Blake; see
25262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25263         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25264         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25266         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25267         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25268         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25269
25270         mktime: #undef mktime before #defining it
25271         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25272
25273         mktime: systematically normalize tm_isdst comparisons
25274         * lib/mktime.c (isdst_differ): New function.
25275         (__mktime_internal): Use it systematically for all isdst comparisons.
25276         This completes the fix for libc BZ #6723, and removes the need for
25277         normalizing tm_isdst.  See
25278         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25279         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25280
25281         mktime: fix some integer overflow issues and sidestep the rest
25282
25283         This was prompted by a bug report by Benjamin Lindner for MinGW
25284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25285         His bug is due to signed integer overflow (0 - INT_MIN), and I
25286         I scanned through mktime.c looking for other integer overflow
25287         problems, fixing all the bugs I found.
25288
25289         Although the C Standard says the resulting code is still not safe
25290         in the presence of integer overflow, in practice it should be good
25291         enough for all real-world two's-complement implementations, except
25292         for debugging environments that deliberately trap on integer
25293         overflow (e.g., gcc -ftrapv).
25294
25295         * lib/mktime.c (WRAPV): New macro.
25296         (SHR): Also check that long_int and time_t shift right in the
25297         usual way, before using the fast-but-unportable method.
25298         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25299         used.  The code already assumed two's complement, so there's
25300         no need to test for alternatives.  All uses removed.
25301         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25302         the C standard.  Problem reported by Rich Felker in
25303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25304         (twos_complement_arithmetic): Also check long_int and time_t.
25305         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25306         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25307         (__mktime_internal): Avoid integer overflow with unary subtraction
25308         in two instances where -1 - X is an adequate replacement for -X,
25309         since the calculations are approximate.
25310
25311 2011-01-29  Eric Blake  <eblake@redhat.com>
25312
25313         mktime: avoid infinite loop
25314         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25315         type; behavior is still undefined but portable to all known targets.
25316         Reported by Rich Felker.
25317
25318 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25319
25320         rename, unlink, same-inode: Relicense.
25321         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25322         * modules/unlink (License): Likewise.
25323         * modules/same-inode (License): Likewise.
25324
25325 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25326
25327         mktime: avoid problems on NetBSD 5 / i386
25328         * lib/mktime.c (long_int): New type.  This works around a problem
25329         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25330         but time_t is 64 bits, and where I expect the existing code is
25331         wrong in some cases.
25332         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25333         (ydhms_diff): Bring back the compile-time check for wide-enough
25334         year and yday.
25335
25336         mktime: fix misspelling in comment
25337         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25338         This merges all recent glibc changes of importance.
25339
25340 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25341
25342         move-if-change: cope with concurrent mv of identical file.
25343         * build-aux/move-if-change (CMPPROG): Accept environment
25344         variable as an override for `cmp'.
25345         (usage): Document CMPPROG.
25346         Adjust comparison to drop stdout.  Cope with failure of mv if
25347         the target file exists and is identical to the source, for
25348         parallel builds.
25349         Report from H.J. Lu against binutils in PR binutils/12283.
25350
25351 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25352
25353         * users.txt: Mention sharutils.
25354
25355 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25356
25357         * users.txt: Mention OATH Toolkit.
25358
25359 2011-01-27  Bruno Haible  <bruno@clisp.org>
25360
25361         Prepare for supporting FreeBSD 10.
25362         * build-aux/config.libpath: Remove handling of freebsd1*.
25363
25364 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25365
25366         Prepare for supporting FreeBSD 10.
25367         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25368         match FreeBSD 10.0.
25369
25370 2011-01-27  Bruno Haible  <bruno@clisp.org>
25371
25372         vma-iter, get-rusage-as: Add OpenBSD support.
25373         * modules/vma-iter (configure.ac): Test for mquery.
25374         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25375         * lib/vma-iter.c: Include <sys/mman.h>.
25376         (vma_iterate): Add an implementation based on mquery().
25377         * lib/resource-ext.h (get_rusage_as): Update comments.
25378         * lib/get-rusage-as.c: Likewise.
25379         * lib/get-rusage-data.c: Likewise.
25380
25381 2011-01-26  Karl Berry  <karl@gnu.org>
25382
25383         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25384         variables to make it easier to override the makeinfo program used.
25385
25386 2011-01-26  Eric Blake  <eblake@redhat.com>
25387
25388         fcntl: work around Haiku F_DUPFD bugs
25389         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25390         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25391         cloexec bit on duplication.
25392         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25393
25394 2011-01-26  Bruno Haible  <bruno@clisp.org>
25395
25396         Enable memory leak tests on AIX.
25397         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25398         * tests/test-fprintf-posix3.c (main): Likewise.
25399
25400 2011-01-26  Bruno Haible  <bruno@clisp.org>
25401
25402         Tests for module 'get-rusage-data'.
25403         * modules/get-rusage-data-tests: New file.
25404         * tests/test-get-rusage-data.c: New file.
25405
25406         New module 'get-rusage-data'.
25407         * lib/resource-ext.h (get_rusage_data): New declaration.
25408         * lib/get-rusage-data.c: New file.
25409         * modules/get-rusage-data: New file.
25410
25411 2011-01-25  Bruno Haible  <bruno@clisp.org>
25412
25413         get-rusage-as: Allow for easier testing.
25414         * lib/resource-ext.h (get_rusage_as): Add comment.
25415         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25416         (main): New function for interactive testing.
25417
25418 2011-01-25  Bruno Haible  <bruno@clisp.org>
25419
25420         vma-iter: Treat Haiku like BeOS.
25421         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25422         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25423
25424 2011-01-25  Eric Blake  <eblake@redhat.com>
25425
25426         c-stack: fix regression on cygwin when libsigsegv is present
25427         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25428
25429 2011-01-24  Bruno Haible  <bruno@clisp.org>
25430
25431         vma-iter: Avoid empty intervals.
25432         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25433         on an empty interval.
25434
25435 2011-01-24  Jim Meyering  <meyering@redhat.com>
25436
25437         u64: remove unnecessary #include
25438         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25439
25440 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25441
25442         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25443         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25444
25445 2011-01-23  Bruno Haible  <bruno@clisp.org>
25446
25447         New module 'vma-iter'.
25448         * lib/vma-iter.h: New file.
25449         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25450         * modules/vma-iter: New file.
25451         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25452         for get_rusage_as_via_iterator.
25453         (vma_iterate_callback): New function.
25454         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25455         * modules/get-rusage-as (Depends-on): Add vma-iter.
25456
25457 2011-01-23  Bruno Haible  <bruno@clisp.org>
25458
25459         uninorm: Tweak includes.
25460         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25461         Reported by Jim Meyering.
25462
25463 2011-01-23  Bruno Haible  <bruno@clisp.org>
25464
25465         get-rusage-as: Improve on NetBSD.
25466         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25467         /proc, like on FreeBSD.
25468
25469 2011-01-23  Jim Meyering  <meyering@redhat.com>
25470
25471         xreadlink.h: remove unnecessary #include
25472         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25473
25474         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25475         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25476
25477 2011-01-23  Bruno Haible  <bruno@clisp.org>
25478
25479         get-rusage-as: Fix bug.
25480         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25481         original limit when aborting the first loop.
25482
25483 2011-01-23  Bruno Haible  <bruno@clisp.org>
25484
25485         wctype: Ensure valid C syntax.
25486         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25487         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25488
25489 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25490
25491         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25493         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25494         as they are needed only for configure's test case.
25495         This removes two unnecessary symbols from config.h.
25496
25497         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25498         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25500         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25501         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25502         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25503         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25504         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25505         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25506         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25507         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25509         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25510         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25511         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25512         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25513         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25514         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25515
25516 2011-01-21  Eric Blake  <eblake@redhat.com>
25517
25518         maintainer-makefile: work with older git for submodule check
25519         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25520         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25521         Reported by Matthias Bolte.
25522
25523         bootstrap: minor portability fixes
25524         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25525         (usage): Omit leading capital and trailing . on help phrases, per
25526         GNU Coding Standards.
25527         (check_versions, top level): Prefix messages with script name.
25528
25529 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25530
25531         bootstrap: support --no-git option
25532         * build-aux/bootstrap: Add --no-git option, to be used when
25533         --gnulib-srcdir points to the exact desired checkout.
25534
25535 2011-01-21  Eric Blake  <eblake@redhat.com>
25536
25537         strerror_r-posix: work with glibc 2.13
25538         * lib/strerror_r.c (strerror_r): Fix return type.
25539
25540 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25541             Bruno Haible  <bruno@clisp.org>
25542
25543         uN_strstr: New unit tests.
25544         * modules/unistr/u8-strstr-tests: New file.
25545         * modules/unistr/u16-strstr-tests: New file.
25546         * modules/unistr/u32-strstr-tests: New file.
25547         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25548         * tests/unistr/test-u8-strstr.c: New file.
25549         * tests/unistr/test-u16-strstr.c: New file.
25550         * tests/unistr/test-u32-strstr.c: New file.
25551
25552 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25553             Bruno Haible  <bruno@clisp.org>
25554
25555         Make uN_strstr functions O(n) worst-case.
25556         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25557         16-bit and 32-bit unit cases, use the unibyte algorithm from
25558         lib/mbsstr.c.
25559         * lib/unistr/u8-strstr.c: Include <string.h>.
25560         (UNIT_IS_UINT8_T): New macro.
25561         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25562         (U_STRLEN, U_STRNLEN): New macros.
25563         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25564         (U_STRLEN, U_STRNLEN): New macros.
25565         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25566         (configure.ac): Update required libunistring version.
25567         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25568         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25569         malloca.
25570         (configure.ac): Update required libunistring version.
25571         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25572         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25573         malloca.
25574         (configure.ac): Update required libunistring version.
25575
25576 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25577             Bruno Haible  <bruno@clisp.org>
25578
25579         Prepare for faster uN_strstr functions.
25580         * lib/str-kmp.h: Support definable UNITs.
25581         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25582         needle_len argument.
25583         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25584         * lib/mbscasestr.c (mbscasestr): Likewise.
25585
25586 2011-01-21  Pádraig Brady <P@draigBrady.com>
25587
25588         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25589         * tests/test-malloca.c (main): Unset the environment variable
25590         to greatly speed up the test.
25591         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25592         * modules/malloca-tests: Depend on unsetenv.
25593
25594 2011-01-21  Pádraig Brady <P@draigBrady.com>
25595
25596         ignore-value: remove stdint dependency
25597         * lib/ignore-value.h: Remove <stdint.h>
25598         * modules/ignore-value: Remove stdint dependency.
25599
25600 2011-01-21  Jim Meyering  <meyering@redhat.com>
25601
25602         maint.mk: adjust variable name to be consistent with other gl_ vars
25603         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25604         to be lower case.
25605
25606 2011-01-20  Jim Meyering  <meyering@redhat.com>
25607
25608         maint.mk: make "check" depend on public-submodule-commit by default
25609         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25610
25611 2011-01-20  Bruno Haible  <bruno@clisp.org>
25612
25613         mbfile, mbiter: Complete change from 2008-12-21.
25614         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25615         * m4/mbiter.m4 (gl_MBITER): Likewise.
25616
25617 2011-01-20  Jim Meyering  <meyering@redhat.com>
25618
25619         init.sh: insert space between each function name and "()"
25620         * tests/init.sh: Make it a little easier to see that a function's
25621         name is "warn_", and not "warn" when looking at the first part of
25622         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25623
25624 2011-01-20  Jim Meyering  <meyering@redhat.com>
25625
25626         mountlist: clean up code formatting
25627         * lib/mountlist.c (read_file_system_list): Split a long line,
25628         correct bracing style, use NULL in place of "(struct statfs *)0",
25629         don't parenthesize return value, add spaces around "=" and after
25630         ";-in-for-stmt".
25631
25632 2011-01-14  Markus Duft <mduft@gentoo.org>
25633
25634         mountlist: add support for Interix
25635         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25636         Apply statvfs to all entries of /dev/fs.
25637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25638         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25639
25640 2011-01-20  Jim Meyering  <meyering@redhat.com>
25641
25642         maint.mk: improve the public-submodule-commit rule
25643         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25644         to suppress printing of its commands... unless V=1.
25645         Add git submodule's --quiet option to suppress printing of e.g.,
25646         "Entering gnulib" output.
25647         "cd" into $(srcdir) before running git submodule.
25648
25649 2011-01-20  Bruno Haible  <bruno@clisp.org>
25650
25651         include_next: Fix bug introduced on 2011-01-18.
25652         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25653         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25654         ac_cv_header_... variable if the second argument is not 'check'.
25655         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25656         gl_NEXT_HEADERS_INTERNAL.
25657
25658 2011-01-20  Bruno Haible  <bruno@clisp.org>
25659
25660         Allow the user to avoid the GNULIB_TEST_* macros.
25661         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25662         Suggested by Paul Eggert.
25663
25664 2011-01-14  Jim Meyering  <meyering@redhat.com>
25665
25666         bootstrap: avoid failure when there is no .gitmodules file
25667         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25668         has been assigned to, even when its value is the empty string.
25669         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25670         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25671         Reported by John W. Eaton <jwe@gnu.org>.
25672
25673 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25674
25675         assume <ctype.h>, ..., <time.h> exist
25676         For years gnulib has been assuming the existence of the headers
25677         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25678         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25679         them, since they don't appear to be needed.
25680         * README (Portability guidelines): Document this.
25681         * lib/flock.c: Assume <fcntl.h> exists.
25682         * lib/regex_internal.h: Assume <locale.h> exists.
25683         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25685         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25686         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25687         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25688         * m4/regex.m4 (gl_REGEX): Likewise.
25689         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25690         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25691         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25692         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25693         * tests/test-argp.c: Likewise.
25694         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25695
25696         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25697         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25698         AA_APPLE_UNIVERSAL_BUILD.  See
25699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25700         * NEWS: Document this.
25701
25702 2011-01-19  Eric Blake  <eblake@redhat.com>
25703
25704         c-stack: assume stack overflow if SA_SIGINFO unsupported
25705         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25706         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25707         sigaction will work.
25708         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25709         behavior match Linux.
25710         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25711
25712         stdbool-tests: accommodate Haiku
25713         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25714
25715         binary-io: fix O_TEXT on Haiku
25716         * modules/binary-io (Depends-on): Add fcntl-h.
25717         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25718         than blindly undefining O_TEXT.
25719         Reported by Scott McCreary.
25720
25721 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25722
25723         include_next: do not check for standard headers like stddef.h
25724
25725         I found this problem when modifying Emacs to use gnulib.
25726         I noticed that it added HAVE_STDDEF_H to config.h, even though
25727         gnulib always assumes <stddef.h> exists as per README and this
25728         symbol is unnecessary.
25729         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25730         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25731         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25732         faster for headers like stddef.h that are known to exist.
25733         (gl_CHECK_NEXT_HEADERS): Use it.
25734         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25735         rather than gl_CHECK_NEXT_HEADERS.
25736         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25737         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25738
25739 2011-01-18  Eric Blake  <eblake@redhat.com>
25740
25741         ansi-c++-opt: skip C++ dependency style if C++ is unused
25742         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25743         tests when we know C++ compilation is not desired.
25744         Reported by Scott McCreary.
25745
25746 2011-01-18  Bruno Haible  <bruno@clisp.org>
25747
25748         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25749         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25750         (main): Perform test also when getrlimit and setrlimit don't exist or
25751         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25752         limiting the address space size using setrlimit, compare the address
25753         space size before and after the the test.
25754         * tests/test-dprintf-posix2.c: Likewise.
25755         * tests/test-fprintf-posix3.sh: Update skip messages.
25756         * tests/test-dprintf-posix2.sh: Likewise.
25757         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25758         * modules/dprintf-posix-tests (Depends-on): Likewise.
25759         Reported by Bruce Korb <bkorb@gnu.org> and
25760         Gary V. Vaughan <gary@gnu.org>.
25761
25762 2011-01-18  Bruno Haible  <bruno@clisp.org>
25763
25764         get-rusage-as: Improvement for Cygwin.
25765         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25766         areas that are merely reserved.
25767
25768 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25769
25770         strftime: remove dependencies on multibyte modules
25771
25772         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25773         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25774         only if __osf__ is defined, and I suspect OSF doesn't need these
25775         other modules.  If my guess is wrong, we'll need to come up with a
25776         variant of strftime that doesn't need the multibyte modules.
25777
25778         I discovered this problem when attempting modify Emacs to use the
25779         strftime module.  With the previous gnulib, this caused Emacs to
25780         need 31 new files, ranging from lib/config.charset to
25781         m4/wint_t.m4.  This was overkill and I expect would be offputting
25782         to the Emacs maintainers.  After this change, only 6 new files are
25783         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25784         stdbool.m4, and tm_gmtoff.m4.
25785
25786         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25787         Suggested by Bruno Haible in
25788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25789         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25790         and do not check for wchar.h.
25791         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25792         (Depends-on): Remove mbrlen, mbsinit, wchar.
25793
25794 2011-01-18  Bruno Haible  <bruno@clisp.org>
25795
25796         Tests for module 'get-rusage-as'.
25797         * modules/get-rusage-as-tests: New file.
25798         * tests/test-get-rusage-as.c: New file.
25799
25800         New module 'get-rusage-as'.
25801         * modules/get-rusage-as: New file.
25802         * lib/resource-ext.h: New file.
25803         * lib/get-rusage-as.c: New file.
25804
25805 2011-01-17  Eric Blake  <eblake@redhat.com>
25806
25807         sigaction: relax license from LGPLv3+ to LGPLv2+
25808         * modules/sigaction (License): Relax to LGPLv2+.
25809
25810 2011-01-14  Bruno Haible  <bruno@clisp.org>
25811
25812         filemode: Make function declarations usable in C++ mode.
25813         * lib/filemode.h: Enclose function declarations in extern "C" block.
25814         Reported by John W. Eaton <jwe@gnu.org>.
25815
25816 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25817
25818         save-cwd: no longer include "xgetcwd.h"
25819         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25820         This avoids a compilation failure in projects that use save-cwd
25821         without also using the xgetcwd module.
25822
25823 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25824
25825         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25826         This is so that a program like Emacs, which needs only dtoastr,
25827         does not have to bother with distributing and compiling ftoastr
25828         and ldtoastr.
25829         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25830         * modules/dtoastr, modules/ldtoastr: New files.
25831         * modules/ftoastr: Now works just for 'float'.
25832         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25833         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25834         dtoastr.c, ldtoastr.c.
25835
25836 2011-01-11  Jim Meyering  <meyering@redhat.com>
25837
25838         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25839         There is no need to work around the lack of the fchdir function,
25840         since gnulib can now provide a replacement when required.
25841         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25842         * modules/save-cwd (Depends-on): Add fchdir.
25843
25844 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25845
25846         openat, save-cwd: avoid xmalloc
25847
25848         This removes a direct (but undocumented) dependency of openat on
25849         xalloc, along with an indirect dependency via save-cwd.  It also
25850         removes a dependency of save-cwd on xgetcwd, and thereby
25851         indirectly on xalloc.  This change causes the openat substitute
25852         to fall back on save_cwd when memory is tight, and for save_cwd to
25853         fail instead of dying when memory is tight, but that's good enough.
25854         Problem and initial idea for fix reported by Bastien Roucaries in
25855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25856
25857         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25858         xalloc.h (for xmalloc).
25859         (openat_proc_name): Use malloc, not xmalloc.
25860         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25861         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25862
25863         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25864         This avoids heap allocation for file names whose lengths are in
25865         the range 512..1023, with the upper bound increasing to at most
25866         4031 depending on the platform's PATH_MAX.  (We do not want
25867         pathmax.h here as it might supply a non-constant PATH_MAX.)
25868         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25869         Perhaps they should be moved to malloca.h?
25870         (OPENAT_BUFFER_SIZE): Use them.
25871
25872 2011-01-10  Bruno Haible  <bruno@clisp.org>
25873
25874         doc: Update users.txt.
25875         * users.txt: Add recutils.
25876
25877 2011-01-09  Karl Berry  <karl@gnu.org>
25878
25879         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25880
25881         * doc/configmake.texi: New file.
25882         * doc/gnulib.texi: Include it.
25883         * modules/configmake: Move documentation from here.
25884
25885 2011-01-09  Bruno Haible  <bruno@clisp.org>
25886
25887         Update to Unicode 6.0.0.
25888         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25889         (get_lbp): Update for Unicode 6.0.0.
25890         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25891         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25892         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25893         U+11001, U+11038..U+11046. Remove U+06DE.
25894         (uc_width): Fix bounds of planes.
25895         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25896         lib/uniwidth/width.c.
25897         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25898         trailing whitespace removed.
25899         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25900         without comments, but with the original copyright notice.
25901         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25902         * lib/unicase/ignorable.h: Likewise.
25903         * lib/unicase/tocasefold.h: Likewise.
25904         * lib/unicase/tolower.h: Likewise.
25905         * lib/unicase/totitle.h: Likewise.
25906         * lib/unicase/toupper.h: Likewise.
25907         * lib/unictype/bidi_of.h: Likewise.
25908         * lib/unictype/blocks.h: Likewise.
25909         * lib/unictype/categ_C.h: Likewise.
25910         * lib/unictype/categ_Cn.h: Likewise.
25911         * lib/unictype/categ_L.h: Likewise.
25912         * lib/unictype/categ_Ll.h: Likewise.
25913         * lib/unictype/categ_Lm.h: Likewise.
25914         * lib/unictype/categ_Lo.h: Likewise.
25915         * lib/unictype/categ_Lu.h: Likewise.
25916         * lib/unictype/categ_M.h: Likewise.
25917         * lib/unictype/categ_Mc.h: Likewise.
25918         * lib/unictype/categ_Me.h: Likewise.
25919         * lib/unictype/categ_Mn.h: Likewise.
25920         * lib/unictype/categ_N.h: Likewise.
25921         * lib/unictype/categ_Nd.h: Likewise.
25922         * lib/unictype/categ_No.h: Likewise.
25923         * lib/unictype/categ_P.h: Likewise.
25924         * lib/unictype/categ_Po.h: Likewise.
25925         * lib/unictype/categ_S.h: Likewise.
25926         * lib/unictype/categ_Sc.h: Likewise.
25927         * lib/unictype/categ_Sk.h: Likewise.
25928         * lib/unictype/categ_Sm.h: Likewise.
25929         * lib/unictype/categ_So.h: Likewise.
25930         * lib/unictype/categ_of.h: Likewise.
25931         * lib/unictype/combining.h: Likewise.
25932         * lib/unictype/ctype_alnum.h: Likewise.
25933         * lib/unictype/ctype_alpha.h: Likewise.
25934         * lib/unictype/ctype_graph.h: Likewise.
25935         * lib/unictype/ctype_lower.h: Likewise.
25936         * lib/unictype/ctype_print.h: Likewise.
25937         * lib/unictype/ctype_punct.h: Likewise.
25938         * lib/unictype/ctype_upper.h: Likewise.
25939         * lib/unictype/decdigit.h: Likewise.
25940         * lib/unictype/digit.h: Likewise.
25941         * lib/unictype/numeric.h: Likewise.
25942         * lib/unictype/pr_alphabetic.h: Likewise.
25943         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25944         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25945         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25946         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25947         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25948         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25949         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25950         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25951         * lib/unictype/pr_case_ignorable.h: Likewise.
25952         * lib/unictype/pr_cased.h: Likewise.
25953         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25954         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25955         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25956         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25957         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25958         * lib/unictype/pr_combining.h: Likewise.
25959         * lib/unictype/pr_composite.h: Likewise.
25960         * lib/unictype/pr_currency_symbol.h: Likewise.
25961         * lib/unictype/pr_decimal_digit.h: Likewise.
25962         * lib/unictype/pr_deprecated.h: Likewise.
25963         * lib/unictype/pr_format_control.h: Likewise.
25964         * lib/unictype/pr_grapheme_base.h: Likewise.
25965         * lib/unictype/pr_grapheme_extend.h: Likewise.
25966         * lib/unictype/pr_grapheme_link.h: Likewise.
25967         * lib/unictype/pr_id_continue.h: Likewise.
25968         * lib/unictype/pr_id_start.h: Likewise.
25969         * lib/unictype/pr_ideographic.h: Likewise.
25970         * lib/unictype/pr_lowercase.h: Likewise.
25971         * lib/unictype/pr_math.h: Likewise.
25972         * lib/unictype/pr_numeric.h: Likewise.
25973         * lib/unictype/pr_other_alphabetic.h: Likewise.
25974         * lib/unictype/pr_other_id_continue.h: Likewise.
25975         * lib/unictype/pr_other_math.h: Likewise.
25976         * lib/unictype/pr_punctuation.h: Likewise.
25977         * lib/unictype/pr_sentence_terminal.h: Likewise.
25978         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25979         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25980         * lib/unictype/pr_unified_ideograph.h: Likewise.
25981         * lib/unictype/pr_uppercase.h: Likewise.
25982         * lib/unictype/pr_xid_continue.h: Likewise.
25983         * lib/unictype/pr_xid_start.h: Likewise.
25984         * lib/unictype/scripts.h: Likewise.
25985         * lib/unictype/scripts_byname.gperf: Likewise.
25986         * lib/unictype/sy_java_ident.h: Likewise.
25987         * lib/unigbrk/gbrkprop.h: Likewise.
25988         * lib/unilbrk/lbrkprop1.h: Likewise.
25989         * lib/unilbrk/lbrkprop2.h: Likewise.
25990         * lib/uninorm/decomposition-table2.h: Likewise.
25991         * lib/uniwbrk/wbrkprop.h: Likewise.
25992         * tests/unicase/test-cased.c: Likewise.
25993         * tests/unicase/test-ignorable.c: Likewise.
25994         * tests/unicase/test-uc_tolower.c: Likewise.
25995         * tests/unicase/test-uc_totitle.c: Likewise.
25996         * tests/unicase/test-uc_toupper.c: Likewise.
25997         * tests/unictype/test-categ_C.c: Likewise.
25998         * tests/unictype/test-categ_Cn.c: Likewise.
25999         * tests/unictype/test-categ_L.c: Likewise.
26000         * tests/unictype/test-categ_Ll.c: Likewise.
26001         * tests/unictype/test-categ_Lm.c: Likewise.
26002         * tests/unictype/test-categ_Lo.c: Likewise.
26003         * tests/unictype/test-categ_Lu.c: Likewise.
26004         * tests/unictype/test-categ_M.c: Likewise.
26005         * tests/unictype/test-categ_Mc.c: Likewise.
26006         * tests/unictype/test-categ_Me.c: Likewise.
26007         * tests/unictype/test-categ_Mn.c: Likewise.
26008         * tests/unictype/test-categ_N.c: Likewise.
26009         * tests/unictype/test-categ_Nd.c: Likewise.
26010         * tests/unictype/test-categ_No.c: Likewise.
26011         * tests/unictype/test-categ_P.c: Likewise.
26012         * tests/unictype/test-categ_Po.c: Likewise.
26013         * tests/unictype/test-categ_S.c: Likewise.
26014         * tests/unictype/test-categ_Sc.c: Likewise.
26015         * tests/unictype/test-categ_Sk.c: Likewise.
26016         * tests/unictype/test-categ_Sm.c: Likewise.
26017         * tests/unictype/test-categ_So.c: Likewise.
26018         * tests/unictype/test-ctype_alnum.c: Likewise.
26019         * tests/unictype/test-ctype_alpha.c: Likewise.
26020         * tests/unictype/test-ctype_graph.c: Likewise.
26021         * tests/unictype/test-ctype_lower.c: Likewise.
26022         * tests/unictype/test-ctype_print.c: Likewise.
26023         * tests/unictype/test-ctype_punct.c: Likewise.
26024         * tests/unictype/test-ctype_upper.c: Likewise.
26025         * tests/unictype/test-decdigit.h: Likewise.
26026         * tests/unictype/test-digit.h: Likewise.
26027         * tests/unictype/test-numeric.h: Likewise.
26028         * tests/unictype/test-pr_alphabetic.c: Likewise.
26029         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26030         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26031         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26032         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26033         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26034         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26035         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26036         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26037         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26038         * tests/unictype/test-pr_cased.c: Likewise.
26039         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26040         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26041         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26042         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26043         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26044         * tests/unictype/test-pr_combining.c: Likewise.
26045         * tests/unictype/test-pr_composite.c: Likewise.
26046         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26047         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26048         * tests/unictype/test-pr_deprecated.c: Likewise.
26049         * tests/unictype/test-pr_format_control.c: Likewise.
26050         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26051         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26052         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26053         * tests/unictype/test-pr_id_continue.c: Likewise.
26054         * tests/unictype/test-pr_id_start.c: Likewise.
26055         * tests/unictype/test-pr_ideographic.c: Likewise.
26056         * tests/unictype/test-pr_lowercase.c: Likewise.
26057         * tests/unictype/test-pr_math.c: Likewise.
26058         * tests/unictype/test-pr_numeric.c: Likewise.
26059         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26060         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26061         * tests/unictype/test-pr_other_math.c: Likewise.
26062         * tests/unictype/test-pr_punctuation.c: Likewise.
26063         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26064         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26065         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26066         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26067         * tests/unictype/test-pr_uppercase.c: Likewise.
26068         * tests/unictype/test-pr_xid_continue.c: Likewise.
26069         * tests/unictype/test-pr_xid_start.c: Likewise.
26070         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26071         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26072         changes.
26073         * lib/unictype/categ_Cc.h: Likewise.
26074         * lib/unictype/categ_Cf.h: Likewise.
26075         * lib/unictype/categ_Co.h: Likewise.
26076         * lib/unictype/categ_Cs.h: Likewise.
26077         * lib/unictype/categ_Lt.h: Likewise.
26078         * lib/unictype/categ_Nl.h: Likewise.
26079         * lib/unictype/categ_Pc.h: Likewise.
26080         * lib/unictype/categ_Pd.h: Likewise.
26081         * lib/unictype/categ_Pe.h: Likewise.
26082         * lib/unictype/categ_Pf.h: Likewise.
26083         * lib/unictype/categ_Pi.h: Likewise.
26084         * lib/unictype/categ_Ps.h: Likewise.
26085         * lib/unictype/categ_Z.h: Likewise.
26086         * lib/unictype/categ_Zl.h: Likewise.
26087         * lib/unictype/categ_Zp.h: Likewise.
26088         * lib/unictype/categ_Zs.h: Likewise.
26089         * lib/unictype/ctype_blank.h: Likewise.
26090         * lib/unictype/ctype_cntrl.h: Likewise.
26091         * lib/unictype/ctype_digit.h: Likewise.
26092         * lib/unictype/ctype_space.h: Likewise.
26093         * lib/unictype/ctype_xdigit.h: Likewise.
26094         * lib/unictype/mirror.h: Likewise.
26095         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26096         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26097         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26098         * lib/unictype/pr_bidi_control.h: Likewise.
26099         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26100         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26101         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26102         * lib/unictype/pr_bidi_pdf.h: Likewise.
26103         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26104         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26105         * lib/unictype/pr_dash.h: Likewise.
26106         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26107         * lib/unictype/pr_diacritic.h: Likewise.
26108         * lib/unictype/pr_extender.h: Likewise.
26109         * lib/unictype/pr_hex_digit.h: Likewise.
26110         * lib/unictype/pr_hyphen.h: Likewise.
26111         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26112         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26113         * lib/unictype/pr_ignorable_control.h: Likewise.
26114         * lib/unictype/pr_iso_control.h: Likewise.
26115         * lib/unictype/pr_join_control.h: Likewise.
26116         * lib/unictype/pr_left_of_pair.h: Likewise.
26117         * lib/unictype/pr_line_separator.h: Likewise.
26118         * lib/unictype/pr_logical_order_exception.h: Likewise.
26119         * lib/unictype/pr_non_break.h: Likewise.
26120         * lib/unictype/pr_not_a_character.h: Likewise.
26121         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26122         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26123         * lib/unictype/pr_other_id_start.h: Likewise.
26124         * lib/unictype/pr_other_lowercase.h: Likewise.
26125         * lib/unictype/pr_other_uppercase.h: Likewise.
26126         * lib/unictype/pr_paired_punctuation.h: Likewise.
26127         * lib/unictype/pr_paragraph_separator.h: Likewise.
26128         * lib/unictype/pr_pattern_syntax.h: Likewise.
26129         * lib/unictype/pr_pattern_white_space.h: Likewise.
26130         * lib/unictype/pr_private_use.h: Likewise.
26131         * lib/unictype/pr_quotation_mark.h: Likewise.
26132         * lib/unictype/pr_radical.h: Likewise.
26133         * lib/unictype/pr_soft_dotted.h: Likewise.
26134         * lib/unictype/pr_space.h: Likewise.
26135         * lib/unictype/pr_titlecase.h: Likewise.
26136         * lib/unictype/pr_variation_selector.h: Likewise.
26137         * lib/unictype/pr_white_space.h: Likewise.
26138         * lib/unictype/pr_zero_width.h: Likewise.
26139         * lib/unictype/sy_c_ident.h: Likewise.
26140         * lib/unictype/sy_c_whitespace.h: Likewise.
26141         * lib/unictype/sy_java_whitespace.h: Likewise.
26142         * lib/uninorm/composition-table.gperf: Likewise.
26143         * lib/uninorm/decomposition-table1.h: Likewise.
26144         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26145         LB8.
26146         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26147         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26148         * modules/unictype/*: Bump version number of expected libunistring
26149         version.
26150
26151 2011-01-09  Bruno Haible  <bruno@clisp.org>
26152
26153         Update to Unicode 5.2.0.
26154         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26155         trailing whitespace removed.
26156
26157 2011-01-09  Bruno Haible  <bruno@clisp.org>
26158
26159         New Unicode character properties, from Unicode 5.2.0.
26160         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26161         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26162         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26163         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26164         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26165         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26166         uc_is_property_cased, uc_is_property_case_ignorable,
26167         uc_is_property_changes_when_lowercased,
26168         uc_is_property_changes_when_uppercased,
26169         uc_is_property_changes_when_titlecased,
26170         uc_is_property_changes_when_casefolded,
26171         uc_is_property_changes_when_casemapped): New declarations.
26172         * lib/unictype/pr_byname.gperf: Add the new properties.
26173         * modules/unictype/property-byname (Depends-on): Depend on the new
26174         properties modules.
26175         * modules/unictype/property-all (Depends-on): Likewise.
26176         * MODULES.html.sh (Unicode string functions): Add
26177         unictype/property-case-ignorable, unictype/property-cased,
26178         unictype/property-changes-when-casefolded,
26179         unictype/property-changes-when-casemapped,
26180         unictype/property-changes-when-lowercased,
26181         unictype/property-changes-when-titlecased,
26182         unictype/property-changes-when-uppercased.
26183
26184         New module 'unictype/property-changes-when-casemapped'.
26185         * modules/unictype/property-changes-when-casemapped: New file.
26186         * lib/unictype/pr_changes_when_casemapped.c: New file.
26187         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26188         generated by gen-uni-tables.
26189         * modules/unictype/property-changes-when-casemapped-tests: New file.
26190         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26191         automatically generated by gen-uni-tables.
26192
26193         New module 'unictype/property-changes-when-casefolded'.
26194         * modules/unictype/property-changes-when-casefolded: New file.
26195         * lib/unictype/pr_changes_when_casefolded.c: New file.
26196         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26197         generated by gen-uni-tables.
26198         * modules/unictype/property-changes-when-casefolded-tests: New file.
26199         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26200         automatically generated by gen-uni-tables.
26201
26202         New module 'unictype/property-changes-when-titlecased'.
26203         * modules/unictype/property-changes-when-titlecased: New file.
26204         * lib/unictype/pr_changes_when_titlecased.c: New file.
26205         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26206         generated by gen-uni-tables.
26207         * modules/unictype/property-changes-when-titlecased-tests: New file.
26208         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26209         automatically generated by gen-uni-tables.
26210
26211         New module 'unictype/property-changes-when-uppercased'.
26212         * modules/unictype/property-changes-when-uppercased: New file.
26213         * lib/unictype/pr_changes_when_uppercased.c: New file.
26214         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26215         generated by gen-uni-tables.
26216         * modules/unictype/property-changes-when-uppercased-tests: New file.
26217         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26218         automatically generated by gen-uni-tables.
26219
26220         New module 'unictype/property-changes-when-lowercased'.
26221         * modules/unictype/property-changes-when-lowercased: New file.
26222         * lib/unictype/pr_changes_when_lowercased.c: New file.
26223         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26224         generated by gen-uni-tables.
26225         * modules/unictype/property-changes-when-lowercased-tests: New file.
26226         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26227         automatically generated by gen-uni-tables.
26228
26229         New module 'unictype/property-case-ignorable'.
26230         * modules/unictype/property-case-ignorable: New file.
26231         * lib/unictype/pr_case_ignorable.c: New file.
26232         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26233         by gen-uni-tables.
26234         * modules/unictype/property-case-ignorable-tests: New file.
26235         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26236         generated by gen-uni-tables.
26237
26238         New module 'unictype/property-cased'.
26239         * modules/unictype/property-cased: New file.
26240         * lib/unictype/pr_cased.c: New file.
26241         * lib/unictype/pr_cased.h: New file, automatically generated by
26242         gen-uni-tables.
26243         * modules/unictype/property-cased-tests: New file.
26244         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26245         gen-uni-tables.
26246
26247 2011-01-09  Bruno Haible  <bruno@clisp.org>
26248
26249         Update to Unicode 5.2.0.
26250         * lib/gen-uni-tables.c (output_predicate, output_category,
26251         output_combclass, output_bidi_category, output_decimal_digit_test,
26252         output_decimal_digit, output_digit_test, output_digit,
26253         output_numeric_test, output_numeric, output_mirror, output_scripts,
26254         output_scripts_byname, output_blocks, output_ident_category): Fix
26255         comment header.
26256         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26257         get_wbp.
26258         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26259         items.
26260         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26261         Changes_When_Lowercased, Changes_When_Uppercased,
26262         Changes_When_Titlecased, Changes_When_Casefolded,
26263         Changes_When_Casemapped.
26264         (is_property_alphabetic, is_property_default_ignorable_code_point):
26265         Update for Unicode 5.2.0.
26266         (is_property_cased, is_property_case_ignorable,
26267         is_property_changes_when_lowercased,
26268         is_property_changes_when_uppercased,
26269         is_property_changes_when_titlecased,
26270         is_property_changes_when_casefolded,
26271         is_property_changes_when_casemapped): New functions.
26272         (output_properties): Output also the properties cased, case_ignorable,
26273         changes_when_lowercased, changes_when_uppercased,
26274         changes_when_titlecased, changes_when_casefolded,
26275         changes_when_casemapped.
26276         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26277         Unicode TR#11 revision 17 -> 19.
26278         (LBP_CP): New enumeration value.
26279         (LBP_*): Adjust values accordingly.
26280         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26281         TR#14 revision 22 -> 24.
26282         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26283         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26284         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26285         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26286         is_WBP_MIDLETTER.
26287         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26288         the code1 and code2 of each composition rule.
26289         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26290         * lib/unicase/ignorable.h: Likewise.
26291         * lib/unicase/tocasefold.h: Likewise.
26292         * lib/unicase/tolower.h: Likewise.
26293         * lib/unicase/totitle.h: Likewise.
26294         * lib/unicase/toupper.h: Likewise.
26295         * lib/unictype/bidi_of.h: Likewise.
26296         * lib/unictype/blocks.h: Likewise.
26297         * lib/unictype/categ_C.h: Likewise.
26298         * lib/unictype/categ_Cf.h: Likewise.
26299         * lib/unictype/categ_Cn.h: Likewise.
26300         * lib/unictype/categ_L.h: Likewise.
26301         * lib/unictype/categ_Ll.h: Likewise.
26302         * lib/unictype/categ_Lm.h: Likewise.
26303         * lib/unictype/categ_Lo.h: Likewise.
26304         * lib/unictype/categ_Lu.h: Likewise.
26305         * lib/unictype/categ_M.h: Likewise.
26306         * lib/unictype/categ_Mc.h: Likewise.
26307         * lib/unictype/categ_Mn.h: Likewise.
26308         * lib/unictype/categ_N.h: Likewise.
26309         * lib/unictype/categ_Nd.h: Likewise.
26310         * lib/unictype/categ_Nl.h: Likewise.
26311         * lib/unictype/categ_No.h: Likewise.
26312         * lib/unictype/categ_P.h: Likewise.
26313         * lib/unictype/categ_Pd.h: Likewise.
26314         * lib/unictype/categ_Po.h: Likewise.
26315         * lib/unictype/categ_S.h: Likewise.
26316         * lib/unictype/categ_Sc.h: Likewise.
26317         * lib/unictype/categ_So.h: Likewise.
26318         * lib/unictype/categ_of.h: Likewise.
26319         * lib/unictype/combining.h: Likewise.
26320         * lib/unictype/ctype_alnum.h: Likewise.
26321         * lib/unictype/ctype_alpha.h: Likewise.
26322         * lib/unictype/ctype_graph.h: Likewise.
26323         * lib/unictype/ctype_lower.h: Likewise.
26324         * lib/unictype/ctype_print.h: Likewise.
26325         * lib/unictype/ctype_punct.h: Likewise.
26326         * lib/unictype/ctype_upper.h: Likewise.
26327         * lib/unictype/decdigit.h: Likewise.
26328         * lib/unictype/digit.h: Likewise.
26329         * lib/unictype/numeric.h: Likewise.
26330         * lib/unictype/pr_alphabetic.h: Likewise.
26331         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26332         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26333         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26334         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26335         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26336         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26337         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26338         * lib/unictype/pr_combining.h: Likewise.
26339         * lib/unictype/pr_composite.h: Likewise.
26340         * lib/unictype/pr_currency_symbol.h: Likewise.
26341         * lib/unictype/pr_dash.h: Likewise.
26342         * lib/unictype/pr_decimal_digit.h: Likewise.
26343         * lib/unictype/pr_deprecated.h: Likewise.
26344         * lib/unictype/pr_diacritic.h: Likewise.
26345         * lib/unictype/pr_extender.h: Likewise.
26346         * lib/unictype/pr_grapheme_base.h: Likewise.
26347         * lib/unictype/pr_grapheme_extend.h: Likewise.
26348         * lib/unictype/pr_grapheme_link.h: Likewise.
26349         * lib/unictype/pr_id_continue.h: Likewise.
26350         * lib/unictype/pr_id_start.h: Likewise.
26351         * lib/unictype/pr_ideographic.h: Likewise.
26352         * lib/unictype/pr_ignorable_control.h: Likewise.
26353         * lib/unictype/pr_logical_order_exception.h: Likewise.
26354         * lib/unictype/pr_lowercase.h: Likewise.
26355         * lib/unictype/pr_numeric.h: Likewise.
26356         * lib/unictype/pr_other_alphabetic.h: Likewise.
26357         * lib/unictype/pr_punctuation.h: Likewise.
26358         * lib/unictype/pr_sentence_terminal.h: Likewise.
26359         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26360         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26361         * lib/unictype/pr_unified_ideograph.h: Likewise.
26362         * lib/unictype/pr_uppercase.h: Likewise.
26363         * lib/unictype/pr_xid_continue.h: Likewise.
26364         * lib/unictype/pr_xid_start.h: Likewise.
26365         * lib/unictype/pr_zero_width.h: Likewise.
26366         * lib/unictype/scripts.h: Likewise.
26367         * lib/unictype/scripts_byname.gperf: Likewise.
26368         * lib/unictype/sy_java_ident.h: Likewise.
26369         * lib/unigbrk/gbrkprop.h: Likewise.
26370         * lib/unilbrk/lbrkprop1.h: Likewise.
26371         * lib/unilbrk/lbrkprop2.h: Likewise.
26372         * lib/unilbrk/lbrktables.h: Likewise.
26373         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26374         LBP_CP. Implement rule LB30.
26375         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26376         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26377         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26378         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26379         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26380         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26381         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26382         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26383         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26384         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26385         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26386         bits instead of 16 bits in the code1 and code2 of each composition
26387         rule.
26388         (uc_composition): Update for Unicode 5.2.0.
26389         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26390         * lib/uninorm/decomposition-table2.h: Likewise.
26391         * lib/uniwbrk/wbrkprop.h: Likewise.
26392         * tests/unicase/test-cased.c: Likewise.
26393         * tests/unicase/test-ignorable.c: Likewise.
26394         * tests/unicase/test-uc_tolower.c: Likewise.
26395         * tests/unicase/test-uc_totitle.c: Likewise.
26396         * tests/unicase/test-uc_toupper.c: Likewise.
26397         * tests/unictype/test-categ_C.c: Likewise.
26398         * tests/unictype/test-categ_Cf.c: Likewise.
26399         * tests/unictype/test-categ_Cn.c: Likewise.
26400         * tests/unictype/test-categ_L.c: Likewise.
26401         * tests/unictype/test-categ_Ll.c: Likewise.
26402         * tests/unictype/test-categ_Lm.c: Likewise.
26403         * tests/unictype/test-categ_Lo.c: Likewise.
26404         * tests/unictype/test-categ_Lu.c: Likewise.
26405         * tests/unictype/test-categ_M.c: Likewise.
26406         * tests/unictype/test-categ_Mc.c: Likewise.
26407         * tests/unictype/test-categ_Mn.c: Likewise.
26408         * tests/unictype/test-categ_N.c: Likewise.
26409         * tests/unictype/test-categ_Nd.c: Likewise.
26410         * tests/unictype/test-categ_Nl.c: Likewise.
26411         * tests/unictype/test-categ_No.c: Likewise.
26412         * tests/unictype/test-categ_P.c: Likewise.
26413         * tests/unictype/test-categ_Pd.c: Likewise.
26414         * tests/unictype/test-categ_Po.c: Likewise.
26415         * tests/unictype/test-categ_S.c: Likewise.
26416         * tests/unictype/test-categ_Sc.c: Likewise.
26417         * tests/unictype/test-categ_So.c: Likewise.
26418         * tests/unictype/test-ctype_alnum.c: Likewise.
26419         * tests/unictype/test-ctype_alpha.c: Likewise.
26420         * tests/unictype/test-ctype_graph.c: Likewise.
26421         * tests/unictype/test-ctype_lower.c: Likewise.
26422         * tests/unictype/test-ctype_print.c: Likewise.
26423         * tests/unictype/test-ctype_punct.c: Likewise.
26424         * tests/unictype/test-ctype_upper.c: Likewise.
26425         * tests/unictype/test-decdigit.h: Likewise.
26426         * tests/unictype/test-digit.h: Likewise.
26427         * tests/unictype/test-numeric.h: Likewise.
26428         * tests/unictype/test-pr_alphabetic.c: Likewise.
26429         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26430         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26431         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26432         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26433         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26434         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26435         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26436         * tests/unictype/test-pr_combining.c: Likewise.
26437         * tests/unictype/test-pr_composite.c: Likewise.
26438         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26439         * tests/unictype/test-pr_dash.c: Likewise.
26440         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26441         * tests/unictype/test-pr_deprecated.c: Likewise.
26442         * tests/unictype/test-pr_diacritic.c: Likewise.
26443         * tests/unictype/test-pr_extender.c: Likewise.
26444         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26445         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26446         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26447         * tests/unictype/test-pr_id_continue.c: Likewise.
26448         * tests/unictype/test-pr_id_start.c: Likewise.
26449         * tests/unictype/test-pr_ideographic.c: Likewise.
26450         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26451         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26452         * tests/unictype/test-pr_lowercase.c: Likewise.
26453         * tests/unictype/test-pr_numeric.c: Likewise.
26454         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26455         * tests/unictype/test-pr_punctuation.c: Likewise.
26456         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26457         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26458         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26459         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26460         * tests/unictype/test-pr_uppercase.c: Likewise.
26461         * tests/unictype/test-pr_xid_continue.c: Likewise.
26462         * tests/unictype/test-pr_xid_start.c: Likewise.
26463         * tests/unictype/test-pr_zero_width.c: Likewise.
26464         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26465         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26466         changed behaviour: line breaking is now disallowed between a letter
26467         or '=' and '('.
26468         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26469         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26470         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26471         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26472         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26473         lib/uniwidth/width.c.
26474         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26475         without comments, but with the original copyright notice.
26476         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26477         changes.
26478         * lib/unictype/categ_Cc.h: Likewise.
26479         * lib/unictype/categ_Co.h: Likewise.
26480         * lib/unictype/categ_Cs.h: Likewise.
26481         * lib/unictype/categ_Lt.h: Likewise.
26482         * lib/unictype/categ_Me.h: Likewise.
26483         * lib/unictype/categ_Pc.h: Likewise.
26484         * lib/unictype/categ_Pe.h: Likewise.
26485         * lib/unictype/categ_Pf.h: Likewise.
26486         * lib/unictype/categ_Pi.h: Likewise.
26487         * lib/unictype/categ_Ps.h: Likewise.
26488         * lib/unictype/categ_Sk.h: Likewise.
26489         * lib/unictype/categ_Sm.h: Likewise.
26490         * lib/unictype/categ_Z.h: Likewise.
26491         * lib/unictype/categ_Zl.h: Likewise.
26492         * lib/unictype/categ_Zp.h: Likewise.
26493         * lib/unictype/categ_Zs.h: Likewise.
26494         * lib/unictype/ctype_blank.h: Likewise.
26495         * lib/unictype/ctype_cntrl.h: Likewise.
26496         * lib/unictype/ctype_digit.h: Likewise.
26497         * lib/unictype/ctype_space.h: Likewise.
26498         * lib/unictype/ctype_xdigit.h: Likewise.
26499         * lib/unictype/mirror.h: Likewise.
26500         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26501         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26502         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26503         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26504         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26505         * lib/unictype/pr_bidi_control.h: Likewise.
26506         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26507         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26508         * lib/unictype/pr_bidi_pdf.h: Likewise.
26509         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26510         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26511         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26512         * lib/unictype/pr_format_control.h: Likewise.
26513         * lib/unictype/pr_hex_digit.h: Likewise.
26514         * lib/unictype/pr_hyphen.h: Likewise.
26515         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26516         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26517         * lib/unictype/pr_iso_control.h: Likewise.
26518         * lib/unictype/pr_join_control.h: Likewise.
26519         * lib/unictype/pr_left_of_pair.h: Likewise.
26520         * lib/unictype/pr_line_separator.h: Likewise.
26521         * lib/unictype/pr_math.h: Likewise.
26522         * lib/unictype/pr_non_break.h: Likewise.
26523         * lib/unictype/pr_not_a_character.h: Likewise.
26524         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26525         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26526         * lib/unictype/pr_other_id_continue.h: Likewise.
26527         * lib/unictype/pr_other_id_start.h: Likewise.
26528         * lib/unictype/pr_other_lowercase.h: Likewise.
26529         * lib/unictype/pr_other_math.h: Likewise.
26530         * lib/unictype/pr_other_uppercase.h: Likewise.
26531         * lib/unictype/pr_paired_punctuation.h: Likewise.
26532         * lib/unictype/pr_paragraph_separator.h: Likewise.
26533         * lib/unictype/pr_pattern_syntax.h: Likewise.
26534         * lib/unictype/pr_pattern_white_space.h: Likewise.
26535         * lib/unictype/pr_private_use.h: Likewise.
26536         * lib/unictype/pr_quotation_mark.h: Likewise.
26537         * lib/unictype/pr_radical.h: Likewise.
26538         * lib/unictype/pr_soft_dotted.h: Likewise.
26539         * lib/unictype/pr_space.h: Likewise.
26540         * lib/unictype/pr_titlecase.h: Likewise.
26541         * lib/unictype/pr_variation_selector.h: Likewise.
26542         * lib/unictype/pr_white_space.h: Likewise.
26543         * lib/unictype/sy_c_ident.h: Likewise.
26544         * lib/unictype/sy_c_whitespace.h: Likewise.
26545         * lib/unictype/sy_java_whitespace.h: Likewise.
26546         * modules/uni*/*: Bump version number of expected libunistring version.
26547         Reported by Simon Josefsson.
26548
26549 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26550
26551         useless-if-before-free: fix typo in --help and make the internal,
26552         automatic version date update process work once again.
26553         --help output contained a NUL character instead of the
26554         backslash-zero that was intended.  Also, the "must lie within
26555         the first 8 lines" line is on line 9, and hence not getting
26556         automatically updated.
26557         * build-aux/useless-if-before-free: Fix the former by adding a
26558         backslash, and the latter by condensing the three lines of what-it-does
26559         to a single line, leaving one line of slack for the future.
26560
26561 2011-01-09  Bruno Haible  <bruno@clisp.org>
26562
26563         uniwidth/width: Fix width of U+1D173..U+1D17A.
26564         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26565         symbolic_width, output_width_property_test): New functions.
26566         (main): Invoke output_nonspacing_property, output_width_property_test.
26567         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26568         U+1D173..U+1D17A.
26569         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26570         1.
26571         * modules/uniwidth/*: Bump version number of expected libunistring
26572         version.
26573         * modules/unilbrk/*: Likewise.
26574
26575 2011-01-08  Bruno Haible  <bruno@clisp.org>
26576
26577         uninorm tests: Preserve copyright of Unicode data file.
26578         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26579         Mention modifications.
26580
26581 2011-01-08  Bruno Haible  <bruno@clisp.org>
26582
26583         gen-uni-tables: Prepare for Unicode 5.2.0.
26584         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26585         (debug_output_lbp, output_lbp): Update.
26586
26587 2011-01-08  Bruno Haible  <bruno@clisp.org>
26588
26589         unilbrk: Clarify gen-uni-tables.c code.
26590         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26591         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26592         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26593
26594 2011-01-07  Bruno Haible  <bruno@clisp.org>
26595
26596         strtod: Restore errno when successfully parsing Infinity or NaN.
26597         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26598         restore the original errno.
26599
26600 2011-01-07  Bruno Haible  <bruno@clisp.org>
26601
26602         remove test: Avoid failure on HP-UX 11.
26603         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26604
26605 2011-01-07  Bruno Haible  <bruno@clisp.org>
26606
26607         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26608         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26609         error code.
26610
26611 2011-01-07  Pádraig Brady <P@draigBrady.com>
26612
26613         ignore-value: fixup comments, and add Eric Blake
26614         as an author since he rewrote the macros.
26615         * lib/ignore-value.h (ignore_value):  State that
26616         we now support aggregates.  Also specify exactly
26617         when the GCC warn_unused_result feature was added.
26618
26619 2011-01-06  Eric Blake  <eblake@redhat.com>
26620
26621         ignore-value: support aggregate types
26622         * lib/ignore-value.h (ignore_value): Provide separate gcc
26623         definition.
26624         * modules/ignore-value-tests: New test module.
26625         * tests/test-ignore-value.c: New test.
26626
26627         maint.mk: improve sc_prohibit_strcmp regex
26628         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26629         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26630         definition of STRNEQ.
26631
26632         signal: work around Haiku issue with SIGBUS
26633         * lib/siglist.h: Add comment.
26634         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26635         strsignal's favoring of SIGSEGV.
26636         * tests/test-signal.c (main): Avoid test failure.
26637         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26638         Reported by Scott McCreary.
26639
26640         maint.mk: add pre-release check to ensure submodule commits are public
26641         * top/maint.mk (public-submodule-commit): New rule.
26642         (submodule-checks): New variable.
26643         (alpha beta stable): Depend on the variable.
26644
26645 2011-01-05  Pádraig Brady <P@draigBrady.com>
26646         and Jim Meyering  <meyering@redhat.com>
26647
26648         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26649         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26650         (ATTRIBUTE_DEPRECATED): Define.
26651         (_ignore_case): New function.
26652         (ignore_value): New macro, to replace the old function.
26653         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26654         * modules/ignore-value (Depends-on): Add stdint.
26655
26656 2011-01-04  Eric Blake  <eblake@redhat.com>
26657
26658         doc: regenerate INSTALL
26659         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26660         @firstparagraphindent support, now that autoconf dropped it.
26661         (INSTALL_PRELUDE): Reinstate old macro.
26662         * doc/install.texi: Resync from autoconf.
26663         * doc/INSTALL: Reflect recent autoconf update.
26664         * doc/INSTALL.ISO: Likewise.
26665         * doc/INSTALL.UTF-8: Likewise.
26666         Reported by Karl Berry.
26667
26668 2011-01-04  Bruce Korb  <address@hidden>
26669
26670         git-version-gen: avoid a sub-shell
26671         * build-aux/git-version-gen: Redirect stderr in `...` via
26672         "exec 2>...", rather than via an added sub-shell.
26673
26674 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26675
26676         git-version-gen: use (...) rather than sh -c '...'
26677         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26678         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26679
26680 2011-01-03  Jim Meyering  <meyering@redhat.com>
26681
26682         git-version-gen: convert leading TABs to spaces
26683         * build-aux/git-version-gen: Expand leading TABs.
26684
26685         git-version-gen: handle failed "git rev-list"
26686         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26687         from git and proceeding as if it had succeeded but printed no SHA1
26688         checksums, suppress the diagnostic and handle the failure.
26689         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26690
26691         git-version-gen: include command name in one more diagnostic
26692         * build-aux/git-version-gen: When the required .tarball-version file
26693         was missing or unreadable, you might see the diagnostic from "cat",
26694         but no trace of the name of the invoking script.  Now, you still see
26695         the diagnostic from cat, but also get one from "git-version-gen: ".
26696         Inspired by a patch from Bruce Korb.
26697
26698         update-copyright: adjust test to match changed code
26699         * tests/test-update-copyright.sh: Change test's expected output
26700         to match new actual output.
26701
26702 2011-01-02  Bruno Haible  <bruno@clisp.org>
26703
26704         getlogin_r: Avoid test failure on HP-UX 11.
26705         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26706         ERANGE when the second argument is zero.
26707         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26708         portability problem.
26709
26710 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26711
26712         * build-aux/update-copyright: doc Simon's changes
26713
26714 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26715
26716         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26717         environment variable.
26718
26719 2011-01-02  Bruno Haible  <bruno@clisp.org>
26720
26721         unigbrk: Avoid gcc warnings.
26722         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26723         unused variable.
26724         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26725         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26726         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26727         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26728         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26729         Change type of first argument to 'const char *'.
26730         (main): Remove unused variable.
26731         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26732         type of first argument to 'const char *'.
26733         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26734         Likewise.
26735         (main): Change type of variable 's'.
26736         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26737         to 'int'.
26738
26739 2011-01-02  Bruno Haible  <bruno@clisp.org>
26740
26741         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26742         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26743         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26744         bug.
26745         * lib/pwrite.c: Undo 2010-12-31 patch.
26746         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26747
26748 2011-01-02  Bruno Haible  <bruno@clisp.org>
26749
26750         pread: Fix test whether it works.
26751         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26752
26753 2011-01-02  Bruno Haible  <bruno@clisp.org>
26754
26755         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26756         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26757         ends in "6". Don't require a specific month name. Try also the locale
26758         names found on HP-UX 11 and Solaris 7.
26759
26760 2011-01-02  Bruno Haible  <bruno@clisp.org>
26761
26762         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26763         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26764         C linkage.
26765         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26766
26767 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26768
26769         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26770         for consistency, since the "cluster" term is not used elsewhere.
26771         * lib/unigbrk.in.h: Update name.
26772         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26773         * lib/unigbrk/u16-grapheme-next.c: Update name.
26774         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26775         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26776         * lib/unigbrk/u32-grapheme-next.c: Update name.
26777         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26778         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26779         * lib/unigbrk/u8-grapheme-next.c: Update name.
26780         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26781         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26782         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26783         Suggested by Bruno Haible.
26784
26785 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26786
26787         Remove module 'u8-grapheme-len' as too redundant with
26788         'u8-grapheme-next'.
26789         * modules/unigbrk/u8-grapheme-len: Delete file.
26790         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26791         * lib/unigbrk.in.h: Remove prototype for deleted function.
26792         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26793         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26794
26795         Remove module 'u16-grapheme-len' as too redundant with
26796         'u16-grapheme-next'.
26797         * modules/unigbrk/u16-grapheme-len: Delete file.
26798         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26799         * lib/unigbrk.in.h: Remove prototype for deleted function.
26800         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26801         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26802
26803         Remove module 'u32-grapheme-len' as too redundant with
26804         'u32-grapheme-next'.
26805         * modules/unigbrk/u32-grapheme-len: Delete file.
26806         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26807         * lib/unigbrk.in.h: Remove prototype for deleted function.
26808         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26809         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26810
26811         Suggested by Bruno Haible.
26812
26813 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26814
26815         * unigbrk.in.h: Fix typo: "ben" => "been".
26816         Reported by Bruno Haible.
26817
26818 2011-01-01  Jim Meyering  <meyering@redhat.com>
26819
26820         maint: update almost all copyright ranges to include 2011
26821         Run the new "make update-copyright" rule.
26822
26823 2011-01-01  Jim Meyering  <meyering@redhat.com>
26824
26825         maint: update-copyright: exempt doc/INSTALL*
26826         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26827         since they are generated.  Suggested by Bruno Haible.
26828
26829 2011-01-01  Jim Meyering  <meyering@redhat.com>
26830
26831         maint: refine the update-copyright rule
26832         * Makefile (update-copyright): Also exclude any file that includes
26833         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26834         code that merely generates the comment.
26835
26836 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26837
26838         New module 'u8-grapheme-len'.
26839         * modules/unigbrk/u8-grapheme-len: New file.
26840         * modules/unigbrk/u8-grapheme-len-tests: New file.
26841         * lib/unigbrk.in.h: Add prototype for new function.
26842         * lib/unigbrk/u8-grapheme-len.c: New file.
26843         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26844
26845         New module 'u16-grapheme-len'.
26846         * modules/unigbrk/u16-grapheme-len: New file.
26847         * modules/unigbrk/u16-grapheme-len-tests: New file.
26848         * lib/unigbrk.in.h: Add prototype for new function.
26849         * lib/unigbrk/u16-grapheme-len.c: New file.
26850         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26851
26852         New module 'u32-grapheme-len'.
26853         * modules/unigbrk/u32-grapheme-len: New file.
26854         * modules/unigbrk/u32-grapheme-len-tests: New file.
26855         * lib/unigbrk.in.h: Add prototype for new function.
26856         * lib/unigbrk/u32-grapheme-len.c: New file.
26857         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26858
26859         New module 'u8-grapheme-next'.
26860         * modules/unigbrk/u8-grapheme-next: New file.
26861         * modules/unigbrk/u8-grapheme-next-tests: New file.
26862         * lib/unigbrk.in.h: Add prototype for new function.
26863         * lib/unigbrk/u8-grapheme-next.c: New file.
26864         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26865
26866         New module 'u16-grapheme-next'.
26867         * modules/unigbrk/u16-grapheme-next: New file.
26868         * modules/unigbrk/u16-grapheme-next-tests: New file.
26869         * lib/unigbrk.in.h: Add prototype for new function.
26870         * lib/unigbrk/u16-grapheme-next.c: New file.
26871         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26872
26873         New module 'u32-grapheme-next'.
26874         * modules/unigbrk/u32-grapheme-next: New file.
26875         * modules/unigbrk/u32-grapheme-next-tests: New file.
26876         * lib/unigbrk.in.h: Add prototype for new function.
26877         * lib/unigbrk/u32-grapheme-next.c: New file.
26878         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26879
26880         New module 'u8-grapheme-prev'.
26881         * modules/unigbrk/u8-grapheme-prev: New file.
26882         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26883         * lib/unigbrk.in.h: Add prototype for new function.
26884         * lib/unigbrk/u8-grapheme-prev.c: New file.
26885         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26886
26887         New module 'u16-grapheme-prev'.
26888         * modules/unigbrk/u16-grapheme-prev: New file.
26889         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26890         * lib/unigbrk.in.h: Add prototype for new function.
26891         * lib/unigbrk/u16-grapheme-prev.c: New file.
26892         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26893
26894         New module 'u32-grapheme-prev'.
26895         * modules/unigbrk/u32-grapheme-prev: New file.
26896         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26897         * lib/unigbrk.in.h: Add prototype for new function.
26898         * lib/unigbrk/u32-grapheme-prev.c: New file.
26899         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26900
26901         New module 'u8-grapheme-breaks'.
26902         * modules/unigbrk/u8-grapheme-breaks: New file.
26903         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26904         * lib/unigbrk.in.h: Add prototype for new function.
26905         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26906         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26907
26908         New module 'u16-grapheme-breaks'.
26909         * modules/unigbrk/u16-grapheme-breaks: New file.
26910         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26911         * lib/unigbrk.in.h: Add prototype for new function.
26912         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26913         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26914
26915         New module 'u32-grapheme-breaks'.
26916         * modules/unigbrk/u32-grapheme-breaks: New file.
26917         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26918         * lib/unigbrk.in.h: Add prototype for new function.
26919         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26920         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26921
26922         New module 'ulc-grapheme-breaks'.
26923         * modules/unigbrk/ulc-grapheme-breaks: New file.
26924         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26925         * m4/locale-ar.m4: New file.
26926         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26927         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26928         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26929
26930 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26931
26932         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26933         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26934         modified how this file was generated before I initially submitted
26935         the module, but failed to regenerate it.  This meant that several
26936         of the level2 entries were wrong.
26937         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26938         Remove the division-by-2 that is folded into the table now that
26939         gbrkprop.h has been regenerated properly.  Now -1 entries are
26940         handled correctly.
26941
26942         New module 'unigbrk/uc-gbrk-prop-tests'.
26943         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26944         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26945         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26946         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26947
26948 2011-01-01  Bruno Haible  <bruno@clisp.org>
26949
26950         Avoid use of hexadecimal escapes.
26951         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26952         instead of hexadecimal escapes.
26953
26954 2011-01-01  Jim Meyering  <meyering@redhat.com>
26955
26956         maint: new rule to update copyright year ranges
26957         * Makefile (update-copyright): New rule.
26958
26959         maint: indent with TABs in Makefile
26960         * Makefile: Expand leading sequences of spaces to TABs
26961
26962         version-etc: update the copyright year it reports
26963         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26964
26965 2010-12-31  Bruno Haible  <bruno@clisp.org>
26966
26967         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26968         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26969         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26970         zero.
26971
26972 2010-12-31  Bruno Haible  <bruno@clisp.org>
26973
26974         pwrite: Work around HP-UX 11.11 bug.
26975         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26976         works and set REPLACE_PWRITE if not.
26977         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26978         function.
26979         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26980
26981 2010-12-31  Bruno Haible  <bruno@clisp.org>
26982
26983         pread: Work around HP-UX 11 bugs.
26984         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26985         and set REPLACE_PREAD if not.
26986         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26987
26988 2010-12-31  Eric Blake  <eblake@redhat.com>
26989
26990         nl_langinfo: fix YESEXPR on Irix 6.5
26991         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26992         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26993         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26994         it.
26995
26996 2010-12-31  Bruno Haible  <bruno@clisp.org>
26997
26998         iconv: Document HP-UX 11 bug.
26999         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27000
27001 2010-12-31  Bruno Haible  <bruno@clisp.org>
27002
27003         ldexpl: Fix link error on HP-UX 11.
27004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27005         LDEXPL_LIBM, using $ISNANL_LIBM.
27006
27007 2010-12-31  Eric Blake  <eblake@redhat.com>
27008
27009         ftello: avoid compilation failure with SunStudio c89
27010         * lib/ftello.c (ftello): Use lseek, not llseek.
27011
27012         tests: avoid failing coreutils tests on cygwin
27013         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27014         (create_exe_shims_): Return 0 when skipping.
27015
27016 2010-12-31  Bruno Haible  <bruno@clisp.org>
27017
27018         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27019         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27020
27021 2010-12-31  Bruno Haible  <bruno@clisp.org>
27022
27023         waitpid: Fix link error in C++ mode.
27024         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27025
27026 2010-12-31  Bruno Haible  <bruno@clisp.org>
27027
27028         isnan: Use GCC built-ins when possible.
27029         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27030         __builtin_isnan.
27031         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27032         (isnan): Define using GCC built-ins for GCC >= 4.0.
27033
27034 2010-12-31  Bruno Haible  <bruno@clisp.org>
27035
27036         isnand: Fix mistake.
27037         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27038         __builtin_isnand.
27039
27040 2010-12-31  Bruno Haible  <bruno@clisp.org>
27041
27042         open: Avoid C++ error on HP-UX 11.
27043         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27044
27045 2010-12-31  Bruno Haible  <bruno@clisp.org>
27046
27047         time_r: Add missing declarations on HP-UX 11.
27048         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27049         instead of HAVE_LOCALTIME_R.
27050         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27051         HAVE_LOCALTIME_R always.
27052         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27053         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27054         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27055         HAVE_LOCALTIME_R.
27056         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27057         * doc/posix-functions/localtime_r.texi: Likewise.
27058
27059 2010-12-29  Eric Blake  <eblake@redhat.com>
27060
27061         mountlist: tweak previous commit
27062         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27063         Reported by Paul Eggert.
27064
27065         mountlist: fix local drive detection on cygwin
27066         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27067         that works for cygwin.
27068
27069 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27070
27071         ftoastr, snprintf: ftoastr + snprintf module
27072         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27073         since the snprintf module now should be good enough here.
27074         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27075         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27076         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27077         GNULIB_SNPRINTF only for the test directory, and the latter
27078         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27079         seems to suffice by itself.
27080
27081 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27082
27083         alloca: one step towards thread-safety
27084         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27085         need for a static variable.  All callers changed.  This does not
27086         make the alloca replacement thread-safe, but it's one step.
27087
27088         tests: minor indenting change
27089         * tests/init.sh: Sync from coreutils housekeeping patch
27090         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27091         to keep lines within 80 columns.
27092
27093 2010-12-28  Jim Meyering  <meyering@redhat.com>
27094
27095         regex: don't infloop on persistent failing calloc
27096         * lib/regexec.c (build_trtable): Return failure indication upon
27097         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27098         In glibc, this was fixed for version 2.13:
27099         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27100
27101 2010-12-28  Bruno Haible  <bruno@clisp.org>
27102             Paul Eggert <eggert@cs.ucla.edu>
27103
27104         linkat: Make implementation robust against system behaviour variations.
27105         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27106         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27107         way, and to -2 if it needs a generic runtime test.
27108         * lib/linkat.c (solaris_optimized_link_immediate,
27109         solaris_optimized_link_follow): New functions.
27110         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27111         (check_same_link): Use it.
27112
27113 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27114
27115         New module 'unigbrk/base'.
27116         * modules/unigbrk/base: New file.
27117         * lib/unigbrk.in.h: New file.
27118
27119         New module 'unigbrk/uc-gbrk-prop'.
27120         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27121         * modules/unigbrk/uc-gbrk-prop: New file.
27122         * lib/unigbrk/gbrkprop.h: New file.
27123         * lib/unigbrk/uc-gbrk-prop.c: New file.
27124
27125         New module 'unigbrk/uc-is-grapheme-break'.
27126         * modules/unigbrk/uc-is-grapheme-break: New file.
27127         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27128         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27129         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27130         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27131         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27132
27133         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27134
27135 2010-12-27  Bruno Haible  <bruno@clisp.org>
27136
27137         linkat test: Avoid failure on Solaris 11 2010-11.
27138         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27139
27140 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27141
27142         utimens: work around glibc rounding bug on more platforms
27143         * lib/utimens.c (fdutimens): Work around rounding bug even if
27144         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27146
27147 2010-12-27  Bruno Haible  <bruno@clisp.org>
27148
27149         select tests: Improve comments.
27150         * tests/test-select.c (do_select): Add comments.
27151
27152 2010-12-27  Bruno Haible  <bruno@clisp.org>
27153
27154         select tests: Safer way of handling timeout.
27155         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27156         at every invocation.
27157
27158 2010-12-27  Bruno Haible  <bruno@clisp.org>
27159
27160         select tests: Use 'bool' where appropriate.
27161         * tests/test-select.c (connect_to_socket): Change argument type to
27162         'bool'.
27163
27164 2010-12-27  Bruno Haible  <bruno@clisp.org>
27165
27166         select tests: Use existing modules.
27167         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27168         (configure.ac): Don't test for unistd.h.
27169         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27170         declared in <unistd.h>.
27171
27172 2010-12-27  Bruno Haible  <bruno@clisp.org>
27173
27174         mbrtowc: Work around a Solaris 7 bug.
27175         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27176         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27177         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27178         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27179         MBRTOWC_NULL_ARG1_BUG.
27180         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27181         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27182         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27183         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27184
27185 2010-12-27  Jim Meyering  <meyering@redhat.com>
27186
27187         read-file.c: tweak syntax
27188         * lib/read-file.c (fread_file): Remove space after "*" in function
27189         definitions.
27190
27191 2010-12-27  Bruno Haible  <bruno@clisp.org>
27192
27193         times test: Avoid gcc warnings on OSF/1.
27194         * tests/test-times.c (main): Cast printf arguments from clock_t to
27195         'long int'.
27196
27197 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27198
27199         utimens: work around glibc rounding bug on older Linux kernels
27200         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27201         on Linux with a glibc whose utimes might not work, then work
27202         around a longstanding glibc bug involving rounding rather than
27203         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27205
27206 2010-12-26  Bruno Haible  <bruno@clisp.org>
27207
27208         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27209         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27210         _GL_CXXALIAS_SYS.
27211         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27212
27213 2010-12-26  Bruno Haible  <bruno@clisp.org>
27214
27215         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27216         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27217         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27218         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27219         looking for the declaration.
27220         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27221         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27222         problem.
27223         * doc/posix-functions/inet_pton.texi: Likewise.
27224
27225 2010-12-26  Bruno Haible  <bruno@clisp.org>
27226
27227         arpa_inet: Use the common idioms with C++ support.
27228         * lib/arpa_inet.in.h: Include c++defs.h.
27229         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27230         support.
27231         * modules/arpa_inet (Depends-on): Add c++defs.
27232         (Makefile.am): Substitute the contents of c++defs.h.
27233         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27234         * modules/arpa_inet-c++-tests: New file.
27235         * tests/test-arpa_inet-c++.cc: New file.
27236
27237 2010-12-25  Bruno Haible  <bruno@clisp.org>
27238
27239         Fix more C++ link errors on Solaris 8.
27240         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27241         $(LIB_EACCESS).
27242         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27243         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27244         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27245         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27246         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27247
27248 2010-12-25  Bruno Haible  <bruno@clisp.org>
27249
27250         printf-posix: Fix link error when a non-GCC compiler is used.
27251         * lib/stdio.in.h (printf): When not using GCC, override printf
27252         correctly.
27253         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27254
27255 2010-12-25  Bruno Haible  <bruno@clisp.org>
27256
27257         strerror_r-posix: Update doc.
27258         * doc/posix-functions/strerror_r.texi: Update doc about the return
27259         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27260
27261 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27262
27263         utimens: simplify the logic of the previous change
27264         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27265         This should not affect whether the test succeeds or fails.
27266
27267         utimens: configure better on hosts with NFS clock skew
27268         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27269         uses the clock of the local host.  It might use the clock of the
27270         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27271         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27272
27273 2010-12-25  Bruno Haible  <bruno@clisp.org>
27274
27275         ptsname test: Avoid failure on Solaris.
27276         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27277         open a pseudo-terminal; don't use BSD-style ptys.
27278         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27279
27280 2010-12-25  Bruno Haible  <bruno@clisp.org>
27281
27282         ptsname: Avoid ERANGE failure on some systems.
27283         * lib/ptsname.c (buffer): Increase size.
27284
27285 2010-12-25  Bruno Haible  <bruno@clisp.org>
27286
27287         rename, renameat: Avoid test failures at NFS mounted locations.
27288         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27289         so that subsequent mkdir calls succeed.
27290
27291 2010-12-25  Bruno Haible  <bruno@clisp.org>
27292
27293         iswblank: Fix C++ link error on Solaris 8.
27294         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27295         _GL_FUNCDECL_SYS.
27296
27297 2010-12-25  Bruno Haible  <bruno@clisp.org>
27298
27299         unistd: Fix C++ link error on Solaris 8.
27300         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27301
27302 2010-12-25  Bruno Haible  <bruno@clisp.org>
27303
27304         readlink doc: Mention an old glibc bug.
27305         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27306
27307 2010-12-25  Bruno Haible  <bruno@clisp.org>
27308
27309         fcntl-h: Fix for use of C++ on glibc systems.
27310         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27311         also on glibc systems in C++ mode.
27312         Reported by Gary V. Vaughan <gary@gnu.org>.
27313
27314 2010-12-25  Bruno Haible  <bruno@clisp.org>
27315
27316         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27317         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27318
27319 2010-12-25  Bruno Haible  <bruno@clisp.org>
27320
27321         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27322         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27323         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27324         test whether truncl works according to ISO C 99 with IEC 60559.
27325         * m4/truncl-ieee.m4: New file.
27326         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27327         m4/signbit.m4.
27328         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27329
27330 2010-12-25  Bruno Haible  <bruno@clisp.org>
27331
27332         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27333         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27334         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27335         test whether ceill works according to ISO C 99 with IEC 60559.
27336         * m4/ceill-ieee.m4: New file.
27337         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27338         m4/signbit.m4.
27339         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27340
27341 2010-12-25  Bruno Haible  <bruno@clisp.org>
27342
27343         Ensure all prerequisites of <wchar.h> are included.
27344         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27345         before <wchar.h>.
27346         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27347         gl_MBRLEN_NUL_RETVAL): Likewise.
27348         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27349         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27350         AC_FUNC_MBRTOWC): Likewise.
27351         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27352         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27354         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27355         Likewise.
27356         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27357         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27358         (gl_WCHAR_H): Improve comments.
27359         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27360
27361 2010-12-25  Bruno Haible  <bruno@clisp.org>
27362
27363         strtok_r: Fix C syntax error in autoconf macro.
27364         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27365         characters in test program.
27366
27367 2010-12-24  Bruno Haible  <bruno@clisp.org>
27368
27369         ceil, trunc, round: Fix gcc warnings.
27370         * lib/ceil.c (MIN): Undefine before redefining.
27371         * lib/trunc.c (MIN): Likewise.
27372         * lib/round.c (MIN): Likewise.
27373         Include <math.h> first.
27374
27375 2010-12-24  Bruno Haible  <bruno@clisp.org>
27376
27377         select tests: Avoid failures on OSF/1 5.1.
27378         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27379         failure of closing the last socket; it may fail with ECONNRESET.
27380
27381 2010-12-24  Eric Blake  <eblake@redhat.com>
27382
27383         stdint: avoid HP-UX 10.20 preprocessor bug
27384         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27385         than #if.
27386         * tests/test-floor2.c (main): Likewise.
27387         Reported by Peter O'Gorman.
27388
27389         pipe: make obsoletion transition easier
27390         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27391         * modules/pipe (Files): Include revived file.
27392         (Include): Drop reference, to mirror getdate's behavior.
27393
27394 2010-12-24  Bruno Haible  <bruno@clisp.org>
27395
27396         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27397         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27398         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27399         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27400
27401 2010-12-24  Bruno Haible  <bruno@clisp.org>
27402
27403         gethostname: Ensure declaration on NonStop Kernel.
27404         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27405         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27406
27407 2010-12-24  Bruno Haible  <bruno@clisp.org>
27408
27409         sys_select: Ensure all necessary types on NonStop Kernel.
27410         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27411         include <sys/time.h>.
27412         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27413         NonStop Kernel.
27414         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27415
27416 2010-12-24  Bruno Haible  <bruno@clisp.org>
27417
27418         sys_select: Remove unneeded include.
27419         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27420         have <sys/select.h>.
27421
27422 2010-12-24  Bruno Haible  <bruno@clisp.org>
27423
27424         gethostname: Provide a fallback for HOST_NAME_MAX.
27425         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27426         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27427         instead.
27428         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27429
27430 2010-12-24  Bruno Haible  <bruno@clisp.org>
27431
27432         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27433         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27434         (SA_RESTART): Likewise.
27435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27436
27437 2010-12-24  Bruno Haible  <bruno@clisp.org>
27438
27439         signal: Define NSIG.
27440         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27441         * tests/test-signal.c (nsig): New variable.
27442         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27443
27444 2010-12-24  Bruno Haible  <bruno@clisp.org>
27445
27446         rename, renameat: Avoid test failures on OSF/1 5.1.
27447         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27448         alternative error codes.
27449         * tests/test-renameat.c (main): Likewise.
27450
27451 2010-12-24  Bruno Haible  <bruno@clisp.org>
27452
27453         *printf: Detect large precisions bug on Solaris 10/SPARC.
27454         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27455         by Paul Eggert.
27456         * tests/test-snprintf-posix.h (test_function): Add this test code here
27457         too.
27458         * tests/test-sprintf-posix.h (test_function): Likewise.
27459         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27460         * tests/test-vasprintf-posix.c (test_function): Likewise.
27461         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27462         around by gnulib.
27463         * doc/posix-functions/printf.texi: Likewise.
27464         * doc/posix-functions/snprintf.texi: Likewise.
27465         * doc/posix-functions/sprintf.texi: Likewise.
27466         * doc/posix-functions/vfprintf.texi: Likewise.
27467         * doc/posix-functions/vprintf.texi: Likewise.
27468         * doc/posix-functions/vsnprintf.texi: Likewise.
27469         * doc/posix-functions/vsprintf.texi: Likewise.
27470         * doc/posix-functions/dprintf.texi: Undo last commit.
27471         * doc/posix-functions/vdprintf.texi: Likewise.
27472
27473 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27474
27475         tests: port test-fdutimensat.c to Solaris 8
27476         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27477         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27478         On Solaris 8, it fails with errno == ENOSYS, because there is no
27479         futimens (so it can't use the fd), and there is no lutimens (so it
27480         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27481
27482         vsnprintf: make more consistent with snprintf; doc fixes
27483
27484         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27485         the byte count return problem was promoted from the snprintf-posix
27486         to the snprintf module.
27487         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27488         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27489         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27490         * tests/test-snprintf.c (main): Check the byte count returned.
27491         * tests/test-vsnprintf.c (main): Likewise.
27492
27493 2010-12-23  Eric Blake  <eblake@redhat.com>
27494
27495         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27496         * modules/sigpipe (License): Relax license.
27497
27498 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27499
27500         doc: document Solaris printf bug with large float precisions
27501         * doc/posix-functions/dprintf.texi (dprintf):
27502         * doc/posix-functions/fprintf.texi (fprintf):
27503         * doc/posix-functions/printf.texi (printf):
27504         * doc/posix-functions/snprintf.texi (snprintf):
27505         * doc/posix-functions/sprintf.texi (sprintf):
27506         * doc/posix-functions/vdprintf.texi (vdprintf):
27507         * doc/posix-functions/vfprintf.texi (vfprintf):
27508         * doc/posix-functions/vprintf.texi (vprintf):
27509         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27510         * doc/posix-functions/vsprintf.texi (vsprintf):
27511         Mention that these functions mishandle large floating point
27512         precisions on Solaris 10.  The same bug is also present in Solaris
27513         8, and I assume earlier.  This causes "cd gnulib-tests; make
27514         check" to fail on Solaris 8 (and I assume, later) when building
27515         the latest coreutils, in test-vasprintf-posix's call to
27516         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27517         the wide flavors (e.g., wprintf) so this patch just updates the
27518         documentation for the narrow ones.
27519
27520         test-posixtm.c: add two tests
27521         * tests/test-posixtm.c: Add two tests, to highlight the
27522         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27523         around this bug; this is merely to document it.
27524
27525 2010-12-22  Bruno Haible  <bruno@clisp.org>
27526
27527         getlogin_r: Work around portability problem on OSF/1.
27528         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27529         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27530         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27531         test for a truncated result.
27532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27533         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27534         * modules/getlogin_r (Depends-on): Add memchr.
27535         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27536
27537 2010-12-22  Bruno Haible  <bruno@clisp.org>
27538
27539         ptsname: Avoid test failure on OSF/1 5.1.
27540         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27541         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27542         (same_slave): New function.
27543         (main): Use it to compare ptsname's result with the expected file name.
27544
27545 2010-12-22  Bruno Haible  <bruno@clisp.org>
27546
27547         Port extended stdio modules to HP NonStop Kernel.
27548         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27549         macros.
27550         * lib/fbufmode.c: Update comments.
27551         * lib/fflush.c: Likewise.
27552         * lib/fpurge.c: Likewise.
27553         * lib/freadable.c: Likewise.
27554         * lib/freadahead.c: Likewise.
27555         * lib/freading.c: Likewise.
27556         * lib/freadptr.c: Likewise.
27557         * lib/freadseek.c: Likewise.
27558         * lib/fseeko.c: Likewise.
27559         * lib/fseterr.c: Likewise.
27560         * lib/fwritable.c: Likewise.
27561         * lib/fwriting.c: Likewise.
27562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27563
27564 2010-12-22  Bruno Haible  <bruno@clisp.org>
27565
27566         ttyname_r: Work around bug on OSF/1 5.1.
27567         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27568         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27569         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27570         present.
27571         * lib/ttyname_r.c (ttyname_r): Update comments.
27572
27573 2010-12-22  Bruno Haible  <bruno@clisp.org>
27574
27575         round: Implement result sign according to IEEE 754.
27576         * lib/round.c (MIN, MINUS_ZERO): New macros.
27577         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27578         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27579         * tests/test-round-ieee.c (main): Likewise.
27580         * tests/test-roundl-ieee.c (main): Likewise.
27581
27582         trunc: Implement result sign according to IEEE 754.
27583         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27584         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27585         * tests/test-trunc2.c: Include minus-zero.h.
27586         (MINUS_ZERO): New macro.
27587         (trunc_reference): Keep in sync with lib/trunc.c.
27588         * tests/test-truncf2.c: Include minus-zero.h.
27589         (MINUS_ZERO): New macro.
27590         (truncf_reference): Keep in sync with lib/trunc.c.
27591         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27592         * tests/test-trunc-ieee.c (main): Likewise.
27593         * tests/test-truncl-ieee.c (main): Likewise.
27594
27595         ceil: Implement result sign according to IEEE 754.
27596         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27597         (FUNC): Return -0.0 for -1 < x < 0.
27598         * tests/test-ceil2.c: Include minus-zero.h.
27599         (MINUS_ZERO): New macro.
27600         (ceil_reference): Keep in sync with lib/ceil.c.
27601         * tests/test-ceilf2.c: Include minus-zero.h.
27602         (MINUS_ZERO): New macro.
27603         (ceilf_reference): Keep in sync with lib/ceil.c.
27604         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27605         * tests/test-ceil-ieee.c (main): Likewise.
27606         * tests/test-ceill-ieee.c (main): Likewise.
27607
27608         floor: Implement result sign according to IEEE 754.
27609         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27610         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27611         * tests/test-floorf2.c (floorf_reference): Likewise.
27612         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27613         * tests/test-floor-ieee.c (main): Likewise.
27614         * tests/test-floorl-ieee.c (main): Likewise.
27615
27616 2010-12-22  Bruno Haible  <bruno@clisp.org>
27617
27618         getaddrinfo: Update doc.
27619         * doc/posix-functions/gai_strerror.texi: Return type is also different
27620         on AIX and HP-UX.
27621
27622 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27623
27624         getaddrinfo, inet_ntop: Update doc for Solaris.
27625         * doc/posix-functions/gai_strerror.texi: Return type is also an
27626         issue on Solaris 9 and earlier.
27627         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27628         on Solaris 10 and earlier.
27629
27630 2010-12-21  Bruno Haible  <bruno@clisp.org>
27631
27632         New module 'roundl-ieee'.
27633         * modules/roundl-ieee: New file.
27634         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27635         test whether roundl works according to ISO C 99 with IEC 60559.
27636         * m4/roundl-ieee.m4: New file.
27637         * modules/roundl-ieee-tests: New file.
27638         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27639         * tests/test-roundl.c (main): Remove signbit tests.
27640         * modules/roundl-tests (Depends-on): Remove signbit.
27641         * doc/posix-functions/roundl.texi: Mention the new module.
27642
27643 2010-12-21  Bruno Haible  <bruno@clisp.org>
27644
27645         New module 'truncl-ieee'.
27646         * modules/truncl-ieee: New file.
27647         * modules/truncl-ieee-tests: New file.
27648         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27649         * tests/test-truncl.c (main): Remove signbit tests.
27650         * modules/truncl-tests (Depends-on): Remove signbit.
27651         * doc/posix-functions/truncl.texi: Mention the new module.
27652
27653 2010-12-21  Bruno Haible  <bruno@clisp.org>
27654
27655         New module 'ceill-ieee'.
27656         * modules/ceill-ieee: New file.
27657         * modules/ceill-ieee-tests: New file.
27658         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27659         * tests/test-ceill.c (main): Remove signbit tests.
27660         * modules/ceill-tests (Depends-on): Remove signbit.
27661         * doc/posix-functions/ceill.texi: Mention the new module.
27662
27663 2010-12-21  Bruno Haible  <bruno@clisp.org>
27664
27665         New module 'floorl-ieee'.
27666         * modules/floorl-ieee: New file.
27667         * modules/floorl-ieee-tests: New file.
27668         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27669         * tests/test-floorl.c (main): Remove signbit tests.
27670         * modules/floorl-tests (Depends-on): Remove signbit.
27671         * doc/posix-functions/floorl.texi: Mention the new module.
27672
27673 2010-12-21  Bruno Haible  <bruno@clisp.org>
27674
27675         New module 'round-ieee'.
27676         * modules/round-ieee: New file.
27677         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27678         whether round works according to ISO C 99 with IEC 60559.
27679         * m4/round-ieee.m4: New file.
27680         * modules/round-ieee-tests: New file.
27681         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27682         * tests/test-round1.c (main): Remove signbit tests.
27683         * modules/round-tests (Depends-on): Remove 'signbit'.
27684         * doc/posix-functions/round.texi: Mention the new module.
27685
27686 2010-12-21  Bruno Haible  <bruno@clisp.org>
27687
27688         New module 'trunc-ieee'.
27689         * modules/trunc-ieee: New file.
27690         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27691         whether trunc works according to ISO C 99 with IEC 60559.
27692         * m4/trunc-ieee.m4: New file.
27693         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27695         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27696         * modules/trunc-ieee-tests: New file.
27697         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27698         * tests/test-trunc1.c (main): Remove signbit tests.
27699         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27700         * doc/posix-functions/trunc.texi: Mention the new module.
27701
27702 2010-12-21  Bruno Haible  <bruno@clisp.org>
27703
27704         New module 'ceil-ieee'.
27705         * modules/ceil-ieee: New file.
27706         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27707         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27708         ISO C 99 with IEC 60559.
27709         * m4/ceil-ieee.m4: New file.
27710         * modules/ceil (Files): Add lib/ceil.c.
27711         (Depends-on): Add 'float'.
27712         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27713         * lib/math.in.h (ceil): New declaration.
27714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27715         REPLACE_CEIL.
27716         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27717         * modules/ceil-ieee-tests: New file.
27718         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27719         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27720         * doc/posix-functions/ceil.texi: Mention the new module.
27721
27722 2010-12-21  Bruno Haible  <bruno@clisp.org>
27723
27724         New module 'floor-ieee'.
27725         * modules/floor-ieee: New file.
27726         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27727         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27728         ISO C 99 with IEC 60559.
27729         * m4/floor-ieee.m4: New file.
27730         * modules/floor (Files): Add lib/floor.c.
27731         (Depends-on): Add 'float'.
27732         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27733         * lib/math.in.h (floor): New declaration.
27734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27735         REPLACE_FLOOR.
27736         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27737         * modules/floor-ieee-tests: New file.
27738         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27739         * tests/test-math-c++.cc: Check the signature of 'floor'.
27740         * doc/posix-functions/floor.texi: Mention the new module.
27741
27742 2010-12-21  Bruno Haible  <bruno@clisp.org>
27743
27744         New module 'roundf-ieee'.
27745         * modules/roundf-ieee: New file.
27746         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27747         test whether roundf works according to ISO C 99 with IEC 60559.
27748         * m4/roundf-ieee.m4: New file.
27749         * modules/roundf-ieee-tests: New file.
27750         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27751         * tests/test-roundf1.c (main): Remove signbit tests.
27752         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27753         * doc/posix-functions/roundf.texi: Mention the new module.
27754
27755 2010-12-21  Bruno Haible  <bruno@clisp.org>
27756
27757         New module 'truncf-ieee'.
27758         * modules/truncf-ieee: New file.
27759         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27760         test whether truncf works according to ISO C 99 with IEC 60559.
27761         * m4/truncf-ieee.m4: New file.
27762         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27764         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27765         * modules/truncf-ieee-tests: New file.
27766         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27767         * tests/test-truncf1.c (main): Remove signbit tests.
27768         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27769         * doc/posix-functions/truncf.texi: Mention the new module.
27770
27771 2010-12-21  Bruno Haible  <bruno@clisp.org>
27772
27773         New module 'ceilf-ieee'.
27774         * modules/ceilf-ieee: New file.
27775         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27776         test whether ceilf works according to ISO C 99 with IEC 60559.
27777         * m4/ceilf-ieee.m4: New file.
27778         * modules/ceilf-ieee-tests: New file.
27779         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27780         * tests/test-ceilf1.c (main): Remove signbit tests.
27781         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27782         * doc/posix-functions/ceilf.texi: Mention the new module.
27783
27784 2010-12-21  Bruno Haible  <bruno@clisp.org>
27785
27786         New module 'floorf-ieee'.
27787         * modules/floorf-ieee: New file.
27788         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27789         test whether floorf works according to ISO C 99 with IEC 60559.
27790         * m4/floorf-ieee.m4: New file.
27791         * modules/floorf-ieee-tests: New file.
27792         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27793         * tests/test-floorf1.c (main): Remove signbit tests.
27794         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27795         * doc/posix-functions/floorf.texi: Mention the new module.
27796
27797 2010-12-21  Bruno Haible  <bruno@clisp.org>
27798
27799         Support for minus zero in autoconf macros.
27800         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27801         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27802         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27803         * tests/minus-zero.h: Update comments.
27804
27805 2010-12-21  Bruno Haible  <bruno@clisp.org>
27806
27807         Tests for module 'ceil'.
27808         * modules/ceil-tests: New file.
27809         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27810         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27811
27812 2010-12-21  Bruno Haible  <bruno@clisp.org>
27813
27814         Tests for module 'floor'.
27815         * modules/floor-tests: New file.
27816         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27817         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27818
27819 2010-12-21  Bruno Haible  <bruno@clisp.org>
27820
27821         math: Fix indentation.
27822         * lib/math.in.h (floorf): Fix indentation.
27823
27824 2010-12-21  Bruno Haible  <bruno@clisp.org>
27825
27826         Fix cross-compilation guesses on Solaris.
27827         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27828         not match "solaris2.10".
27829         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27830         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27831         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27832
27833 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27834
27835         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27836         This fixes a problem observed with the latest coreutils snapshot
27837         that caused a test to fail on Solaris 8.  src/csplit.c's call
27838         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27839         earlier, instead of returning the number of bytes that would have
27840         been generated; this causes csplit to incorrectly report memory
27841         exhaustion.
27842         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27843         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27844         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27845         comments to match.
27846         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27847         Fix typo in matching older versions of Solaris: "solaris2.10"
27848         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27849         only for guessing while cross-compiling.
27850         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27851
27852 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27853
27854         ftoastr: fix comment again
27855         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27856         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27857         Also, simplify example a bit by using flags = 0.
27858
27859 2010-12-20  Bruno Haible  <bruno@clisp.org>
27860
27861         round*, trunc*: Update documentation regarding glibc.
27862         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27863         * doc/posix-functions/round.texi: Likewise.
27864         * doc/posix-functions/roundl.texi: Likewise.
27865         * doc/posix-functions/truncf.texi: Likewise.
27866         * doc/posix-functions/trunc.texi: Likewise.
27867         * doc/posix-functions/truncl.texi: Likewise.
27868
27869 2010-12-20  Bruno Haible  <bruno@clisp.org>
27870
27871         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27872         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27873         * doc/posix-functions/round.texi: Likewise.
27874         * doc/posix-functions/roundl.texi: Likewise.
27875
27876 2010-12-20  Bruno Haible  <bruno@clisp.org>
27877
27878         ttyname_r: Add missing declaration on HP-UX 11.
27879         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27880         HAVE_TTYNAME_R.
27881         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27882         declared. Set HAVE_TTYNAME_R always.
27883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27884         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27885         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27886         HAVE_TTYNAME_R.
27887         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27888
27889 2010-12-20  Bruno Haible  <bruno@clisp.org>
27890
27891         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27892         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27893         * doc/posix-functions/getlogin_r.texi: Likewise.
27894         * tests/test-getlogin.c: Include <errno.h>.
27895         (main): Avoid test failure on HP-UX 11.11.
27896         * tests/test-getlogin_r.c (main): Likewise.
27897
27898 2010-12-20  Bruno Haible  <bruno@clisp.org>
27899
27900         getlogin_r: Add missing declaration on HP-UX 11.
27901         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27902         declared also when it exists as a function.
27903         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27904
27905 2010-12-20  Bruno Haible  <bruno@clisp.org>
27906
27907         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27908         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27909         through wcrtomb.
27910
27911 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         ftoastr: fix comment
27914         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27915         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27916
27917 2010-12-19  Bruno Haible  <bruno@clisp.org>
27918
27919         isnan: Ensure it is a macro.
27920         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27921         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27922         Solaris.
27923
27924 2010-12-19  Bruno Haible  <bruno@clisp.org>
27925
27926         ldexpl test: Fix link error on OSF/1 5.1.
27927         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27928
27929 2010-12-19  Bruno Haible  <bruno@clisp.org>
27930
27931         wctype: Make it work in C++ mode on OSF/1 5.1.
27932         * lib/wctype.in.h (iswblank): Declare but not define here.
27933         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27934         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27935         * modules/wctype (Files): Add lib/iswblank.c.
27936
27937 2010-12-19  Bruno Haible  <bruno@clisp.org>
27938
27939         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27940         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27941         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27942
27943 2010-12-19  Bruno Haible  <bruno@clisp.org>
27944
27945         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27946         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27947         _POSIX_PII_SOCKET.
27948         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27949         * doc/posix-functions/recvfrom.texi: Likewise.
27950         * doc/posix-functions/send.texi: Likewise.
27951         * doc/posix-functions/sendto.texi: Likewise.
27952
27953 2010-12-19  Bruno Haible  <bruno@clisp.org>
27954
27955         tcgetsid: Add missing declaration on OSF/1 5.1.
27956         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27957         HAVE_TCGETSID.
27958         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27959         Don't set HAVE_TCGETSID.
27960         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27961         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27962         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27963         HAVE_TCGETSID.
27964         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27965
27966 2010-12-19  Bruno Haible  <bruno@clisp.org>
27967
27968         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27969         * lib/stdio.in.h: During the include_next statement, let recursive
27970         includes of this file include only the system header file.
27971
27972 2010-12-19  Bruno Haible  <bruno@clisp.org>
27973
27974         iconv_open: Fix regression from 2010-12-04.
27975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27976         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27977
27978 2010-12-19  Bruno Haible  <bruno@clisp.org>
27979
27980         stdbool test: Avoid a gcc warning.
27981         * tests/test-stdbool.c (main): Fail if e1 is false.
27982         Reported by Jim Meyering.
27983
27984 2010-12-19  Jim Meyering  <meyering@redhat.com>
27985
27986         setenv: restore to working order
27987         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27988         mistakenly removed.
27989         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27990         HAVE_SETENV.
27991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27992         HAVE_SETENV.
27993
27994 2010-12-19  Bruno Haible  <bruno@clisp.org>
27995
27996         Document some different function declarations on OSF/1 5.1.
27997         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27998         * doc/posix-functions/inet_ntop.texi: Likewise.
27999         * doc/posix-functions/gethostname.texi: Likewise.
28000         * lib/unistd.in.h (gethostname): Update comment.
28001
28002 2010-12-19  Bruno Haible  <bruno@clisp.org>
28003
28004         doc: Mention vasprintf-posix module.
28005         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28006         the 'vasprintf-posix' module.
28007         * doc/glibc-functions/vasprintf.texi: Likewise.
28008
28009 2010-12-19  Bruno Haible  <bruno@clisp.org>
28010
28011         unsetenv: Add missing declaration on OSF/1 5.1.
28012         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28013         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28014         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28016         not HAVE_UNSETENV.
28017         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28018         HAVE_UNSETENV.
28019         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28020
28021 2010-12-19  Bruno Haible  <bruno@clisp.org>
28022
28023         setenv: Add missing declaration on OSF/1 5.1.
28024         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28025         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28026         declared. Don't set HAVE_SETENV.
28027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28028         not HAVE_SETENV.
28029         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28030         HAVE_SETENV.
28031         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28032
28033 2010-12-19  Bruno Haible  <bruno@clisp.org>
28034
28035         nl_langinfo tests: Avoid gcc warning.
28036         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28037
28038 2010-12-19  Bruno Haible  <bruno@clisp.org>
28039
28040         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28041         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28042         _GL_CXXALIAS_SYS.
28043
28044 2010-12-19  Bruno Haible  <bruno@clisp.org>
28045
28046         stdbool: Relax test.
28047         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28048         address to 'bool' work in static initializer, for compilers other than
28049         GCC.
28050
28051 2010-12-19  Bruno Haible  <bruno@clisp.org>
28052
28053         ftello: Add missing declaration on OSF/1 5.1.
28054         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28055         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28057         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28058         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28059
28060 2010-12-19  Bruno Haible  <bruno@clisp.org>
28061
28062         fseeko: Add missing declaration on OSF/1 5.1.
28063         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28064         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28066         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28067         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28068
28069 2010-12-19  Bruno Haible  <bruno@clisp.org>
28070
28071         fchdir: Add missing declaration on OSF/1 5.1.
28072         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28075         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28076         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28077
28078 2010-12-19  Bruno Haible  <bruno@clisp.org>
28079
28080         relocatable-prog-wrapper: Separate from relocatable-prog.
28081         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28082         uninstall-relocwrapper rule here.
28083         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28084         Reported by Ian Beckwith <ianb@erislabs.net>.
28085
28086 2010-12-19  Bruno Haible  <bruno@clisp.org>
28087
28088         unistr/u8-mbsnlen: Add missing dependency.
28089         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28090         Reported by Ian Beckwith <ianb@erislabs.net>.
28091
28092 2010-12-19  Bruno Haible  <bruno@clisp.org>
28093
28094         iconv: Make it possible again to use this module without 'iconv-h'.
28095         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28096         if it is not defined.
28097         Reported by Ian Beckwith <ianb@erislabs.net>.
28098
28099 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28100
28101         acl: port to Solaris 8 when copying from tmpfs to ufs
28102         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28103         error number.  Problem observed on Solaris 8 with latest
28104         coreutils, with "mv A B", where A is on a tmpfs file system and B
28105         is on a ufs file system.  This caused coreutils' mv/part-symlink
28106         test to fail.
28107
28108         tests: set fail=0 at start
28109         * tests/init.sh (setup_): Move fail=0 initialization here ...
28110         (mktempd_): ... from here, so that tests can rely on fail being
28111         set to 0 initially.  This fixes a problem in coreutils; see:
28112         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28113
28114 2010-12-18  Bruno Haible  <bruno@clisp.org>
28115
28116         memmem-simple: Stylistic changes.
28117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28118         Fix preprocessor directive indentation.
28119
28120 2010-12-15  Pádraig Brady <P@draigBrady.com>
28121
28122         memmem, memmem-simple: reorganize and expand empty needle check
28123         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28124         functional checks to memmem-simple so that one has a fully functional
28125         memmem by using just this module.
28126         Restrict the performance only check to the memmem module.
28127         Also expand the empty needle check to ensure the correct
28128         pointer is returned, not just a non NULL pointer.
28129         * doc/glibc-functions/memmem.texi: Rearrange the portability
28130         documentation to correlate with the rearranged checks.
28131         Clarify exactly how the memmem and memmem-simple modules
28132         relate to each other.
28133
28134 2010-12-15  Pádraig Brady <P@draigBrady.com>
28135             Bruno Haible  <bruno@clisp.org>
28136
28137         Improve cross-compilation guesses for uClibc.
28138         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28139         that uClibc does not have the glibc bug.
28140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28141         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28142
28143 2010-12-14  Eric Blake  <eblake@redhat.com>
28144
28145         configmake: provide fallbacks for oldest supported autotools
28146         * m4/configmake.m4: New file.
28147         * modules/configmake (Files): Ship it.
28148         (configure.ac): Use it to guarantee fallbacks.
28149
28150 2010-12-13  Pádraig Brady <P@draigBrady.com>
28151
28152         read-file: Improve handling of large files
28153         * lib/read-file.c (fread_file): Minimize realloc()s
28154         for regular files, and better manage sizes around SIZE_MAX.
28155
28156 2010-12-13  Eric Blake  <eblake@redhat.com>
28157
28158         cloexec, fcntl: relax license
28159         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28160         consent from all contributors.
28161         * modules/fcntl (License): Likewise.
28162
28163 2010-12-10  Bruno Haible  <bruno@clisp.org>
28164
28165         Tests for module 'pipe-posix'.
28166         * modules/pipe-posix-tests: New file.
28167         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28168
28169 2010-12-10  Bruno Haible  <bruno@clisp.org>
28170
28171         pipe-posix: Make it work in C++ mode.
28172         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28173         (pipe): Use common idiom, not a macro definition.
28174         * lib/pipe.c: New file.
28175         * m4/pipe.m4: New file.
28176         * modules/pipe-posix (Description): Enhance.
28177         (Files): Add lib/pipe.c, m4/pipe.m4.
28178         (configure.ac): Invoke gl_FUNC_PIPE.
28179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28180         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28181         * tests/test-unistd-c++.cc: Check the signature of pipe.
28182
28183 2010-12-10  Bruno Haible  <bruno@clisp.org>
28184
28185         Rename module 'pipe' to 'spawn-pipe'.
28186         * modules/spawn-pipe: New file, renamed from modules/pipe.
28187         (Files, configure.ac, Makefile.am): Update.
28188         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28189         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28190         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28191         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28192         "spawn-pipe.h" instead of "pipe.h".
28193         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28194         to gl_SPAWN_PIPE.
28195         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28196         (Files, Makefile.am): Update.
28197         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28198         Update.
28199         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28200         Include "spawn-pipe.h" instead of "pipe.h".
28201         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28202         * lib/javacomp.c: Likewise.
28203         * lib/javaversion.c: Likewise.
28204         * lib/pipe-filter-gi.c: Likewise.
28205         * lib/pipe-filter-ii.c: Likewise.
28206         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28207         * modules/javacomp (Depends-on): Likewise.
28208         * modules/javaversion (Depends-on): Likewise.
28209         * modules/pipe-filter-gi (Depends-on): Likewise.
28210         * modules/pipe-filter-ii (Depends-on): Likewise.
28211         * MODULES.html.sh (Executing programs): Update.
28212         * NEWS: Mention the change.
28213
28214 2010-12-10  Eric Blake  <eblake@redhat.com>
28215
28216         pipe-posix: new module
28217         * modules/pipe-posix: New file.
28218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28219         (gl_UNISTD_H): Check for declaration.
28220         * modules/unistd (Makefile.am): Substitute it.
28221         * lib/unistd.in.h (pipe): Provide it for mingw.
28222         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28223         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28224
28225 2010-12-07  Bruno Haible  <bruno@clisp.org>
28226
28227         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28228         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28229         u8_strcmp_gnu.
28230         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28231
28232 2010-12-06  Bruno Haible  <bruno@clisp.org>
28233
28234         Update internal documentation.
28235         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28236
28237 2010-12-04  Bruno Haible  <bruno@clisp.org>
28238
28239         Put more information about failed tests into the test return codes.
28240         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28241         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28242         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28243         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28244         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28245         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28246         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28247         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28248         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28250         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28251         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28252         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28253         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28254         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28255         returns a bit mask.
28256         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28257         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28258         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28259         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28260         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28261         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28262         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28264         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28265         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28266         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28267         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28268         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28269         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28270         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28271         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28272         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28273         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28275         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28277         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28278         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28279         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28280         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28281         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28282         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28283         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28284         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28285         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28286         gl_PRINTF_PRECISION): Likewise.
28287         * m4/regex.m4 (gl_REGEX): Likewise.
28288         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28289         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28290         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28291         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28295         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28296         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28297         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28298         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28299         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28300         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28302         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28303         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28304         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28305         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28307         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28308         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28309         enumerated value.
28310         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28311
28312 2010-12-04  Bruno Haible  <bruno@clisp.org>
28313
28314         Update for Solaris 11 2010-11.
28315         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28316         Express, released in November 2010.
28317
28318 2010-12-04  Bruno Haible  <bruno@clisp.org>
28319
28320         nproc: Relax license.
28321         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28322         and Paul Eggert.
28323         Requested by Ludovic Courtès <ludo@gnu.org>.
28324
28325 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28326
28327         utimecmp: fine-grained src to nearby coarse-grained dest
28328
28329         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28330         and the source is on a file system with higher-resolution time
28331         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28332         not work, and the time stamps are close together, the algorithm to
28333         determine the exact resolution from the read-back mtime was buggy:
28334         it had a "!=" where it should have had an "==".  This bug has been
28335         in the code ever since it was introduced to gnulib.
28336         Problem reported by Dan Jacobson in
28337         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28338
28339 2010-11-30  Bruno Haible  <bruno@clisp.org>
28340
28341         strerror_r-posix: Fix autoconf test.
28342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28343
28344 2010-11-28  Bruno Haible  <bruno@clisp.org>
28345             Paul Eggert  <eggert@cs.ucla.edu>
28346
28347         Tests for module 'getdomainname'.
28348         * modules/getdomainname-tests: New file.
28349         * tests/test-getdomainname.c: New file, based on
28350         tests/test-gethostname.c.
28351
28352 2010-11-28  Bruno Haible  <bruno@clisp.org>
28353             Paul Eggert  <eggert@cs.ucla.edu>
28354
28355         getdomainname: Use the system function when possible.
28356         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28357         (getdomainname): Replace if needed. Provide the declaration if it is
28358         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28359         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28360         (getdomainname): When the system has getdomainname, call the system
28361         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28362         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28363         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28364         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28365         the function if its second argument is of type 'int' or if it is found
28366         in libnsl.
28367         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28368         <sys/systeminfo.h> and sysinfo().
28369         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28371         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28372         HAVE_GETDOMAINNAME.
28373         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28374         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28375         * doc/glibc-functions/getdomainname.texi: Document the problems with
28376         the getdomainname declaration.
28377
28378 2010-11-28  Bruno Haible  <bruno@clisp.org>
28379
28380         sys_socket: Ensure ss_family field on AIX.
28381         * lib/sys_socket.in.h (ss_family): New macro definition.
28382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28383         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28384         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28385         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28386         * modules/sys_socket (Makefile.am): Substitute
28387         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28388         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28389
28390 2010-11-27  Bruno Haible  <bruno@clisp.org>
28391
28392         readline: Improve configure output.
28393         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28394         "checking for readline..." result understandable.
28395
28396 2010-11-27  Bruno Haible  <bruno@clisp.org>
28397
28398         *printf-posix: Detect a bug on Solaris 10/x86.
28399         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28400         for floating-point output.
28401         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28402         directive.
28403         * tests/test-snprintf-posix.h (test_function): Likewise.
28404         * tests/test-sprintf-posix.h (test_function): Likewise.
28405         * tests/test-vasprintf-posix.c (test_function): Likewise.
28406         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28407         * doc/posix-functions/printf.texi: Likewise.
28408         * doc/posix-functions/snprintf.texi: Likewise.
28409         * doc/posix-functions/sprintf.texi: Likewise.
28410         * doc/posix-functions/vfprintf.texi: Likewise.
28411         * doc/posix-functions/vprintf.texi: Likewise.
28412         * doc/posix-functions/vsnprintf.texi: Likewise.
28413         * doc/posix-functions/vsprintf.texi: Likewise.
28414         * doc/glibc-functions/obstack_printf.texi: Likewise.
28415         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28416
28417 2010-11-27  Bruno Haible  <bruno@clisp.org>
28418
28419         Fix link error when module libunistring-optional is in use.
28420         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28421         * modules/striconveha-tests (Makefile.am): Likewise.
28422
28423 2010-11-27  Bruno Haible  <bruno@clisp.org>
28424
28425         regex: Mention link dependencies.
28426         * modules/regex (Link): New section.
28427         * modules/rpmatch (Link): Likewise.
28428         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28429
28430 2010-11-27  Bruno Haible  <bruno@clisp.org>
28431
28432         ftoastr: Fix compilation error on Solaris.
28433         * lib/ftoastr.c: Include <config.h>.
28434
28435 2010-11-27  Bruno Haible  <bruno@clisp.org>
28436
28437         getloadavg: Update documentation.
28438         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28439
28440 2010-11-27  Bruno Haible  <bruno@clisp.org>
28441
28442         sys_socket: Fix test whether the functions are declared.
28443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28444         not <sys/select.h>.
28445
28446 2010-11-27  Bruno Haible  <bruno@clisp.org>
28447
28448         getpass: Make sure to get system declaration on some platforms.
28449         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28450         gl_USE_SYSTEM_EXTENSIONS.
28451         * modules/getpass (Depends-on): Add extensions.
28452
28453 2010-11-26  Bruno Haible  <bruno@clisp.org>
28454
28455         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28456         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28457         'iconv' module is present.
28458         (ICONV_CONST): New macro.
28459         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28460         ICONV_CONST.
28461         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28462         set ICONV_CONST.
28463         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28464         here.
28465         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28466         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28467         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28468         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28469         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28470         present.
28471
28472 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28473
28474         ftoastr: comment fix
28475         * lib/ftoastr.c: "little" -> "little or no" in comment
28476
28477 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28478
28479         stdint: port to GCC 4.3 + OSX + Octave
28480         On this platform, stdint.h is buggy and defines int64_t to long
28481         long int.  The replacement defined it to long int, causing
28482         problems with C++ style name mangling.  Instead, trust the system
28483         definition if INT64_MAX is defined, and likewise for the unsigned
28484         variant.   Problem reported by Jarno Rajahalme in
28485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28486         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28487         and don't mess with int64_t and INT64_MAX in this case.
28488         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28489
28490 2010-11-24  Bruno Haible  <bruno@clisp.org>
28491
28492         doc: Corrections regarding MacOS X 10.4 and 10.5.
28493         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28494         MacOS X.
28495         Reported by Simon Josefsson.
28496
28497 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28498
28499         Uninstall ".bin" files installed by relocwrapper.
28500         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28501         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28502         unless it is already there.
28503
28504 2010-11-21  Bruno Haible  <bruno@clisp.org>
28505
28506         Update for NetBSD 5.0.
28507         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28508         NetBSD; the test fails on NetBSD 5.0.
28509         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28510         about NetBSD.
28511
28512 2010-11-21  Bruno Haible  <bruno@clisp.org>
28513
28514         Update for HP-UX 11.23 and HP-UX 11.31.
28515         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28516         HP-UX.
28517
28518 2010-11-21  Bruno Haible  <bruno@clisp.org>
28519
28520         Update for MacOS X 10.5.
28521         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28522         MacOS X; the test fails on MacOS X 10.5.8.
28523         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28524         about MacOS X.
28525
28526 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28527
28528         bootstrap: add bootstrap_sync option.
28529         See discussion at
28530         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28531         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28532         * build-aux/bootstrap: Accept --bootstrap-sync to update
28533         bootstrap if it is not identical to the local gnulib's
28534         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28535         enable this by default.  Accept --no-bootstrap-sync to disable
28536         it.
28537
28538 2010-11-20  Bruno Haible  <bruno@clisp.org>
28539
28540         Ensure that <features.h> is included before __GLIBC__ is tested.
28541         * lib/printf-parse.h: Include <features.h>.
28542         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28543         Reported by Mike Frysinger <vapier@gentoo.org>.
28544
28545         Ensure that <features.h> is included before __GLIBC__ is tested.
28546         * lib/wchar.in.h: Include <features.h>.
28547         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28548         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28549         Reported by Mike Frysinger <vapier@gentoo.org>.
28550
28551         Ensure that <features.h> is included before __GLIBC__ is tested.
28552         * lib/arpa_inet.in.h: Include <features.h>.
28553         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28554         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28555         Reported by Mike Frysinger <vapier@gentoo.org>.
28556
28557         Ensure that <features.h> is included before __GLIBC__ is tested.
28558         * build-aux/link-warning.h: Include <features.h>.
28559         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28560         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28561         Reported by Mike Frysinger <vapier@gentoo.org>.
28562
28563         Ensure that <features.h> is included before __GLIBC__ is tested.
28564         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28565         Reported by Mike Frysinger <vapier@gentoo.org>.
28566
28567 2010-11-20  Bruno Haible  <bruno@clisp.org>
28568
28569         memmem: Fix autoconf test.
28570         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28571
28572 2010-11-20  Bruno Haible  <bruno@clisp.org>
28573
28574         Port to uClibc.
28575         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28576         * lib/fcntl.in.h: Likewise.
28577         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28578         * lib/mbrtowc.c (mbrtowc): Likewise.
28579         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28580         * lib/strerror_r.c: Likewise.
28581         * lib/unistr/u8-strnlen.c: Likewise.
28582         * lib/vasnprintf.c (decimal_point_char): Likewise.
28583         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28584         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28585         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28586         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28587         * tests/test-sigaction.c (handler, main): Likewise.
28588         * lib/freading.h: Treat uClibc like a non-glibc platform.
28589         * lib/freading.c: Likewise.
28590         * lib/gettext.h: Likewise.
28591         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28592         Likewise.
28593         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28594         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28595         * lib/propername.c (proper_name_utf8): Likewise.
28596         * lib/spawn.in.h: Likewise.
28597         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28598         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28599         mem_cd_iconveh_internal): Likewise.
28600         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28601         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28602         strstr, strcasestr): Likewise.
28603         * lib/unicodeio.c (unicode_to_mb): Likewise.
28604         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28605         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28606         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28607         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28608         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28609         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28610         * lib/unistr/u8-stpncpy.c: Likewise.
28611         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28612         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28613         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28614         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28615         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28616         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28620         Likewise.
28621         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28622         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28623         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28626         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28627         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28628         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28629         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28630         * tests/test-striconveha.c (main): Likewise.
28631         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28632         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28633         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28634         * doc/posix-functions/getline.texi: Likewise.
28635         Reported by Mike Frysinger <vapier@gentoo.org>.
28636
28637 2010-11-20  Bruno Haible  <bruno@clisp.org>
28638
28639         nproc: Fix condition.
28640         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28641         HAVE_PTHREAD_AFFINITY_NP.
28642
28643 2010-11-20  Bruno Haible  <bruno@clisp.org>
28644
28645         Fix a comment.
28646         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28647
28648 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28649
28650         ftoastr: don't assume snprintf
28651         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28652         Implement a subset of snprintf here, by using sprintf safely.
28653         * modules/ftoastr (Depends-on): Remove snprintf.
28654
28655 2010-11-19  Jim Meyering  <meyering@redhat.com>
28656
28657         test-rename.h: fix compilation failure
28658         * tests/test-rename.h (test_rename): Add omitted "}".
28659
28660 2010-11-17  Jim Meyering  <meyering@redhat.com>
28661
28662         maint.mk: add a URL discussing the no-@acronym policy
28663         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28664
28665 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28666
28667         ftoastr: depend on snprintf, improve comments
28668         * lib/ftoastr.c: Also mention Loitsch's draft.
28669         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28670         needed in the current implementation, but it might simplify
28671         speeding up the code later.
28672         * modules/ftoastr: Depend on snprintf; this improves portability.
28673         Suggested by Bruno Haible in the same email.
28674
28675         ftoastr: port to hosts lacking strtof and strtold
28676         Problem reported by Bruno Haible in
28677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28678         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28679         environment and strtold (and presumably strtof) are not available.
28680         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28681         (configure.ac): Require gl_C99_STRTOLD.
28682
28683 2010-11-18  Bruno Haible  <bruno@clisp.org>
28684
28685         c-strtold: Avoid link error on AIX 7.
28686         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28687         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28688         (gl_C_STRTOLD): Test whether strtold_l exists.
28689         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28690
28691 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28692
28693         intprops: new macro INT_BITS_STRLEN_BOUND
28694         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28695         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28696         not exposed.  Also, it uses a slightly tighter bound than before;
28697         though this makes no practical difference, we might as well be as
28698         tight as we easily can.
28699
28700         ftoastr: new module, for lossless conversion of floats to short strings
28701         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28702         * modules/ftoastr: New files.
28703
28704 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28705
28706         bootstrap: port to Solaris sed
28707         * build-aux/bootstrap (get_version): Port to Solaris sed.
28708         See Ralf Wildenhues's note in
28709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28710
28711 2010-11-14  Jim Meyering  <meyering@redhat.com>
28712
28713         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28714         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28715         and move definition closer to sole use.
28716
28717 2010-11-13  Jim Meyering  <meyering@redhat.com>
28718
28719         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28720         Now we require at least autoconf-2.59, which means the work-around
28721         is no longer needed.
28722         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28723         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28724         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28725         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28727
28728 2010-11-13  Bruno Haible  <bruno@clisp.org>
28729
28730         rename, renameat: Avoid test failures at NFS mounted locations.
28731         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28732         functions.
28733         (test_rename): Use assert_nonexistent.
28734         * tests/test-rename.c: Include <dirent.h>.
28735         * tests/test-renameat.c: Likewise.
28736         Reported by Gary V. Vaughan <gary@gnu.org>.
28737
28738         rename, renameat: Document Linux bug with NFS
28739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28740         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28741         * doc/posix-functions/renameat.texi: Likewise.
28742         Suggested by Eric Blake.
28743
28744 2010-11-13  Bruno Haible  <bruno@clisp.org>
28745
28746         rename test: Add comments.
28747         * tests/test-rename.h (test_rename): Add structure and comments.
28748
28749 2010-11-13  Eric Blake  <eblake@redhat.com>
28750
28751         maintainer-makefile: cover a few more files
28752         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28753         scripts generated within C files, for libvirt.
28754
28755 2010-11-13  Bruno Haible  <bruno@clisp.org>
28756
28757         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28758         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28759         character, return the number of bytes that belong together, not always
28760         1.
28761         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28762         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28763         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28764         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28765         number of bytes of an invalid character.
28766         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28767         (main): Invoke it.
28768         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28769         results.
28770         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28771         malformed byte sequences.
28772         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28773         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28774         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28775         Reported by Ben Pfaff and Paolo Bonzini.
28776
28777 2010-11-13  Bruno Haible  <bruno@clisp.org>
28778
28779         openat: Work around glibc bug with fchownat() and empty file names.
28780         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28781         (gl_FUNC_FCHOWNAT): Invoke it.
28782         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28783         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28784         Reported by Gary V. Vaughan <gary@gnu.org>.
28785
28786 2010-11-13  Bruno Haible  <bruno@clisp.org>
28787
28788         openat: Ensure autoconf macro ordering.
28789         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28790         gl_USE_SYSTEM_EXTENSIONS.
28791         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28792
28793 2010-11-13  Bruno Haible  <bruno@clisp.org>
28794
28795         Update comments.
28796         * lib/unistr/u8-check.c: Update file name in comments.
28797         * lib/unistr/u8-mblen.c: Likewise.
28798         * lib/unistr/u8-prev.c: Likewise.
28799         * lib/unistr/u8-strmblen.c: Likewise.
28800         * lib/unistr/u8-strmbtouc.c: Likewise.
28801
28802 2010-11-13  Jim Meyering  <meyering@redhat.com>
28803
28804         tests: avoid test failure on Solaris 10 due to lack of PATH export
28805         * tests/test-update-copyright.sh: Don't forget to export PATH.
28806
28807         init.sh: ensure that IFS is defined, just in case...
28808         * tests/init.sh (setup_): Ensure that IFS is defined,
28809         so that saving and restoring it works as expected.  This
28810         appears to be useful at least for an old version of dash
28811         from a long time ago (RH 6).  See here for details:
28812         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28813
28814         maint.mk: tighten "test a == b" check
28815         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28816         test to files that contain something like #!/bin/sh.
28817         Without this, coreutils would get two false positives in
28818         the comments of C source files.
28819
28820 2010-11-12  Eric Blake  <eblake@redhat.com>
28821
28822         bootstrap: fix typo in previous attempt
28823         * build-aux/bootstrap (buildreq): Correct the grouping.
28824         Reported by Paul Eggert.
28825
28826         maintainer-makefile: prohibit test x == x
28827         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28828         Based on a report by Matthias Bolte.
28829
28830         bootstrap: allow FreeBSD gzip
28831         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28832         which has no '.' and goes to stderr.
28833         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28834         Reported by Matthias Bolte.
28835
28836         maintainer-makefile: check for i18n setup
28837         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28838         will likely work.
28839
28840 2010-11-12  Bruno Haible  <bruno@clisp.org>
28841
28842         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28843         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28844         * lib/nanosleep.c (nanosleep): Likewise.
28845
28846 2010-11-11  Bruno Haible  <bruno@clisp.org>
28847
28848         fcntl-h: Fix for use of C++ on glibc systems.
28849         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28850         also on glibc systems in C++ mode.
28851         Reported by Gary V. Vaughan <gary@gnu.org>.
28852
28853 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28854
28855         mknod: avoid false failure with dash
28856         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28857
28858 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28859
28860         unlink: Fix "is it should" typo in diagnostic.
28861         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28863
28864 2010-11-11  Bruno Haible  <bruno@clisp.org>
28865
28866         Tests for module 'strerror_r-posix'.
28867         * modules/strerror_r-posix-tests: New file.
28868         * tests/test-strerror_r.c: New file.
28869         * tests/test-string-c++.cc: Check the signature of strerror_r.
28870
28871         New module 'strerror_r-posix'.
28872         * lib/string.in.h (strerror_r): New declaration.
28873         * lib/strerror_r.c: New file.
28874         * m4/strerror_r.m4: New file.
28875         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28876         of strerror_r.
28877         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28878         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28879         * modules/strerror_r-posix: New file.
28880         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28881         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28882         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28883         portability problems.
28884
28885 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28886
28887         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28888         line is also considered for output. Quoted function name in shell
28889         command, so temporary files for functions like MyClass::operator()
28890         are removed correctly without errors.
28891
28892 2010-11-09  Bruno Haible  <bruno@clisp.org>
28893
28894         * doc/posix-functions/strerror.texi: List more failing platforms.
28895
28896         * doc/posix-functions/strerror.texi: Add a comment.
28897
28898 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28899
28900         fdopendir: fix bug on MacOS X when low on file descriptors
28901
28902         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28903         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28904         All callers changed.
28905         (fdopendir): Invoke save_cwd at the top level, not after using
28906         multiple dup() calls to use up file descriptors.  Then retry
28907         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28908         less than the maximum number of open file descriptors, because
28909         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28910         on Mac OS X 10.6.4 for tar 1.24
28911         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28912         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28913         and for tar 1.25
28914         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28915
28916 2010-11-07  Bruno Haible  <bruno@clisp.org>
28917
28918         vasnprintf: Support I flag on glibc systems.
28919         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28920         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28921         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28922         snprintf function.
28923         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28924         glibc systems.
28925         * tests/test-vasnprintf-posix3.c: New file.
28926         * modules/vasnprintf-posix-tests (Files): Add it.
28927         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28928
28929 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28930
28931         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28932         * MODULES.html.sh: For compiler warnings, use name
28933         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28934
28935 2010-11-05  Eric Blake  <eblake@redhat.com>
28936
28937         ceil, floor: avoid spurious failure with icc
28938         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28939         [denormals-as-zero] when optimizing without -mieee-fp option.
28940         * tests/test-floorf2.c (floorf_reference): Likewise.
28941         * tests/test-ceilf1.c (dummy): New function.
28942         (main): Use it to outsmart icc's optimization.
28943         * tests/test-floorf1.c (dummy, main): Likewise.
28944
28945         tests: require working signbit
28946         * modules/ceilf-tests (Depends-on): Add signbit.
28947         * modules/ceill-tests (Depends-on): Likewise.
28948         * modules/floorf-tests (Depends-on): Likewise.
28949         * modules/floorl-tests (Depends-on): Likewise.
28950         * modules/round-tests (Depends-on): Likewise.
28951         * modules/roundf-tests (Depends-on): Likewise.
28952         * modules/roundl-tests (Depends-on): Likewise.
28953         * modules/trunc-tests (Depends-on): Likewise.
28954         * modules/truncf-tests (Depends-on): Likewise.
28955         * modules/truncl-tests (Depends-on): Likewise.
28956
28957         strtod: work around icc bug
28958         * lib/strtod.c (minus_zero): Define to working value.
28959         (strtod): Use it to avoid icc bug.
28960
28961         copysign: enhance tests
28962         * modules/copysign-tests (Files): Add minus-zero.h.
28963         * tests/test-copysign.c (main): Also test zeros.
28964
28965 2010-11-04  Eric Blake  <eblake@redhat.com>
28966
28967         ceil, floor, round, trunc: enhance tests of -0
28968         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28969         * tests/test-ceill.c (main): Likewise.
28970         * tests/test-floorf1.c (main): Likewise.
28971         * tests/test-floorl.c (main): Likewise.
28972         * tests/test-round1.c (main): Likewise.
28973         * tests/test-roundf1.c (main): Likewise.
28974         * tests/test-roundl.c (main): Likewise.
28975         * tests/test-trunc1.c (main): Likewise.
28976         * tests/test-truncf1.c (main): Likewise.
28977         * tests/test-truncl.c (main): Likewise.
28978
28979 2010-11-04  Eric Blake  <eblake@redhat.com>
28980
28981         frexp, tests: work around ICC bug with -zero
28982         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28983         works with more compilers.
28984         * tests/minus-zero.h: New file.
28985         * modules/ceilf-tests (Files): Include it.
28986         * modules/ceill-tests (Files): Likewise.
28987         * modules/floorf-tests (Files): Likewise.
28988         * modules/floorl-tests (Files): Likewise.
28989         * modules/frexp-nolibm-tests (Files): Likewise.
28990         * modules/frexp-tests (Files): Likewise.
28991         * modules/frexpl-nolibm-tests (Files): Likewise.
28992         * modules/frexpl-tests (Files): Likewise.
28993         * modules/isnan-tests (Files): Likewise.
28994         * modules/isnand-nolibm-tests (Files): Likewise.
28995         * modules/isnand-tests (Files): Likewise.
28996         * modules/isnanf-nolibm-tests (Files): Likewise.
28997         * modules/isnanf-tests (Files): Likewise.
28998         * modules/isnanl-nolibm-tests (Files): Likewise.
28999         * modules/isnanl-tests (Files): Likewise.
29000         * modules/round-tests (Files): Likewise.
29001         * modules/roundf-tests (Files): Likewise.
29002         * modules/roundl-tests (Files): Likewise.
29003         * modules/ldexpl-tests (Files): Likewise.
29004         * modules/signbit-tests (Files): Likewise.
29005         * modules/snprintf-posix-tests (Files): Likewise.
29006         * modules/sprintf-posix-tests (Files): Likewise.
29007         * modules/strtod-tests (Files): Likewise.
29008         * modules/trunc-tests (Files): Likewise.
29009         * modules/truncf-tests (Files): Likewise.
29010         * modules/truncl-tests (Files): Likewise.
29011         * modules/vsnprintf-posix-tests (Files): Likewise.
29012         * modules/vsprintf-posix-tests (Files): Likewise.
29013         * modules/vasnprintf-posix-tests (Files): Likewise.
29014         * modules/vasprintf-posix-tests (Files): Likewise.
29015         * tests/test-ceilf1.c (main): Use it.
29016         * tests/test-ceill.c (main): Likewise.
29017         * tests/test-floorf1.c (main): Likewise.
29018         * tests/test-floorl.c (main): Likewise.
29019         * tests/test-frexp.c (main): Likewise.
29020         * tests/test-frexpl.c (main): Likewise.
29021         * tests/test-isnan.c (main): Likewise.
29022         * tests/test-isnand.h (main): Likewise.
29023         * tests/test-isnanf.h (main): Likewise.
29024         * tests/test-isnanl.h (main): Likewise.
29025         * tests/test-ldexpl.c (main): Likewise.
29026         * tests/test-round.c (main): Likewise.
29027         * tests/test-roundf.c (main): Likewise.
29028         * tests/test-roundl.c (main): Likewise.
29029         * tests/test-signbit.c (test_signbitf, test_signbitd)
29030         (test_signbitl): Likewise.
29031         * tests/test-snprintf-posix.h (test_function): Likewise.
29032         * tests/test-sprintf-posix.h (test_function): Likewise.
29033         * tests/test-strtod.c (main): Likewise.
29034         * tests/test-trunc1.c (main): Likewise.
29035         * tests/test-truncf1.c (main): Likewise.
29036         * tests/test-truncl.c (main): Likewise.
29037
29038         isnanl: work around icc bug
29039         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29040
29041 2010-11-03  Eric Blake  <eblake@redhat.com>
29042
29043         tests: fix compiler warnings
29044         * tests/test-getopt.h (test_getopt): Fix condition.
29045         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29046         * tests/test-pipe2.c (main): Likewise.
29047         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29048
29049         utimens: fix broken m4 test
29050         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29051
29052 2010-10-28  Bruno Haible  <bruno@clisp.org>
29053
29054         posix_spawn*, getdtablesize: Relax license.
29055         * modules/posix_spawn (License): Change to LGPLv2+.
29056         * modules/posix_spawnp (License): Likewise.
29057         * modules/posix_spawn-internal (License): Likewise.
29058         * modules/posix_spawnattr_init (License): Likewise.
29059         * modules/posix_spawnattr_getflags (License): Likewise.
29060         * modules/posix_spawnattr_setflags (License): Likewise.
29061         * modules/posix_spawnattr_getpgroup (License): Likewise.
29062         * modules/posix_spawnattr_setpgroup (License): Likewise.
29063         * modules/posix_spawnattr_getschedparam (License): Likewise.
29064         * modules/posix_spawnattr_setschedparam (License): Likewise.
29065         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29066         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29067         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29068         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29069         * modules/posix_spawnattr_getsigmask (License): Likewise.
29070         * modules/posix_spawnattr_setsigmask (License): Likewise.
29071         * modules/posix_spawnattr_destroy (License): Likewise.
29072         * modules/posix_spawn_file_actions_init (License): Likewise.
29073         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29074         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29075         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29076         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29077         * modules/getdtablesize (License): Likewise.
29078         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29079
29080 2010-10-26  Bruno Haible  <bruno@clisp.org>
29081
29082         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29083         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29084         Cygwin and mingw.
29085         Suggested by Eric Blake.
29086
29087 2010-10-26  Bruno Haible  <bruno@clisp.org>
29088
29089         stdio: Work around compilation error due to renameat() on Solaris 10.
29090         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29091         * lib/renameat.c: Don't include <unistd.h> here.
29092         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29093         Reported by Paul Eggert and Eric Blake.
29094
29095 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29096
29097         renameat: port to Solaris 10, which declares renameat in unistd.h
29098
29099         * lib/renameat.c: Include unistd.h before stdio.h, because
29100         Solaris 10 declares renameat in unistd.h.  Problem encountered
29101         when building GNU tar 1.24 on Solaris 10.
29102
29103 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29104
29105         fdopendir: fix C89 compilation
29106         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29107         compilers.
29108
29109 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29110
29111         inttostr: simplify by removing unnecessary redundancy
29112         * lib/anytostr.c: Don't include verify.h.
29113         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29114         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29115         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29116         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29117         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29118         Likewise.
29119         * modules/inttostr (Depends-on): Remove 'verify'.
29120
29121 2010-10-23  Bruno Haible  <bruno@clisp.org>
29122
29123         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29124         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29125         Reported by Eric Blake.
29126
29127 2010-10-23  Bruno Haible  <bruno@clisp.org>
29128
29129         Tests: Fix LOCALE_JA on MirBSD 10.
29130         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29131         to an UTF-8 locale.
29132         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29133         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29134         Reported by Eric Blake.
29135
29136 2010-10-21  Bruno Haible  <bruno@clisp.org>
29137
29138         nl_langinfo test: Avoid test failure on NetBSD 5.
29139         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29140         Reported by Eric Blake.
29141
29142 2010-10-21  Eric Blake  <eblake@redhat.com>
29143
29144         c-stack: work around libsigsegv 2.8 bug
29145         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29146         overflow on at least PowerPC64.
29147
29148 2010-10-17  Bruno Haible  <bruno@clisp.org>
29149
29150         userspec: Drop redundant file.
29151         * modules/userspec (Files): Remove lib/inttostr.h.
29152
29153 2010-10-17  Bruno Haible  <bruno@clisp.org>
29154
29155         nl_langinfo tests: Silence some warnings.
29156         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29157         Reported by Jim Meyering.
29158
29159 2010-10-17  Bruno Haible  <bruno@clisp.org>
29160
29161         Make use of GCC's attribute __alloc_size__.
29162         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29163         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29164         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29165         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29166         __alloc_size__.
29167         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29168         Suggested by Jim Meyering.
29169
29170 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29171
29172         bootstrap: anchor .gitignore entries.
29173         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29174         with...
29175         (insert_vc_ignore): ... this new function, which prepends `/' to
29176         all .gitignore entries before passing them to
29177         insert_sorted_if_absent.
29178
29179 2010-10-16  Bruno Haible  <bruno@clisp.org>
29180
29181         nextafter: Fix configure check.
29182         * modules/nextafter (configure.ac): Correct expected prototype.
29183
29184 2010-10-16  Bruno Haible  <bruno@clisp.org>
29185
29186         termios: Update documentation.
29187         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29188
29189 2010-10-16  Bruno Haible  <bruno@clisp.org>
29190
29191         tests: Make them compile with TinyCC.
29192         * tests/test-strstr.c (main): Remove parentheses around array
29193         initializer.
29194
29195 2010-10-15  Eric Blake  <eblake@redhat.com>
29196
29197         ignore-value: make header idempotent
29198         * lib/ignore-value.h: Add double-inclusion guards.
29199         Reported by Stefan Berger.
29200
29201 2010-10-15  Jim Meyering  <meyering@redhat.com>
29202
29203         GNUmakefile: handle "stable" target, not "major"
29204         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29205         lists in maint.mk and announce-gen.  Without this, "make stable"
29206         would fail to ensure that $(VERSION) is up to date.
29207
29208 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29209
29210         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29211         & co.
29212
29213 2010-10-14  Bruno Haible  <bruno@clisp.org>
29214
29215         vasnprintf: Don't set errno to 0.
29216         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29217         block that sets it to 0.
29218         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29219
29220 2010-10-14  Bruno Haible  <bruno@clisp.org>
29221
29222         socketlib: Fix.
29223         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29224         gl_PREREQ_SYS_H_WINSOCK2.
29225         Reported by Ian Beckwith <ianb@erislabs.net>.
29226
29227 2010-10-13  Jim Meyering  <meyering@redhat.com>
29228
29229         test-select-stdin.c: avoid warn_unused_result warnings
29230         * tests/test-select-stdin.c: Include "macros.h".
29231         ASSERT that read and fflush succeed.
29232
29233 2010-10-13  Jim Meyering  <meyering@redhat.com>
29234
29235         git-version-gen: do require git-VC'd files in cwd
29236         * build-aux/git-version-gen: Reject a git version string
29237         if there are no commits associated with the current directory.
29238         This avoids an unlikely false-positive (unrelated dir whose parent
29239         repository also contains a tag matching v*), as pointed out
29240         by Giuseppe Scrivano in
29241         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29242
29243 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29244
29245         argv-iter: omit nonconforming declaration
29246         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29247         enum arg_iter_err declaration, which doesn't conform to C99.
29248         Solaris 10 cc warns about this.
29249
29250 2010-10-13  Eric Blake  <eblake@redhat.com>
29251
29252         termios: fix compilation on mingw
29253         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29254         (gl_TERMIOS_H): Adjust it on mingw.
29255         * modules/termios (Makefile.am): Substitute new key.
29256         * lib/termios.in.h (includes): Make include_next conditional.
29257         * doc/posix-headers/termios.texi (termios.h): Update
29258         documentation.
29259         Reported by Daniel P. Berrange.
29260
29261 2010-10-13  Jim Meyering  <meyering@redhat.com>
29262
29263         git-version-gen: don't require that .git/ be in the current dir
29264         * build-aux/git-version-gen: Adjust this script so that it works
29265         when run from any working directory beneath the top-level .git/-
29266         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29267         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29268
29269         test-select: avoid warn_unused_result warnings
29270         * tests/test-select.c: Include "macros.h".
29271         ASSERT that each call to read, write, and pipe succeeds.
29272         While not technically required, also check each "close".
29273         * modules/select-tests (Files): Add tests/macros.h.
29274
29275         test-symlinkat: remove declaration of unused local
29276         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29277
29278         test-inttostr: avoid shadowing warnings
29279         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29280         and use malloc rather than the stack for the same reason as
29281         mentioned in the comment justifying the other allocation.
29282
29283 2010-10-11  Bruno Haible  <bruno@clisp.org>
29284
29285         stdlib: Allow multiple gnulib generated replacements to coexist.
29286         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29287         Reported by Sam Steingold <sds@gnu.org>.
29288
29289 2010-10-11  Jim Meyering  <meyering@redhat.com>
29290
29291         fix a documentation typo
29292         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29293
29294 2010-10-11  Eric Blake  <eblake@redhat.com>
29295
29296         futimens: work around Solaris 11 bug
29297         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29298         * tests/test-futimens.h (test_futimens): Enhance, rather than
29299         weaken test.
29300         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29301
29302 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29303
29304         Indentation.
29305         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29306         higher-level operators more to the left.
29307
29308 2010-10-11  Jim Meyering  <meyering@redhat.com>
29309
29310         test-futimens: avoid unwarranted test failure on Solaris 5.11
29311         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29312         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29313         because it tries to dereference the NULL name argument.
29314
29315 2010-10-11  Bruno Haible  <bruno@clisp.org>
29316
29317         Indentation.
29318         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29319         indentation.
29320
29321 2010-10-11  Jim Meyering  <meyering@redhat.com>
29322
29323         spawn.in.h: make indentation consistent with parentheses
29324         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29325         Make indentation consistent with parentheses.
29326
29327 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29328
29329         Fix mismatched parens in previous commit
29330         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29331         parens.
29332
29333 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29334
29335         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29336
29337         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29338         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29339         * lib/malloca.c: Include "verify.h".
29340         (verify1): Remove, replacing with a verify call.
29341         * lib/relocwrapper.c (verify1): Likewise.
29342         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29343         Likewise.
29344         * modules/malloca (Depends-on): Add 'verify'.
29345         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29346         * modules/vasnprintf (Depends-on): Add 'verify'.
29347         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29348         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29349         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29350         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29351         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29352         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29353         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29354
29355         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29356
29357         Formerly the style was sometimes 2*X - 1, because the C standard
29358         was wrongly thought to disallow ?: in integral constant expressions.
29359         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29360         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29361         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29362         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29363         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29364         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29365         verify that time_t cannot be floating.
29366
29367 2010-10-08  Eric Blake  <eblake@redhat.com>
29368
29369         time: enforce recent POSIX ruling that time_t is integral
29370         * lib/time.in.h (__time_t_must_be_integral): Detect any
29371         problematic systems, allowing the rest of gnulib to assume POSIX.
29372
29373 2010-10-08  Jim Meyering  <meyering@redhat.com>
29374
29375         fdopendir: fix a bug on systems lacking openat and /proc support
29376         OpenBSD 4.7 is one such system.  The most noticeable effect was
29377         failure of any application making nontrivial use of fts: rm, du,
29378         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29379           ./rm: traversal failed: `a': Bad file descriptor
29380         Debugging that, you see that even though FD 6 was closed just
29381         prior to the opendir call in fd_clone_opendir, its resulting
29382         dir->dd_fd was 8, rather than the expected value of 6:
29383
29384         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29385         93                close (fd);
29386         (gdb) n
29387         94                dir = fd_clone_opendir (dupfd);
29388         (gdb) n
29389         95                saved_errno = errno;
29390         (gdb) p dir->dd_fd
29391         $11 = 8
29392
29393         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29394         The problem is that on OpenBSD, fd_clone_opendir has to resort
29395         to using the old-style save/restore CWD mechanism, due to its
29396         lack of openat/proc support, and *that* would steal the FD (6)
29397         that opendir was supposed to use.
29398
29399         The fix is to squirrel away the desired FD so that save_cwd uses a
29400         different one, and then free the dest FD right before calling opendir.
29401         That guarantees opendir will use the required file descriptor.
29402
29403         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29404
29405 2010-10-08  Bruno Haible  <bruno@clisp.org>
29406
29407         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29408         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29409
29410 2010-10-08  Bruno Haible  <bruno@clisp.org>
29411
29412         nanosleep: Make replacement POSIX compliant.
29413         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29414         is out of range.
29415         Reported by Jim Meyering.
29416
29417 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29418
29419         bootstrap: add hook for altering gnulib.mk, for Bison
29420         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29421         the Bison bootstrapping process can rewrite file names and variables
29422         in this file before later parts of 'bootstrap' use the file.
29423         Bison wants to include lib/gnulib.mk from the top-level makefile,
29424         so it needs the file names in this file to be relative to the top
29425         level, not relative to lib; plus it needs variable names to be
29426         rewritten.
29427         (slurp): Use the new function.
29428
29429         bootstrap: reformat for readability
29430         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29431
29432 2010-10-08  Eric Blake  <eblake@redhat.com>
29433
29434         docs: update cygwin progress
29435         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29436         1.7.7.
29437         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29438         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29439         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29440         * doc/posix-functions/carg.texi (carg): Likewise.
29441         * doc/posix-functions/cargf.texi (cargf): Likewise.
29442         * doc/posix-functions/casin.texi (casin): Likewise.
29443         * doc/posix-functions/casinf.texi (casinf): Likewise.
29444         * doc/posix-functions/casinh.texi (casinh): Likewise.
29445         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29446         * doc/posix-functions/catan.texi (catan): Likewise.
29447         * doc/posix-functions/catanf.texi (catanf): Likewise.
29448         * doc/posix-functions/catanh.texi (catanh): Likewise.
29449         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29450         * doc/posix-functions/ccos.texi (ccos): Likewise.
29451         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29452         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29453         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29454         * doc/posix-functions/cexp.texi (cexp): Likewise.
29455         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29456         * doc/posix-functions/cimag.texi (cimag): Likewise.
29457         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29458         * doc/posix-functions/clog.texi (clog): Likewise.
29459         * doc/posix-functions/clogf.texi (clogf): Likewise.
29460         * doc/posix-functions/conj.texi (conj): Likewise.
29461         * doc/posix-functions/conjf.texi (conjf): Likewise.
29462         * doc/posix-functions/cpow.texi (cpow): Likewise.
29463         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29464         * doc/posix-functions/cproj.texi (cproj): Likewise.
29465         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29466         * doc/posix-functions/creal.texi (creal): Likewise.
29467         * doc/posix-functions/crealf.texi (crealf): Likewise.
29468         * doc/posix-functions/csin.texi (csin): Likewise.
29469         * doc/posix-functions/csinf.texi (csinf): Likewise.
29470         * doc/posix-functions/csinh.texi (csinh): Likewise.
29471         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29472         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29473         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29474         * doc/posix-functions/ctan.texi (ctan): Likewise.
29475         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29476         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29477         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29478         * doc/posix-headers/complex.texi (complex.h): Likewise.
29479
29480 2010-10-07  Jim Meyering  <meyering@redhat.com>
29481
29482         parse-datetime: avoid compilation failure on OpenBSD 4.7
29483         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29484         This works around a compilation failure on OpenBSD 4.7:
29485         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29486
29487 2010-10-07  Eric Blake  <eblake@redhat.com>
29488
29489         docs: update cygwin progress
29490         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29491         1.7.6.
29492         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29493         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29494         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29495         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29496         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29497         Likewise.
29498         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29499         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29500         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29501         Likewise.
29502         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29503         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29504         Likewise.
29505         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29506         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29507         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29508         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29509         Likewise.
29510         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29511         Likewise.
29512         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29513
29514         docs: update parse-datetime history
29515         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29516         documentation of this function's history and alternatives.
29517
29518         cygwin: use more robust version check
29519         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29520         exclude an eventual cygwin 1.9.1.
29521         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29523         (gl_FUNC_STRCASESTR): Likewise.
29524         Reported by Bruno Haible.
29525
29526 2010-10-06  Bruno Haible  <bruno@clisp.org>
29527
29528         string, sys_select: Avoid #including large headers unless necessary.
29529         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29530         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29531         OSF/1, BeOS, Haiku.
29532         Reported by Jim Meyering.
29533
29534 2010-10-05  Eric Blake  <eblake@redhat.com>
29535
29536         memmem, strstr, strcasestr: fix bug with long periodic needle
29537         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29538         periodic needle having false positive.
29539         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29540         and cygwin 1.7.7.
29541         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29543         (gl_FUNC_STRCASESTR): Likewise.
29544         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29545         * tests/test-memmem.c (main): Expose the bug.
29546         * tests/test-strcasestr.c (main): Likewise.
29547         * tests/test-strstr.c (main): Likewise.
29548         * tests/test-c-strcasestr.c (main): Likewise.
29549         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29550         * doc/posix-functions/strstr.texi (strstr): Likewise.
29551         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29552         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29553
29554 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         parse-datetime: do some more renaming
29557         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29558         parse_datetime, not get_date.  Mention the renaming.
29559         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29560         in comments.
29561         * m4/bison.m4: Likewise.
29562
29563 2010-10-05  Eric Blake  <eblake@redhat.com>
29564
29565         parse-datetime: better name than get_date
29566         * NEWS: Reword the deprecation notice.
29567         * modules/get_date: Rename to modules/parse-datetime.
29568         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29569         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29570         * lib/get_date.y: Rename to lib/parse-datetime.y.
29571         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29572         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29573         * doc/getdate.texi: Provide fallback wrapper.
29574         * lib/getdate.h: Move guts, and wrap...
29575         * lib/parse-datetime.h: ...new file.
29576         * lib/parse-datetime.y (get_date): Rename...
29577         (parse_datetime): ...to this.
29578         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29579         (gl_PARSE_DATETIME): ...to this.
29580         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29581         documentation.
29582         * modules/getdate (Files): Provide fallback docs and header.
29583         (Notice, Depends-on): Update references.
29584         * tests/test-parse-datetime.c: Likewise.
29585         * DEPENDENCIES: Likewise.
29586         * MODULES.html.sh (Date and time <time.h>): Likewise.
29587         * doc/parse-datetime.texi (Date input formats)
29588         (Authors of parse_datetime): Likewise.
29589         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29590         (Include): Likewise.
29591         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29592         * gnulib-tool: Likewise.
29593         * m4/bison.m4 (gl_BISON): Likewise.
29594         Suggested by Bruno Haible.
29595
29596 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29597
29598         more ports to Solaris tr, which needs [] around ranges
29599         * gnulib-tool: Solaris tr needs [] around ranges.
29600         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29601         * tests/test-pipe-filter-gi1.c (main): Likewise.
29602         * tests/test-pipe-filter-ii1.c (main): Likewise.
29603
29604 2010-10-05  Eric Blake  <eblake@redhat.com>
29605
29606         bootstrap: fix Solaris regression
29607         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29608         around ranges.
29609         Reported by Pádraig Brady.
29610
29611         bootstrap: work with pkg-config
29612         * build-aux/bootstrap (check_versions): Also transliterate - in
29613         prerequisite name.
29614         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29615         prerequisites that were already found, to avoid confusion.
29616         Reported by Justin Clift.
29617
29618         faccessat: remove unused wrappers
29619         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29620         presence of these wrappers dragged in -lgen on Solaris.
29621         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29622
29623 2010-10-05  Jim Meyering  <meyering@redhat.com>
29624
29625         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29626         * Makefile (sc_pragma_columns): New syntax-check rule.
29627
29628 2010-10-04  Bruno Haible  <bruno@clisp.org>
29629
29630         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29631         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29632         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29633         Reported by Bruce Korb and Eric Blake.
29634
29635 2010-10-04  Bruno Haible  <bruno@clisp.org>
29636
29637         threadlib: Make option --with-libpth-prefix work.
29638         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29639         use $LIBPTH, not just -lpth.
29640
29641 2010-10-04  Bruno Haible  <bruno@clisp.org>
29642
29643         Avoid line length limitation from HP NonStop system header files.
29644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29645         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29646         * lib/ctype.in.h: Likewise.
29647         * lib/dirent.in.h: Likewise.
29648         * lib/errno.in.h: Likewise.
29649         * lib/fcntl.in.h: Likewise.
29650         * lib/float.in.h: Likewise.
29651         * lib/getopt.in.h: Likewise.
29652         * lib/iconv.in.h: Likewise.
29653         * lib/inttypes.in.h: Likewise.
29654         * lib/langinfo.in.h: Likewise.
29655         * lib/locale.in.h: Likewise.
29656         * lib/math.in.h: Likewise.
29657         * lib/netdb.in.h: Likewise.
29658         * lib/netinet_in.in.h: Likewise.
29659         * lib/poll.in.h: Likewise.
29660         * lib/pthread.in.h: Likewise.
29661         * lib/pty.in.h: Likewise.
29662         * lib/sched.in.h: Likewise.
29663         * lib/se-selinux.in.h: Likewise.
29664         * lib/search.in.h: Likewise.
29665         * lib/signal.in.h: Likewise.
29666         * lib/spawn.in.h: Likewise.
29667         * lib/stdarg.in.h: Likewise.
29668         * lib/stddef.in.h: Likewise.
29669         * lib/stdint.in.h: Likewise.
29670         * lib/stdio.in.h: Likewise.
29671         * lib/stdlib.in.h: Likewise.
29672         * lib/string.in.h: Likewise.
29673         * lib/strings.in.h: Likewise.
29674         * lib/sys_file.in.h: Likewise.
29675         * lib/sys_ioctl.in.h: Likewise.
29676         * lib/sys_select.in.h: Likewise.
29677         * lib/sys_socket.in.h: Likewise.
29678         * lib/sys_stat.in.h: Likewise.
29679         * lib/sys_time.in.h: Likewise.
29680         * lib/sys_times.in.h: Likewise.
29681         * lib/sys_utsname.in.h: Likewise.
29682         * lib/sys_wait.in.h: Likewise.
29683         * lib/sysexits.in.h: Likewise.
29684         * lib/termios.in.h: Likewise.
29685         * lib/time.in.h: Likewise.
29686         * lib/unistd.in.h: Likewise.
29687         * lib/wchar.in.h: Likewise.
29688         * lib/wctype.in.h: Likewise.
29689         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29690         * modules/ctype (Makefile.am): Likewise.
29691         * modules/dirent (Makefile.am): Likewise.
29692         * modules/errno (Makefile.am): Likewise.
29693         * modules/fcntl-h (Makefile.am): Likewise.
29694         * modules/float (Makefile.am): Likewise.
29695         * modules/getopt-posix (Makefile.am): Likewise.
29696         * modules/iconv-h (Makefile.am): Likewise.
29697         * modules/inttypes (Makefile.am): Likewise.
29698         * modules/langinfo (Makefile.am): Likewise.
29699         * modules/locale (Makefile.am): Likewise.
29700         * modules/math (Makefile.am): Likewise.
29701         * modules/netdb (Makefile.am): Likewise.
29702         * modules/netinet_in (Makefile.am): Likewise.
29703         * modules/poll-h (Makefile.am): Likewise.
29704         * modules/pthread (Makefile.am): Likewise.
29705         * modules/pty (Makefile.am): Likewise.
29706         * modules/sched (Makefile.am): Likewise.
29707         * modules/search (Makefile.am): Likewise.
29708         * modules/selinux-h (Makefile.am): Likewise.
29709         * modules/signal (Makefile.am): Likewise.
29710         * modules/spawn (Makefile.am): Likewise.
29711         * modules/stdarg (Makefile.am): Likewise.
29712         * modules/stddef (Makefile.am): Likewise.
29713         * modules/stdint (Makefile.am): Likewise.
29714         * modules/stdio (Makefile.am): Likewise.
29715         * modules/stdlib (Makefile.am): Likewise.
29716         * modules/string (Makefile.am): Likewise.
29717         * modules/strings (Makefile.am): Likewise.
29718         * modules/sys_file (Makefile.am): Likewise.
29719         * modules/sys_ioctl (Makefile.am): Likewise.
29720         * modules/sys_select (Makefile.am): Likewise.
29721         * modules/sys_socket (Makefile.am): Likewise.
29722         * modules/sys_stat (Makefile.am): Likewise.
29723         * modules/sys_time (Makefile.am): Likewise.
29724         * modules/sys_times (Makefile.am): Likewise.
29725         * modules/sys_utsname (Makefile.am): Likewise.
29726         * modules/sys_wait (Makefile.am): Likewise.
29727         * modules/sysexits (Makefile.am): Likewise.
29728         * modules/termios (Makefile.am): Likewise.
29729         * modules/time (Makefile.am): Likewise.
29730         * modules/unistd (Makefile.am): Likewise.
29731         * modules/wchar (Makefile.am): Likewise.
29732         * modules/wctype (Makefile.am): Likewise.
29733
29734 2010-10-04  Bruno Haible  <bruno@clisp.org>
29735
29736         read-file tests: Avoid a test failure on NonStop Kernel.
29737         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29738         a regular file.
29739         Reported by Joachim Schmitz <schmitz@hp.com>.
29740
29741 2010-10-03  Bruno Haible  <bruno@clisp.org>
29742
29743         gnulib-tool: Fixes for --create-testdir with --libtool.
29744         * gnulib-tool (func_get_automake_snippet): Don't augment
29745         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29746         an executable.
29747         (func_create_testdir): Handle module 'alloca' like func_import.
29748         Reported by Bruce Korb <bruce.korb@gmail.com>.
29749
29750 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29751
29752         Avoid some lines longer than 80 characters.
29753         * lib/stdint.in.h: Break long comment lines.
29754         * lib/math.in.h: Likewise.
29755         (_GL_NUM_UINT_WORDS): New macro, for readability.
29756         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29757         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29758         * lib/stdlib.in.h: Likewise.
29759         * lib/spawn.in.h: Likewise.
29760         * lib/sys_socket.in.h: Update an URL.
29761         * lib/sys_stat.in.h: Break long line.
29762
29763 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29764
29765         Improve pmccabe2html.
29766         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29767         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29768         when the sources change. Remove the line in the HTML about "Used
29769         ranges" (which implied that there might be other unused ranges),
29770         rename "Resume" to "Summary" (easier to understand for more users).
29771         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29772         styles, and some unnecessary blank lines.
29773
29774 2010-10-03  Bruno Haible  <bruno@clisp.org>
29775             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29776
29777         acl: Add support for ACLs on NonStop Kernel.
29778         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29779         Check whether the function aclsort() exists.
29780         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29781         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29782         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29783         (acl_nontrivial [HAVE_ACLSORT]: New function.
29784         (file_has_acl): Implement for NonStop Kernel.
29785         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29786         (qset_acl): Implement for NonStop Kernel.
29787         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29788         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29789         (main): Implement for NonStop Kernel.
29790         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29791         Kernel. Handle this flavor.
29792         * tests/test-set-mode-acl.sh: Likewise.
29793         * tests/test-copy-acl.sh: Likewise.
29794         * tests/test-copy-file.sh: Likewise.
29795
29796 2010-10-03  Bruno Haible  <bruno@clisp.org>
29797
29798         Info about ACLs on NonStop Kernel.
29799         * doc/acl-resources.txt: Add info about NonStop Kernel.
29800         References by Joachim Schmitz <schmitz@hp.com>.
29801
29802 2010-10-02  Bruno Haible  <bruno@clisp.org>
29803
29804         Define missing EDQUOT on NonStop Kernel.
29805         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29806         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29807         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29808         missing.
29809         * doc/posix-headers/errno.texi: Mention the NSK bug.
29810         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29811         Reported by Joachim Schmitz <schmitz@hp.com>.
29812
29813 2010-10-02  Bruno Haible  <bruno@clisp.org>
29814
29815         Update doc for POSIX:2008.
29816         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29817         Update URL of POSIX specification.
29818
29819 2010-10-02  Bruno Haible  <bruno@clisp.org>
29820
29821         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29822         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29823         from gnulib, not from Automake.
29824
29825 2010-10-02  Bruno Haible  <bruno@clisp.org>
29826
29827         New module 'system-posix'.
29828         * modules/system-posix: New file.
29829         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29830         module is present.
29831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29832         GNULIB_SYSTEM_POSIX.
29833         * modules/stdlib (Depends-on): Remove sys_wait.
29834         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29835         * doc/posix-functions/system.texi: Mention the new module.
29836         * doc/posix-headers/stdlib.texi: Likewise.
29837         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29838         define test_sys_wait_macros to a no-op.
29839         Reported by Sam Steingold <sds@gnu.org>.
29840
29841 2010-09-30  Bruno Haible  <bruno@clisp.org>
29842
29843         More renaming from 'getdate' to 'get_date'.
29844         * doc/get_date.texi: Renamed from doc/getdate.texi.
29845         * modules/get_date (Files): Update.
29846         * MODULES.html.sh (Date and time <time.h>): Update.
29847         * DEPENDENCIES: Update.
29848         * gnulib-tool: Update comment.
29849         * m4/bison.m4 (gl_BISON): Likewise.
29850         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29851
29852 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29853
29854         bootstrap: support ACLOCAL_FLAGS during aclocal
29855         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29856         can add additional -I dir for third-party .m4 files.
29857
29858 2010-09-30  Eric Blake  <eblake@redhat.com>
29859
29860         bootstrap: use glibtoolize on MacOS
29861         * build-aux/bootstrap (check_versions): Convert libtool into
29862         libtoolize.
29863         (tool search): Move libtool check earlier, and look for
29864         glibtoolize for MacOS.
29865         (gnulib_tool_options): Auto-add --libtool when appropriate.
29866         Reported by Justin Clift.
29867
29868         poll: fix typo that broke test on MacOS
29869         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29870         Reported by Justin Clift.
29871
29872         getdate: rename to get_date
29873         Note: getdate.h is not renamed, to minimize client impact.
29874         * modules/getdate: Mark obsolete.  Move old contents...
29875         * modules/get_date: ...to new module name.
29876         * modules/getdate-tests: Move...
29877         * modules/get_date-tests: ...here.
29878         * m4/getdate.m4: Move...
29879         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29880         * lib/getdate.y: Move...
29881         * lib/get_date.y: ...here.
29882         * tests/test-getdate.c: Move...
29883         * tests/test-get_date.c: ...here.
29884         * doc/posix-functions/getdate.texi (getdate): Update name.
29885         * NEWS: Mention the change.
29886
29887 2010-09-29  Bruno Haible  <bruno@clisp.org>
29888
29889         Separate the module 'waitpid' from the module 'sys_wait'.
29890         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29891         present.
29892         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29893         gl_MODULE_INDICATOR_FOR_TESTS.
29894         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29895         * modules/sys_wait (Depends-on): Remove waitpid.
29896         (Makefile.am): Substitute GNULIB_WAITPID.
29897         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29898         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29899         signature only if the 'waitpid' module is present.
29900         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29901         * NEWS: Mention the change.
29902         * modules/grantpt (Depends-on): Add waitpid.
29903         * modules/wait-process (Depends-on): Likewise.
29904
29905 2010-09-29  Bruno Haible  <bruno@clisp.org>
29906
29907         More tests for module 'sys_wait'.
29908         * modules/sys_wait-c++-tests: New file.
29909         * tests/test-sys_wait-c++.cc: New file.
29910         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29911         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29912
29913 2010-09-29  Bruno Haible  <bruno@clisp.org>
29914
29915         New module 'waitpid'.
29916         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29917         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29918         Don't include <process.h>.
29919         (waitpid): Declare only, using modern idiom.
29920         * m4/waitpid.m4: New file.
29921         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29922         * modules/waitpid: New file.
29923         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29924         (Makefile.am): Update.
29925         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29926
29927 2010-09-28  Bruno Haible  <bruno@clisp.org>
29928
29929         poll: Assume ANSI C.
29930         * lib/poll.c (poll): Use an ANSI C declaration.
29931
29932 2010-09-28  Bruno Haible  <bruno@clisp.org>
29933
29934         poll-h: Create poll.h on all platforms.
29935         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29936         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29937         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29938         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29939         (gl_REPLACE_POLL_H): Don't set POLL_H.
29940         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29941         * modules/poll-h (Depends-on): Add include_next.
29942         (Makefile.am): Create poll.h unconditionally. Substitute also
29943         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29944
29945 2010-09-28  Bruno Haible  <bruno@clisp.org>
29946
29947         Tests for module 'poll-h'.
29948         * modules/poll-h-c++-tests: New file.
29949         * tests/test-poll-h-c++.cc: New file.
29950
29951         Tests for module 'poll-h'.
29952         * modules/poll-h-tests: New file.
29953         * tests/test-poll-h.c: New file.
29954
29955 2010-09-28  Bruno Haible  <bruno@clisp.org>
29956
29957         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29958         * modules/poll-h (Depends-on): Add 'extensions'.
29959
29960 2010-09-28  Bruno Haible  <bruno@clisp.org>
29961
29962         New module 'poll-h'.
29963         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29964         (poll): Use modern idiom.
29965         * modules/poll-h: New file.
29966         * modules/poll (Files): Remove lib/poll.in.h.
29967         (Depends-on): Add poll-h.
29968         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29969         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29970         * m4/poll_h.m4: New file.
29971         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29972         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29973         and invoke gl_REPLACE_POLL_H.
29974         * lib/poll.c: Use common idiom.
29975         * tests/test-poll.c: Likewise.
29976         * doc/posix-headers/poll.texi: Mention the poll-h module.
29977         Suggested by Eric Blake.
29978
29979 2010-09-26  Bruno Haible  <bruno@clisp.org>
29980
29981         sys_wait: Implement WSTOPSIG.
29982         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29983         Reported by Simon Josefsson.
29984
29985 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29986
29987         stdlib, sys_wait: Avoid compilation error on mingw.
29988         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29989
29990 2010-09-26  Bruno Haible  <bruno@clisp.org>
29991
29992         stdlib tests: Avoid code duplication.
29993         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29994         * modules/sys_wait-tests (Files): Likewise.
29995         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29996         * tests/test-stdlib.c: Include test-sys_wait.h.
29997         (main): Invoke test_sys_wait_macros.
29998         * tests/test-sys_wait.c: Include test-sys_wait.h.
29999         (main): Invoke test_sys_wait_macros.
30000
30001 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30002
30003         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30004         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30005         sure Windows sockets are working before calling getaddrinfo.
30006         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30007         * doc/gnulib.texi (Windows sockets): Fix typo.
30008
30009 2010-09-25  Bruno Haible  <bruno@clisp.org>
30010
30011         Tests for module 'regex-quote'.
30012         * modules/regex-quote-tests: New file.
30013         * tests/test-regex-quote.c: New file.
30014
30015         New module 'regex-quote'.
30016         * lib/regex-quote.h: New file.
30017         * lib/regex-quote.c: New file.
30018         * modules/regex-quote: New file.
30019         Suggested by Reuben Thomas <rrt@sc3d.org>.
30020
30021 2010-09-24  Bruno Haible  <bruno@clisp.org>
30022
30023         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30024         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30025
30026 2010-09-23  Bruno Haible  <bruno@clisp.org>
30027
30028         setenv: Relax license.
30029         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30030         Blake.
30031         Requested by Eric Blake.
30032
30033 2010-09-22  Bruno Haible  <bruno@clisp.org>
30034
30035         termios: Relax license.
30036         * modules/termios (License): Change to LGPLv2+.
30037         Requested by Eric Blake.
30038
30039 2010-09-22  Bruno Haible  <bruno@clisp.org>
30040
30041         threadlib: Allow the package to change the default to 'no'.
30042         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30043         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30044         Reported by Paul Eggert.
30045
30046 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30047             Bruno Haible  <bruno@clisp.org>
30048
30049         Fix endless loop in mbmemcasecoll.
30050         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30051         byte.
30052         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30053
30054 2010-09-22  Bruno Haible  <bruno@clisp.org>
30055
30056         Tests for module 'memcoll'.
30057         * modules/memcoll-tests: New file.
30058         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30059
30060         memcoll, xmemcoll: Clarify size vs. length.
30061         * modules/memcoll.c (memcoll0): Clarify specification.
30062         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30063         passed to collate_error.
30064
30065 2010-09-22  Bruno Haible  <bruno@clisp.org>
30066
30067         Tests for module 'memcasecmp'.
30068         * modules/memcasecmp-tests: New file.
30069         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30070
30071 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30072
30073         * lib/pthread.in.h: Add split double-inclusion guard, and include
30074         system <pthread.h> if there is one.  Use @@-style as in other
30075         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30076         pthread.h doesn't.
30077         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30078         (pthread_mutexattr_settype, pthread_mutex_trylock):
30079         New static inline functions, if there's no system <pthread.h>.
30080         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30081         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30082         Approximate with mutexes if the system lacks spinlocks, as in
30083         MacOS.
30084         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30085         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30086         @@-style.  Check for spinlocks separately.
30087         (gl_PTHREAD_DEFAULTS): New macro.
30088         * modules/pthread: Redo to use a more typical style for in.h files.
30089
30090 2010-09-21  Eric Blake  <eblake@redhat.com>
30091
30092         net_if: enhance tests
30093         * tests/test-net_if.c (main): Move signature checks earlier.
30094         Print failures to stderr.
30095         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30096         Document the bug that we do not yet fix.
30097
30098 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30099
30100         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30101         about gnulib, not GSS.
30102
30103 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30104
30105         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30106         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30107         for Emacs.
30108         * build-aux/pmccabe2html: Make Makefile.am example code more
30109         cut-and-paste friendly.
30110
30111 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30112
30113         * tests/test-net_if.c: New file.
30114         * modules/net_if-tests: New file.
30115
30116 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30117
30118         pthread: add pthread_spin_destroy
30119         * lib/pthread.in.h (pthread_spin_destroy): New function.
30120
30121 2010-09-19  Bruno Haible  <bruno@clisp.org>
30122
30123         gnulib-tool: Fix --help output.
30124         * gnulib-tool (func_usage): Fix help message.
30125         Reported by Reuben Thomas <rrt@sc3d.org>.
30126
30127 2010-09-18  Jim Meyering  <meyering@redhat.com>
30128
30129         maint.mk: avoid unexpanded \n in two diagnostics
30130         * top/maint.mk (sc_prohibit_always_true_header_tests):
30131         Don't use a literal \n in a halt=... assignment.  It would not be
30132         expanded, and the two \n bytes would appear in the diagnostic output
30133         rather than the desired newline.  Use halt=$$(printf ... instead.
30134         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30135
30136 2010-09-18  Bruno Haible  <bruno@clisp.org>
30137
30138         netinet_in: Doc tweak.
30139         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30140         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30141
30142 2010-09-18  Jim Meyering  <meyering@redhat.com>
30143
30144         init.sh: correct an outdated comment
30145         * tests/init.sh (create_exe_shims_):  s/function/alias/
30146
30147         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30148         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30149         a file named "*.exe" is removed between the glob expansion and the
30150         processing of that oddly named file.
30151
30152 2010-09-17  Eric Blake  <eblake@redhat.com>
30153
30154         mirbsd: add some more support
30155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30156         in BSD family.
30157         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30158         devices as OpenBSD.
30159         * m4/host-os.m4 (mirbsd): Add MirBSD.
30160
30161         tests: fix unportable assumption on sys/wait.h
30162         * tests/test-sys_wait.c (main): Relax test.
30163         * tests/test-stdlib.c (main): Likewise.
30164
30165         init.sh: accommodate directory with no .exes
30166         * tests/init.sh: Accomodate directory containing only scripts.
30167
30168         tests: avoid compiler warning
30169         * tests/test-stdlib.c (main): Use the variable.
30170
30171         fdutimens, fdutimensat: update signature, again
30172         * lib/utimens.h (gl_futimens): Delete, and move signature...
30173         (fdutimens): ...here.
30174         (fdutimensat): Rearrange signature.
30175         (lutimensat): Rename variable for clarity.
30176         * lib/fdutimensat.c (fdutimensat): Update signature.
30177         * lib/utimens.c (fdutimens): Likewise.
30178         (gl_futimens): Delete.
30179         (utimens, lutimens): Update callers.
30180         * lib/futimens.c (futimens): Likewise.
30181         * tests/test-fdutimensat.c: Likewise.
30182         * tests/test-utimens.c: Likewise.
30183         * tests/test-futimens.h: Update comment.
30184         * NEWS: Mention this.
30185         Suggested by Paul Eggert.
30186
30187 2010-09-17  Bruno Haible  <bruno@clisp.org>
30188
30189         Take over the maintenance of some older macros from Autoconf.
30190         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30191         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30192         GNU Autoconf.
30193         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30194         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30195
30196 2010-09-17  Eric Blake  <eblake@redhat.com>
30197
30198         fdutimensat: drop atflag validation
30199         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30200         with valid fd, to close a race scenario where futimens is
30201         unsupported and FILE was replaced by a symlink.
30202         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30203         accordingly.
30204         Suggested by Paul Eggert.
30205
30206 2010-09-16  Bruno Haible  <bruno@clisp.org>
30207
30208         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30209         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30210
30211 2010-09-16  Bruno Haible  <bruno@clisp.org>
30212
30213         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30214         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30215         login_tty exists.
30216         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30217
30218 2010-09-16  Bruno Haible  <bruno@clisp.org>
30219
30220         login_tty: Make the replacement code work on BSD systems.
30221         * lib/login_tty.c: Include <sys/ioctl.h>.
30222         (login_tty): Use ioctl TIOCSCTTY when available.
30223         * modules/login_tty (Depends-on): Add sys_ioctl.
30224         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30225
30226 2010-09-16  Bruno Haible  <bruno@clisp.org>
30227
30228         login_tty: Stricter unit test.
30229         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30230         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30231         and tcgetsid() after login_tty.
30232         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30233
30234 2010-09-16  Bruno Haible  <bruno@clisp.org>
30235
30236         New module 'tcgetsid'.
30237         * lib/tcgetsid.c: New file.
30238         * m4/tcgetsid.m4: New file.
30239         * modules/tcgetsid: New file.
30240         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30241         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30242         GNULIB_TCGETSID, HAVE_TCGETSID.
30243         * lib/termios.in.h: Include <sys/types.h>.
30244         (tcgetsid): New declaration.
30245         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30246         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30247         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30248         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30249
30250 2010-09-16  Bruno Haible  <bruno@clisp.org>
30251
30252         Tests for module 'termios'.
30253         * modules/termios-c++-tests: New file.
30254         * modules/termios-tests: New file.
30255         * tests/test-termios-c++.cc: New file.
30256         * tests/test-termios.c: New file.
30257
30258         New module 'termios'.
30259         * modules/termios: New file.
30260         * lib/termios.in.h: New file.
30261         * m4/termios_h.m4: New file.
30262         * doc/posix-headers/termios.texi: Mention the new module.
30263
30264 2010-09-16  Eric Blake  <eblake@redhat.com>
30265
30266         fdutimensat: add an atflag parameter
30267         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30268         * lib/utimens.h (fdutimensat): Update prototype.
30269         * tests/test-fdutimensat.c: Adjust test to match.
30270         * NEWS: Document the change.
30271         Suggested by Paul Eggert.
30272
30273 2010-09-16  Bruno Haible  <bruno@clisp.org>
30274
30275         Fix typos in comments.
30276         * lib/striconveh.h: Fix typo in comment.
30277         * lib/login_tty.c (login_tty): Likewise.
30278
30279 2010-09-15  Bruno Haible  <bruno@clisp.org>
30280
30281         stdlib: clarify MirBSD WEXITSTATUS bug
30282         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30283         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30284
30285 2010-09-15  Eric Blake  <eblake@redhat.com>
30286
30287         stdlib: work around MirBSD WEXITSTATUS bug
30288         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30289         * modules/stdlib (Depends-on): Add sys_wait.
30290         * tests/test-sys_wait.c (main): Enhance test.
30291         * tests/test-stdlib.c (main): Likewise.
30292         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30293
30294         docs: mention MacOS issue with WEXITSTATUS(constant)
30295         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30296         issue.
30297         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30298
30299         strnlen: add tests
30300         * modules/strnlen-tests: New file.
30301         * tests/test-strnlen.c: Likewise.
30302
30303 2010-09-14  Bruno Haible  <bruno@clisp.org>
30304
30305         unistr/base: Avoid link errors when module 'libunistring' is also used.
30306         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30307         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30308         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30309         Declare also when HAVE_LIBUNISTRING is set.
30310         Reported by Pádraig Brady <P@draigbrady.com>.
30311
30312 2010-09-14  Eric Blake  <eblake@redhat.com>
30313
30314         test-rawmemchr: make more robust
30315         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30316         (Depends-on, configure.ac): Add needed prerequisites to use it.
30317         * modules/memchr-tests (Files, Depends-on, configure.ac):
30318         Likewise, to avoid implicit reliance on memchr module prereqs.
30319         * tests/test-memchr.c (main): Ensure proper masking.
30320         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30321         reads.
30322
30323         memchr: detect glibc Alpha bug
30324         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30325         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30326         Alpha.
30327         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30328         * tests/test-memchr.c (main): Enhance test.
30329         Reported by Nelson H. F. Beebe.
30330
30331 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30332
30333         fts, getcwd, glob: audit for dirfd returning -1
30334         * lib/fts.c (opendir): Remove #define; no longer used.
30335         (opendirat): New arg PDIR_FD.  All callers changed.
30336         (fts_build, _opendir2): Use new opendirat to avoid the need for
30337         dirfd, or for checking whether dirfd returns a negative value.
30338         Don't use opendir; always use openat followed by fdopendir.
30339         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30340         it.
30341         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30342         returns -1 here.
30343         * modules/fts (Depends-on): Remove dirfd.
30344         * modules/getcwd (Depends-on): Likewise.
30345
30346 2010-09-13  Eric Blake  <eblake@redhat.com>
30347
30348         float: fix broken MirBSD header
30349         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30350         * doc/posix-headers/float.texi (float.h): Document it.
30351
30352 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30353
30354         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30355         * lib/fts.c (opendirat): New arg extra_flags.
30356         (__opendir2): Use it to avoid following symlinks when opening
30357         a directory, if symlinks are not supposed to be followed.  See
30358         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30359
30360         fdopendir: preserve argument fd before returning
30361         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30362         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30363         (fdopendir): Use them, arranging for FD to be open to the same
30364         directory that it was when it started.  (It might be temporarily
30365         closed while fdopendir is running, so this not thread- or
30366         signal-safe.)  Be careful to do the right thing even when file
30367         descriptors are scarce and dup fails with errno == EMFILE.  See
30368         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30369
30370 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30371
30372         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30373         * NEWS: Document change.
30374         * m4/regex.m4: Disable test for regoff_t size.
30375
30376 2010-09-13  Jim Meyering  <meyering@redhat.com>
30377
30378         fts: don't operate on an invalid file descriptor after failed dup
30379         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30380         negative file descriptor.
30381
30382 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30383
30384         savedir: add streamsavedir, deprecate fdsavedir
30385         * NEWS: Mention deprecation of fdsavedir.
30386         * lib/savedir.c (streamsavedir): New extern function, whose name
30387         ends in "savedir" to be consistent with the others.  This differs
30388         from savedirstream in that it doesn't close its argument.  The
30389         next version of GNU tar will use this instead of fdsavedir, to
30390         avoid some race conditions and conserve file descriptors.
30391         (savedirstream): Reimplement as a wrapper around streamsavedir.
30392         (fdsavedir): Add a comment deprecating this function.  As far as
30393         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30394         * lib/savedir.h (streamsavedir): New decl.
30395         (fdsavedir): Add a comment deprecating this.
30396
30397 2010-09-10  Bruno Haible  <bruno@clisp.org>
30398
30399         langinfo: Fix last commit.
30400         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30401         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30403
30404 2010-09-10  Bruno Haible  <bruno@clisp.org>
30405
30406         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30407         * lib/progreloc.c (O_EXEC): Define fallback.
30408
30409 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30410
30411         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30412         * NEWS: Document recent changes to fcntl-h.
30413         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30414         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30415         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30416         Similarly for O_SEARCH; this last was already true, but not documented.
30417         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30418         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30419         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30420         Likewise.
30421         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30422         is zero, not whether it is defined.
30423         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30424         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30425         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30426
30427 2010-09-10  Bruno Haible  <bruno@clisp.org>
30428
30429         langinfo, nl_langinfo: Fix for IRIX 5.3.
30430         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30431         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30432         HAVE_LANGINFO_YESEXPR.
30433         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30434         HAVE_LANGINFO_YESEXPR.
30435         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30436         HAVE_LANGINFO_T_FMT_AMPM is 0.
30437         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30438         HAVE_LANGINFO_YESEXPR is 0.
30439         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30440         NOEXPR.
30441         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30442         * doc/posix-functions/nl_langinfo.texi: Likewise.
30443         Reported by Eric Blake.
30444
30445 2010-09-10  Bruno Haible  <bruno@clisp.org>
30446
30447         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30448         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30449         on FreeBSD 8.0 and OpenBSD 4.6.
30450         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30451         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30452         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30453         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30454         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30455         ac_includes_default.
30456         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30457
30458 2010-09-09  Eric Blake  <eblake@redhat.com>
30459
30460         strsignal: work around NetBSD bug
30461         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30462         * lib/string.in.h (includes): Likewise.
30463         * doc/posix-functions/strsignal.texi (strsignal): Document the
30464         bug.
30465         Reported by Nelson H. F. Beebe.
30466
30467         gnulib-tool: work with NetBSD /bin/sh
30468         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30469         (func_get_description, func_get_comment, func_get_status)
30470         (func_get_notice, func_get_applicability, func_get_filelist)
30471         (func_get_dependencies, func_get_autoconf_early_snippet)
30472         (func_get_autoconf_snippet, func_get_automake_snippet)
30473         (func_get_include_directive, func_get_link_directive)
30474         (func_get_license, func_get_maintainer, func_import): Avoid
30475         shell syntax errors from parsing syntax extensions.
30476
30477 2010-09-09  Bruno Haible  <bruno@clisp.org>
30478
30479         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30480         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30481         a reliable way to determine whether the 'alias' command works.
30482
30483 2010-09-08  Jim Meyering  <meyering@redhat.com>
30484
30485         init.sh: penalize a set-x-impaired shell; don't disqualify it
30486         * tests/init.sh: Too many shells corrupt application stderr when
30487         you set -x, so we can't afford to disqualify them, since at least
30488         on Irix-6.5, that would disqualify all bourne shells.
30489         Instead, use a two-pass approach.
30490         On the first pass, try to find a shell that meets the stricter
30491         condition that set -x does not corrupt stderr.
30492         If no shell meets the stricter condition, retest each candidate
30493         shell, but without that extra condition.  Finally, when
30494         VERBOSE=yes is requested and set -x might cause trouble, simply
30495         issue a warning and refrain from enabling debug output.
30496
30497 2010-09-08  Eric Blake  <eblake@redhat.com>
30498
30499         unsetenv: fix OpenBSD bug
30500         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30501         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30502         documentation.
30503         Reported by Jim Meyering.
30504
30505         strtod: work around IRIX 6.5 bug
30506         * lib/strtod.c (strtod): Reparse number on shorter string if
30507         exponent parse was invalid.
30508         * tests/test-strtod.c (main): Add check for "0x1p 2".
30509         Reported by Tom G. Christensen.
30510
30511         getopt: optimize previous patch
30512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30513         empty variable.  Speed up awk script.
30514         Reported by Paolo Bonzini.
30515
30516 2010-09-08  Jim Meyering  <meyering@redhat.com>
30517
30518         test.sh: disqualify shells for which set -x corrupts stderr
30519         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30520         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30521         appear in stderr output.  For example, this command:
30522             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30523         prints "P=1" on those two systems:
30524
30525 2010-09-08  Bruno Haible  <bruno@clisp.org>
30526
30527         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30528         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30529         commands, because some shells ignore redirections when there is an
30530         error in the command lookup.
30531         Reported by Eric Blake.
30532
30533 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30534
30535         * lib/regex.h: Fix a mention of `regex_compile' (should be
30536         `re_compile_pattern').
30537         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30538         (re_set_registers): Correct name of parameter in comment.
30539
30540         * doc/regex.texi: Add documentation for missing syntax flags.
30541         Remove commented-out documentation of defunct syntax option
30542         RE_NO_EMPTY_ALTS.
30543         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30544         Add documentation of re_set_registers.
30545         Document trick to re-use a pattern buffer by setting fastmap manually.
30546         Update documentation of struct re_pattern_buffer per public members.
30547         Uncomment documentation of equivalence class operators and
30548         collating symbol operators, since they are now implemented,
30549         Explain leftmost-longest matching in relation to alternatives.
30550         Tidy documentation of substring matching.
30551         Remove POSIX documentation, which is done better in
30552         glibc, and refer the reader there. Keep BSD API documentation, as
30553         that is not readily available elsewhere.
30554
30555 2010-09-07  Eric Blake  <eblake@redhat.com>
30556
30557         getopt: handle POSIXLY_CORRECT set but not exported
30558         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30559         export state of POSIXLY_CORRECT, due to bash set -o posix.
30560         Reported by Dustin J. Mitchell.
30561
30562 2010-09-05  Bruno Haible  <bruno@clisp.org>
30563
30564         gnulib-tool: Highlight the changed options.
30565         * gnulib-tool (func_usage): Display the --import, --add-import,
30566         --remove-import explanations in bold font.
30567
30568 2010-09-06  Karl Berry  <karl@gnu.org>
30569
30570         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30571
30572 2010-09-05  Bruno Haible  <bruno@clisp.org>
30573
30574         uniwidth/width: Update comment.
30575         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30576         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30577
30578 2010-09-05  Bruno Haible  <bruno@clisp.org>
30579
30580         isinf, isnan: Relax license.
30581         * modules/isinf (License): Change from GPL to LGPL, with consent from
30582         Ben Pfaff.
30583         * modules/isnan (License): Likewise.
30584         Requested by Ludovic Courtès.
30585
30586 2010-09-04  Bruno Haible  <bruno@clisp.org>
30587
30588         gnulib-tool: Help migration from --import to --add-import or --update.
30589         * gnulib-tool: Emit a verbose error message when --import is used
30590         without any module name.
30591
30592 2010-09-04  Bruno Haible  <bruno@clisp.org>
30593
30594         Update doc about gnulib-tool.
30595         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30596         'gnulib-tool --update' in more detail.
30597         Reported by Eric Blake.
30598
30599 2010-09-04  Bruno Haible  <bruno@clisp.org>
30600
30601         gnulib-tool: Change --import. New options --add/remove-import.
30602         * gnulib-tool: New options --add-import, --remove-import.
30603         (func_usage): Document them.
30604         (have_associative): Define always.
30605         (func_import): In import mode, don't merge the specified settings with
30606         the cached settings. Implement remove-import mode.
30607         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30608         Explain when to use them versus --import.
30609         (Simple update): Use --add-import instead of --import.
30610         * NEWS: Mention the change.
30611
30612 2010-09-04  Bruno Haible  <bruno@clisp.org>
30613
30614         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30615         separate gnulib.mk.
30616
30617 2010-09-04  Bruno Haible  <bruno@clisp.org>
30618
30619         gnulib-tool: Don't talk about CVS any more.
30620         * gnulib-tool (func_usage, func_import): Write "version control"
30621         instead of CVS.
30622
30623 2010-09-04  Jim Meyering  <meyering@redhat.com>
30624
30625         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30626         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30627         false positives (whose names may be ill-chosen) when searching
30628         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30629         would cause a false-positive.
30630
30631         avoid coreutils "make distcheck" failure
30632         Coreutils tests with an absolute build directory name that contains
30633         a space.  Not quoting this directory name caused a failure.
30634         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30635         * tests/test-vc-list-files-cvs.sh: Likewise.
30636
30637 2010-09-04  Bruno Haible  <bruno@clisp.org>
30638
30639         gnulib-tool: Avoid error when run in a package without Makefile.am.
30640         * gnulib-tool: When collecting the m4dirs in a package that does not
30641         have a Makefile.am, eliminate those directories that contain no
30642         gnulib-cache.m4. Fix expression that counts these directories.
30643
30644 2010-09-04  Bruno Haible  <bruno@clisp.org>
30645
30646         update-copyright test: Improve output when perl is missing or too old.
30647         * tests/test-update-copyright.sh: Move test of Perl version down after
30648         the test whether Perl exists. Provide an explanation relating Perl's
30649         error message to Automake's SKIP: message.
30650
30651 2010-09-04  Bruno Haible  <bruno@clisp.org>
30652
30653         Don't augment PATH in TESTS_ENVIRONMENT.
30654         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30655         set abs_aux_dir instead of augmenting PATH.
30656         * modules/vc-list-files-tests (Makefile.am): Likewise.
30657         * tests/test-update-copyright.sh: Augment PATH here.
30658         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30659         path_prepend_.
30660         * tests/test-vc-list-files-git.sh: Likewise.
30661
30662 2010-09-04  Jim Meyering  <meyering@redhat.com>
30663
30664         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30665         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30666
30667 2010-09-04  Bruno Haible  <bruno@clisp.org>
30668
30669         strdup: Fix compilation error in C++ mode.
30670         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30671         the macro.
30672
30673 2010-09-04  Bruno Haible  <bruno@clisp.org>
30674
30675         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30676         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30677         macro into a function.
30678         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30679
30680 2010-09-04  Bruno Haible  <bruno@clisp.org>
30681
30682         Set PATH_SEPARATOR the same way autoconf does.
30683         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30684         the value of PATH_SEPARATOR the same way autoconf-generated configure
30685         scripts do.
30686         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30687         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30688
30689 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30690
30691         Set PATH_SEPARATOR the same way autoconf does.
30692         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30693         the same way autoconf-generated configure scripts do.
30694         * posix-modules: Likewise.
30695
30696 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30697
30698         hash: fix safe_hasher const typo
30699         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30700         const; otherwise, there is a type error later.
30701
30702 2010-09-02  Jim Meyering  <meyering@redhat.com>
30703
30704         test-update-copyright.sh: require perl 5.8.0
30705         * tests/test-update-copyright.sh: Require 5.8.0,
30706         which Tom G. Christensen has confirmed is adequate,
30707         while 5.6.1 is not.
30708
30709 2010-09-02  Eric Blake  <eblake@redhat.com>
30710
30711         tests: init.sh improvements for re-exec'ing with zsh
30712         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30713         -vx through shell re-exec.
30714         Reported by Tom G. Christensen.
30715
30716         wctype: fix typo in previous commit
30717         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30718         Reported by Ludovic Courtès.
30719
30720 2010-09-02  Jim Meyering  <meyering@redhat.com>
30721
30722         test-update-copyright.sh: skip test if Perl is too old
30723         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30724         Reported by Tom G. Christensen.
30725
30726 2010-09-02  Bruno Haible  <bruno@clisp.org>
30727
30728         wctype: Avoid compilation error on IRIX 6.5.30.
30729         * lib/wctype.in.h (iswblank): Declare with a replacement if
30730         REPLACE_ISWBLANK is set.
30731         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30732         declared. Set REPLACE_ISWBLANK.
30733         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30734         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30735         * doc/posix-headers/wctype.texi: Likewise.
30736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30737
30738 2010-09-01  Bruno Haible  <bruno@clisp.org>
30739
30740         New module 'socketlib'.
30741         * modules/socketlib: New file.
30742         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30743         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30744         * modules/sockets (Depends-on): Add socketlib.
30745         Suggested by Sam Steingold <sds@gnu.org>.
30746
30747 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30748
30749         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30750
30751         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30752         when one needs search access to a directory but not read access.
30753         On systems where it is available, it works in some cases where
30754         O_RDONLY does not, namely on directories that are searchable but
30755         not readable, and which need only to be searchable.  If O_SEARCH
30756         is not available, fall back to the traditional method of using
30757         O_RDONLY.
30758
30759         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30760         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30761         when opening a directory that needs only to be searchable.
30762         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30763         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30764         * lib/openat-proc.c (openat_proc_name): Likewise.
30765         * lib/openat.c (openat_needs_fchdir): Likewise.
30766         * lib/save-cwd.c (save_cwd): Likewise.
30767         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30768
30769 2010-08-28  Bruno Haible  <bruno@clisp.org>
30770
30771         New module 'host-cpu-c-abi'.
30772         * modules/host-cpu-c-abi: New file.
30773         * m4/host-cpu-c-abi.m4: New file, based on part of
30774         clisp/src/m4/general.m4.
30775         Requested by Sam Steingold <sds@gnu.org>.
30776
30777 2010-08-31  Eric Blake  <eblake@redhat.com>
30778         and Jim Meyering  <meyering@redhat.com>
30779
30780         hash: factor, and guard against misbehaving hasher function
30781         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30782         of table->hasher's return value.  Also protect against a hash value
30783         so large that adding it to table->bucket results in a NULL pointer.
30784         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30785         Use it in place of open-coded check-and-abort.
30786
30787 2010-08-30  Bruno Haible  <bruno@clisp.org>
30788
30789         hash: silence spurious clang warning
30790         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30791         Reported by Eric Blake.
30792
30793 2010-08-30  Eric Blake  <eblake@redhat.com>
30794
30795         strstr, memmem, strcasestr: avoid leaked shell message
30796         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30797         FreeBSD.
30798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30799         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30800
30801         tests: silence clang warning
30802         * tests/test-malloca.c (do_allocation): Avoid dead store.
30803
30804 2010-08-29  Bruno Haible  <bruno@clisp.org>
30805
30806         gettext: Fix recent mistake.
30807         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30808
30809 2010-08-29  Bruno Haible  <bruno@clisp.org>
30810
30811         selinux-h: Offer a --without-selinux option.
30812         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30813         --without-selinux was specified, skip all tests and define
30814         HAVE_SELINUX_SELINUX_H to 0.
30815         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30816         set LIB_SELINUX to empty.
30817         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30818         gl_LIBSELINUX. If --without-selinux was specified, replace
30819         selinux/context.h.
30820         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30821
30822 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30823             Bruno Haible  <bruno@clisp.org>
30824
30825         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30826         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30827         of HAVE_REALLOC.
30828         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30829         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30830         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30831         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30832
30833 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30834             Bruno Haible  <bruno@clisp.org>
30835
30836         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30837         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30838         HAVE_CALLOC.
30839         * lib/xmalloc.c: Update accordingly.
30840         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30841         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30842         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30843
30844 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30845             Bruno Haible  <bruno@clisp.org>
30846
30847         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30848         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30849         HAVE_MALLOC.
30850         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30851         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30852         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30853
30854 2010-08-29  Bruno Haible  <bruno@clisp.org>
30855
30856         Update modules list.
30857         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30858         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30859         (String handling <string.h>): Add astrxfrm.
30860         (File system functions): Add readlinkat.
30861
30862 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30863
30864         Tests for module 'realloc-gnu'.
30865         * modules/realloc-gnu-tests: New file.
30866         * tests/test-realloc-gnu.c: New file.
30867
30868         Tests for module 'calloc-gnu'.
30869         * modules/calloc-gnu-tests: New file.
30870         * tests/test-calloc-gnu.c: New file.
30871
30872         Tests for module 'malloc-gnu'.
30873         * modules/malloc-gnu-tests: New file.
30874         * tests/test-malloc-gnu.c: New file.
30875
30876 2010-08-28  Bruno Haible  <bruno@clisp.org>
30877
30878         Rename module 'realloc' -> 'realloc-gnu'.
30879         * modules/realloc-gnu: New file, copied from modules/realloc.
30880         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30881         obsolete.
30882         * modules/mgetgroups (Depends-on): Update.
30883         * doc/posix-functions/realloc.texi: Update.
30884         * NEWS: Mention the change.
30885
30886         Rename module 'calloc' -> 'calloc-gnu'.
30887         * modules/calloc-gnu: New file, copied from modules/calloc.
30888         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30889         obsolete.
30890         * doc/posix-functions/calloc.texi: Update.
30891         * NEWS: Mention the change.
30892
30893         Rename module 'malloc' -> 'malloc-gnu'.
30894         * modules/malloc-gnu: New file, copied from modules/malloc.
30895         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30896         obsolete.
30897         * modules/argp (Depends-on): Update.
30898         * modules/regex (Depends-on): Update.
30899         * doc/posix-functions/malloc.texi: Update.
30900         * NEWS: Mention the change.
30901
30902 2010-08-28  Eric Blake  <eblake@redhat.com>
30903
30904         pread, pwrite: add missing dependency
30905         * modules/pread (Depends-on): Add extensions.
30906         * modules/pwrite (Depends-on): Likewise.
30907
30908 2010-08-28  Bruno Haible  <bruno@clisp.org>
30909
30910         unistr/u*-strchr: Fix tests dependencies.
30911         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30912         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30913         Reported by Ian Beckwith <ianb@erislabs.net>.
30914
30915 2010-08-28  Bruno Haible  <bruno@clisp.org>
30916
30917         read-file: Don't occupy too much unused memory.
30918         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30919
30920 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30921             Eric Blake  <eblake@redhat.com>
30922             Bruno Haible  <bruno@clisp.org>
30923
30924         read-file: Avoid memory reallocations with regular files.
30925         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30926         (fread_file): With regular files, use the remaining length as the
30927         initial buffer size.  Check against overflow.
30928         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30929         sys_stat.
30930
30931 2010-08-28  Bruno Haible  <bruno@clisp.org>
30932
30933         ftello: Relax license.
30934         * modules/ftello (License): Relax to LGPLv2+.
30935         Reported by Eric Blake.
30936
30937 2010-08-28  Bruno Haible  <bruno@clisp.org>
30938
30939         Avoid relocwrapper link errors due to gnulib replacement functions.
30940         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30941         function.
30942         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30943
30944 2010-08-28  Bruno Haible  <bruno@clisp.org>
30945
30946         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30947         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30948         defined.
30949         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30950         Suggested by Eric Blake.
30951
30952 2010-08-28  Bruno Haible  <bruno@clisp.org>
30953
30954         sys_socket, netdb: Ensure socklen_t gets defined.
30955         * modules/sys_socket (Depends-on): Add socklen.
30956         * modules/netdb (Depends-on): Likewise.
30957         * modules/getaddrinfo (Depends-on): Remove socklen.
30958         * modules/getsockopt (Depends-on): Likewise.
30959         * modules/setsockopt (Depends-on): Likewise.
30960         * tests/test-sys_socket.c: Check that socklen_t is defined.
30961         * tests/test-netdb.c: Likewise.
30962         * m4/socklen.m4: Update comments.
30963         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30964
30965 2010-08-27  Eric Blake  <eblake@redhat.com>
30966
30967         login_tty: add missing dependency
30968         * modules/login_tty (Depends-on): Add pty.
30969
30970 2010-08-26  Eric Blake  <eblake@redhat.com>
30971
30972         lib-symbol-versions: fix m4 quoting
30973         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30974         format for AC_LINK_IFELSE.
30975
30976         glob: fix compile test
30977         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30978
30979         btowc: fix missing file
30980         * modules/btowc (Files): Also ship locale-fr.m4.
30981
30982         lseek: fix link test
30983         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30984         AC_LINK_IFELSE.
30985
30986         include_next: silence autoconf 2.68 warning
30987         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30988         AC_COMPILE_IFELSE as special.
30989         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30990         autoconf < 2.68.
30991
30992         acl: fix compilation test
30993         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30994         AC_COMPILE_IFELSE.
30995
30996 2010-08-26  Bruno Haible  <bruno@clisp.org>
30997
30998         Modernize AC_TRY_RUN invocations.
30999         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31000         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31001         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31002         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31003         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31004         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31005         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31007         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31008         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31009         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31010         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31011         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31012         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31013         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31014         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31015         gl_MBRLEN_NUL_RETVAL): Likewise.
31016         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31017         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31018         Likewise.
31019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31020         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31021         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31022         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31023         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31024         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31025         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31026         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31027         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31028         Likewise.
31029         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31030         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31031         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31032         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31033         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31034         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31035         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31036         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31037         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31039
31040 2010-08-26  Bruno Haible  <bruno@clisp.org>
31041
31042         Modernize AC_TRY_LINK invocations.
31043         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31044         AC_TRY_LINK.
31045         * m4/argp.m4 (gl_ARGP): Likewise.
31046         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31047         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31048         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31049         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31050         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31051         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31052         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31053         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31054         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31055         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31056         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31057         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31058         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31059         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31060         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31061         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31062         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31063         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31064         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31065         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31066         Likewise.
31067         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31068         Likewise.
31069         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31070         Likewise.
31071         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31072         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31073         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31074         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31075         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31076         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31077         * m4/servent.m4 (gl_SERVENT): Likewise.
31078         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31079         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31080         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31081         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31082         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31083         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31084         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31085         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31086         * modules/tsearch-tests (configure.ac): Likewise.
31087
31088 2010-08-26  Bruno Haible  <bruno@clisp.org>
31089
31090         Modernize AC_TRY_COMPILE invocations.
31091         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31092         AC_TRY_COMPILE.
31093         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31094         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31095         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31096         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31097         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31098         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31099         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31100         * m4/lock.m4 (gl_LOCK): Likewise.
31101         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31102         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31103         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31105         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31106         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31107         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31108         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31109         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31110         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31111         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31112         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31113         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31114         extraneous semicolon.
31115
31116 2010-08-26  Jim Meyering  <meyering@redhat.com>
31117
31118         stat-time: relax license LGPL
31119         * modules/stat-time (License): Change from GPL to LGPL,
31120         with consent from all contributors, for use in libguile.
31121         Requested by Ludovic Courtès.
31122
31123 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31124
31125         poll: return immediately on POLLHUP.
31126         * lib/poll.c (poll): Always set timeout before wait_timeout is
31127         computed.
31128
31129 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31130
31131         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31132         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31133         rmdir ("dir/.//"), unlinkat.
31134
31135 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31136
31137         stdbool: avoid spurious failure with modern xlc
31138         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31139
31140 2010-08-24  Bruno Haible  <bruno@clisp.org>
31141
31142         getloadavg: simplify code
31143         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31144         gl_have_func. Update comments.
31145
31146 2010-08-24  Eric Blake  <eblake@redhat.com>
31147
31148         getloadavg: don't define SVR4 on cygwin
31149         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31150         only define SVR4 when -lkvm is required.
31151         Reported by Yaakov Selkowitz.
31152
31153 2010-08-24  Bruno Haible  <bruno@clisp.org>
31154
31155         priv-set: fix comment
31156         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31157
31158 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31159
31160         priv-set: fix comments
31161         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31162         to match code, as suggested by David Bartley in:
31163         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31164
31165 2010-08-23  Eric Blake  <eblake@redhat.com>
31166
31167         stdbool: avoid rejecting clang
31168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31169         * tests/test-stdbool.c: Enable more tests if using the system
31170         <stdbool.h> instead of the gnulib replacement.
31171         (main): Move xlc bug test to a runtime test for all compilers.
31172         Reported by Anders Kaseorg.
31173
31174         argz: fix shell quoting issue
31175         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31176         Reported by Charles Wilson.
31177
31178 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31179             Erik Faye-Lund <kusmabite@gmail.com>
31180
31181         poll, select: handle ERROR_BROKEN_PIPE.
31182         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31183         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31184         * lib/select.c (win32_compute_revents): Do not mark a pipe
31185         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31186
31187 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31188
31189         fts: allow compilation with C++
31190         * lib/fts_.h: Specify extern "C" linkage with C++.
31191
31192 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31193
31194         Fix gnulib-tool sed script de-commentation for AIX sed.
31195         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31196         sed.
31197
31198 2010-08-17  Eric Blake  <eblake@redhat.com>
31199
31200         test-stddef: test for (some) offsetof bugs
31201         * tests/test-stddef.c: Enhance test to ensure correct type of
31202         offsetof.
31203         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31204         that we are not fixing at this time.
31205
31206 2010-08-15  Bruno Haible  <bruno@clisp.org>
31207
31208         stpncpy: Allow stpncpy to be defined as a macro.
31209         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31210         if it's already correctly declared.
31211         * lib/string.in.h (stpncpy): Undefine before redefining.
31212         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31213
31214 2010-08-14  Bruno Haible  <bruno@clisp.org>
31215
31216         Rename module 'memxfrm' to 'amemxfrm'.
31217         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31218         (amemxfrm): Renamed from memxfrm.
31219         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31220         (amemxfrm): Renamed from memxfrm.
31221         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31222         * NEWS: Mention the change.
31223         * MODULES.html.sh (String handling <string.h>): Update.
31224         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31225         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31226         * lib/unicase/u16-casexfrm.c: Likewise.
31227         * lib/unicase/u32-casexfrm.c: Likewise.
31228         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31229         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31230         * lib/uninorm/u16-normxfrm.c: Likewise.
31231         * lib/uninorm/u32-normxfrm.c: Likewise.
31232         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31233         memxfrm.
31234         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31235         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31236         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31237         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31238         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31239         Suggested by Paul Eggert.
31240
31241 2010-08-14  Bruno Haible  <bruno@clisp.org>
31242
31243         Tests for module 'astrxfrm'.
31244         * modules/astrxfrm-tests: New file.
31245         * tests/test-astrxfrm.c: New file.
31246
31247         New module 'astrxfrm'.
31248         * lib/astrxfrm.h: New file.
31249         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31250         * modules/astrxfrm: New file.
31251
31252 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31253
31254         regex: Tweak doc.
31255         * doc/regex.texi (Overview): Don't mention regex.c.
31256         (GNU Regular Expression Compiling): Likewise.
31257         (Match-end-of-line Operator): Mention 'not_eol'.
31258
31259 2010-08-14  Brian Gough  <bjg@gnu.org>
31260             Bruno Haible  <bruno@clisp.org>
31261
31262         git-merge-changelog: add doc relating to use with bzr and hg.
31263         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31264
31265 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31266
31267         pthread: fix pthread.h creation for srcdir != builddir
31268         * modules/pthread (Makefile.am): Fix the rule to work also in a
31269         non-srcdir build.
31270
31271 2010-08-13  Karl Berry  <karl@gnu.org>
31272
31273         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31274         * doc/posix-*/*: force line break before @url of POSIX
31275         specifications.
31276         Suggested by Werner Lemberg.
31277
31278 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31279
31280         strtod: fix const diagnostic
31281         * lib/strtod.c (strtod): Don't assign const char * to char *,
31282         as this elicits a warning from GCC when warnings are enabled.
31283
31284 2010-08-10  Pádraig Brady <P@draigbrady.com>
31285         and Eric Blake  <eblake@redhat.com>
31286
31287         copy-acl: ignore ENOTSUP on HP-UX
31288         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31289         so that it is available for HP-UX.
31290         * lib/copy-acl.c (qcopy_acl): Use it.
31291         Reported by Patrick M. Callahan.
31292
31293 2010-08-10  Eric Blake  <eblake@redhat.com>
31294
31295         open, chown: relax license
31296         * modules/open (License): Change to LGPLv2+, with consent by all
31297         authors, for use in augeas.
31298         * modules/chown (License): Likewise.
31299         * modules/lchown (Likewise): Likewise.
31300         Requested by Adam Stokes.
31301
31302 2010-08-09  Karl Berry  <karl@gnu.org>
31303
31304         * build-aux/ar-lib: new file, import from Automake.
31305         * config/srclist.txt: autocheck for updates.
31306
31307 2010-08-09  Eric Blake  <eblake@redhat.com>
31308
31309         readlinkat: adjust client modules
31310         * modules/areadlinkat (Depends-on): Use readlinkat, not
31311         symlinkat.
31312         * modules/areadlinkat-with-size (Depends-on): Likewise.
31313
31314         mknod: be more vocal about danger of running tests as root
31315         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31316         root, since that is just asking for problems.
31317         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31318
31319         readlinkat: split into its own module
31320         * modules/symlinkat: Split readlinkat...
31321         * modules/readlinkat: ...into separate module.
31322         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31323         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31324         * lib/symlinkat.c (readlinkat): Move...
31325         * lib/readlinkat.c: ...into new file.
31326         * modules/symlinkat-tests: Split readlinkat test...
31327         * modules/readlinkat-tests: ...into separate module.
31328         * tests/test-symlinkat.c: Split...
31329         * tests/test-readlinkat.c: ...into new file.
31330         * NEWS: Document the split.
31331         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31332         * lib/unistd.in.h (readlinkat): Likewise.
31333         Suggested by Bruno Haible.
31334
31335 2010-08-08  Bruno Haible  <bruno@clisp.org>
31336
31337         memxfrm: Speed up.
31338         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31339         that usually only one call to strxfrm is necessary for each string
31340         part.
31341         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31342
31343 2010-08-07  Karl Berry  <karl@gnu.org>
31344
31345         * doc/posix-headers/limits.texi,
31346         * doc/posix-functions/malloc.texi,
31347         * doc/posix-functions/strsignal.texi: missing @item.
31348         * doc/ld-version-script.texi: spurious leading i.
31349         * doc/regex.texi (Interval Operators): no commas inside @var.
31350
31351 2010-08-01  Bruno Haible  <bruno@clisp.org>
31352
31353         Integrate the regex documentation.
31354         * doc/gnulib.texi: Define 'cn' index.
31355         (Regular expressions): New a chapter that includes regex.texi and
31356         regexprops-generic.texi.
31357         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31358         syntax.
31359
31360         Whitespace cleanup.
31361         * doc/regex.texi: Remove trailing spaces.
31362
31363         Add regex documentation.
31364         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31365         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31366         Written by Kathy A. Hargreaves and Karl Berry.
31367
31368 2010-08-01  Bruno Haible  <bruno@clisp.org>
31369
31370         link: Update documentation.
31371         * doc/posix-functions/link.texi: Update regarding Solaris.
31372
31373 2010-07-31  Bruno Haible  <bruno@clisp.org>
31374
31375         Update modules list.
31376         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31377         (String handling <string.h>): Add memcmp2, memxfrm.
31378         (Container data structures): Add xlist, xsublist, xoset.
31379         (Core language properties): Add alignof, unused-parameter.
31380         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31381         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31382         (Unibyte characters <ctype.h>): New section.
31383         (String handling <string.h>): New section.
31384         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31385         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31386         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31387         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31388         tan, tanh, tanl, y0, y1, yn.
31389         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31390         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31391         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31392         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31393         unlockpt, vdprintf, vdprintf-posix.
31394         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31395         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31396         xconcat-filename.
31397         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31398         getdtablesize, pipe2, pipe2-safer.
31399         (Security): New section.
31400         (Networking functions): Add accept4.
31401         (Signal handling): Add sigpipe.
31402         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31403         mbmemcasecoll.
31404         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31405         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31406         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31407         pipe-filter-ii.
31408         (Misc): Add argp-version-etc, login_tty, parse-duration.
31409
31410 2010-07-31  Bruno Haible  <bruno@clisp.org>
31411
31412         Improve doc in MODULES.html.
31413         * modules/linkat (Description): Add the word "function".
31414         * modules/mkfifo (Description): Likewise.
31415         * modules/mknod (Description): Likewise.
31416         * modules/remove (Description): Likewise.
31417         * modules/renameat (Description): Likewise.
31418         * modules/stat (Description): Likewise.
31419         * modules/symlink (Description): Likewise.
31420         * modules/unlink (Description): Likewise.
31421
31422 2010-07-31  Bruno Haible  <bruno@clisp.org>
31423
31424         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31425         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31426         option --enable/disable-c++ instead of --enable/disable-cxx.
31427         * NEWS: Mention the change.
31428
31429 2010-07-31  Bruno Haible  <bruno@clisp.org>
31430
31431         readlink, areadlink: Relax test a bit.
31432         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31433         alternative to ENOTDIR.
31434         * tests/test-areadlink.h (test_areadlink): Likewise.
31435         Reported by Rainer Tammer.
31436
31437 2010-07-31  Bruno Haible  <bruno@clisp.org>
31438
31439         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31440         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31441         character, perform the search using U_STRCHR.
31442         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31443         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31444         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31445         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31446         Suggested by Paolo Bonzini.
31447
31448 2010-07-31  Bruno Haible  <bruno@clisp.org>
31449
31450         unistr/u*-strstr: Fix dependencies.
31451         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31452         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31453         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31454
31455 2010-07-31  Bruno Haible  <bruno@clisp.org>
31456
31457         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31458         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31459         the beginning of the loop.
31460         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31461         cases in 'switch' statement.
31462
31463         unistr/u8-strchr: Fix several bugs.
31464         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31465         the string. When not found, return NULL, not a pointer near the end.
31466
31467         More tests for unistr/u8-strchr.
31468         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31469         that the function does not read past the first occurrence of the byte
31470         being searched.
31471         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31472         * tests/unistr/test-u16-strchr.c (main): New function.
31473         * tests/unistr/test-u32-strchr.c (main): New function.
31474
31475 2010-07-31  Bruno Haible  <bruno@clisp.org>
31476
31477         posix-modules: Ignore backup files of documentation files.
31478         * posix-modules: grep only through files named *.texi.
31479
31480 2010-07-31  Bruno Haible  <bruno@clisp.org>
31481
31482         symlinkat: Fix documentation.
31483         * doc/posix-functions/readlinkat.texi: Fix module name.
31484
31485 2010-07-31  Bruno Haible  <bruno@clisp.org>
31486
31487         fchownat: Replace also when chown has the trailing slash bug.
31488         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31489         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31490         introduced on 2010-04-10.
31491         Reported by Rainer Tammer.
31492
31493 2010-07-31  Bruno Haible  <bruno@clisp.org>
31494
31495         linkat: Work around AIX 7.1 bug.
31496         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31497         whether linkat handles trailing slash correctly. If not, replace linkat
31498         and define LINKAT_TRAILING_SLASH_BUG.
31499         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31500         check whether (fd1,file1) points to a directory if file1 or file2 ends
31501         in a slash. Code taken from lib/link.c.
31502         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31503         Reported by Rainer Tammer.
31504
31505 2010-07-31  Bruno Haible  <bruno@clisp.org>
31506
31507         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31508         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31509         This disables an xlc optimization that was causing wrong test results.
31510         Reported by Rainer Tammer.
31511
31512 2010-07-31  Bruno Haible  <bruno@clisp.org>
31513
31514         iconv: Work around AIX 6.1..7.1 bug.
31515         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31516         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31517         cross-compiling, guess no on all versions of AIX.
31518         Reported by Rainer Tammer.
31519
31520 2010-07-31  Bruno Haible  <bruno@clisp.org>
31521
31522         readlink: Relax test a bit.
31523         * tests/test-readlink.h (test_readlink): Allow different errno value
31524         when readlink is called with a file name that ends in / and refers to
31525         a file.
31526         Suggested by Eric Blake.
31527         Reported by Rainer Tammer.
31528
31529 2010-07-31  Bruno Haible  <bruno@clisp.org>
31530
31531         copysign: Does not require -lm on glibc systems.
31532         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31533         gl_COMMON_DOUBLE_MATHFUNC.
31534         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31535
31536 2010-07-31  Bruno Haible  <bruno@clisp.org>
31537
31538         duplocale: Work around AIX 7.1 bug.
31539         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31540         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31541         * lib/duplocale.c (rpl_duplocale): Update comment.
31542         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31543         Reported by Rainer Tammer.
31544
31545 2010-07-30  Bruno Haible  <bruno@clisp.org>
31546
31547         dirfd: Avoid link error on AIX 7.1.
31548         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31549         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31550         exist, set REPLACE_DIRFD.
31551         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31552         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31553         * doc/posix-functions/dirfd.texi: Update.
31554         Reported by Rainer Tammer.
31555
31556 2010-07-30  Eric Blake  <eblake@redhat.com>
31557
31558         strtod: next round of AIX fixes
31559         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31560         exponent.
31561         * tests/test-strtod.c (main): Enhance tests.
31562         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31563         Reported by Rainer Tammer.
31564
31565         futimens: fix configure check
31566         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31567         Reported by Bruno Haible.
31568
31569 2010-07-30  Bruno Haible  <bruno@clisp.org>
31570
31571         getline: Update regarding AIX.
31572         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31573         Reported by Rainer Tammer.
31574
31575 2010-07-30  Bruno Haible  <bruno@clisp.org>
31576
31577         wcwidth: Drop replacement on AIX 7.
31578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31579         AIX 7.
31580         Reported by Rainer Tammer.
31581
31582 2010-07-30  Bruno Haible  <bruno@clisp.org>
31583
31584         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31585         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31586         a 'char *'.
31587         Reported by Rainer Tammer.
31588
31589 2010-07-30  Bruno Haible  <bruno@clisp.org>
31590
31591         unlink: Update regarding AIX.
31592         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31593         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31594         Reported by Rainer Tammer.
31595
31596 2010-07-30  Bruno Haible  <bruno@clisp.org>
31597
31598         symlink: Update regarding AIX.
31599         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31600         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31601         Reported by Rainer Tammer.
31602
31603 2010-07-30  Bruno Haible  <bruno@clisp.org>
31604
31605         strndup: Update regarding AIX.
31606         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31607         AIX 7.
31608         Reported by Rainer Tammer.
31609
31610 2010-07-30  Bruno Haible  <bruno@clisp.org>
31611
31612         stat: Update regarding AIX.
31613         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31614         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31615         Reported by Rainer Tammer.
31616
31617 2010-07-30  Bruno Haible  <bruno@clisp.org>
31618
31619         truncl: Fix autoconf test.
31620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31621         whether truncl works.
31622         Reported by Rainer Tammer.
31623
31624 2010-07-30  Bruno Haible  <bruno@clisp.org>
31625
31626         round: Update regarding AIX.
31627         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31628         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31629         Reported by Rainer Tammer.
31630
31631 2010-07-30  Bruno Haible  <bruno@clisp.org>
31632
31633         rename: Update regarding AIX.
31634         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31635         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31636         Reported by Rainer Tammer.
31637
31638 2010-07-30  Bruno Haible  <bruno@clisp.org>
31639
31640         printf.m4: Update regarding AIX.
31641         * m4/printf.m4: Update comments regarding AIX.
31642         Reported by Rainer Tammer.
31643
31644 2010-07-30  Bruno Haible  <bruno@clisp.org>
31645
31646         iconv: Update regarding AIX.
31647         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31648         AIX 7.
31649         Reported by Rainer Tammer.
31650
31651 2010-07-30  Bruno Haible  <bruno@clisp.org>
31652
31653         getopt: Update regarding AIX.
31654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31655         no on AIX.
31656         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31657         Reported by Rainer Tammer.
31658
31659 2010-07-30  Bruno Haible  <bruno@clisp.org>
31660
31661         ldexpl; Update regarding AIX.
31662         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31663         on AIX 7.
31664         Reported by Rainer Tammer.
31665
31666 2010-07-30  Bruno Haible  <bruno@clisp.org>
31667
31668         frexpl: Update regarding AIX.
31669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31670         on AIX 7.
31671         Reported by Rainer Tammer.
31672
31673 2010-07-30  Bruno Haible  <bruno@clisp.org>
31674
31675         open, fopen: Update regarding AIX.
31676         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31677         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31678         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31679         * doc/posix-functions/fopen.texi: Likewise.
31680         Reported by Rainer Tammer.
31681
31682 2010-07-30  Bruno Haible  <bruno@clisp.org>
31683
31684         chown: Update doc regarding AIX.
31685         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31686         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31687         Reported by Rainer Tammer.
31688
31689 2010-07-30  Eric Blake  <eblake@redhat.com>
31690
31691         strtod: fix bug in replacement function on AIX
31692         * lib/strtod.c (strtod): Special case broken "0x" parse in
31693         underlying strtod.
31694         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31695         * doc/posix-functions/strtod.texi (strtod): Likewise.
31696         Reported by Rainer Tammer.
31697
31698 2010-07-30  Bruno Haible  <bruno@clisp.org>
31699
31700         mbrlen: Fix cross-compilation guess for AIX.
31701         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31702         guess. Leftover from 2008-12-22.
31703
31704 2010-07-30  Bruno Haible  <bruno@clisp.org>
31705
31706         mbrtowc: Fix cross-compilation guess for AIX.
31707         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31708         guess. Leftover from 2008-12-21.
31709
31710 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31711
31712         init.sh: work around trap limitation of some shells
31713         * tests/init.sh (setup_): Move exit trap outside of shell function.
31714
31715 2010-07-29  Eric Blake  <eblake@redhat.com>
31716
31717         strtod: aid debugging
31718         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31719         understanding why strtod is rejected.
31720
31721 2010-07-28  Bruno Haible  <bruno@clisp.org>
31722
31723         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31724         * lib/unistr/u8-chr.c: Include <string.h>.
31725         * tests/unistr/test-u8-chr.c: Likewise.
31726         * tests/unistr/test-u16-chr.c: Likewise.
31727         * tests/unistr/test-u32-chr.c: Likewise.
31728         * tests/unistr/test-u8-strchr.c: Likewise.
31729         * tests/unistr/test-u16-strchr.c: Likewise.
31730         * tests/unistr/test-u32-strchr.c: Likewise.
31731         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31732         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31733         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31734         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31735
31736 2010-07-28  Bruno Haible  <bruno@clisp.org>
31737
31738         Use spaces for indentation, not tabs.
31739         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31740
31741 2010-07-27  Bruno Haible  <bruno@clisp.org>
31742
31743         mbspcasecmp: Fix function specification.
31744         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31745         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31746         Reported by Eric Blake <eblake@redhat.com>.
31747
31748 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31749
31750         timespec: use cast and not conditional, as truncation isn't possible
31751         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31752         instead of a conditional.  Comment about the situation in more detail.
31753         This undoes most of the 2009-10-29 patch.
31754
31755 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31756
31757         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31758         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31759         * lib/unistr/u8-strchr.c: Likewise.
31760         * modules/unistr/u8-chr: Depend on memchr.
31761
31762         unistr/u*-strchr: add tests
31763         * modules/unistr/u8-strchr-tests: New file.
31764         * modules/unistr/u16-strchr-tests: New file.
31765         * modules/unistr/u32-strchr-tests: New file.
31766         * tests/unistr/test-strchr.h: New file.
31767         * tests/unistr/test-u8-strchr.c: New file.
31768         * tests/unistr/test-u16-strchr.c: New file.
31769         * tests/unistr/test-u32-strchr.c: New file.
31770
31771         unistr/u*-chr: test multibyte sequences more
31772         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31773         test vector.
31774         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31775         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31776         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31777
31778         unistr/u*-chr: test multibyte sequences
31779         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31780
31781         unistr/u*-chr: prepare for multibyte tests
31782         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31783         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31784         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31785         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31786         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31787         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31788
31789 2010-07-18  Bruno Haible  <bruno@clisp.org>
31790
31791         unistr/u8-strchr: Optimize non-ASCII argument case.
31792         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31793         because the first byte often matches anyway.
31794         Reported by Pádraig Brady <P@draigbrady.com>.
31795
31796 2010-07-15  Karl Berry  <karl@gnu.org>
31797
31798         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31799
31800 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31801
31802         getcwd: on Solaris, work better if ancestors are inaccessible
31803         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31804         buffer and size, try again with a large buffer.  This works better
31805         on Solaris, since its getcwd succeeds even if the path to the root
31806         is inaccessible, and this is helpful in common cases such as .zfs
31807         hidden directories.  Problem reported by J Chapman Flack in
31808         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31809         Use system getcwd if it's declared, not merely if it's partly
31810         working; use the partly-working test only to avoid needless effort
31811         if the system getcwd fails.
31812         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31813         comment that was already obsolete and is now even more obsolete.
31814         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31815         now might call strdup.
31816
31817 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31818
31819         pthread: Add enough so that coreutils/src/sort.c compiles.
31820         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31821         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31822         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31823         Include <sys/types.h>, in case it defines pthread_t.
31824         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31825         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31826         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31827         (pthread_rwlockattr_t, pthread_spinlock_t):
31828         New typedefs, if HAVE_PTHREAD_T is not defined.
31829         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31830         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31831         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31832         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31833         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31834         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31835         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31836         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31837         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31838         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31839         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31840         New macros.
31841         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31842         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31843         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31844         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31845         (pthread_spin_unlock): New dummy functions.
31846         (pthread_create): Return EAGAIN; don't set errno.
31847         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31848         require AC_C_INLINE.
31849         * modules/pthread (Depends-on): Add sched, time.
31850         (pthread.h): Use AM_V_GEN.
31851
31852 2010-07-13  Bruno Haible  <bruno@clisp.org>
31853
31854         striconveh: Don't malloc memory if the result buffer is sufficient.
31855         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31856         buffer if its size is sufficient.
31857         Reported by Ludovic Courtès <ludo@gnu.org>.
31858
31859 2010-07-13  Bruno Haible  <bruno@clisp.org>
31860
31861         strtod: Add safety check.
31862         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31863
31864 2010-07-12  Bruno Haible  <bruno@clisp.org>
31865
31866         Unify tests that set gl_cv_func_ldexpl_no_libm.
31867         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31868         gl_FUNC_LDEXPL.
31869         (gl_FUNC_LDEXPL): Invoke it.
31870         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31871
31872 2010-07-12  Bruno Haible  <bruno@clisp.org>
31873
31874         Unify tests that set gl_cv_func_ldexp_no_libm.
31875         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31876         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31877         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31878         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31879         * modules/strtod (Files): Add m4/ldexp.m4.
31880
31881 2010-07-12  Bruno Haible  <bruno@clisp.org>
31882
31883         Unify tests that set gl_cv_func_frexpl_no_libm.
31884         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31885         gl_FUNC_FREXPL_NO_LIBM.
31886         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31887         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31888
31889 2010-07-12  Bruno Haible  <bruno@clisp.org>
31890
31891         Unify tests that set gl_cv_func_frexp_no_libm.
31892         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31893         gl_FUNC_FREXP_NO_LIBM.
31894         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31895         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31896
31897 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31898
31899         memcoll: clarify sizes versus lengths, document better, and tweak perf
31900         * lib/memcoll.c (strcoll_loop, memcoll0):
31901         Improve quality of descriptive comments.  Name variables
31902         consistently as to whether they are lengths (which do not include
31903         terminating null) versus sizes (which do).
31904         * lib/xmemcoll.c (xmemcoll0): Likewise.
31905         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31906         returned when s1size == 0; this is easier to compile and saves
31907         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31908
31909 2010-07-12  Bruno Haible  <bruno@clisp.org>
31910
31911         Tests for module '_Exit'.
31912         * modules/_Exit-tests: New file.
31913         * tests/test-_Exit.sh: New file.
31914         * tests/test-_Exit.c: New file.
31915
31916         New module '_Exit'.
31917         * lib/stdlib.in.h (__attribute__): New macro.
31918         (_Exit): New declaration.
31919         * lib/_Exit.c: New file.
31920         * m4/_Exit.m4: New file.
31921         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31922         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31923         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31924         * modules/_Exit: New file.
31925         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31926         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31927
31928 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31929
31930         strtod: make it more-accurate typically, and don't require libm
31931         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31932         Include limits.h.  Don't include string.h.
31933         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31934         (locale_isspace): New function, so that no casts are needed to
31935         check whether *s is a space.
31936         (ldexp): Provide an unused dummy if not available.
31937         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31938         (strtod): Use them.  This implementation prefers to use the
31939         underlying strtod if available, falling back on our own code
31940         only to fix known bugs.  This is more likely to produce an
31941         accurate result.  Also, it avoids the use of libm functions.
31942         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31943         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31944         was absent, but it caused a test failure with coreutils.
31945         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31946         with libm.
31947         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31948         * modules/strtod-tests (Makefile.am): Likewise.
31949
31950 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31951             Bruno Haible  <bruno@clisp.org>
31952
31953         unistr/u8-strchr: Optimize ASCII argument case.
31954         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31955
31956 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31957
31958         (x)memcoll: minor tweaks
31959         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31960         is after the type that it qualifies.
31961         (memcoll0): Likewise.
31962         * lib/memcoll.h (memcoll0): Likewise.
31963         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31964         * lib/xmemcoll.h (xmemcoll0): Likewise.
31965         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31966         differs from memcoll in that the NUL byte is part of the argument.
31967         Omit the abort-checks, as performance is a real issue here.  Plus,
31968         the checks were wrong anyway (an off-by-one error).  Omit local
31969         variable 'diff', as it's a bit clearer that way.
31970         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31971         no longer needed.
31972
31973 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31974
31975         (x)memcoll: speedup when input is known to be NUL delimited
31976         * lib/memcoll.c: Include stdlib.
31977         (memcoll0): New function.
31978         (strcoll_loop): New function, refactored for use in both memcoll
31979         and memcoll0.
31980         * lib/memcoll.h (memcoll0): Add prototype.
31981         * lib/xmemcoll.c (xmemcoll0): New function.
31982         (collate_error): New function, refactored for use in both xmemcoll
31983         and xmemcoll0.
31984         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31985         * m4/memcoll.m4: add inline invocation.
31986
31987 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31988
31989         * build-aux/bootstrap: Remove any local translations
31990         from the translation project synchronization directory,
31991         so that local only translations are not distributed.
31992
31993 2010-07-04  Bruno Haible  <bruno@clisp.org>
31994
31995         fsusage: Clarify which code applies to which platforms.
31996         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31997         platform.
31998         * lib/fsusage.c (get_fs_usage): Likewise.
31999
32000 2010-07-04  Bruno Haible  <bruno@clisp.org>
32001
32002         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32003         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32004         Reported by Martin Lambers <marlam@marlam.de>.
32005
32006 2010-07-04  Jim Meyering  <meyering@redhat.com>
32007
32008         hash: once again explicitly disallow insertion of NULL
32009         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32010         inserting a NULL pointer cannot work with these functions.
32011         Add a comment with details.
32012         This reverts part of the 2010-07-01 commit, 5bef1a35
32013         "hash: extend module to deal with non-pointer keys".
32014
32015 2010-07-01  Bruno Haible  <bruno@clisp.org>
32016
32017         stdbool: Update doc.
32018         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32019         Info from Christian Weisgerber <naddy@mips.inka.de>.
32020
32021 2010-07-01  Jim Meyering  <meyering@redhat.com>
32022
32023         hash: extend module to deal with non-pointer keys
32024         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32025         but that allows insertion of non-pointer entries.
32026         Do not disallow an ENTRY value of NULL.
32027         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32028         * lib/hash.h (hash_insert0): Declare.
32029
32030 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32031
32032         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32033         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32034         not present (i.e. with autoconf 2.59 and when using gettextize, not
32035         gnulib), require AC_GNU_SOURCE instead.
32036
32037 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32038
32039         idpriv-drop: Fix tests.
32040         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32041         not to the test-idpriv-droptemp program.
32042
32043 2010-06-29  Bruno Haible  <bruno@clisp.org>
32044
32045         string: Fix syntax error with g++ 2.96.
32046         * lib/string.in.h (__pure__): Remove definition.
32047         (_GL_ATTRIBUTE_PURE): New macro.
32048         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32049         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32050         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32051
32052 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32053
32054         unitypes: Fix bug introduced on 2010-05-18.
32055         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32056
32057 2010-06-22  Eric Blake  <eblake@redhat.com>
32058
32059         memmem: slight optimization
32060         * lib/str-two-way.h (critical_factorization): Update comments.
32061         Reduce work during factorization phase.
32062         Reported by Carlos Bueno <carlos@bueno.org>.
32063
32064 2010-06-21  Bruno Haible  <bruno@clisp.org>
32065
32066         Fix HAVE_CALLOC_POSIX misnomer.
32067         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32068         !HAVE_CALLOC_POSIX.
32069         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32070         HAVE_CALLOC_POSIX.
32071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32072         instead of HAVE_CALLOC_POSIX.
32073         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32074         HAVE_CALLOC_POSIX.
32075
32076         Use modern idiom for calloc() replacement.
32077         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32078         AC_FUNC_CALLOC.
32079         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32080         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32081         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32082         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32083         (gl_REPLACE_CALLOC): New macro.
32084
32085 2010-06-21  Bruno Haible  <bruno@clisp.org>
32086
32087         Fix HAVE_REALLOC_POSIX misnomer.
32088         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32089         !HAVE_REALLOC_POSIX.
32090         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32091         HAVE_REALLOC_POSIX.
32092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32093         instead of HAVE_REALLOC_POSIX.
32094         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32095         HAVE_REALLOC_POSIX.
32096
32097         Use modern idiom for realloc() replacement.
32098         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32099         AC_FUNC_REALLOC.
32100         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32101         Autoconf's AC_FUNC_REALLOC.
32102         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32103         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32104         (gl_REPLACE_REALLOC): New macro.
32105         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32106
32107 2010-06-21  Bruno Haible  <bruno@clisp.org>
32108
32109         Fix HAVE_MALLOC_POSIX misnomer.
32110         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32111         !HAVE_MALLOC_POSIX.
32112         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32113         HAVE_MALLOC_POSIX.
32114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32115         instead of HAVE_MALLOC_POSIX.
32116         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32117         HAVE_MALLOC_POSIX.
32118
32119         Use modern idiom for malloc() replacement.
32120         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32121         AC_FUNC_MALLOC.
32122         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32123         Autoconf's AC_FUNC_MALLOC.
32124         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32125         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32126         (gl_REPLACE_MALLOC): New macro.
32127         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32128
32129 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32130
32131         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32132         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32133         This macro takes 3 arguments, not 4.
32134
32135 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32136
32137         ipv6: fix detection under mingw
32138         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32139         in6_addr.
32140
32141 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32142
32143         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32144         that strtod() works when cross-compiling to a glibc version known
32145         to work.
32146
32147 2010-06-15  Bruno Haible  <bruno@clisp.org>
32148
32149         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32150
32151 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32152
32153         select: Correct timeout.
32154         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32155
32156 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32157
32158         git-version-gen: init shell var to avoid env var influence
32159         * build-aux/git-version-gen (v): Init shell var to empty.
32160
32161 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32162
32163         priv-set: Don't assume that priv.h exists merely because getppriv does.
32164         See Jan Andersen's bug report about AIX 5L in
32165         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32166         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32167         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32168         * lib/priv-set.h: Likewise.
32169         * tests/test-priv-set.c: Likewise.
32170
32171 2010-06-13  Bruno Haible  <bruno@clisp.org>
32172
32173         relocatable: Make it easier to test whether to install wrappers.
32174         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32175         RELOCATABLE_VIA_WRAPPER.
32176
32177 2010-06-13  Bruno Haible  <bruno@clisp.org>
32178
32179         gnulib-tool: Display specified modules and dependencies differently.
32180         * gnulib-tool (func_show_module_list): New function.
32181         (func_import, func_create_testdir): Invoke it.
32182         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32183
32184 2010-06-13  Bruno Haible  <bruno@clisp.org>
32185
32186         gnulib-tool: Align code of func_import and func_create_testdir.
32187         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32188         specified_modules.
32189
32190 2010-06-12  Jim Meyering  <meyering@redhat.com>
32191
32192         test-inttostr: avoid spurious failure on Solaris 9
32193         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32194         to accept "%ju".  Reported by Bruno Haible.
32195
32196 2010-06-11  Jim Meyering  <meyering@redhat.com>
32197
32198         test-sys_socket: mark variables as used more readably
32199         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32200         as "used" explicitly via (void) statement casts.  This is more
32201         readable than using them in an artificial return expression.
32202         Suggestion from Bruno Haible.
32203
32204 2010-06-11  Bruno Haible  <bruno@clisp.org>
32205
32206         Avoid some more warnings from "gcc -Wwrite-strings".
32207         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32208         to 'const char *'.
32209         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32210         * tests/test-c-strcasestr.c (main): Likewise.
32211         * tests/test-mbscasestr1.c (main): Likewise.
32212         * tests/test-mbscasestr2.c (main): Likewise.
32213         * tests/test-memmem.c (main): Likewise.
32214         * tests/test-strstr.c (main): Likewise.
32215         * tests/test-strcasestr.c (main): Likewise.
32216
32217 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32218
32219         init.sh: change framework_failure_ to fail with status 99, not 1
32220         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32221         automake's parallel-tests rule that this is an unexpected failure,
32222         even if the test is listed in XFAIL_TESTS.
32223
32224 2010-06-11  Jim Meyering  <meyering@redhat.com>
32225
32226         test-inttostr: avoid warnings about 4-6KB literal strings
32227         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32228         Include "macros.h", for its definition of ASSERT.
32229         (CK): s/assert/ASSERT/
32230         * modules/inttostr-tests (Files): Add macros.h.
32231
32232         init.sh: don't use $ME_ or skip_ before they are defined
32233         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32234         their first uses.  Also hoist their companions: warn_, fail_,
32235         framework_failure_, $stderr_fileno.  Prompted by a patch from
32236         Stefano Lattarini.
32237
32238         test-sys_socket: avoid set-but-not-used warnings from gcc
32239         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32240         avoid warning about set-but-not-used variables.
32241
32242         test-xvasprintf: avoid 'const' discard warnings
32243         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32244         "const" when assigning from literal strings.
32245         (test_xasprintf): Add "void" in function argument list to placate
32246         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32247
32248         tests: avoid compilation warnings in argmatch and exclude tests...
32249         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32250         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32251         Since it always exits, declare with the "noreturn" attribute.
32252         * tests/test-argmatch.c: Likewise.
32253
32254         tests: avoid 'const' discard warnings in mbsstr tests
32255         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32256         * tests/test-mbsstr2.c (main): Likewise.
32257
32258         test-verify: avoid warning from gcc's -Wmissing-declarations
32259         * tests/test-verify.c (function): Declare to be static.
32260
32261         test-inttostr.c: include <string.h> for use of strcmp
32262         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32263
32264         test-linkat: avoid failed assertion on "other" architectures
32265         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32266         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32267         sparc: https://bugs.launchpad.net/bugs/591968
32268
32269 2010-06-11  Jim Meyering  <meyering@redhat.com>
32270
32271         printf.m4: avoid autoconf's "Expanded Before Required" warning
32272         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32273         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32274         autoconf warning.
32275
32276 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32277
32278         Replacement header templates are now named with ".in", not "_".
32279         * doc/gnulib-intro.texi: Correct.
32280
32281 2010-06-10  Jim Meyering  <meyering@redhat.com>
32282
32283         inttostr-tests: depend on snprintf, not snprintf-posix
32284         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32285         snprintf-posix, to avoid this aclocal failure:
32286           missing file gnulib-tests/vasnprintf.c
32287           configure.ac:45: error: expected source file, required through \
32288           AC_LIBSOURCES, not found
32289
32290 2010-06-10  Jim Meyering  <meyering@redhat.com>
32291
32292         inttostr: add a new function, inttostr, and tests
32293         The namesake function was not available.  The existence of the
32294         template file, inttostr.c makes its addition nontrivial.
32295         * lib/anytostr.c: Rename from inttostr.c.
32296         (anytostr): Rename from inttostr.
32297         * lib/inttostr.c: New file.
32298         * modules/inttostr (Files): Add anytostr.c.
32299         (Makefile.am): Set lib_SOURCES instead of ...
32300         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32301         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32302         * lib/offtostr.c: Likewise.
32303         * lib/uinttostr.c: Likewise.
32304         * lib/umaxtostr.c: Likewise.
32305         * modules/inttostr-tests: New file.
32306         * tests/test-inttostr.c: New file.  Test these functions.
32307
32308 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32309             Bruno Haible  <bruno@clisp.org>
32310
32311         Add "Extending Gnulib" chapter to manual.
32312         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32313         chapter.
32314         (Extending Gnulib): New chapter.
32315         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32316         chapter.
32317
32318 2010-06-09  Bruno Haible  <bruno@clisp.org>
32319
32320         Avoid relocwrapper link errors due to gnulib replacement functions.
32321         * lib/areadlink.c: Use the system's malloc, realloc functions.
32322         (areadlink): Set errno to ENOMEM explicitly.
32323         * modules/areadlink (Depends-on): Remove malloc-posix.
32324         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32325
32326 2010-06-09  Bruno Haible  <bruno@clisp.org>
32327
32328         Avoid relocwrapper link errors due to gnulib replacement functions.
32329         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32330         * lib/malloca.c: Likewise.
32331         * lib/relocatable.c: Likewise.
32332         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32333         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32334         * lib/setenv.c: Use the system's malloc, realloc functions.
32335         * lib/strerror.c: Use the system's sprintf function.
32336         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32337
32338 2010-06-04  Bruno Haible  <bruno@clisp.org>
32339
32340         Prefer documented low-level autoconf macro names.
32341         * m4/lib-link.m4: Use m4_translit instead of translit.
32342         * m4/environ.m4: Likewise.
32343         * m4/mathfunc.m4: Likewise.
32344         * m4/onceonly.m4: Likewise.
32345         * m4/stdint.m4: Likewise.
32346         Suggested by Eric Blake.
32347
32348 2010-06-04  Martin Lambers  <marlam@marlam.de>
32349             Bruno Haible  <bruno@clisp.org>
32350
32351         havelib: Allow library names with '+' characters.
32352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32353         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32354
32355 2010-06-09  Bruno Haible  <bruno@clisp.org>
32356
32357         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32358         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32359         realloc failed.
32360
32361 2010-06-08  Peter Simons  <simons@cryp.to>
32362
32363         maint.mk: make the news-check rule more configurable
32364         * top/maint.mk (news-check-lines-spec): New variable.
32365         (news-check): Use "sed -n 1,10p" in place of "head".
32366
32367 2010-06-07  Jim Meyering  <meyering@redhat.com>
32368
32369         do-release-commit-and-tag: fix typo in --help
32370         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32371
32372         regex: avoid new dead-code warning with gcc-4.6.0
32373         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32374         if-block containing a while-loop.  It's been unused for at least
32375         5 years.
32376
32377 2010-06-05  Bruno Haible  <bruno@clisp.org>
32378
32379         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32380         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32381
32382 2010-06-04  Bruno Haible  <bruno@clisp.org>
32383
32384         Update to GNU gettext 0.18.1.
32385         * modules/gettext (configure.ac): Require gettext infrastructure from
32386         version 0.18.1.
32387
32388 2010-06-03  Bruno Haible  <bruno@clisp.org>
32389
32390         Don't use AC_LIBOBJ with file names in subdirectories.
32391         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32392         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32393         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32394         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32395         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32396         gl_LIBUNISTRING_LIBSOURCE.
32397         (Makefile.am): Augment lib_SOURCES here, conditionally.
32398         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32399
32400 2010-06-03  Bruno Haible  <bruno@clisp.org>
32401
32402         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32403         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32404         expansion does not end with a newline.
32405         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32406         unnecessary newline.
32407
32408 2010-06-03  Bruno Haible  <bruno@clisp.org>
32409
32410         Reduce dependencies.
32411         * tests/test-quotearg.h: New file, extracted from
32412         tests/test-quotearg.c.
32413         * tests/test-quotearg-simple.c: New file, extracted from
32414         tests/test-quotearg.c.
32415         * tests/test-quotearg.c: Don't include <ctype.h>.
32416         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32417         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32418         use_quote_double_quotes, use_quotearg_colon): Moved to
32419         tests/test-quotearg.h.
32420         (results_g, flag_results, custom_quotes, custom_results): Moved
32421         to tests/test-quotearg-simple.c.
32422         (main): Moved the part that does not depend on gettext to
32423         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32424         performed.
32425         * modules/quotearg-simple: New file.
32426         * modules/quotearg-simple-tests: New file.
32427         * modules/quotearg (Depends-on): Add quotearg-simple.
32428         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32429         (Files): Add tests/test-quotearg.h.
32430         Reported by Paolo Bonzini.
32431
32432 2010-06-03  Bruno Haible  <bruno@clisp.org>
32433
32434         Reduce dependencies.
32435         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32436
32437 2010-06-03  Bruno Haible  <bruno@clisp.org>
32438
32439         time: Undefine more broken macros.
32440         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32441         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32442         Reported by Eric Blake.
32443
32444 2010-06-03  Bruno Haible  <bruno@clisp.org>
32445
32446         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32447         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32448         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32449         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32450         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32451         Reported by Ludovic Courtès <ludo@gnu.org>.
32452
32453 2010-06-02  Eric Blake  <eblake@redhat.com>
32454
32455         time: work with mingw + pthreads-win32 library
32456         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32457         if timespec is defined only in pthread.h.
32458         * modules/time (Makefile.am): Substitute it.
32459         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32460         <pthread.h>, when needed.
32461         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32462         from the library.
32463
32464 2010-05-31  Bruno Haible  <bruno@clisp.org>
32465
32466         Avoid expanding two macros in the wrong order.
32467         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32468         gl_LIBUNISTRING if it is defined.
32469         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32470         autoconf >= 2.64.
32471         Reported by Ludovic Courtès <ludo@gnu.org>.
32472
32473 2010-05-27  Jim Meyering  <meyering@redhat.com>
32474
32475         maint.mk: also prohibit "#undef" of always-defined symbols
32476         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32477         Allow more than one space before the symbol name.
32478         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32479         the regexp uses alternation.
32480
32481 2010-05-26  Eric Blake  <eblake@redhat.com>
32482
32483         maint.mk: avoid echo -e
32484         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32485         Convert all uses of echo -* to printf.
32486         Reported by Matthias Bolte.
32487
32488 2010-05-25  Bruno Haible  <bruno@clisp.org>
32489
32490         Update to GNU gettext 0.18, part 2.
32491         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32492         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32493
32494 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32495
32496         Add missing include in test-pwrite.c.
32497         * tests/test-pwrite.c: Include string.h, for strcmp.
32498
32499 2010-05-24  Bruno Haible  <bruno@clisp.org>
32500
32501         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32502
32503 2010-05-24  Bruno Haible  <bruno@clisp.org>
32504
32505         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32506         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32507         iconveh_error argument.
32508         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32509         U_STRCONV_TO_LOCALE.
32510         * lib/unistr/u16-strcoll.c: Likewise.
32511         * lib/unistr/u32-strcoll.c: Likewise.
32512         * modules/unistr/u8-strcoll (Depends-on): Add
32513         uniconv/u8-strconv-to-enc, localcharset. Remove
32514         uniconv/u8-strconv-to-locale.
32515         (configure.ac): Bump version number.
32516         * modules/unistr/u16-strcoll (Depends-on): Add
32517         uniconv/u16-strconv-to-enc, localcharset. Remove
32518         uniconv/u16-strconv-to-locale.
32519         (configure.ac): Bump version number.
32520         * modules/unistr/u32-strcoll (Depends-on): Add
32521         uniconv/u32-strconv-to-enc, localcharset. Remove
32522         uniconv/u32-strconv-to-locale.
32523         (configure.ac): Bump version number.
32524
32525 2010-05-24  Bruno Haible  <bruno@clisp.org>
32526
32527         Avoid a test failure on NetBSD 5.0.
32528         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32529         an iconv() bug.
32530
32531 2010-05-24  Bruno Haible  <bruno@clisp.org>
32532
32533         Adjust #include directive style.
32534         * modules/regex (Includes): Recommend to write <regex.h>.
32535
32536 2010-05-24  Bruno Haible  <bruno@clisp.org>
32537
32538         regex: Don't require alloca.
32539         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32540         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32541         only inside if (0).
32542
32543 2010-05-23  Jim Meyering  <meyering@redhat.com>
32544
32545         test-renameat.c: include <sys/stat.h>
32546         * tests/test-renameat.c: Include <sys/stat.h>; required for
32547         definition of S_IS* macros.
32548
32549 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32550
32551         Update maintainer documentation for 'relocatable-prog' module.
32552         * doc/relocatable-maint.texi: Update.
32553         Comments by Bruno Haible.
32554
32555 2010-05-23  Bruno Haible  <bruno@clisp.org>
32556
32557         git-merge-changelog: Enable --split-merged-entry by default.
32558         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32559         (usage): Don't mention this option any more.
32560         Reported by Ralf Wildenhues.
32561
32562 2010-05-23  Jim Meyering  <meyering@redhat.com>
32563
32564         test-pwrite: do not leave behind a test file named "out"
32565         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32566         The trivial-looking use of init.sh is really necessary.
32567         It ensures that the temporary file, "out", is created in
32568         a temporary directory, and removed upon termination.
32569         * tests/test-pwrite.sh: Re-add file.
32570         * modules/pwrite-tests: Reference it.
32571
32572 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32573
32574         Fix output redirection buglet in init.sh.
32575         * tests/init.sh: Fix redirection of stderr.
32576
32577 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32578
32579         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32580
32581 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32582
32583         * modules/valgrind-tests: New file.
32584         * m4/valgrind-tests.m4: New file.
32585         * doc/valgrind-tests.texi: New file.
32586         * doc/gnulib.texi (Running self-tests under valgrind): New
32587         section.
32588
32589 2010-05-19  Bruno Haible  <bruno@clisp.org>
32590
32591         Clean up dead code in recent commit.
32592         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32593         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32594         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32595         Suggested by Paolo Bonzini.
32596
32597 2010-05-19  Bruno Haible  <bruno@clisp.org>
32598
32599         Avoid valgrind error reports from libunistring.
32600         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32601         * modules/libunistring (Files): Add it.
32602         * modules/libunistring-optional (Files): Likewise.
32603
32604 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32605             Bruno Haible  <bruno@clisp.org>
32606
32607         New module 'libunistring-optional'.
32608         * modules/libunistring-optional: New file.
32609         * m4/libunistring-base.m4: New file.
32610         * m4/libunistring-optional.m4: New file.
32611         * lib/unicase.in.h: Renamed from lib/unicase.h.
32612         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32613         * lib/unictype.in.h: Renamed from lib/unictype.h.
32614         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32615         * lib/uniname.in.h: Renamed from lib/uniname.h.
32616         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32617         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32618         * lib/unistr.in.h: Renamed from lib/unistr.h.
32619         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32620         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32621         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32622         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32623         gl_LIBUNISTRING. If the library was found, determine the installed
32624         version and set LIBUNISTRING_VERSION.
32625         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32626         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32627         handle a configuration option --with-included-libunistring.
32628         * modules/libunistring (Files): Add m4/absolute-header.m4.
32629         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32630         Add m4/libunistring-base.m4.
32631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32632         (Makefile.am): Build unicase.h from unicase.in.h.
32633         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32634         Add m4/libunistring-base.m4.
32635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32636         (Makefile.am): Build uniconv.h from uniconv.in.h.
32637         * modules/unictype/base (Files): Use unictype.in.h instead of
32638         unictype.h. Add m4/libunistring-base.m4.
32639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32640         (Makefile.am): Build unictype.h from unictype.in.h.
32641         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32642         Add m4/libunistring-base.m4.
32643         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32644         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32645         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32646         Add m4/libunistring-base.m4.
32647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32648         (Makefile.am): Build uniname.h from uniname.in.h.
32649         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32650         Add m4/libunistring-base.m4.
32651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32652         (Makefile.am): Build uninorm.h from uninorm.in.h.
32653         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32654         unistdio.h. Add m4/libunistring-base.m4.
32655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32656         (Makefile.am): Build unistdio.h from unistdio.in.h.
32657         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32658         Add m4/libunistring-base.m4.
32659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32660         (Makefile.am): Build unistr.h from unistr.in.h.
32661         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32662         Add m4/libunistring-base.m4.
32663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32664         (Makefile.am): Build unitypes.h from unitypes.in.h.
32665         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32666         Add m4/libunistring-base.m4.
32667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32668         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32669         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32670         uniwidth.h. Add m4/libunistring-base.m4.
32671         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32672         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32673         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32674         instead of augmenting lib_SOURCES.
32675         * modules/unicase/empty-suffix-context: Likewise.
32676         * modules/unicase/locale-language: Likewise.
32677         * modules/unicase/tolower: Likewise.
32678         * modules/unicase/totitle: Likewise.
32679         * modules/unicase/toupper: Likewise.
32680         * modules/unicase/u8-casecmp: Likewise.
32681         * modules/unicase/u8-casecoll: Likewise.
32682         * modules/unicase/u8-casefold: Likewise.
32683         * modules/unicase/u8-casexfrm: Likewise.
32684         * modules/unicase/u8-ct-casefold: Likewise.
32685         * modules/unicase/u8-ct-tolower: Likewise.
32686         * modules/unicase/u8-ct-totitle: Likewise.
32687         * modules/unicase/u8-ct-toupper: Likewise.
32688         * modules/unicase/u8-is-cased: Likewise.
32689         * modules/unicase/u8-is-casefolded: Likewise.
32690         * modules/unicase/u8-is-lowercase: Likewise.
32691         * modules/unicase/u8-is-titlecase: Likewise.
32692         * modules/unicase/u8-is-uppercase: Likewise.
32693         * modules/unicase/u8-prefix-context: Likewise.
32694         * modules/unicase/u8-suffix-context: Likewise.
32695         * modules/unicase/u8-tolower: Likewise.
32696         * modules/unicase/u8-totitle: Likewise.
32697         * modules/unicase/u8-toupper: Likewise.
32698         * modules/unicase/u16-casecmp: Likewise.
32699         * modules/unicase/u16-casecoll: Likewise.
32700         * modules/unicase/u16-casefold: Likewise.
32701         * modules/unicase/u16-casexfrm: Likewise.
32702         * modules/unicase/u16-ct-casefold: Likewise.
32703         * modules/unicase/u16-ct-tolower: Likewise.
32704         * modules/unicase/u16-ct-totitle: Likewise.
32705         * modules/unicase/u16-ct-toupper: Likewise.
32706         * modules/unicase/u16-is-cased: Likewise.
32707         * modules/unicase/u16-is-casefolded: Likewise.
32708         * modules/unicase/u16-is-lowercase: Likewise.
32709         * modules/unicase/u16-is-titlecase: Likewise.
32710         * modules/unicase/u16-is-uppercase: Likewise.
32711         * modules/unicase/u16-prefix-context: Likewise.
32712         * modules/unicase/u16-suffix-context: Likewise.
32713         * modules/unicase/u16-tolower: Likewise.
32714         * modules/unicase/u16-totitle: Likewise.
32715         * modules/unicase/u16-toupper: Likewise.
32716         * modules/unicase/u32-casecmp: Likewise.
32717         * modules/unicase/u32-casecoll: Likewise.
32718         * modules/unicase/u32-casefold: Likewise.
32719         * modules/unicase/u32-casexfrm: Likewise.
32720         * modules/unicase/u32-ct-casefold: Likewise.
32721         * modules/unicase/u32-ct-tolower: Likewise.
32722         * modules/unicase/u32-ct-totitle: Likewise.
32723         * modules/unicase/u32-ct-toupper: Likewise.
32724         * modules/unicase/u32-is-cased: Likewise.
32725         * modules/unicase/u32-is-casefolded: Likewise.
32726         * modules/unicase/u32-is-lowercase: Likewise.
32727         * modules/unicase/u32-is-titlecase: Likewise.
32728         * modules/unicase/u32-is-uppercase: Likewise.
32729         * modules/unicase/u32-prefix-context: Likewise.
32730         * modules/unicase/u32-suffix-context: Likewise.
32731         * modules/unicase/u32-tolower: Likewise.
32732         * modules/unicase/u32-totitle: Likewise.
32733         * modules/unicase/u32-toupper: Likewise.
32734         * modules/unicase/ulc-casecmp: Likewise.
32735         * modules/unicase/ulc-casecoll: Likewise.
32736         * modules/unicase/ulc-casexfrm: Likewise.
32737         * modules/uniconv/u8-conv-from-enc: Likewise.
32738         * modules/uniconv/u8-conv-to-enc: Likewise.
32739         * modules/uniconv/u8-strconv-from-enc: Likewise.
32740         * modules/uniconv/u8-strconv-from-locale: Likewise.
32741         * modules/uniconv/u8-strconv-to-enc: Likewise.
32742         * modules/uniconv/u8-strconv-to-locale: Likewise.
32743         * modules/uniconv/u16-conv-from-enc: Likewise.
32744         * modules/uniconv/u16-conv-to-enc: Likewise.
32745         * modules/uniconv/u16-strconv-from-enc: Likewise.
32746         * modules/uniconv/u16-strconv-from-locale: Likewise.
32747         * modules/uniconv/u16-strconv-to-enc: Likewise.
32748         * modules/uniconv/u16-strconv-to-locale: Likewise.
32749         * modules/uniconv/u32-conv-from-enc: Likewise.
32750         * modules/uniconv/u32-conv-to-enc: Likewise.
32751         * modules/uniconv/u32-strconv-from-enc: Likewise.
32752         * modules/uniconv/u32-strconv-from-locale: Likewise.
32753         * modules/uniconv/u32-strconv-to-enc: Likewise.
32754         * modules/uniconv/u32-strconv-to-locale: Likewise.
32755         * modules/unictype/bidicategory-byname: Likewise.
32756         * modules/unictype/bidicategory-name: Likewise.
32757         * modules/unictype/bidicategory-of: Likewise.
32758         * modules/unictype/bidicategory-test: Likewise.
32759         * modules/unictype/block-list: Likewise.
32760         * modules/unictype/block-test: Likewise.
32761         * modules/unictype/category-C: Likewise.
32762         * modules/unictype/category-Cc: Likewise.
32763         * modules/unictype/category-Cf: Likewise.
32764         * modules/unictype/category-Cn: Likewise.
32765         * modules/unictype/category-Co: Likewise.
32766         * modules/unictype/category-Cs: Likewise.
32767         * modules/unictype/category-L: Likewise.
32768         * modules/unictype/category-Ll: Likewise.
32769         * modules/unictype/category-Lm: Likewise.
32770         * modules/unictype/category-Lo: Likewise.
32771         * modules/unictype/category-Lt: Likewise.
32772         * modules/unictype/category-Lu: Likewise.
32773         * modules/unictype/category-M: Likewise.
32774         * modules/unictype/category-Mc: Likewise.
32775         * modules/unictype/category-Me: Likewise.
32776         * modules/unictype/category-Mn: Likewise.
32777         * modules/unictype/category-N: Likewise.
32778         * modules/unictype/category-Nd: Likewise.
32779         * modules/unictype/category-Nl: Likewise.
32780         * modules/unictype/category-No: Likewise.
32781         * modules/unictype/category-P: Likewise.
32782         * modules/unictype/category-Pc: Likewise.
32783         * modules/unictype/category-Pd: Likewise.
32784         * modules/unictype/category-Pe: Likewise.
32785         * modules/unictype/category-Pf: Likewise.
32786         * modules/unictype/category-Pi: Likewise.
32787         * modules/unictype/category-Po: Likewise.
32788         * modules/unictype/category-Ps: Likewise.
32789         * modules/unictype/category-S: Likewise.
32790         * modules/unictype/category-Sc: Likewise.
32791         * modules/unictype/category-Sk: Likewise.
32792         * modules/unictype/category-Sm: Likewise.
32793         * modules/unictype/category-So: Likewise.
32794         * modules/unictype/category-Z: Likewise.
32795         * modules/unictype/category-Zl: Likewise.
32796         * modules/unictype/category-Zp: Likewise.
32797         * modules/unictype/category-Zs: Likewise.
32798         * modules/unictype/category-and: Likewise.
32799         * modules/unictype/category-and-not: Likewise.
32800         * modules/unictype/category-byname: Likewise.
32801         * modules/unictype/category-name: Likewise.
32802         * modules/unictype/category-none: Likewise.
32803         * modules/unictype/category-of: Likewise.
32804         * modules/unictype/category-or: Likewise.
32805         * modules/unictype/category-test: Likewise.
32806         * modules/unictype/combining-class: Likewise.
32807         * modules/unictype/ctype-alnum: Likewise.
32808         * modules/unictype/ctype-alpha: Likewise.
32809         * modules/unictype/ctype-blank: Likewise.
32810         * modules/unictype/ctype-cntrl: Likewise.
32811         * modules/unictype/ctype-digit: Likewise.
32812         * modules/unictype/ctype-graph: Likewise.
32813         * modules/unictype/ctype-lower: Likewise.
32814         * modules/unictype/ctype-print: Likewise.
32815         * modules/unictype/ctype-punct: Likewise.
32816         * modules/unictype/ctype-space: Likewise.
32817         * modules/unictype/ctype-upper: Likewise.
32818         * modules/unictype/ctype-xdigit: Likewise.
32819         * modules/unictype/decimal-digit: Likewise.
32820         * modules/unictype/digit: Likewise.
32821         * modules/unictype/mirror: Likewise.
32822         * modules/unictype/numeric: Likewise.
32823         * modules/unictype/property-alphabetic: Likewise.
32824         * modules/unictype/property-ascii-hex-digit: Likewise.
32825         * modules/unictype/property-bidi-arabic-digit: Likewise.
32826         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32827         * modules/unictype/property-bidi-block-separator: Likewise.
32828         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32829         * modules/unictype/property-bidi-common-separator: Likewise.
32830         * modules/unictype/property-bidi-control: Likewise.
32831         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32832         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32833         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32834         * modules/unictype/property-bidi-european-digit: Likewise.
32835         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32836         * modules/unictype/property-bidi-left-to-right: Likewise.
32837         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32838         * modules/unictype/property-bidi-other-neutral: Likewise.
32839         * modules/unictype/property-bidi-pdf: Likewise.
32840         * modules/unictype/property-bidi-segment-separator: Likewise.
32841         * modules/unictype/property-bidi-whitespace: Likewise.
32842         * modules/unictype/property-byname: Likewise.
32843         * modules/unictype/property-combining: Likewise.
32844         * modules/unictype/property-composite: Likewise.
32845         * modules/unictype/property-currency-symbol: Likewise.
32846         * modules/unictype/property-dash: Likewise.
32847         * modules/unictype/property-decimal-digit: Likewise.
32848         * modules/unictype/property-default-ignorable-code-point: Likewise.
32849         * modules/unictype/property-deprecated: Likewise.
32850         * modules/unictype/property-diacritic: Likewise.
32851         * modules/unictype/property-extender: Likewise.
32852         * modules/unictype/property-format-control: Likewise.
32853         * modules/unictype/property-grapheme-base: Likewise.
32854         * modules/unictype/property-grapheme-extend: Likewise.
32855         * modules/unictype/property-grapheme-link: Likewise.
32856         * modules/unictype/property-hex-digit: Likewise.
32857         * modules/unictype/property-hyphen: Likewise.
32858         * modules/unictype/property-id-continue: Likewise.
32859         * modules/unictype/property-id-start: Likewise.
32860         * modules/unictype/property-ideographic: Likewise.
32861         * modules/unictype/property-ids-binary-operator: Likewise.
32862         * modules/unictype/property-ids-trinary-operator: Likewise.
32863         * modules/unictype/property-ignorable-control: Likewise.
32864         * modules/unictype/property-iso-control: Likewise.
32865         * modules/unictype/property-join-control: Likewise.
32866         * modules/unictype/property-left-of-pair: Likewise.
32867         * modules/unictype/property-line-separator: Likewise.
32868         * modules/unictype/property-logical-order-exception: Likewise.
32869         * modules/unictype/property-lowercase: Likewise.
32870         * modules/unictype/property-math: Likewise.
32871         * modules/unictype/property-non-break: Likewise.
32872         * modules/unictype/property-not-a-character: Likewise.
32873         * modules/unictype/property-numeric: Likewise.
32874         * modules/unictype/property-other-alphabetic: Likewise.
32875         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32876         * modules/unictype/property-other-grapheme-extend: Likewise.
32877         * modules/unictype/property-other-id-continue: Likewise.
32878         * modules/unictype/property-other-id-start: Likewise.
32879         * modules/unictype/property-other-lowercase: Likewise.
32880         * modules/unictype/property-other-math: Likewise.
32881         * modules/unictype/property-other-uppercase: Likewise.
32882         * modules/unictype/property-paired-punctuation: Likewise.
32883         * modules/unictype/property-paragraph-separator: Likewise.
32884         * modules/unictype/property-pattern-syntax: Likewise.
32885         * modules/unictype/property-pattern-white-space: Likewise.
32886         * modules/unictype/property-private-use: Likewise.
32887         * modules/unictype/property-punctuation: Likewise.
32888         * modules/unictype/property-quotation-mark: Likewise.
32889         * modules/unictype/property-radical: Likewise.
32890         * modules/unictype/property-sentence-terminal: Likewise.
32891         * modules/unictype/property-soft-dotted: Likewise.
32892         * modules/unictype/property-space: Likewise.
32893         * modules/unictype/property-terminal-punctuation: Likewise.
32894         * modules/unictype/property-test: Likewise.
32895         * modules/unictype/property-titlecase: Likewise.
32896         * modules/unictype/property-unassigned-code-value: Likewise.
32897         * modules/unictype/property-unified-ideograph: Likewise.
32898         * modules/unictype/property-uppercase: Likewise.
32899         * modules/unictype/property-variation-selector: Likewise.
32900         * modules/unictype/property-white-space: Likewise.
32901         * modules/unictype/property-xid-continue: Likewise.
32902         * modules/unictype/property-xid-start: Likewise.
32903         * modules/unictype/property-zero-width: Likewise.
32904         * modules/unictype/scripts: Likewise.
32905         * modules/unictype/syntax-c-ident: Likewise.
32906         * modules/unictype/syntax-c-whitespace: Likewise.
32907         * modules/unictype/syntax-java-ident: Likewise.
32908         * modules/unictype/syntax-java-whitespace: Likewise.
32909         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32910         * modules/unilbrk/u8-width-linebreaks: Likewise.
32911         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32912         * modules/unilbrk/u16-width-linebreaks: Likewise.
32913         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32914         * modules/unilbrk/u32-width-linebreaks: Likewise.
32915         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32916         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32917         * modules/uniname/uniname: Likewise.
32918         * modules/uninorm/canonical-decomposition: Likewise.
32919         * modules/uninorm/composition: Likewise.
32920         * modules/uninorm/decomposing-form: Likewise.
32921         * modules/uninorm/decomposition: Likewise.
32922         * modules/uninorm/filter: Likewise.
32923         * modules/uninorm/nfc: Likewise.
32924         * modules/uninorm/nfd: Likewise.
32925         * modules/uninorm/nfkc: Likewise.
32926         * modules/uninorm/nfkd: Likewise.
32927         * modules/uninorm/u8-normalize: Likewise.
32928         * modules/uninorm/u8-normcmp: Likewise.
32929         * modules/uninorm/u8-normcoll: Likewise.
32930         * modules/uninorm/u8-normxfrm: Likewise.
32931         * modules/uninorm/u16-normalize: Likewise.
32932         * modules/uninorm/u16-normcmp: Likewise.
32933         * modules/uninorm/u16-normcoll: Likewise.
32934         * modules/uninorm/u16-normxfrm: Likewise.
32935         * modules/uninorm/u32-normalize: Likewise.
32936         * modules/uninorm/u32-normcmp: Likewise.
32937         * modules/uninorm/u32-normcoll: Likewise.
32938         * modules/uninorm/u32-normxfrm: Likewise.
32939         * modules/unistdio/u8-asnprintf: Likewise.
32940         * modules/unistdio/u8-asprintf: Likewise.
32941         * modules/unistdio/u8-snprintf: Likewise.
32942         * modules/unistdio/u8-sprintf: Likewise.
32943         * modules/unistdio/u8-u8-asnprintf: Likewise.
32944         * modules/unistdio/u8-u8-asprintf: Likewise.
32945         * modules/unistdio/u8-u8-snprintf: Likewise.
32946         * modules/unistdio/u8-u8-sprintf: Likewise.
32947         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32948         * modules/unistdio/u8-u8-vasprintf: Likewise.
32949         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32950         * modules/unistdio/u8-u8-vsprintf: Likewise.
32951         * modules/unistdio/u8-vasnprintf: Likewise.
32952         * modules/unistdio/u8-vasprintf: Likewise.
32953         * modules/unistdio/u8-vsnprintf: Likewise.
32954         * modules/unistdio/u8-vsprintf: Likewise.
32955         * modules/unistdio/u16-asnprintf: Likewise.
32956         * modules/unistdio/u16-asprintf: Likewise.
32957         * modules/unistdio/u16-snprintf: Likewise.
32958         * modules/unistdio/u16-sprintf: Likewise.
32959         * modules/unistdio/u16-u16-asnprintf: Likewise.
32960         * modules/unistdio/u16-u16-asprintf: Likewise.
32961         * modules/unistdio/u16-u16-snprintf: Likewise.
32962         * modules/unistdio/u16-u16-sprintf: Likewise.
32963         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32964         * modules/unistdio/u16-u16-vasprintf: Likewise.
32965         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32966         * modules/unistdio/u16-u16-vsprintf: Likewise.
32967         * modules/unistdio/u16-vasnprintf: Likewise.
32968         * modules/unistdio/u16-vasprintf: Likewise.
32969         * modules/unistdio/u16-vsnprintf: Likewise.
32970         * modules/unistdio/u16-vsprintf: Likewise.
32971         * modules/unistdio/u32-asnprintf: Likewise.
32972         * modules/unistdio/u32-asprintf: Likewise.
32973         * modules/unistdio/u32-snprintf: Likewise.
32974         * modules/unistdio/u32-sprintf: Likewise.
32975         * modules/unistdio/u32-u32-asnprintf: Likewise.
32976         * modules/unistdio/u32-u32-asprintf: Likewise.
32977         * modules/unistdio/u32-u32-snprintf: Likewise.
32978         * modules/unistdio/u32-u32-sprintf: Likewise.
32979         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32980         * modules/unistdio/u32-u32-vasprintf: Likewise.
32981         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32982         * modules/unistdio/u32-u32-vsprintf: Likewise.
32983         * modules/unistdio/u32-vasnprintf: Likewise.
32984         * modules/unistdio/u32-vasprintf: Likewise.
32985         * modules/unistdio/u32-vsnprintf: Likewise.
32986         * modules/unistdio/u32-vsprintf: Likewise.
32987         * modules/unistdio/ulc-asnprintf: Likewise.
32988         * modules/unistdio/ulc-asprintf: Likewise.
32989         * modules/unistdio/ulc-fprintf: Likewise.
32990         * modules/unistdio/ulc-snprintf: Likewise.
32991         * modules/unistdio/ulc-sprintf: Likewise.
32992         * modules/unistdio/ulc-vasnprintf: Likewise.
32993         * modules/unistdio/ulc-vasprintf: Likewise.
32994         * modules/unistdio/ulc-vfprintf: Likewise.
32995         * modules/unistdio/ulc-vsnprintf: Likewise.
32996         * modules/unistdio/ulc-vsprintf: Likewise.
32997         * modules/unistr/u8-check: Likewise.
32998         * modules/unistr/u8-chr: Likewise.
32999         * modules/unistr/u8-cmp: Likewise.
33000         * modules/unistr/u8-cmp2: Likewise.
33001         * modules/unistr/u8-cpy: Likewise.
33002         * modules/unistr/u8-cpy-alloc: Likewise.
33003         * modules/unistr/u8-endswith: Likewise.
33004         * modules/unistr/u8-mblen: Likewise.
33005         * modules/unistr/u8-mbsnlen: Likewise.
33006         * modules/unistr/u8-mbtouc: Likewise.
33007         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33008         * modules/unistr/u8-mbtoucr: Likewise.
33009         * modules/unistr/u8-move: Likewise.
33010         * modules/unistr/u8-next: Likewise.
33011         * modules/unistr/u8-prev: Likewise.
33012         * modules/unistr/u8-set: Likewise.
33013         * modules/unistr/u8-startswith: Likewise.
33014         * modules/unistr/u8-stpcpy: Likewise.
33015         * modules/unistr/u8-stpncpy: Likewise.
33016         * modules/unistr/u8-strcat: Likewise.
33017         * modules/unistr/u8-strchr: Likewise.
33018         * modules/unistr/u8-strcmp: Likewise.
33019         * modules/unistr/u8-strcoll: Likewise.
33020         * modules/unistr/u8-strcpy: Likewise.
33021         * modules/unistr/u8-strcspn: Likewise.
33022         * modules/unistr/u8-strdup: Likewise.
33023         * modules/unistr/u8-strlen: Likewise.
33024         * modules/unistr/u8-strmblen: Likewise.
33025         * modules/unistr/u8-strmbtouc: Likewise.
33026         * modules/unistr/u8-strncat: Likewise.
33027         * modules/unistr/u8-strncmp: Likewise.
33028         * modules/unistr/u8-strncpy: Likewise.
33029         * modules/unistr/u8-strnlen: Likewise.
33030         * modules/unistr/u8-strpbrk: Likewise.
33031         * modules/unistr/u8-strrchr: Likewise.
33032         * modules/unistr/u8-strspn: Likewise.
33033         * modules/unistr/u8-strstr: Likewise.
33034         * modules/unistr/u8-strtok: Likewise.
33035         * modules/unistr/u8-to-u16: Likewise.
33036         * modules/unistr/u8-to-u32: Likewise.
33037         * modules/unistr/u8-uctomb: Likewise.
33038         * modules/unistr/u16-check: Likewise.
33039         * modules/unistr/u16-chr: Likewise.
33040         * modules/unistr/u16-cmp: Likewise.
33041         * modules/unistr/u16-cmp2: Likewise.
33042         * modules/unistr/u16-cpy: Likewise.
33043         * modules/unistr/u16-cpy-alloc: Likewise.
33044         * modules/unistr/u16-endswith: Likewise.
33045         * modules/unistr/u16-mblen: Likewise.
33046         * modules/unistr/u16-mbsnlen: Likewise.
33047         * modules/unistr/u16-mbtouc: Likewise.
33048         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33049         * modules/unistr/u16-mbtoucr: Likewise.
33050         * modules/unistr/u16-move: Likewise.
33051         * modules/unistr/u16-next: Likewise.
33052         * modules/unistr/u16-prev: Likewise.
33053         * modules/unistr/u16-set: Likewise.
33054         * modules/unistr/u16-startswith: Likewise.
33055         * modules/unistr/u16-stpcpy: Likewise.
33056         * modules/unistr/u16-stpncpy: Likewise.
33057         * modules/unistr/u16-strcat: Likewise.
33058         * modules/unistr/u16-strchr: Likewise.
33059         * modules/unistr/u16-strcmp: Likewise.
33060         * modules/unistr/u16-strcoll: Likewise.
33061         * modules/unistr/u16-strcpy: Likewise.
33062         * modules/unistr/u16-strcspn: Likewise.
33063         * modules/unistr/u16-strdup: Likewise.
33064         * modules/unistr/u16-strlen: Likewise.
33065         * modules/unistr/u16-strmblen: Likewise.
33066         * modules/unistr/u16-strmbtouc: Likewise.
33067         * modules/unistr/u16-strncat: Likewise.
33068         * modules/unistr/u16-strncmp: Likewise.
33069         * modules/unistr/u16-strncpy: Likewise.
33070         * modules/unistr/u16-strnlen: Likewise.
33071         * modules/unistr/u16-strpbrk: Likewise.
33072         * modules/unistr/u16-strrchr: Likewise.
33073         * modules/unistr/u16-strspn: Likewise.
33074         * modules/unistr/u16-strstr: Likewise.
33075         * modules/unistr/u16-strtok: Likewise.
33076         * modules/unistr/u16-to-u32: Likewise.
33077         * modules/unistr/u16-to-u8: Likewise.
33078         * modules/unistr/u16-uctomb: Likewise.
33079         * modules/unistr/u32-check: Likewise.
33080         * modules/unistr/u32-chr: Likewise.
33081         * modules/unistr/u32-cmp: Likewise.
33082         * modules/unistr/u32-cmp2: Likewise.
33083         * modules/unistr/u32-cpy: Likewise.
33084         * modules/unistr/u32-cpy-alloc: Likewise.
33085         * modules/unistr/u32-endswith: Likewise.
33086         * modules/unistr/u32-mblen: Likewise.
33087         * modules/unistr/u32-mbsnlen: Likewise.
33088         * modules/unistr/u32-mbtouc: Likewise.
33089         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33090         * modules/unistr/u32-mbtoucr: Likewise.
33091         * modules/unistr/u32-move: Likewise.
33092         * modules/unistr/u32-next: Likewise.
33093         * modules/unistr/u32-prev: Likewise.
33094         * modules/unistr/u32-set: Likewise.
33095         * modules/unistr/u32-startswith: Likewise.
33096         * modules/unistr/u32-stpcpy: Likewise.
33097         * modules/unistr/u32-stpncpy: Likewise.
33098         * modules/unistr/u32-strcat: Likewise.
33099         * modules/unistr/u32-strchr: Likewise.
33100         * modules/unistr/u32-strcmp: Likewise.
33101         * modules/unistr/u32-strcoll: Likewise.
33102         * modules/unistr/u32-strcpy: Likewise.
33103         * modules/unistr/u32-strcspn: Likewise.
33104         * modules/unistr/u32-strdup: Likewise.
33105         * modules/unistr/u32-strlen: Likewise.
33106         * modules/unistr/u32-strmblen: Likewise.
33107         * modules/unistr/u32-strmbtouc: Likewise.
33108         * modules/unistr/u32-strncat: Likewise.
33109         * modules/unistr/u32-strncmp: Likewise.
33110         * modules/unistr/u32-strncpy: Likewise.
33111         * modules/unistr/u32-strnlen: Likewise.
33112         * modules/unistr/u32-strpbrk: Likewise.
33113         * modules/unistr/u32-strrchr: Likewise.
33114         * modules/unistr/u32-strspn: Likewise.
33115         * modules/unistr/u32-strstr: Likewise.
33116         * modules/unistr/u32-strtok: Likewise.
33117         * modules/unistr/u32-to-u16: Likewise.
33118         * modules/unistr/u32-to-u8: Likewise.
33119         * modules/unistr/u32-uctomb: Likewise.
33120         * modules/uniwbrk/u8-wordbreaks: Likewise.
33121         * modules/uniwbrk/u16-wordbreaks: Likewise.
33122         * modules/uniwbrk/u32-wordbreaks: Likewise.
33123         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33124         * modules/uniwbrk/wordbreak-property: Likewise.
33125         * modules/uniwidth/u8-strwidth: Likewise.
33126         * modules/uniwidth/u8-width: Likewise.
33127         * modules/uniwidth/u16-strwidth: Likewise.
33128         * modules/uniwidth/u16-width: Likewise.
33129         * modules/uniwidth/u32-strwidth: Likewise.
33130         * modules/uniwidth/u32-width: Likewise.
33131         * modules/uniwidth/width: Likewise.
33132         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33133         with $(LIBUNISTRING).
33134         * modules/unicase/ignorable-tests: Likewise.
33135         * modules/unicase/locale-language-tests: Likewise.
33136         * modules/unicase/tolower-tests: Likewise.
33137         * modules/unicase/totitle-tests: Likewise.
33138         * modules/unicase/toupper-tests: Likewise.
33139         * modules/unicase/u8-casecmp-tests: Likewise.
33140         * modules/unicase/u8-casecoll-tests: Likewise.
33141         * modules/unicase/u8-casefold-tests: Likewise.
33142         * modules/unicase/u8-is-cased-tests: Likewise.
33143         * modules/unicase/u8-is-casefolded-tests: Likewise.
33144         * modules/unicase/u8-is-lowercase-tests: Likewise.
33145         * modules/unicase/u8-is-titlecase-tests: Likewise.
33146         * modules/unicase/u8-is-uppercase-tests: Likewise.
33147         * modules/unicase/u8-tolower-tests: Likewise.
33148         * modules/unicase/u8-totitle-tests: Likewise.
33149         * modules/unicase/u8-toupper-tests: Likewise.
33150         * modules/unicase/u16-casecmp-tests: Likewise.
33151         * modules/unicase/u16-casecoll-tests: Likewise.
33152         * modules/unicase/u16-casefold-tests: Likewise.
33153         * modules/unicase/u16-is-cased-tests: Likewise.
33154         * modules/unicase/u16-is-casefolded-tests: Likewise.
33155         * modules/unicase/u16-is-lowercase-tests: Likewise.
33156         * modules/unicase/u16-is-titlecase-tests: Likewise.
33157         * modules/unicase/u16-is-uppercase-tests: Likewise.
33158         * modules/unicase/u16-tolower-tests: Likewise.
33159         * modules/unicase/u16-totitle-tests: Likewise.
33160         * modules/unicase/u16-toupper-tests: Likewise.
33161         * modules/unicase/u32-casecmp-tests: Likewise.
33162         * modules/unicase/u32-casecoll-tests: Likewise.
33163         * modules/unicase/u32-casefold-tests: Likewise.
33164         * modules/unicase/u32-is-cased-tests: Likewise.
33165         * modules/unicase/u32-is-casefolded-tests: Likewise.
33166         * modules/unicase/u32-is-lowercase-tests: Likewise.
33167         * modules/unicase/u32-is-titlecase-tests: Likewise.
33168         * modules/unicase/u32-is-uppercase-tests: Likewise.
33169         * modules/unicase/u32-tolower-tests: Likewise.
33170         * modules/unicase/u32-totitle-tests: Likewise.
33171         * modules/unicase/u32-toupper-tests: Likewise.
33172         * modules/unicase/ulc-casecmp-tests: Likewise.
33173         * modules/unicase/ulc-casecoll-tests: Likewise.
33174         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33175         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33176         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33177         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33178         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33179         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33180         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33181         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33182         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33183         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33184         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33185         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33186         * modules/unictype/bidicategory-byname-tests: Likewise.
33187         * modules/unictype/bidicategory-name-tests: Likewise.
33188         * modules/unictype/bidicategory-of-tests: Likewise.
33189         * modules/unictype/bidicategory-test-tests: Likewise.
33190         * modules/unictype/block-list-tests: Likewise.
33191         * modules/unictype/block-of-tests: Likewise.
33192         * modules/unictype/block-test-tests: Likewise.
33193         * modules/unictype/category-C-tests: Likewise.
33194         * modules/unictype/category-Cc-tests: Likewise.
33195         * modules/unictype/category-Cf-tests: Likewise.
33196         * modules/unictype/category-Cn-tests: Likewise.
33197         * modules/unictype/category-Co-tests: Likewise.
33198         * modules/unictype/category-Cs-tests: Likewise.
33199         * modules/unictype/category-L-tests: Likewise.
33200         * modules/unictype/category-Ll-tests: Likewise.
33201         * modules/unictype/category-Lm-tests: Likewise.
33202         * modules/unictype/category-Lo-tests: Likewise.
33203         * modules/unictype/category-Lt-tests: Likewise.
33204         * modules/unictype/category-Lu-tests: Likewise.
33205         * modules/unictype/category-M-tests: Likewise.
33206         * modules/unictype/category-Mc-tests: Likewise.
33207         * modules/unictype/category-Me-tests: Likewise.
33208         * modules/unictype/category-Mn-tests: Likewise.
33209         * modules/unictype/category-N-tests: Likewise.
33210         * modules/unictype/category-Nd-tests: Likewise.
33211         * modules/unictype/category-Nl-tests: Likewise.
33212         * modules/unictype/category-No-tests: Likewise.
33213         * modules/unictype/category-P-tests: Likewise.
33214         * modules/unictype/category-Pc-tests: Likewise.
33215         * modules/unictype/category-Pd-tests: Likewise.
33216         * modules/unictype/category-Pe-tests: Likewise.
33217         * modules/unictype/category-Pf-tests: Likewise.
33218         * modules/unictype/category-Pi-tests: Likewise.
33219         * modules/unictype/category-Po-tests: Likewise.
33220         * modules/unictype/category-Ps-tests: Likewise.
33221         * modules/unictype/category-S-tests: Likewise.
33222         * modules/unictype/category-Sc-tests: Likewise.
33223         * modules/unictype/category-Sk-tests: Likewise.
33224         * modules/unictype/category-Sm-tests: Likewise.
33225         * modules/unictype/category-So-tests: Likewise.
33226         * modules/unictype/category-Z-tests: Likewise.
33227         * modules/unictype/category-Zl-tests: Likewise.
33228         * modules/unictype/category-Zp-tests: Likewise.
33229         * modules/unictype/category-Zs-tests: Likewise.
33230         * modules/unictype/category-and-not-tests: Likewise.
33231         * modules/unictype/category-and-tests: Likewise.
33232         * modules/unictype/category-byname-tests: Likewise.
33233         * modules/unictype/category-name-tests: Likewise.
33234         * modules/unictype/category-none-tests: Likewise.
33235         * modules/unictype/category-of-tests: Likewise.
33236         * modules/unictype/category-or-tests: Likewise.
33237         * modules/unictype/category-test-withtable-tests: Likewise.
33238         * modules/unictype/combining-class-tests: Likewise.
33239         * modules/unictype/ctype-alnum-tests: Likewise.
33240         * modules/unictype/ctype-alpha-tests: Likewise.
33241         * modules/unictype/ctype-blank-tests: Likewise.
33242         * modules/unictype/ctype-cntrl-tests: Likewise.
33243         * modules/unictype/ctype-digit-tests: Likewise.
33244         * modules/unictype/ctype-graph-tests: Likewise.
33245         * modules/unictype/ctype-lower-tests: Likewise.
33246         * modules/unictype/ctype-print-tests: Likewise.
33247         * modules/unictype/ctype-punct-tests: Likewise.
33248         * modules/unictype/ctype-space-tests: Likewise.
33249         * modules/unictype/ctype-upper-tests: Likewise.
33250         * modules/unictype/ctype-xdigit-tests: Likewise.
33251         * modules/unictype/decimal-digit-tests: Likewise.
33252         * modules/unictype/digit-tests: Likewise.
33253         * modules/unictype/mirror-tests: Likewise.
33254         * modules/unictype/numeric-tests: Likewise.
33255         * modules/unictype/property-alphabetic-tests: Likewise.
33256         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33257         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33258         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33259         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33260         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33261         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33262         * modules/unictype/property-bidi-control-tests: Likewise.
33263         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33264         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33265         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33266         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33267         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33268         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33269         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33270         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33271         * modules/unictype/property-bidi-pdf-tests: Likewise.
33272         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33273         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33274         * modules/unictype/property-byname-tests: Likewise.
33275         * modules/unictype/property-combining-tests: Likewise.
33276         * modules/unictype/property-composite-tests: Likewise.
33277         * modules/unictype/property-currency-symbol-tests: Likewise.
33278         * modules/unictype/property-dash-tests: Likewise.
33279         * modules/unictype/property-decimal-digit-tests: Likewise.
33280         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33281         * modules/unictype/property-deprecated-tests: Likewise.
33282         * modules/unictype/property-diacritic-tests: Likewise.
33283         * modules/unictype/property-extender-tests: Likewise.
33284         * modules/unictype/property-format-control-tests: Likewise.
33285         * modules/unictype/property-grapheme-base-tests: Likewise.
33286         * modules/unictype/property-grapheme-extend-tests: Likewise.
33287         * modules/unictype/property-grapheme-link-tests: Likewise.
33288         * modules/unictype/property-hex-digit-tests: Likewise.
33289         * modules/unictype/property-hyphen-tests: Likewise.
33290         * modules/unictype/property-id-continue-tests: Likewise.
33291         * modules/unictype/property-id-start-tests: Likewise.
33292         * modules/unictype/property-ideographic-tests: Likewise.
33293         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33294         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33295         * modules/unictype/property-ignorable-control-tests: Likewise.
33296         * modules/unictype/property-iso-control-tests: Likewise.
33297         * modules/unictype/property-join-control-tests: Likewise.
33298         * modules/unictype/property-left-of-pair-tests: Likewise.
33299         * modules/unictype/property-line-separator-tests: Likewise.
33300         * modules/unictype/property-logical-order-exception-tests: Likewise.
33301         * modules/unictype/property-lowercase-tests: Likewise.
33302         * modules/unictype/property-math-tests: Likewise.
33303         * modules/unictype/property-non-break-tests: Likewise.
33304         * modules/unictype/property-not-a-character-tests: Likewise.
33305         * modules/unictype/property-numeric-tests: Likewise.
33306         * modules/unictype/property-other-alphabetic-tests: Likewise.
33307         * modules/unictype/property-other-default-ignorable-code-point-tests:
33308         Likewise.
33309         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33310         * modules/unictype/property-other-id-continue-tests: Likewise.
33311         * modules/unictype/property-other-id-start-tests: Likewise.
33312         * modules/unictype/property-other-lowercase-tests: Likewise.
33313         * modules/unictype/property-other-math-tests: Likewise.
33314         * modules/unictype/property-other-uppercase-tests: Likewise.
33315         * modules/unictype/property-paired-punctuation-tests: Likewise.
33316         * modules/unictype/property-paragraph-separator-tests: Likewise.
33317         * modules/unictype/property-pattern-syntax-tests: Likewise.
33318         * modules/unictype/property-pattern-white-space-tests: Likewise.
33319         * modules/unictype/property-private-use-tests: Likewise.
33320         * modules/unictype/property-punctuation-tests: Likewise.
33321         * modules/unictype/property-quotation-mark-tests: Likewise.
33322         * modules/unictype/property-radical-tests: Likewise.
33323         * modules/unictype/property-sentence-terminal-tests: Likewise.
33324         * modules/unictype/property-soft-dotted-tests: Likewise.
33325         * modules/unictype/property-space-tests: Likewise.
33326         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33327         * modules/unictype/property-test-tests: Likewise.
33328         * modules/unictype/property-titlecase-tests: Likewise.
33329         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33330         * modules/unictype/property-unified-ideograph-tests: Likewise.
33331         * modules/unictype/property-uppercase-tests: Likewise.
33332         * modules/unictype/property-variation-selector-tests: Likewise.
33333         * modules/unictype/property-white-space-tests: Likewise.
33334         * modules/unictype/property-xid-continue-tests: Likewise.
33335         * modules/unictype/property-xid-start-tests: Likewise.
33336         * modules/unictype/property-zero-width-tests: Likewise.
33337         * modules/unictype/scripts-tests: Likewise.
33338         * modules/unictype/syntax-c-ident-tests: Likewise.
33339         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33340         * modules/unictype/syntax-java-ident-tests: Likewise.
33341         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33342         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33343         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33344         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33345         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33346         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33347         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33348         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33349         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33350         * modules/uniname/uniname-tests: Likewise.
33351         * modules/uninorm/canonical-decomposition-tests: Likewise.
33352         * modules/uninorm/compat-decomposition-tests: Likewise.
33353         * modules/uninorm/composition-tests: Likewise.
33354         * modules/uninorm/decomposing-form-tests: Likewise.
33355         * modules/uninorm/decomposition-tests: Likewise.
33356         * modules/uninorm/filter-tests: Likewise.
33357         * modules/uninorm/nfc-tests: Likewise.
33358         * modules/uninorm/nfd-tests: Likewise.
33359         * modules/uninorm/nfkc-tests: Likewise.
33360         * modules/uninorm/nfkd-tests: Likewise.
33361         * modules/uninorm/u8-normcmp-tests: Likewise.
33362         * modules/uninorm/u8-normcoll-tests: Likewise.
33363         * modules/uninorm/u16-normcmp-tests: Likewise.
33364         * modules/uninorm/u16-normcoll-tests: Likewise.
33365         * modules/uninorm/u32-normcmp-tests: Likewise.
33366         * modules/uninorm/u32-normcoll-tests: Likewise.
33367         * modules/unistdio/u8-asnprintf-tests: Likewise.
33368         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33369         * modules/unistdio/u8-vasprintf-tests: Likewise.
33370         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33371         * modules/unistdio/u8-vsprintf-tests: Likewise.
33372         * modules/unistdio/u16-asnprintf-tests: Likewise.
33373         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33374         * modules/unistdio/u16-vasprintf-tests: Likewise.
33375         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33376         * modules/unistdio/u16-vsprintf-tests: Likewise.
33377         * modules/unistdio/u32-asnprintf-tests: Likewise.
33378         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33379         * modules/unistdio/u32-vasprintf-tests: Likewise.
33380         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33381         * modules/unistdio/u32-vsprintf-tests: Likewise.
33382         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33383         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33384         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33385         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33386         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33387         * modules/unistr/u8-check-tests: Likewise.
33388         * modules/unistr/u8-chr-tests: Likewise.
33389         * modules/unistr/u8-cmp-tests: Likewise.
33390         * modules/unistr/u8-cmp2-tests: Likewise.
33391         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33392         * modules/unistr/u8-cpy-tests: Likewise.
33393         * modules/unistr/u8-mblen-tests: Likewise.
33394         * modules/unistr/u8-mbsnlen-tests: Likewise.
33395         * modules/unistr/u8-mbtouc-tests: Likewise.
33396         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33397         * modules/unistr/u8-mbtoucr-tests: Likewise.
33398         * modules/unistr/u8-move-tests: Likewise.
33399         * modules/unistr/u8-next-tests: Likewise.
33400         * modules/unistr/u8-prev-tests: Likewise.
33401         * modules/unistr/u8-set-tests: Likewise.
33402         * modules/unistr/u8-stpcpy-tests: Likewise.
33403         * modules/unistr/u8-stpncpy-tests: Likewise.
33404         * modules/unistr/u8-strcat-tests: Likewise.
33405         * modules/unistr/u8-strcmp-tests: Likewise.
33406         * modules/unistr/u8-strcoll-tests: Likewise.
33407         * modules/unistr/u8-strcpy-tests: Likewise.
33408         * modules/unistr/u8-strdup-tests: Likewise.
33409         * modules/unistr/u8-strlen-tests: Likewise.
33410         * modules/unistr/u8-strmblen-tests: Likewise.
33411         * modules/unistr/u8-strmbtouc-tests: Likewise.
33412         * modules/unistr/u8-strncat-tests: Likewise.
33413         * modules/unistr/u8-strncmp-tests: Likewise.
33414         * modules/unistr/u8-strncpy-tests: Likewise.
33415         * modules/unistr/u8-strnlen-tests: Likewise.
33416         * modules/unistr/u8-to-u16-tests: Likewise.
33417         * modules/unistr/u8-to-u32-tests: Likewise.
33418         * modules/unistr/u8-uctomb-tests: Likewise.
33419         * modules/unistr/u16-check-tests: Likewise.
33420         * modules/unistr/u16-chr-tests: Likewise.
33421         * modules/unistr/u16-cmp-tests: Likewise.
33422         * modules/unistr/u16-cmp2-tests: Likewise.
33423         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33424         * modules/unistr/u16-cpy-tests: Likewise.
33425         * modules/unistr/u16-mblen-tests: Likewise.
33426         * modules/unistr/u16-mbsnlen-tests: Likewise.
33427         * modules/unistr/u16-mbtouc-tests: Likewise.
33428         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33429         * modules/unistr/u16-mbtoucr-tests: Likewise.
33430         * modules/unistr/u16-move-tests: Likewise.
33431         * modules/unistr/u16-next-tests: Likewise.
33432         * modules/unistr/u16-prev-tests: Likewise.
33433         * modules/unistr/u16-set-tests: Likewise.
33434         * modules/unistr/u16-stpcpy-tests: Likewise.
33435         * modules/unistr/u16-stpncpy-tests: Likewise.
33436         * modules/unistr/u16-strcat-tests: Likewise.
33437         * modules/unistr/u16-strcmp-tests: Likewise.
33438         * modules/unistr/u16-strcoll-tests: Likewise.
33439         * modules/unistr/u16-strcpy-tests: Likewise.
33440         * modules/unistr/u16-strdup-tests: Likewise.
33441         * modules/unistr/u16-strlen-tests: Likewise.
33442         * modules/unistr/u16-strmblen-tests: Likewise.
33443         * modules/unistr/u16-strmbtouc-tests: Likewise.
33444         * modules/unistr/u16-strncat-tests: Likewise.
33445         * modules/unistr/u16-strncmp-tests: Likewise.
33446         * modules/unistr/u16-strncpy-tests: Likewise.
33447         * modules/unistr/u16-strnlen-tests: Likewise.
33448         * modules/unistr/u16-to-u32-tests: Likewise.
33449         * modules/unistr/u16-to-u8-tests: Likewise.
33450         * modules/unistr/u16-uctomb-tests: Likewise.
33451         * modules/unistr/u32-check-tests: Likewise.
33452         * modules/unistr/u32-chr-tests: Likewise.
33453         * modules/unistr/u32-cmp-tests: Likewise.
33454         * modules/unistr/u32-cmp2-tests: Likewise.
33455         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33456         * modules/unistr/u32-cpy-tests: Likewise.
33457         * modules/unistr/u32-mblen-tests: Likewise.
33458         * modules/unistr/u32-mbsnlen-tests: Likewise.
33459         * modules/unistr/u32-mbtouc-tests: Likewise.
33460         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33461         * modules/unistr/u32-mbtoucr-tests: Likewise.
33462         * modules/unistr/u32-move-tests: Likewise.
33463         * modules/unistr/u32-next-tests: Likewise.
33464         * modules/unistr/u32-prev-tests: Likewise.
33465         * modules/unistr/u32-set-tests: Likewise.
33466         * modules/unistr/u32-stpcpy-tests: Likewise.
33467         * modules/unistr/u32-stpncpy-tests: Likewise.
33468         * modules/unistr/u32-strcat-tests: Likewise.
33469         * modules/unistr/u32-strcmp-tests: Likewise.
33470         * modules/unistr/u32-strcoll-tests: Likewise.
33471         * modules/unistr/u32-strcpy-tests: Likewise.
33472         * modules/unistr/u32-strdup-tests: Likewise.
33473         * modules/unistr/u32-strlen-tests: Likewise.
33474         * modules/unistr/u32-strmblen-tests: Likewise.
33475         * modules/unistr/u32-strmbtouc-tests: Likewise.
33476         * modules/unistr/u32-strncat-tests: Likewise.
33477         * modules/unistr/u32-strncmp-tests: Likewise.
33478         * modules/unistr/u32-strncpy-tests: Likewise.
33479         * modules/unistr/u32-strnlen-tests: Likewise.
33480         * modules/unistr/u32-to-u16-tests: Likewise.
33481         * modules/unistr/u32-to-u8-tests: Likewise.
33482         * modules/unistr/u32-uctomb-tests: Likewise.
33483         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33484         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33485         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33486         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33487         * modules/uniwidth/u8-strwidth-tests: Likewise.
33488         * modules/uniwidth/u8-width-tests: Likewise.
33489         * modules/uniwidth/u16-strwidth-tests: Likewise.
33490         * modules/uniwidth/u16-width-tests: Likewise.
33491         * modules/uniwidth/u32-strwidth-tests: Likewise.
33492         * modules/uniwidth/u32-width-tests: Likewise.
33493         * modules/uniwidth/width-tests: Likewise.
33494
33495 2010-05-18  Richard Jones  <rjones@redhat.com>
33496
33497         doc: users.txt: list hivex
33498         * users.txt: Add hivex.
33499
33500 2010-05-18  Richard Jones  <rjones@redhat.com>
33501
33502         doc: users.txt: list febootstrap
33503         * users.txt: Add febootstrap.
33504
33505 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33506
33507         bootstrap: fix an error when gnulib is not used as a git submodule
33508         * build-aux/bootstrap (gnulib_path): If its length is zero then
33509         assign "gnulib" to it.
33510         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33511
33512 2010-05-16  Bruno Haible  <bruno@clisp.org>
33513
33514         Avoid autoconf warnings about AM_ICONV.
33515         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33516         2.64.
33517
33518 2010-05-16  Bruno Haible  <bruno@clisp.org>
33519
33520         absolute-header: Make the macro usable in more situations.
33521         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33522         from gl_ABSOLUTE_HEADER.
33523         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33524
33525 2010-05-16  James Youngman  <jay@gnu.org>
33526
33527         doc: update users.txt
33528         * users.txt: Add CSSC.
33529
33530 2010-05-16  Jim Meyering  <meyering@redhat.com>
33531
33532         init.sh: fix an error in the previous change; add more comments
33533         * tests/init.sh: Compare exit code in loop against 9, not 2.
33534         Patch by Bruno Haible.
33535         Make the two tests more similar by adding an empty "then" clause.
33536         Add comments.
33537
33538         init.sh: avoid unnecessary shell re-exec
33539         * tests/init.sh: Improve the re-exec-required check to first test the
33540         current shell.  If it passes the test, do not search for a shell that
33541         does pass, and do not re-exec.  This test is particularly contorted to
33542         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33543         of $(...) evokes a syntax error and causes immediate shell exit with
33544         status 2.  Bruno Haible reported that the re-exec made it impossible
33545         to single-step through any init.sh-using script.
33546
33547 2010-05-16  Bruno Haible  <bruno@clisp.org>
33548
33549         Fix collision between gnulib's and libintl's printf replacements.
33550         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33551         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33552         (printf): When using GNU C, map the __printf__ function to rpl_printf
33553         via __asm__. When not using GNU C, define rpl_printf instead of
33554         __printf__.
33555         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33556         commit.
33557         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33558         commit.
33559         * m4/asm-underscore.m4: New file.
33560         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33561         * modules/stdio (Files): Add m4/asm-underscore.m4.
33562         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33563         Reported by Ben Pfaff.
33564
33565 2010-05-16  Bruno Haible  <bruno@clisp.org>
33566
33567         verify: Avoid skipping the test on openSUSE 11.0.
33568         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33569
33570 2010-05-13  Bruno Haible  <bruno@clisp.org>
33571
33572         Avoid useless warnings from G++.
33573         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33574         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33575         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33576
33577 2010-05-11  Jim Meyering  <meyering@redhat.com>
33578
33579         maint.mk: tweak preceding change
33580         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33581         regexps tighter by anchoring at EOL, and make the new group "shy"
33582         for slightly decreased overhead.
33583
33584 2010-05-11  Eric Blake  <eblake@redhat.com>
33585
33586         maint.mk: gnulib doesn't guarantee NSIG
33587         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33588
33589 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33590
33591         test-pwrite.c: Remove unused variable declaration.
33592         * tests/test-pwrite.c (main): Remove read_buf declaration.
33593
33594         Remove useless test-pwrite.sh file.
33595         * tests/test-pwrite.sh: Delete file.
33596         * modules/pwrite-tests: Remove references.
33597         Reported by Bruno Haible.
33598
33599 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33600
33601         init.sh: fix a typo
33602         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33603
33604 2010-05-10  Jim Meyering  <meyering@redhat.com>
33605
33606         maint.mk: avoid using a temporary file in the always-defined-macros check
33607         * top/maint.mk (.re-defmac): Remove rule.
33608         (gl_trap_): Remove definition.
33609         (sc_prohibit_always-defined_macros): Rewrite not to create and
33610         depend on a temporary file.  Instead, depend on GNU grep's ability
33611         to read a list of regular expressions from stdin when given "-f -".
33612
33613 2010-05-09  Bruno Haible  <bruno@clisp.org>
33614
33615         Update to GNU gettext 0.18, part 1.
33616         * m4/gettext.m4: Update to GNU gettext 0.18.
33617         * m4/intl.m4: Likewise.
33618         * m4/po.m4: Likewise.
33619         * modules/gettext (Files): Add m4/fcntl-o.m4.
33620         (configure.ac): Require gettext infrastructure from version 0.18.
33621
33622 2010-05-09  Jim Meyering  <meyering@redhat.com>
33623
33624         init.sh: enable MALLOC_PERTURB_
33625         * tests/init.sh: Enable glibc's malloc-perturbing option.
33626
33627         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33628         With my recent change in init.sh from the two-line form:
33629             -#   : ${srcdir=.}
33630             -#   . "$srcdir/init.sh"; path_prepend_ .
33631             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33632         I noticed that using the one-line form would cause this test
33633         to fail with a false-positive, or to stop working altogether,
33634         depending on whether help-version changed or all the tests did.
33635         * top/maint.mk (_hv_regex): Remove this definition.
33636         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33637         (_hv_regex_strong): Use a stronger regex to check for conformance.
33638         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33639         Give a separate diagnostic for lack of conforming use.
33640
33641         maint.mk: prohibit definition of symbols defined by gnulib
33642         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33643         definition of symbols defined by gnulib.
33644
33645 2010-05-09  Bruno Haible  <bruno@clisp.org>
33646
33647         acl: Avoid test failure on Cygwin-hosted mingw.
33648         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33649
33650 2010-05-09  Bruno Haible  <bruno@clisp.org>
33651
33652         error: Use system's fcntl function.
33653         * lib/error.c (fcntl): Undefine.
33654
33655 2010-05-09  Jim Meyering  <meyering@redhat.com>
33656
33657         verify: adjust formatting to be more consistent
33658         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33659         argument-list '('s, and after one comma.
33660
33661 2010-05-09  Bruno Haible  <bruno@clisp.org>
33662
33663         error: More reliable output on mingw.
33664         * lib/error.c: Include <windows.h>.
33665         (is_open): New function.
33666         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33667         defined.
33668
33669 2010-05-09  Bruno Haible  <bruno@clisp.org>
33670
33671         vasnprintf: Fix syntax errors in libintl build on mingw.
33672         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33673         pad_ourselves and prec_ourselves after use.
33674
33675 2010-05-08  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/config.charset: Update comments for Cygwin 1.7.
33678         * lib/localcharset.c: Likewise.
33679
33680 2010-05-07  Jim Meyering  <meyering@redhat.com>
33681
33682         init.sh: improve comments
33683         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33684         . "${srcdir=.}/init.sh"; path_prepend_ .
33685         Add a note about path_prepend_ and the alternative of using
33686         TESTS_ENVIRONMENT.
33687
33688 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33689
33690         exclude: Unescape hashed patterns in wildcard mode.
33691         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33692         to the hash list.
33693         * tests/test-exclude8.sh: New test case.
33694         * modules/exclude-tests: Add new test.
33695
33696 2010-05-05  Eric Blake  <eblake@redhat.com>
33697
33698         verify: automate tests
33699         * modules/verify-tests: New module.
33700         * tests/test-verify.sh: New file.
33701         * tests/test-verify.c: Guard each negative test with a unique id.
33702         Also avoid warning about unused left hand of comma expressions.
33703
33704 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33705
33706         Further improvements to verify.h, suggested by Eric Blake.
33707         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33708         the GL_* versions, to avoid collision with OpenGL.
33709         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33710         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33711         than testing merely whether it's defined.
33712
33713         Modify verify.h to pacify gcc -Wredundant_decls.
33714         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33715         These use the prefix "GL_" since they're likely to be useful elsewhere.
33716         We may need to break them out into a different .h file.
33717         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33718         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33719         of verify_function__.
33720
33721 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33722
33723         Tests for module pwrite.
33724         * modules/pwrite-tests: New file.
33725         * tests/test-pwrite.sh: New file.
33726         * tests/test-pwrite.c: New file.
33727
33728         New module pwrite.
33729         * lib/unistd.in.h (pwrite): New declaration.
33730         * lib/pwrite.c: New file, from glibc with modifications.
33731         * m4/pwrite.m4: New file.
33732         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33733         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33734         REPLACE_PWRITE.
33735         * modules/pwrite: New file.
33736         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33737         REPLACE_PWRITE.
33738         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33739         * doc/posix-functions/pwrite.texi: Mention the new module.
33740
33741 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33742
33743         pread: Update documentation.
33744         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33745
33746 2010-05-04  Eric Blake  <eblake@redhat.com>
33747
33748         docs: update cygwin progress
33749         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33750         this bug.
33751         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33752         Added in cygwin 1.7.2.
33753         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33754         Likewise.
33755         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33756         Likewise.
33757         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33758         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33759         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33760         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33761         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33762         Mention nproc module.
33763         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33764         bug in cygwin 1.7.5 addition.
33765         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33766         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33767         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33768         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33769         1.7.5.
33770         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33771         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33772         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33773         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33774         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33775         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33776         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33777         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33778         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33779         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33780         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33781         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33782         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33783         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33784         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33785         Likewise.
33786         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33787         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33788         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33789         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33790         Likewise.
33791         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33792         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33793         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33794         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33795         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33796         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33797         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33798         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33799         Likewise.
33800         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33801         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33802         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33803         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33804         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33805         Likewise.
33806         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33807         Likewise.
33808         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33809         Likewise.
33810         * doc/glibc-functions/xdrrec_endofrecord.texi
33811         (xdrrec_endofrecord): Likewise.
33812         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33813         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33814         Likewise.
33815         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33816         Likewise.
33817
33818 2010-05-04  Jim Meyering  <meyering@redhat.com>
33819
33820         gendocs.sh: make its "-s FILE" option more useful
33821         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33822         $PACKAGE to reflect the probably-different basename of "FILE".
33823
33824 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33825
33826         bootstrap: don't ignore download_po_files failure
33827         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33828         failure.
33829
33830 2010-05-03  Jim Meyering  <meyering@redhat.com>
33831
33832         maint.mk: allow to pass options to gendocs.sh
33833         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33834         (gendocs_options_): New overridable variable.
33835
33836         gnu-web-doc-update: don't ignore configure or build failure
33837         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33838
33839         announce-gen: backslash-escape '@'s in --help output
33840         * build-aux/announce-gen: Fix syntax errors.
33841
33842         maint.mk, announce-gen: allow project-specific announcement mail headers
33843         * top/maint.mk (translation_project_): Define default.
33844         (announcement_Cc_, announcement_mail_headers_): Likewise.
33845         (announcement): Invoke announce-gen with new --mail-headers option.
33846         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33847
33848         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33849         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33850         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33851         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33852         line in the "err2" output file when running "make check" in verbose
33853         mode (i.e., with set -x enabled).
33854
33855 2010-05-03  Bruno Haible  <bruno@clisp.org>
33856
33857         wctob: Fix for weird platforms.
33858         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33859         argument value.
33860
33861 2010-05-03  Jim Meyering  <meyering@redhat.com>
33862
33863         maint.mk: prohibit unwarranted use of <strings.h>
33864         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33865         strings.h in a file that does not also use strcasecmp, strncasecmp,
33866         ffs or ffsll.
33867
33868         maint.mk: remove obsolete comments
33869         * top/maint.mk: Remove stale, commented-out rules.
33870
33871 2010-05-02  Bruno Haible  <bruno@clisp.org>
33872
33873         wcwidth: Declare also when it's aliased.
33874         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33875         macro.
33876
33877 2010-05-02  Bruno Haible  <bruno@clisp.org>
33878
33879         Fix regression from 2010-04-25.
33880         * gnulib-tool (func_modules_transitive_closure): Check the status of
33881         all modules, not only of the tests that are of the form foo-tests where
33882         foo is a module.
33883
33884 2010-05-02  Bruno Haible  <bruno@clisp.org>
33885
33886         wctob: Work around nasty Cygwin 1.7.2 bug.
33887         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33888         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33889
33890 2010-05-01  Bruno Haible  <bruno@clisp.org>
33891
33892         fpurge: Sharper test.
33893         * tests/test-fpurge.c (main): Add one more ftell check.
33894         * modules/fpurge-tests (Depends-on): Add ftell.
33895         Suggested by Eric Blake.
33896
33897 2010-05-01  Bruno Haible  <bruno@clisp.org>
33898
33899         ftello: Another test.
33900         * tests/test-ftello3.c: New file.
33901         * modules/ftello-tests (Files): Add it.
33902         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33903         MOSTLYCLEANFILES.
33904
33905         ftell: Another test.
33906         * tests/test-ftell3.c: New file.
33907         * modules/ftell-tests (Files): Add it.
33908         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33909         MOSTLYCLEANFILES.
33910
33911 2010-05-01  Bruno Haible  <bruno@clisp.org>
33912
33913         ftell, ftello: Work around Solaris bug.
33914         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33915         * lib/ftello.c: Include stdio-impl.h.
33916         (ftello): On Solaris, when _IOWRT is set, compute the result without
33917         looking at _IOREAD.
33918         * modules/ftello (Files): Add lib/stdio-impl.h.
33919         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33920         * doc/posix-functions/ftello.texi: Likewise.
33921         Reported by Eric Blake.
33922
33923 2010-05-01  Bruno Haible  <bruno@clisp.org>
33924
33925         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33926         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33927         the _IOWRT flag is also set.
33928
33929 2010-05-01  Bruno Haible  <bruno@clisp.org>
33930
33931         Fix doc about a HP-UX stdio bug.
33932         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33933         * doc/posix-functions/ftello.texi: Likewise.
33934
33935 2010-05-01  Bruno Haible  <bruno@clisp.org>
33936
33937         lseek test: Fix failure on Solaris.
33938         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33939         output.
33940
33941 2010-04-30  Jim Meyering  <meyering@redhat.com>
33942
33943         bootstrap: don't ignore failure to generate po*/Makevars
33944         * build-aux/bootstrap (with_gettext): Don't ignore failure
33945         to create po/Makevars or runtime-po/Makevars.
33946
33947 2010-04-29  Eric Blake  <eblake@redhat.com>
33948
33949         headers: relax license to LGPLv2+
33950         * modules/fcntl-h (License): Relax license.
33951         * modules/getopt-posix (License): Likewise.
33952         * modules/locale (License): Likewise.
33953         * modules/math (License): Likewise.
33954         * modules/pty (License): Likewise.
33955         * modules/sched (License): Likewise.
33956         * modules/search (License): Likewise.
33957         * modules/spawn (License): Likewise.
33958         * modules/stdarg (License): Likewise.
33959         * modules/sysexits (License): Likewise.
33960
33961 2010-04-29  Jim Meyering  <meyering@redhat.com>
33962
33963         inttypes: relax license to LGPLv2+
33964         * modules/inttypes (License): Relax license.
33965
33966 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33967
33968         * top/maint.mk (indent): Run twice to produce idempotent results.
33969
33970 2010-04-28  Bruno Haible  <bruno@clisp.org>
33971
33972         getdate: Generate getdate.c in the source directory.
33973         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33974         MOSTLYCLEANFILES.
33975         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33976
33977 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33978
33979         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33980         is not declared as a const *; avoid warnings in that case.
33981
33982 2010-04-28  Eric Blake  <eblake@redhat.com>
33983
33984         canonicalize-lgpl: avoid compiler warning
33985         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33986         declaration' / 'extraneous semicolon' warning with some compilers.
33987         Reported by Andreas Gruenbacher.
33988
33989 2010-04-28  Jim Meyering  <meyering@redhat.com>
33990
33991         init.sh: ensure a more reliable exit status when exiting via trap
33992         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33993         Inspired by patches from Dmitry V. Levin.
33994         Also trap on signal 3 (SIGQUIT).
33995
33996 2010-04-27  Bruno Haible  <bruno@clisp.org>
33997
33998         Update doc about utimes().
33999         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34000         'utimens' module.
34001         Reported by Andreas Gruenbacher <agruen@suse.de>.
34002
34003 2010-04-27  Eric Blake  <eblake@redhat.com>
34004
34005         full-read, full-write: relax license
34006         * modules/full-read (License): Drop to LGPLv2+.
34007         * modules/full-write (License): Likewise.
34008         * modules/safe-read (License): Likewise.
34009         * modules/safe-write (License): Likewise.
34010
34011         pthread: mention library for linking
34012         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34013
34014 2010-04-27  Jim Meyering  <meyering@redhat.com>
34015
34016         maint.mk: fix a bug introduced in last change
34017         * top/maint.mk (gl_assured_headers_): Now that all names are on
34018         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34019         is not anchored to end of word, it should be adequate.
34020
34021         maint.mk: avoid side-effect in latest syntax-check
34022         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34023         to run commands via $(shell...), and hence to incur cost only when
34024         the new rule is actually run.
34025
34026         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34027         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34028         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34029         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34030         (gl_assured_headers_, az_, AZ_): Define.
34031         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34032
34033 2010-04-26  Jim Meyering  <jim@meyering.net>
34034             Bruno Haible  <bruno@clisp.org>
34035
34036         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34037         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34038         Prompted by an exchange with Gilles Espinasse.
34039
34040 2010-04-26  Jim Meyering  <meyering@redhat.com>
34041
34042         git-version-gen: aesthetic tweak
34043         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34044         so that the command remains on a single line.
34045
34046 2010-04-26  Eric Blake  <eblake@redhat.com>
34047
34048         git-version-gen: allow use on EBCDIC hosts
34049         * build-aux/git-version-gen (dirty): Use literal rather than tying
34050         ourselves to ascii.
34051         Reported by Steve Goetze.
34052
34053 2010-04-25  Bruno Haible  <bruno@clisp.org>
34054
34055         netdb: Add support for GNULIB_POSIXCHECK.
34056         * lib/netdb.in.h: Include warn-on-use.h.
34057         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34058         functions are used when GNULIB_POSIXCHECK is defined and the
34059         getaddrinfo module is not in use.
34060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34061         freeaddrinfo, gai_strerror, getnameinfo are declared.
34062         * modules/netdb (Depends-on): Add warn-on-use.
34063         (Makefile.am): Include warn-on-use.h in netdb.h.
34064
34065 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34066
34067         build: avoid "make check" failure without .git/ directory
34068         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34069         there is no .git/ directory.
34070
34071 2010-04-25  Bruno Haible  <bruno@clisp.org>
34072
34073         ptsname: Fix misuse of ttyname_r.
34074         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34075         of errno.
34076
34077 2010-04-25  Bruno Haible  <bruno@clisp.org>
34078
34079         ttyname_r: Make it work on Solaris 10.
34080         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34081         if the system function has the POSIX declaration. Test whether the
34082         function fails if the buffer is less than 128 bytes large.
34083         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34084         system's ttyname_r function. Provide a reasonably large buffer.
34085         * modules/ttyname_r (Depends-on): Add extensions.
34086         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34087
34088 2010-04-25  Bruno Haible  <bruno@clisp.org>
34089
34090         Use the 'extensions' module for some more functions on Solaris.
34091         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34092         module.
34093         * doc/posix-functions/ctime_r.texi: Likewise.
34094         * doc/posix-functions/getgrgid_r.texi: Likewise.
34095         * doc/posix-functions/getgrnam_r.texi: Likewise.
34096         * doc/posix-functions/getpwnam_r.texi: Likewise.
34097         * doc/posix-functions/getpwuid_r.texi: Likewise.
34098         * doc/posix-functions/readdir_r.texi: Likewise.
34099         * doc/posix-functions/sigwait.texi: Likewise.
34100         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34101         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34102
34103 2010-04-25  Bruno Haible  <bruno@clisp.org>
34104
34105         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34106         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34107         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34108         * lib/ttyname_r.c: Include <limits.h>.
34109         (ttyname_r): Define using the system's ttyname_r function, if it exists
34110         and not on Solaris.
34111         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34112         set.
34113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34114         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34115         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34116         Reported by Simon Josefsson.
34117
34118 2010-04-25  Bruno Haible  <bruno@clisp.org>
34119
34120         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34121         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34122         * doc/posix-functions/ctime_r.texi: Likewise.
34123         * doc/posix-functions/getgrgid_r.texi: Likewise.
34124         * doc/posix-functions/getgrnam_r.texi: Likewise.
34125         * doc/posix-functions/getlogin_r.texi: Likewise.
34126         * doc/posix-functions/getpwnam_r.texi: Likewise.
34127         * doc/posix-functions/getpwuid_r.texi: Likewise.
34128         * doc/posix-functions/readdir_r.texi: Likewise.
34129         * doc/posix-functions/sigwait.texi: Likewise.
34130         * doc/posix-functions/ttyname_r.texi: Likewise.
34131         Reported by Simon Josefsson.
34132
34133 2010-04-25  Bruno Haible  <bruno@clisp.org>
34134
34135         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34136         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34137         also to --create-testdir.
34138         (func_acceptable): Don't consider the status of *-tests modules here.
34139         (func_modules_transitive_closure): Consider it here, before including a
34140         test module.
34141         (func_import, func_create_testdir): Set inc_all_direct_tests,
34142         inc_all_indirect_tests.
34143         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34144         --create-testdir and --create-megatestdir.
34145
34146 2010-04-25  Bruno Haible  <bruno@clisp.org>
34147
34148         gnulib-tool: Add --without-*-tests options.
34149         * gnulib-tool (func_usage): Document the --without-*-tests options.
34150         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34151         excl_unportable_tests): New variables.
34152         Fail if they are specified with --import or --update.
34153         (func_acceptable): Respect the excl_*_tests variables.
34154         (func_import): Set the excl_*_tests variables to empty.
34155
34156 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34157             Bruno Haible  <bruno@clisp.org>
34158
34159         Work around a MacOS X 10.4 bug with openpty.
34160         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34161         * tests/test-openpty.c (main): Close the master side explicitly.
34162
34163 2010-04-25  Bruno Haible  <bruno@clisp.org>
34164
34165         strnlen: Fix a C++ test error on MacOS X and Solaris.
34166         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34167         the function is not declared.
34168         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34169         Simon Josefsson.
34170
34171 2010-04-24  Bruno Haible  <bruno@clisp.org>
34172
34173         Avoid a gcc warning.
34174         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34175         of correct type for %08lx directive.
34176         Reported by Eric Blake.
34177
34178 2010-04-24  Bruno Haible  <bruno@clisp.org>
34179
34180         vasnprintf: Correct errno value in case of out-of-memory.
34181         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34182         or sprintf. Use the errno value from SNPRINTF or sprintf.
34183         Reported by Ian Beckwith <ianb@erislabs.net>.
34184
34185 2010-04-24  Bruno Haible  <bruno@clisp.org>
34186
34187         ansi-c++-opt: Find correct compiler when cross-compiling.
34188         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34189         AC_CHECK_PROGS.
34190         Reported by Simon Josefsson.
34191
34192 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34193
34194         vc-list-files: Add support for subversion
34195         * build-aux/vc-list-files: Use "svn list" to generate the list of
34196         files controlled by subversion.
34197
34198 2010-04-23  Jim Meyering  <meyering@redhat.com>
34199
34200         vc-list-files tests: convert to use init.sh
34201         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34202         path_prepend_.
34203         Use Exit, not exit.
34204         Use skip_ rather than open coding it.
34205         Remove trap set-up and compare definitions.
34206         * tests/test-vc-list-files-git.sh: Likewise.
34207         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34208
34209 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34210
34211         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34212         backup files.
34213
34214 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34215
34216         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34217
34218 2010-04-20  Eric Blake  <eblake@redhat.com>
34219
34220         tests: be robust to ignored SIGPIPE
34221         * tests/test-select-in.sh: Consume all output.
34222         * tests/test-lseek.sh: Check correct exit status, while avoiding
34223         EPIPE.
34224
34225 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34226             Bruno Haible  <bruno@clisp.org>
34227
34228         visibility: Don't use -fvisibility if it leads to a warning.
34229         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34230         yes, don't pretend that visibility works if it leads to a warning.
34231         Reported by Mike Gran <spk121@yahoo.com>.
34232
34233 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34234
34235         * build-aux/bootstrap: Use "git -h" for testing for supported options
34236         instead of "git --help".  The short-form option only shows a summary,
34237         and doesn't layout the full man page.  Grep for the full option name
34238         in the summary, too.
34239
34240 2010-04-19  Bruno Haible  <bruno@clisp.org>
34241
34242         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34243         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34244         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34245         mention of RELOCATABLE_STRIP.
34246         Reported by Sylvain Beucler <beuc@beuc.net>.
34247
34248 2010-04-19  Bruno Haible  <bruno@clisp.org>
34249
34250         * lib/diffseq.h: Fix typo in comment.
34251         Reported by Eric Blake.
34252
34253 2010-04-19  Bruno Haible  <bruno@clisp.org>
34254
34255         ioctl: Move autoconf macro to a .m4 file.
34256         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34257         * modules/ioctl (Files): Add it.
34258         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34259         Reported by Ian Beckwith <ianb@erislabs.net>.
34260
34261 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34262             Bruno Haible  <bruno@clisp.org>
34263
34264         diffseq: Accommodate use-case with abstract arrays.
34265         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34266         is not defined.
34267         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34268         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34269
34270 2010-04-18  Bruno Haible  <bruno@clisp.org>
34271
34272         * doc/posix-headers/stdbool.texi: More precise wording.
34273
34274 2010-04-17  Jim Meyering  <meyering@redhat.com>
34275
34276         maint.mk: use gnu-style indentation in an embedded perl script
34277         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34278         Rename variable: s/two/last_two_bytes/
34279
34280 2010-04-16  Eric Blake  <eblake@redhat.com>
34281
34282         test-stdbool: skip test that fails with Solaris CC
34283         * tests/test-stdbool.c (f): Skip test that causes compilation
34284         error under buggy C++ compiler.
34285         * lib/stdbool.in.h: Document the limitation.
34286         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34287
34288         setenv: allow compilation with C++
34289         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34290         register keyword.
34291
34292         stdint: allow test to pass with C++
34293         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34294
34295         getopt: allow compilation with C++
34296         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34297         struct.
34298         * lib/getopt.c (_getopt_internal_r): Use correct type.
34299         Reported by Dagobert Michelson, via Joel E. Denny.
34300
34301 2010-04-16  Bruno Haible  <bruno@clisp.org>
34302
34303         Override netdb.h always.
34304         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34305         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34306         Reported by Ludovic Courtès <ludo@gnu.org>.
34307
34308 2010-04-15  Bruno Haible  <bruno@clisp.org>
34309
34310         openpty: Fix mistake from 2010-03-21.
34311         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34312         Reported by Simon Josefsson.
34313
34314 2010-04-15  Eric Blake  <eblake@redhat.com>
34315
34316         test-forkpty: fix expected signature
34317         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34318         Reported by Simon Josefsson.
34319
34320 2010-04-15  Jim Meyering  <meyering@redhat.com>
34321
34322         maint.mk: texinfo_suffix_re_: correct the default regexp
34323         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34324
34325         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34326         make it configurable via texinfo_suffix_re_.
34327
34328 2010-04-14  Eric Blake  <eblake@redhat.com>
34329
34330         strtok_r: relax license to LGPLv2+
34331         * modules/strtok_r (License): Relax license.
34332         Reported by Matthias Bolte.
34333
34334 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34335
34336         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34337         version 1.4.4 by default instead of requiring the libgcrypt
34338         version used during build.  This makes it possible to use the
34339         application with older but still binary compatible libgcrypt
34340         versions.
34341
34342 2010-04-13  Eric Blake  <eblake@redhat.com>
34343
34344         getopt-gnu: match recent glibc fixes and posix ruling
34345         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34346         '+' handling, when requesting extensions.
34347         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34348         'W;' handling.
34349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34350         * doc/posix-functions/getopt.texi (getopt): Document this.
34351         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34352         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34353         Likewise.
34354
34355         getopt: merge bug fixes from glibc
34356         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34357         diagnostics.  Honor '+:' correctly.  Reject ';'.
34358
34359         getopt-posix: detect MacOS bug
34360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34361         optind when missing a required argument.
34362         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34363         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34364         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34365         Likewise.
34366
34367         getopt-posix: avoid spurious failure on Solaris
34368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34369         an indicator that setting optind=1 is sufficient for reset.
34370
34371         getopt-posix: avoid spurious failure on FreeBSD
34372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34373         in POSIX mode, since the m4 test uses it.
34374
34375         gnulib-tool: silence warning on BSD sh
34376         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34377
34378 2010-04-13  Jim Meyering  <meyering@redhat.com>
34379
34380         doc: users.txt: GNU patch now uses gnulib
34381         * users.txt: Add patch.
34382
34383 2010-04-12  Jim Meyering  <meyering@redhat.com>
34384
34385         maint.mk: generate more concise timing data for syntax-check rules
34386         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34387         " done" from each line that reports a syntax-check test duration.
34388
34389 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34390
34391         git-version-gen: use "git update-index..." rather than "git status"
34392         * build-aux/git-version-gen: Use git update-index --refresh, not
34393         "git status".  With some versions of git, "git status" would fail
34394         to update the index and result in an unwarranted "-dirty" suffix.
34395
34396 2010-04-11  Jim Meyering  <meyering@redhat.com>
34397
34398         openat: correct formatting (no semantic change)
34399         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34400         Suggested by Bruno Haible.
34401
34402 2010-04-11  Bruno Haible  <bruno@clisp.org>
34403
34404         Stricter declaration checking in testdirs.
34405         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34406         If for_tests is true, augment AM_CPPFLAGS to define
34407         GNULIB_STRICT_CHECKING.
34408         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34409         GNULIB_STRICT_CHECKING is defined, verify that the function is
34410         declared.
34411
34412 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34413             Bruno Haible  <bruno@clisp.org>
34414
34415         libunistring: Improve configure output.
34416         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34417         Don't say "consider installing GNU libunistring" when checking again
34418         with libiconv.
34419
34420 2010-04-11  Bruno Haible  <bruno@clisp.org>
34421
34422         libunistring: Correct value of $LTLIBUNISTRING.
34423         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34424         correct the value of $LTLIBUNISTRING.
34425
34426 2010-04-11  Bruno Haible  <bruno@clisp.org>
34427
34428         havelib: Add static libraries to LIBS in the right order.
34429         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34430         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34431
34432 2010-04-11  Bruno Haible  <bruno@clisp.org>
34433
34434         libunistring: Detect libunistring also when it depends on libiconv.
34435         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34436         the second AC_LIB_HAVE_LINKFLAGS invocation.
34437
34438 2010-04-11  James Youngman  <jay@gnu.org>
34439
34440         close-stream: declare local scalars to be "const"
34441         * lib/close-stream.c (close_stream): Make boolean variables const
34442         to document the fact that we set but do not change them.
34443
34444 2010-04-11  Bruno Haible  <bruno@clisp.org>
34445
34446         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34447
34448 2010-04-11  Jim Meyering  <meyering@redhat.com>
34449
34450         maint.mk: don't include dist-check.mk
34451         * top/maint.mk: Remove bogus include directive.
34452
34453         maint.mk: improve empty-line-at-EOF check
34454         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34455         solution, rather than tail+Perl-based one.  The latter would read
34456         a few kilobytes from the end of each file, and did not handle empty
34457         files properly.
34458
34459         maint.mk: print the elapsed time for each syntax-check rule
34460         * top/maint.mk (sc_m_rules_): Save start time in a file.
34461         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34462         (local-check): Interpose the .z rules
34463
34464 2010-04-11  Jim Meyering  <meyering@redhat.com>
34465
34466         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34467         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34468         empty file with one that ends in an empty line.
34469
34470 2010-04-10  Bruno Haible  <bruno@clisp.org>
34471
34472         mkdir: Make it work on mingw64.
34473         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34474         * lib/mkdir.c: Update comment.
34475         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34476
34477 2010-04-10  Bruno Haible  <bruno@clisp.org>
34478
34479         Don't override improved macro from newer autoconf.
34480         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34481         autoconf >= 2.62.
34482         Reported by Joel E. Denny <jdenny@clemson.edu>.
34483
34484 2010-04-10  Jim Meyering  <meyering@redhat.com>
34485
34486         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34487         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34488
34489         maint.mk: correct a diagnostic
34490         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34491         in diagnostic; now use $prohibit.
34492
34493 2010-04-10  Bruno Haible  <address@hidden>
34494
34495         fchownat: Fix a C++ test error on Solaris 8.
34496         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34497         the function does not exist.
34498
34499 2010-04-10  Bruno Haible  <bruno@clisp.org>
34500
34501         vasnprintf: Add more tests.
34502         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34503         (test_function): Test converting an invalid wide string.
34504
34505         vasnprintf: Correct handling of unconvertible wide string arguments.
34506         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34507         VASNPRINTF.
34508         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34509         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34510         smaller than the expected maximum need for the directive. Set errno to
34511         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34512         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34514         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34515         * modules/vasnprintf (Files): Add m4/printf.m4.
34516         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34517
34518 2010-04-10  Bruno Haible  <bruno@clisp.org>
34519
34520         vasnprintf: Fix crash in %ls directive.
34521         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34522         string is passed as argument to %ls, with no precision and no width.
34523         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34524
34525 2010-04-10  Bruno Haible  <bruno@clisp.org>
34526
34527         vasnprintf: Fix multiple test failures on mingw.
34528         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34529         _snprintf, or snwprintf, not _snwprintf.
34530
34531 2010-04-10  Bruno Haible  <bruno@clisp.org>
34532
34533         write: Fix a C++ test error on mingw.
34534         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34535
34536 2010-04-10  Bruno Haible  <bruno@clisp.org>
34537
34538         vasnprintf test: Reduce code duplication.
34539         * tests/test-vasnprintf.c (test_function): New function, extracted from
34540         test_vasnprintf.
34541         (test_vasnprintf, test_asnprintf): Invoke it.
34542
34543 2010-04-10  Bruno Haible  <bruno@clisp.org>
34544
34545         strnlen: Fix warning in C++ mode on MacOS X.
34546         * lib/string.in.h (strnlen): Use the modern idiom.
34547         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34548         defining strnlen as a macro already in <config.h>.
34549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34550         REPLACE_STRNLEN.
34551         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34552         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34553
34554 2010-04-08  James Youngman  <jay@gnu.org>
34555
34556         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34557         the example.
34558
34559 2010-04-09  Jim Meyering  <meyering@redhat.com>
34560
34561         maint.mk: print better diagnostic when there is no $(_hv_file)
34562         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34563         announce that when $(_hv_file) (aka help-version) does not exist.
34564
34565         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34566         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34567         not try to interpret its random input bytes.  Jarno Rajahalme reported
34568         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34569         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34570         (mktempd_): Likewise, just in case.
34571
34572         ftruncate: add two years to projected module removal date: 2012
34573         * m4/ftruncate.m4: Adjust comments.
34574
34575         ftruncate: mark module as obsolete; even MinGW provides it, now
34576         * modules/ftruncate (Status): Obsolete.
34577         (Notice): Say that.
34578         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34579         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34580
34581 2010-04-08  Bruno Haible  <bruno@clisp.org>
34582
34583         Fix side effects from tests-related modules.
34584         * modules/dprintf-posix (Comment): New section.
34585         * modules/fprintf-posix (Comment): Likewise.
34586         * modules/obstack-printf-posix (Comment): Likewise.
34587         * modules/printf-posix (Comment): Likewise.
34588         * modules/snprintf-posix (Comment): Likewise.
34589         * modules/sprintf-posix (Comment): Likewise.
34590         * modules/vasnprintf-posix (Comment): Likewise.
34591         * modules/vasprintf-posix (Comment): Likewise.
34592         * modules/vdprintf-posix (Comment): Likewise.
34593         * modules/vfprintf-posix (Comment): Likewise.
34594         * modules/vprintf-posix (Comment): Likewise.
34595         * modules/vsnprintf-posix (Comment): Likewise.
34596         * modules/vsprintf-posix (Comment): Likewise.
34597         * modules/xprintf-posix (Comment): Likewise.
34598         * modules/xvasprintf-posix (Comment): Likewise.
34599         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34600         * modules/floorf-tests (Depends-on): Likewise.
34601         * modules/round-tests (Depends-on): Likewise.
34602         * modules/roundf-tests (Depends-on): Likewise.
34603         * modules/trunc-tests (Depends-on): Likewise.
34604         * modules/truncf-tests (Depends-on): Likewise.
34605         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34606         'fprintf-posix' module is not present.
34607         * tests/test-floorf2.c (check): Likewise.
34608         * tests/test-trunc2.c (check): Likewise.
34609         * tests/test-truncf2.c (check): Likewise.
34610         * tests/test-round2.c (equal): Likewise.
34611         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34612
34613 2010-04-07  Karl Berry  <karl@gnu.org>
34614
34615         * config/srclist.txt,
34616         * config/srclistvars.sh,
34617         * config/srclist-update: doc fixes.
34618
34619 2010-04-07  Jim Meyering  <meyering@redhat.com>
34620
34621         maint.mk: add a PATH crosschecking syntax-check rule
34622         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34623         Useful if you use a test like the one in help-version (coreutils,
34624         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34625         printed by prog --version.
34626
34627 2010-04-06  Bruno Haible  <bruno@clisp.org>
34628
34629         Fix link error on mingw.
34630         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34631         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34632
34633 2010-04-06  Bruno Haible  <bruno@clisp.org>
34634
34635         Assume rmdir exists.
34636         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34637
34638 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34639
34640         doc: update users.txt
34641         * users.txt: Add gcal.
34642
34643 2010-04-06  Jim Meyering  <meyering@redhat.com>
34644
34645         init.sh: simply unset TMPDIR rather than risking env -i
34646         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34647         although it probably works fine on all Unix-based systems, some
34648         systems (Cygwin?) cannot tolerate a totally cleared environment.
34649         Suggestion from Eric Blake.
34650
34651 2010-04-06  Jim Meyering  <meyering@redhat.com>
34652
34653         init.sh: portability fix: use env's POSIX-specified -i option not -u
34654         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34655         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34656
34657 2010-04-05  Bruno Haible  <bruno@clisp.org>
34658
34659         btowc: Work around Cygwin 1.7.2 bug.
34660         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34661         does not map NUL to 0.
34662         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34663
34664 2010-04-05  Bruno Haible  <bruno@clisp.org>
34665
34666         Make the multithread modules work on Cygwin 1.7.2.
34667         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34668         imported symbols can be declared weak, so that it returns "no" on
34669         Cygwin 1.7.2.
34670
34671 2010-04-05  Bruno Haible  <bruno@clisp.org>
34672
34673         Use the module 'strncat'.
34674         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34675
34676         Tests for module 'strncat'.
34677         * modules/strncat-tests: New file.
34678         * tests/test-strncat.c: New file.
34679
34680         New module 'strncat'.
34681         * lib/string.in.h (strncat): New declaration.
34682         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34683         * m4/strncat.m4: New file, based on m4/memchr.m4.
34684         * modules/strncat: New file.
34685         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34686         is declared.
34687         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34688         REPLACE_STRNCAT.
34689         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34690         REPLACE_STRNCAT.
34691         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34692         module.
34693         * tests/test-string-c++.cc: Check signature of strncat.
34694
34695 2010-04-05  Jim Meyering  <meyering@redhat.com>
34696
34697         xstrtoumax-tests: convert to use init.sh
34698         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34699         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34700         Use Exit, not exit.
34701         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34702
34703         xstrtoimax-tests: convert to use init.sh
34704         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34705         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34706         Use Exit, not exit.
34707         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34708
34709 2010-04-05  Bruno Haible  <bruno@clisp.org>
34710
34711         sys_socket: Avoid #define replacements in C++ mode.
34712         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34713         warning to the function if possible, rather than #defining the symbol
34714         to a dysfunctional alias.
34715
34716 2010-04-05  Bruno Haible  <bruno@clisp.org>
34717
34718         fseeko: Fix C++ test error on mingw.
34719         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34720         gl_FUNC_FSEEKO.
34721         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34722         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34723         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34724         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34725
34726 2010-04-05  Bruno Haible  <bruno@clisp.org>
34727
34728         duplocale: Improve test output.
34729         * tests/test-duplocale.c (main): Print reason for skipped test.
34730
34731 2010-04-05  Bruno Haible  <bruno@clisp.org>
34732
34733         Assume rmdir exists.
34734         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34735         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34736
34737 2010-04-05  Bruno Haible  <bruno@clisp.org>
34738
34739         Fix link error on Solaris 8 with cc.
34740         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34741
34742 2010-04-05  Bruno Haible  <bruno@clisp.org>
34743
34744         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34745         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34746
34747 2010-04-05  Bruno Haible  <bruno@clisp.org>
34748
34749         vasprintf: Update documentation.
34750         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34751
34752 2010-04-05  Bruno Haible  <bruno@clisp.org>
34753
34754         ptsname: Improve test.
34755         * tests/test-ptsname.c (main): Also try the various master names of BSD
34756         systems.
34757
34758 2010-04-05  Bruno Haible  <bruno@clisp.org>
34759
34760         memchr: Avoid a possible C++ test error.
34761         * lib/string.in.h (memchr): Provide declaration if function is missing.
34762         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34763         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34765         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34766
34767 2010-04-05  Bruno Haible  <bruno@clisp.org>
34768
34769         strtok_r: Improve idiom.
34770         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34771         AC_LIBOBJ is used.
34772
34773 2010-04-05  Bruno Haible  <bruno@clisp.org>
34774
34775         strdup: Improve idiom.
34776         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34777         AC_LIBOBJ is used.
34778         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34779         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34780         when AC_LIBOBJ is used.
34781
34782 2010-04-05  Bruno Haible  <bruno@clisp.org>
34783
34784         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34785         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34786         don't set REPLACE_MBSINIT to 1.
34787         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34788         don't set REPLACE_MBRTOWC to 1.
34789         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34790         exist, don't set REPLACE_MBSRTOWCS to 1.
34791         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34792         exist, don't set REPLACE_MBSNRTOWCS to 1.
34793         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34794         don't set REPLACE_WCRTOMB to 1.
34795         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34796         exist, don't set REPLACE_WCSRTOMBS to 1.
34797         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34798         exist, don't set REPLACE_WCSNRTOMBS to 1.
34799
34800 2010-04-05  Bruno Haible  <bruno@clisp.org>
34801
34802         ldexpl: Improve idiom.
34803         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34804         make sure to set HAVE_DECL_LDEXPL to 0.
34805
34806 2010-04-05  Jim Meyering  <meyering@redhat.com>
34807
34808         xstrtol-tests: convert to use init.sh
34809         * modules/xstrtol-tests (Files): Add tests/init.sh.
34810         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34811         Use Exit, not exit.
34812         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34813
34814         atexit-tests: convert to use init.sh
34815         * modules/atexit-tests (Files): Add tests/init.sh.
34816         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34817         Use Exit, not exit.
34818         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34819
34820         init.sh: fix typo
34821         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34822
34823         init.sh: make it easier for a test script to write to the tty, ...
34824         when using automake's parallel-tests mode.
34825         * tests/init.sh (stderr_fileno_): Define overridable variable.
34826         (warn_): New function, to use it.
34827         (fail_, skip_, framework_failure_): Use warn_.
34828
34829 2010-04-04  Bruno Haible  <bruno@clisp.org>
34830
34831         btowc: Avoid warning.
34832         * lib/btowc.c: Include <stdlib.h>.
34833         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34834
34835 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34836             Bruno Haible  <bruno@clisp.org>
34837
34838         wchar: Port to NetBSD 1.5.
34839         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34840         * lib/wctype.in.h (WEOF): Likewise.
34841
34842 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34843             Bruno Haible  <bruno@clisp.org>
34844
34845         Port extended stdio to NetBSD 1.5.
34846         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34847         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34848         older.
34849
34850 2010-04-04  Bruno Haible  <bruno@clisp.org>
34851
34852         string: Remove unused substitution.
34853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34854         HAVE_DECL_STRERROR.
34855         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34856
34857 2010-04-04  Bruno Haible  <bruno@clisp.org>
34858
34859         strtod: Avoid a possible C++ test error.
34860         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34861         set REPLACE_STRTOD.
34862
34863 2010-04-04  Bruno Haible  <bruno@clisp.org>
34864
34865         strerror: Update documentation.
34866         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34867
34868 2010-04-04  Bruno Haible  <bruno@clisp.org>
34869
34870         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34871         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34872         _GL_CXXALIAS_SYS_CAST.
34873
34874 2010-04-04  Bruno Haible  <bruno@clisp.org>
34875
34876         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34877         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34878         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34879         REPLACE_FREXPL to 1.
34880         * doc/posix-functions/frexpl.texi: Update documentation.
34881
34882 2010-04-04  Bruno Haible  <bruno@clisp.org>
34883
34884         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34885         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34886
34887 2010-04-04  Bruno Haible  <bruno@clisp.org>
34888
34889         Implement nanosleep for native Windows.
34890         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34891
34892 2010-04-04  Bruno Haible  <bruno@clisp.org>
34893
34894         math: Fix some C++ test errors on Solaris 8.
34895         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34896
34897 2010-04-04  Bruno Haible  <bruno@clisp.org>
34898
34899         math: Fix some C++ test errors on Cygwin.
34900         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34901         truncl): Provide declaration if the system does not have it.
34902         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34903         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34904         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34905         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34906         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34907         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34908         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34909         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34910         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34911         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34912         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34913         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34914         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34915         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34916         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34917         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34918         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34919         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34920         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34921         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34922         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34923         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34924
34925 2010-04-04  Bruno Haible  <bruno@clisp.org>
34926
34927         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34928         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34929         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34930         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34931         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34932         * m4/isinf.m4 (gl_ISINF): Likewise.
34933         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34934
34935 2010-04-04  Bruno Haible  <bruno@clisp.org>
34936
34937         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34938         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34939
34940 2010-04-04  Bruno Haible  <bruno@clisp.org>
34941
34942         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34943         * modules/tmpfile (configure.ac): Update.
34944
34945         tmpfile: Fix C++ test error on mingw.
34946         * lib/stdio.in.h (tmpfile): New declaration.
34947         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34948         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34949         * modules/tmpfile (Depends-on): Add stdio.
34950         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34951         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34952         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34953         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34954         REPLACE_TMPFILE.
34955         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34956
34957 2010-04-04  Bruno Haible  <bruno@clisp.org>
34958
34959         ioctl: Fix C++ test error on mingw.
34960         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34961         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34962         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34963
34964 2010-04-03  Bruno Haible  <bruno@clisp.org>
34965
34966         wcwidth: Fix C++ test error on mingw.
34967         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34969         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34970
34971 2010-04-03  Bruno Haible  <bruno@clisp.org>
34972
34973         nanosleep: Fix C++ test error on mingw.
34974         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34975         * lib/time.in.h (nanosleep): Use modern idiom.
34976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34977         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34978         REPLACE_NANOSLEEP to 1.
34979         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34980         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34981
34982 2010-04-03  Bruno Haible  <bruno@clisp.org>
34983
34984         strptime: Fix C++ test error on mingw.
34985         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34986         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34987         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34988         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34989         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34990         not REPLACE_STRPTIME.
34991         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34992         REPLACE_STRPTIME.
34993
34994 2010-04-03  Bruno Haible  <bruno@clisp.org>
34995
34996         timegm: Fix C++ test error on mingw.
34997         * lib/time.in.h (timegm): Use modern idiom.
34998         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34999         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35000         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35001         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35002
35003 2010-04-03  Bruno Haible  <bruno@clisp.org>
35004
35005         timegm: Assume declaration if function exists.
35006         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35007         if it exists. Don't clobber ac_cv_func_timegm.
35008
35009 2010-04-03  Bruno Haible  <bruno@clisp.org>
35010
35011         time_r: Fix C++ test error on mingw.
35012         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35013         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35014         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35015         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35016         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35017
35018 2010-04-03  Bruno Haible  <bruno@clisp.org>
35019
35020         time_r: Minor updates.
35021         * modules/time_r (Description): Mention the provided functions.
35022         * lib/time_r.c: Don't include <string.h>.
35023         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35024         * doc/posix-functions/localtime_r.texi: Likewise.
35025
35026 2010-04-03  Bruno Haible  <bruno@clisp.org>
35027
35028         time: Fix regression introduced on 2010-03-08.
35029         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35030         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35031
35032 2010-04-03  Jim Meyering  <meyering@redhat.com>
35033
35034         maint.mk: don't silently disable project-specific syntax-check rules
35035         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35036         that they need to convert their project-specific syntax-check rules
35037         to use the new _sc_search_regexp.
35038
35039 2010-04-03  Bruno Haible  <bruno@clisp.org>
35040
35041         fchdir: Fix regression introduced on 2010-03-08.
35042         * lib/unistd.in.h (fchdir): Fix declaration.
35043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35045         REPLACE_FCHDIR.
35046         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35047         REPLACE_FCHDIR.
35048
35049 2010-04-03  Bruno Haible  <bruno@clisp.org>
35050
35051         getpagesize: Fix C++ test error on mingw.
35052         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35053         system does not declare the function.
35054         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35055         declared.
35056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35057         HAVE_DECL_GETPAGESIZE.
35058         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35059
35060 2010-04-03  Bruno Haible  <bruno@clisp.org>
35061
35062         stdio: Make C++ tests work on mingw.
35063         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35064         does not declare the function.
35065
35066 2010-04-03  Bruno Haible  <bruno@clisp.org>
35067
35068         ftello: Fix C++ test error on mingw.
35069         * lib/stdio.in.h (ftello): Use modern idiom.
35070         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35071         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35072         is missing and that it needs to be replaced.
35073         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35075         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35076
35077 2010-04-03  Bruno Haible  <bruno@clisp.org>
35078
35079         fseeko: Fix C++ test error on mingw.
35080         * lib/stdio.in.h (fseeko): Use modern idiom.
35081         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35082         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35083         is missing and that it needs to be replaced.
35084         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35086         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35087
35088 2010-04-03  Bruno Haible  <bruno@clisp.org>
35089
35090         mkstemp: Fix C++ test error on mingw.
35091         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35093         function is missing and that it needs to be replaced.
35094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35095         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35096
35097 2010-04-03  Bruno Haible  <bruno@clisp.org>
35098
35099         stpncpy: Fix C++ test error on mingw.
35100         * lib/string.in.h (stpncpy): Use modern idiom.
35101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35102         function is missing and that it needs to be replaced.
35103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35104         REPLACE_STPNCPY.
35105         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35106
35107 2010-04-03  Bruno Haible  <bruno@clisp.org>
35108
35109         sys_stat: Fix C++ test error on mingw.
35110         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35111         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35112
35113 2010-04-03  Bruno Haible  <bruno@clisp.org>
35114
35115         pty: Update doc.
35116         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35117
35118 2010-04-03  Bruno Haible  <bruno@clisp.org>
35119
35120         unistd: Fix C++ test error on mingw.
35121         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35122
35123 2010-04-03  Bruno Haible  <bruno@clisp.org>
35124
35125         Update doc regarding mingw.
35126         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35127         * doc/glibc-functions/login_tty.texi: Likewise.
35128         * doc/glibc-functions/forkpty.texi: Likewise.
35129
35130 2010-04-03  Bruno Haible  <bruno@clisp.org>
35131
35132         stdlib: Avoid compilation failure of c-strtold on mingw.
35133         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35134
35135 2010-04-03  Bruno Haible  <bruno@clisp.org>
35136
35137         locale: Make C++ tests work on Cygwin and mingw.
35138         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35139         cannot provide the function.
35140         Reported by Simon Josefsson.
35141
35142 2010-04-03  Bruno Haible  <bruno@clisp.org>
35143
35144         localename: Port to MacOS X 10.6.
35145         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35146         memory layout of the locales in MacOS X 10.6 as well.
35147         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35148
35149 2010-04-02  Bruno Haible  <bruno@clisp.org>
35150
35151         gnulib-tool: Ensure that long-running tests are executed last.
35152         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35153         running tests after the one for the other tests.
35154
35155 2010-04-02  Bruno Haible  <bruno@clisp.org>
35156
35157         gnulib-tool: Ensure the tests in the main directory are executed first.
35158         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35159         start with the current directory.
35160
35161 2010-04-02  Bruno Haible  <bruno@clisp.org>
35162
35163         Tests for module 'havelib', moved here from GNU gettext.
35164         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35165         modifications.
35166         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35167         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35168         with modifications.
35169         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35170         modifications.
35171         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35172         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35173         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35174         with modifications.
35175         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35176         with modifications.
35177         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35178         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35179         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35180         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35181         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35182         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35183         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35184         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35185         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35186         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35187         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35188         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35189         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35190         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35191         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35192         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35193         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35194         with modifications.
35195         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35196         with modifications.
35197         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35198         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35199         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35200         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35201         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35202         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35203         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35204         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35205         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35206         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35207         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35208         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35209         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35210         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35211         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35212         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35213         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35214         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35215         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35216         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35217         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35218         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35219         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35220         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35221         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35222         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35223         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35224         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35225         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35226         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35227         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35228         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35229         * tests/havelib/rpathx/rpathx.c: New file, from
35230         gettext/autoconf-lib-link.
35231         * tests/havelib/rpathx/Makefile.am: New file, from
35232         gettext/autoconf-lib-link.
35233         * tests/havelib/rpathx/configure.ac: New file, from
35234         gettext/autoconf-lib-link with modifications.
35235         * tests/havelib/rpathy/rpathy.c: New file, from
35236         gettext/autoconf-lib-link.
35237         * tests/havelib/rpathy/Makefile.am: New file, from
35238         gettext/autoconf-lib-link.
35239         * tests/havelib/rpathy/configure.ac: New file, from
35240         gettext/autoconf-lib-link with modifications.
35241         * tests/havelib/rpathz/rpathz.c: New file, from
35242         gettext/autoconf-lib-link.
35243         * tests/havelib/rpathz/Makefile.am: New file, from
35244         gettext/autoconf-lib-link.
35245         * tests/havelib/rpathz/configure.ac: New file, from
35246         gettext/autoconf-lib-link with modifications.
35247         * tests/havelib/rpathlx/usex.c: New file, from
35248         gettext/autoconf-lib-link.
35249         * tests/havelib/rpathlx/Makefile.am: New file, from
35250         gettext/autoconf-lib-link.
35251         * tests/havelib/rpathlx/configure.ac: New file, from
35252         gettext/autoconf-lib-link with modifications.
35253         * tests/havelib/rpathly/usey.c: New file, from
35254         gettext/autoconf-lib-link.
35255         * tests/havelib/rpathly/Makefile.am: New file, from
35256         gettext/autoconf-lib-link.
35257         * tests/havelib/rpathly/configure.ac: New file, from
35258         gettext/autoconf-lib-link with modifications.
35259         * tests/havelib/rpathlz/usez.c: New file, from
35260         gettext/autoconf-lib-link.
35261         * tests/havelib/rpathlz/Makefile.am: New file, from
35262         gettext/autoconf-lib-link.
35263         * tests/havelib/rpathlz/configure.ac: New file, from
35264         gettext/autoconf-lib-link with modifications.
35265         * tests/havelib/rpathlyx/usey.c: New file, from
35266         gettext/autoconf-lib-link.
35267         * tests/havelib/rpathlyx/Makefile.am: New file, from
35268         gettext/autoconf-lib-link.
35269         * tests/havelib/rpathlyx/configure.ac: New file, from
35270         gettext/autoconf-lib-link with modifications.
35271         * tests/havelib/rpathlzyx/usez.c: New file, from
35272         gettext/autoconf-lib-link.
35273         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35274         gettext/autoconf-lib-link.
35275         * tests/havelib/rpathlzyx/configure.ac: New file, from
35276         gettext/autoconf-lib-link with modifications.
35277         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35278         with modifications.
35279
35280 2010-04-02  Bruno Haible  <bruno@clisp.org>
35281
35282         gnulib-tool: Create distributed built sources also for the tests.
35283         * gnulib-tool (func_create_testdir): Also generate distributed built
35284         sources in the tests directory.
35285
35286 2010-04-02  Bruno Haible  <bruno@clisp.org>
35287
35288         gnulib-tool: Obey user's environment variables.
35289         * gnulib-tool (func_create_testdir): When creating built sources,
35290         respect the environment variables for autoconf, automake, etc. given by
35291         the user.
35292
35293 2010-04-02  Bruno Haible  <bruno@clisp.org>
35294
35295         gnulib-tool: Provide the value of --m4-base to modules.
35296         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35297         of gl_m4_base.
35298
35299 2010-04-02  Eric Blake  <eblake@redhat.com>
35300
35301         maint.mk: fix some fallout
35302         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35303         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35304
35305 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35306
35307         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35308         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35309         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35310         (sc_cast_of_x_alloc_return_value): Likewise.
35311         (sc_cast_of_alloca_return_value): Likewise.
35312         (sc_space_tab): Likewise.
35313         (sc_prohibit_atoi_atof): Likewise.
35314         (sc_prohibit_magic_number_exit): Likewise.
35315         (sc_error_exit_success): Likewise.
35316         (sc_file_system): Likewise.
35317         (sc_prohibit_have_config_h): Likewise.
35318         (sc_require_config_h): Likewise.
35319         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35320         (sc_obsolete_symbols): Likewise.
35321         (sc_changelog): Likewise.
35322         (sc_program_name): Likewise.
35323         (sc_the_the): Likewise.
35324         (sc_trailing_blank): Likewise.
35325         (sc_two_space_separator_in_usage): Likewise.
35326         (sc_useless_cpp_parens): Likewise.
35327         (sc_GPL_version): Likewise.
35328         (sc_GFDL_version): Likewise.
35329         (sc_texinfo_acronym): Likewise.
35330         (sc_prohibit_cvs_keyword): Likewise.
35331         (sc_prohibit_stat_st_blocks): Likewise.
35332         (sc_prohibit_S_IS_definition): Likewise.
35333         (sc_redundant_const): Likewise.
35334         (sc_makefile_TAB_only_indentation): Likewise.
35335         (sc_m4_quote_check): Likewise.
35336         (sc_makefile_path_separator_check): Likewise.
35337         (sc_copyright_check): Likewise.
35338         (sc_Wundef_boolean): Likewise.
35339         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35340
35341         maint.mk: match 0 or more whitespace-before-function-call '('
35342         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35343         that have zero or two-and-more spaces between the function name
35344         and the open parenthesis.
35345         (sc_error_message_warn_fatal): Likewise.
35346         (sc_error_message_uppercase): Likewise.
35347         (sc_error_message_period): Likewise.
35348
35349 2010-03-31  Eric Blake  <eblake@redhat.com>
35350
35351         maint.mk: check for [ as well as test
35352         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35353         Based on a libvirt report by Matthias Bolte.
35354
35355         gnumakefile: don't squelch _version output
35356         * top/GNUmakefile (_version): Create one-shot dependency rather
35357         than using $(shell) when version must be regenerated.
35358         (_autoreconf): Run verbosely, by default.
35359
35360         sys_time: avoid compiler warnings
35361         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35362         unconditional, fixing regression from 2010-03-29.
35363         Reported by Simon Josefsson.
35364
35365 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35366
35367         maint.mk: s/_header_without_use/_sc_header_without_use/
35368         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35369         (sc_prohibit_assert_without_use): Use the new name.
35370         (sc_prohibit_close_stream_without_use): Likewise.
35371         (sc_prohibit_getopt_without_use): Likewise.
35372         (sc_prohibit_quotearg_without_use): Likewise.
35373         (sc_prohibit_quote_without_use): Likewise.
35374         (sc_prohibit_long_options_without_use): Likewise.
35375         (sc_prohibit_inttostr_without_use): Likewise.
35376         (sc_prohibit_ignore_value_without_use): Likewise.
35377         (sc_prohibit_error_without_use): Likewise.
35378         (sc_prohibit_xalloc_without_use): Likewise.
35379         (sc_prohibit_hash_without_use): Likewise.
35380         (sc_prohibit_hash_pjw_without_use): Likewise.
35381         (sc_prohibit_safe_read_without_use): Likewise.
35382         (sc_prohibit_argmatch_without_use): Likewise.
35383         (sc_prohibit_canonicalize_without_use): Likewise.
35384         (sc_prohibit_root_dev_ino_without_use): Likewise.
35385         (sc_prohibit_openat_without_use): Likewise.
35386         (sc_prohibit_c_ctype_without_use): Likewise.
35387         (sc_prohibit_signal_without_use): Likewise.
35388         (sc_prohibit_intprops_without_use): Likewise.
35389
35390 2010-03-30  Eric Blake  <eblake@redhat.com>
35391
35392         maint: improve module indicators
35393         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35394         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35395         columns, and avoid extra macro expansion.
35396
35397         fdopendir: work around FreeBSD bug
35398         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35400         * modules/dirent (Makefile.am): Substitute it.
35401         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35402         declaration.
35403         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35404         fix.
35405         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35406
35407 2010-03-29  Bruno Haible  <bruno@clisp.org>
35408
35409         Emit #pragma system_header after the inclusion guard, not before.
35410         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35411         guard that spans the entire file, not before. This enables an
35412         optimization in GCC's preprocessor.
35413         * lib/ctype.in.h: Likewise.
35414         * lib/dirent.in.h: Likewise.
35415         * lib/errno.in.h: Likewise.
35416         * lib/float.in.h: Likewise.
35417         * lib/getopt.in.h: Likewise.
35418         * lib/iconv.in.h: Likewise.
35419         * lib/langinfo.in.h: Likewise.
35420         * lib/locale.in.h: Likewise.
35421         * lib/math.in.h: Likewise.
35422         * lib/netdb.in.h: Likewise.
35423         * lib/netinet_in.in.h: Likewise.
35424         * lib/pty.in.h: Likewise.
35425         * lib/sched.in.h: Likewise.
35426         * lib/se-selinux.in.h: Likewise.
35427         * lib/search.in.h: Likewise.
35428         * lib/spawn.in.h: Likewise.
35429         * lib/stdarg.in.h: Likewise.
35430         * lib/stdint.in.h: Likewise.
35431         * lib/string.in.h: Likewise.
35432         * lib/strings.in.h: Likewise.
35433         * lib/sys_file.in.h: Likewise.
35434         * lib/sys_ioctl.in.h: Likewise.
35435         * lib/sys_time.in.h: Likewise.
35436         * lib/sys_times.in.h: Likewise.
35437         * lib/sys_utsname.in.h: Likewise.
35438         * lib/sys_wait.in.h: Likewise.
35439         * lib/sysexits.in.h: Likewise.
35440         * lib/wctype.in.h: Likewise.
35441
35442 2010-03-28  James Youngman  <jay@gnu.org>
35443
35444         save-cwd: don't leak a file descriptor when the caller execs.
35445         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35446         saved file descriptor.
35447         * modules/save-cwd (Depends-on): Depend on cloexec.
35448
35449 2010-03-29  Bruno Haible  <bruno@clisp.org>
35450
35451         Remove vestiges of fts-lgpl module.
35452         * lib/fts_.h: Assume GNULIB_FTS is 1.
35453         * lib/fts.c: Likewise.
35454         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35455
35456 2010-03-28  Bruno Haible  <bruno@clisp.org>
35457
35458         Fix definition of tests witness macro.
35459         * gnulib-tool (func_import): Fix definition of witness macro.
35460
35461 2010-03-28  Bruno Haible  <bruno@clisp.org>
35462
35463         Fix ioctl's protoype on glibc systems.
35464         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35465         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35466         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35467         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35468         signature. If not, arrange to replace the ioctl function.
35469         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35470         REPLACE_IOCTL.
35471         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35472         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35473         Reported by Ludovic Courtès <ludo@gnu.org>.
35474
35475 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35476
35477         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35478         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35479         made it so grep -r --include=GLOB* ... did not work.
35480
35481 2010-03-26  Jim Meyering  <meyering@redhat.com>
35482             Eric Blake  <eblake@redhat.com>
35483
35484         maint.mk: prohibit use of test's -o and -a operators
35485         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35486
35487 2010-03-28  Bruno Haible  <bruno@clisp.org>
35488
35489         Remove unused GNULIB_XYZ macro definitions.
35490         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35491         invocation.
35492
35493 2010-03-28  Bruno Haible  <bruno@clisp.org>
35494
35495         Mark privileged tests modules.
35496         * modules/idpriv-drop-tests (Status): New section.
35497         * modules/idpriv-droptemp-tests (Status): New section.
35498
35499 2010-03-28  Bruno Haible  <bruno@clisp.org>
35500
35501         Split C++ tests into separate tests modules.
35502         * modules/dirent-c++-tests: New file, extracted from
35503         modules/dirent-tests.
35504         * modules/dirent-tests: Depend on it.
35505         * modules/fcntl-h-c++-tests: New file, extracted from
35506         modules/fcntl-h-tests.
35507         * modules/fcntl-h-tests: Depend on it.
35508         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35509         * modules/glob-tests: Depend on it.
35510         * modules/iconv-h-c++-tests: New file, extracted from
35511         modules/iconv-h-tests.
35512         * modules/iconv-h-tests: Depend on it.
35513         * modules/langinfo-c++-tests: New file, extracted from
35514         modules/langinfo-tests.
35515         * modules/langinfo-tests: Depend on it.
35516         * modules/locale-c++-tests: New file, extracted from
35517         modules/locale-tests.
35518         * modules/locale-tests: Depend on it.
35519         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35520         * modules/math-tests: Depend on it.
35521         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35522         * modules/pty-tests: Depend on it.
35523         * modules/search-c++-tests: New file, extracted from
35524         modules/search-tests.
35525         * modules/search-tests: Depend on it.
35526         * modules/signal-c++-tests: New file, extracted from
35527         modules/signal-tests.
35528         * modules/signal-tests: Depend on it.
35529         * modules/spawn-c++-tests: New file, extracted from
35530         modules/spawn-tests.
35531         * modules/spawn-tests: Depend on it.
35532         * modules/stdio-c++-tests: New file, extracted from
35533         modules/stdio-tests.
35534         * modules/stdio-tests: Depend on it.
35535         * modules/stdlib-c++-tests: New file, extracted from
35536         modules/stdlib-tests.
35537         * modules/stdlib-tests: Depend on it.
35538         * modules/string-c++-tests: New file, extracted from
35539         modules/string-tests.
35540         * modules/string-tests: Depend on it.
35541         * modules/sys_ioctl-c++-tests: New file, extracted from
35542         modules/sys_ioctl-tests.
35543         * modules/sys_ioctl-tests: Depend on it.
35544         * modules/sys_select-c++-tests: New file, extracted from
35545         modules/sys_select-tests.
35546         * modules/sys_select-tests: Depend on it.
35547         * modules/sys_socket-c++-tests: New file, extracted from
35548         modules/sys_socket-tests.
35549         * modules/sys_socket-tests: Depend on it.
35550         * modules/sys_stat-c++-tests: New file, extracted from
35551         modules/sys_stat-tests.
35552         * modules/sys_stat-tests: Depend on it.
35553         * modules/sys_time-c++-tests: New file, extracted from
35554         modules/sys_time-tests.
35555         * modules/sys_time-tests: Depend on it.
35556         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35557         * modules/time-tests: Depend on it.
35558         * modules/unistd-c++-tests: New file, extracted from
35559         modules/unistd-tests.
35560         * modules/unistd-tests: Depend on it.
35561         * modules/wchar-c++-tests: New file, extracted from
35562         modules/wchar-tests.
35563         * modules/wchar-tests: Depend on it.
35564         * modules/wctype-c++-tests: New file, extracted from
35565         modules/wctype-tests.
35566         * modules/wctype-tests: Depend on it.
35567         Reported by Simon Josefsson.
35568
35569 2010-03-28  Bruno Haible  <bruno@clisp.org>
35570
35571         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35572         * gnulib-tool (func_exists_module): New function, extracted from
35573         func_verify_module.
35574         (func_verify_module): Use it.
35575         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35576         'foo' only if 'foo' exists.
35577         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35578         module.
35579
35580 2010-03-28  Bruno Haible  <bruno@clisp.org>
35581
35582         gnulib-tool: Add support for special categories of tests.
35583         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35584         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35585         (func_usage): Document them.
35586         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35587         inc_unportable_tests, inc_all_tests): New variables.
35588         (func_acceptable): Consider these variables.
35589         (func_modules_transitive_closure): Make it work when the 'Status' field
35590         consists of multiple words.
35591         (func_import): Store and restore the values of inc_cxx_tests,
35592         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35593         inc_all_tests in gnulib-comp.m4.
35594         (func_create_testdir): Set inc_all_tests to true.
35595         * doc/gnulib.texi (Extra tests modules): New section.
35596         Suggested by Jim Meyering.
35597
35598 2010-03-28  Bruno Haible  <bruno@clisp.org>
35599
35600         ansi-c++-opt: Allow turning off the C++ build by default.
35601         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35602         gl_CXX_CHOICE_DEFAULT_NO is defined.
35603         Requested by Eric Blake.
35604
35605 2010-03-28  Bruno Haible  <bruno@clisp.org>
35606
35607         unistd: Avoid #define replacements in C++ mode.
35608         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35609         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35610         setsockopt, shutdown, select): In C++, attach a warning to the function
35611         if possible, rather than #defining the symbol to a dysfunctional alias.
35612         Reported by John W. Eaton <jwe@gnu.org>.
35613
35614 2010-03-28  Bruno Haible  <bruno@clisp.org>
35615
35616         Fix link errors on mingw.
35617         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35618         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35619         $(LIBSOCKET).
35620         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35621         $(LIBSOCKET).
35622
35623 2010-03-28  Bruno Haible  <bruno@clisp.org>
35624             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35625
35626         lib-ignore: Determine different options for different compilers.
35627         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35628         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35629         Add comments.
35630         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35631         * NEWS: Mention the change.
35632
35633 2010-03-27  Bruno Haible  <bruno@clisp.org>
35634
35635         Remove unused GNULIB_XYZ macro definitions.
35636         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35637         * modules/fseek (configure.ac): Likewise.
35638         * modules/ioctl (configure.ac): Likewise.
35639         * modules/open (configure.ac): Likewise.
35640         * modules/stdlib-safer (configure.ac): Likewise.
35641
35642 2010-03-27  Bruno Haible  <bruno@clisp.org>
35643
35644         Add a remark about certain modules.
35645         * modules/malloc (Comment): New section.
35646         * modules/realloc (Comment): Likewise.
35647         * modules/sigpipe (Comment): Likewise.
35648
35649 2010-03-27  Bruno Haible  <bruno@clisp.org>
35650
35651         Resolve conflict between the two kinds of module indicators.
35652         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35653         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35654         * modules/canonicalize (configure.ac): Invoke
35655         gl_MODULE_INDICATOR_FOR_TESTS.
35656         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35657         GNULIB_XYZ.
35658         * tests/test-dirent-c++.cc: Likewise.
35659         * tests/test-dirent-safer.c: Likewise.
35660         * tests/test-dup2.c: Likewise.
35661         * tests/test-fchdir.c: Likewise.
35662         * tests/test-fcntl-h-c++.cc: Likewise.
35663         * tests/test-getopt.c: Likewise.
35664         * tests/test-getopt.h: Likewise.
35665         * tests/test-langinfo-c++.cc: Likewise.
35666         * tests/test-locale-c++.cc: Likewise.
35667         * tests/test-math-c++.cc: Likewise.
35668         * tests/test-pty-c++.cc: Likewise.
35669         * tests/test-search-c++.cc: Likewise.
35670         * tests/test-signal-c++.cc: Likewise.
35671         * tests/test-spawn-c++.cc: Likewise.
35672         * tests/test-stdio-c++.cc: Likewise.
35673         * tests/test-stdlib-c++.cc: Likewise.
35674         * tests/test-string-c++.cc: Likewise.
35675         * tests/test-sys_ioctl-c++.cc: Likewise.
35676         * tests/test-sys_select-c++.cc: Likewise.
35677         * tests/test-sys_socket-c++.cc: Likewise.
35678         * tests/test-sys_stat-c++.cc: Likewise.
35679         * tests/test-sys_time-c++.cc: Likewise.
35680         * tests/test-time-c++.cc: Likewise.
35681         * tests/test-unistd-c++.cc: Likewise.
35682         * tests/test-wchar-c++.cc: Likewise.
35683         * tests/uninorm/test-u8-nfc.c: Likewise.
35684         * tests/uninorm/test-u8-nfd.c: Likewise.
35685         * tests/uninorm/test-u8-nfkc.c: Likewise.
35686         * tests/uninorm/test-u8-nfkd.c: Likewise.
35687         * tests/uninorm/test-u16-nfc.c: Likewise.
35688         * tests/uninorm/test-u16-nfd.c: Likewise.
35689         * tests/uninorm/test-u16-nfkc.c: Likewise.
35690         * tests/uninorm/test-u16-nfkd.c: Likewise.
35691         * tests/uninorm/test-u32-nfc.c: Likewise.
35692         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35693         * tests/uninorm/test-u32-nfd.c: Likewise.
35694         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35695         * tests/uninorm/test-u32-nfkc.c: Likewise.
35696         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35697         * tests/uninorm/test-u32-nfkd.c: Likewise.
35698         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35699         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35700
35701 2010-03-27  Bruno Haible  <bruno@clisp.org>
35702
35703         Distinguish two kinds of module indicators.
35704         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35705         gl_MODULE_INDICATOR.
35706         (gl_MODULE_INDICATOR): New macro.
35707         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35708         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35709         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35710         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35711         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35712         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35713         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35714         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35715         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35716         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35717         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35718         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35721         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35722         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35723         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35724         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35725         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35726         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35727         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35728         * modules/cloexec (configure.ac): Likewise.
35729         * modules/getopt-gnu (configure.ac): Likewise.
35730         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35731         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35732         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35733         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35734
35735 2010-03-27  Bruno Haible  <bruno@clisp.org>
35736
35737         New module description field 'Comment'.
35738         * gnulib-tool: New option --extract-comment.
35739         (func_usage): Document it.
35740         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35741         (func_get_comment): New function.
35742         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35743
35744 2010-03-27  Bruno Haible  <bruno@clisp.org>
35745
35746         Addendum to 2010-02-07 commit.
35747         * gnulib-tool (func_usage): Document --extract-applicability option.
35748
35749 2010-03-27  Bruno Haible  <bruno@clisp.org>
35750
35751         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35752         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35753         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35754         rather than link errors.
35755
35756 2010-03-27  Bruno Haible  <bruno@clisp.org>
35757
35758         Avoid side effects from tests-related modules on the compilation of lib.
35759         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35760         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35761         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35762         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35763         macro.
35764         (func_import): Define a witness macro. Assign it a value that depends
35765         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35766         tests-related modules.
35767         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35768         Reported by Jim Meyering.
35769
35770 2010-03-27  Bruno Haible  <bruno@clisp.org>
35771
35772         Factorize common .m4 code.
35773         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35774         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35775         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35776         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35777         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35778         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35779         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35780         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35781         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35782         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35783         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35784         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35785         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35786         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35787         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35788         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35789         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35790         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35792         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35793         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35794         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35795         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35796         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35797         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35798         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35799         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35801         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35802         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35803         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35804         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35805
35806 2010-03-27  Bruno Haible  <bruno@clisp.org>
35807
35808         Fix a compilation error on Cygwin with g++ >= 4.3.
35809         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35810         if it is undefined or if we alias it to chmod.
35811         (lstat): Don't warn about the use of this function if it is undefined
35812         or if we alias it to stat.
35813         Reported by Simon Josefsson.
35814
35815 2010-03-27  Bruno Haible  <bruno@clisp.org>
35816
35817         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35818         * modules/getlogin (configure.ac): Update.
35819
35820         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35821         * modules/getlogin_r (configure.ac): Update.
35822
35823         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35824         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35825         * modules/inet_ntop (configure.ac): Update.
35826
35827         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35828         * modules/inet_pton (configure.ac): Update.
35829
35830         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35831         * modules/mbslen (configure.ac): Update.
35832
35833         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35834         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35835         * modules/forkpty (configure.ac): Update.
35836         * modules/openpty (configure.ac): Update.
35837
35838 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35839
35840         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35841         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35842
35843 2010-03-25  Eric Blake  <eblake@redhat.com>
35844
35845         maint: use pragma consistently across replacement headers
35846         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35847         * lib/dirent.in.h (system_header): Likewise.
35848         * lib/errno.in.h (system_header): Likewise.
35849         * lib/float.in.h (system_header): Likewise.
35850         * lib/getopt.in.h (system_header): Likewise.
35851         * lib/iconv.in.h (system_header): Likewise.
35852         * lib/inttypes.in.h (system_header): Likewise.
35853         * lib/langinfo.in.h (system_header): Likewise.
35854         * lib/locale.in.h (system_header): Likewise.
35855         * lib/math.in.h (system_header): Likewise.
35856         * lib/netdb.in.h (system_header): Likewise.
35857         * lib/netinet_in.in.h (system_header): Likewise.
35858         * lib/pty.in.h (system_header): Likewise.
35859         * lib/sched.in.h (system_header): Likewise.
35860         * lib/se-selinux.in.h (system_header): Likewise.
35861         * lib/search.in.h (system_header): Likewise.
35862         * lib/spawn.in.h (system_header): Likewise.
35863         * lib/stdarg.in.h (system_header): Likewise.
35864         * lib/stdint.in.h (system_header): Likewise.
35865         * lib/string.in.h (system_header): Likewise.
35866         * lib/strings.in.h (system_header): Likewise.
35867         * lib/sys_file.in.h (system_header): Likewise.
35868         * lib/sys_ioctl.in.h (system_header): Likewise.
35869         * lib/sys_socket.in.h (system_header): Likewise.
35870         * lib/sys_times.in.h (system_header): Likewise.
35871         * lib/sys_utsname.in.h (system_header): Likewise.
35872         * lib/sys_wait.in.h (system_header): Likewise.
35873         * lib/sysexits.in.h (system_header): Likewise.
35874         * lib/unistd.in.h (system_header): Likewise.
35875         * lib/wctype.in.h (system_header): Likewise.
35876
35877         arpa/inet: fix mingw compilation warning
35878         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35879         Reported by Matthew Bolte.
35880
35881 2010-03-25  Bruno Haible  <bruno@clisp.org>
35882
35883         Avoid collision between gnulib wrapper and libintl wrapper.
35884         * lib/printf.c (printf): Don't define if a printf wrapper is already
35885         defined in intl/printf.c.
35886         Reported by Michel Boaventura <michel@michelboaventura.com>.
35887
35888 2010-03-25  Bruno Haible  <bruno@clisp.org>
35889
35890         Use ANSI C.
35891         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35892
35893 2010-03-25  Bruno Haible  <bruno@clisp.org>
35894
35895         Minor formatting changes.
35896         * lib/acosl.c: Insert space before function argument list.
35897         * lib/argz.c: Likewise.
35898         * lib/asinl.c: Likewise.
35899         * lib/expl.c: Likewise.
35900         * lib/gen-uni-tables.c: Likewise.
35901         * lib/gettext.h: Likewise.
35902         * lib/glthread/lock.h: Likewise.
35903         * lib/tanl.c: Likewise.
35904         * lib/uniname/uniname.c: Likewise.
35905         * tests/test-idpriv-drop.c: Likewise.
35906         * tests/test-idpriv-droptemp.c: Likewise.
35907         * tests/test-lock.c: Likewise.
35908         * tests/test-tls.c: Likewise.
35909         * lib/argp-help.c: Insert space before function-like macro argument
35910         list.
35911         * lib/memcmp.c: Likewise.
35912         * tests/test-base64.c: Likewise.
35913         * lib/localename.c: Insert space before sizeof's argument list.
35914         * lib/safe-alloc.h: Likewise.
35915         * lib/file-set.h: Insert space before macro argument list.
35916         * tests/test-argp.c: Likewise.
35917         * lib/argp-namefrob.h: Insert space before function parameter list.
35918         * lib/getaddrinfo.c: Likewise.
35919         * lib/netdb.in.h: Likewise.
35920         * lib/parse-duration.h: Likewise.
35921         * lib/parse-duration.c: Likewise.
35922         * lib/poll.c: Likewise.
35923         * lib/select.c: Likewise.
35924         * lib/trim.h: Likewise.
35925         * tests/test-usleep.c: Likewise.
35926         * lib/ldexpl.c: Insert space before function parameter list and before
35927         function argument list.
35928         * lib/logl.c: Likewise.
35929         * lib/sqrtl.c: Likewise.
35930         * lib/trim.c: Likewise.
35931         * lib/cosl.c: Use GNU style indentation. Insert space before function
35932         argument list.
35933         * lib/sinl.c: Likewise.
35934         * lib/tsearch.c: Insert space after 'for'.
35935         Reported by Jim Meyering.
35936
35937 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35938
35939         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35940         config header before grepping, as it's not present before
35941         autoreconf/configure are run.  Reported by Simon Josefsson.
35942
35943 2010-03-23  Bruno Haible  <bruno@clisp.org>
35944
35945         pt_chown: Make it work with automake < 1.11.
35946         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35947         Reported by Simon Josefsson.
35948
35949 2010-03-23  Bruno Haible  <bruno@clisp.org>
35950
35951         pt_chown: Don't depend on GPLed modules.
35952         * lib/pt_chown.c: Don't include idpriv.h.
35953         (main): Don't drop privileges.
35954         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35955         Reported by Simon Josefsson.
35956
35957 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35958
35959         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35960         suggestions from karl@freefriends.org (Karl Berry).
35961
35962 2010-03-22  Eric Blake  <eblake@redhat.com>
35963
35964         gethostname: further tweaks
35965         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35966         are overriding gethostname.
35967         Suggested by Bruno Haible.
35968
35969 2010-03-21  Bruno Haible  <bruno@clisp.org>
35970
35971         Fix comments.
35972         * lib/forkpty.c (rpl_forkpty): Fix comment.
35973         * lib/openpty.c (rpl_openpty): Likewise.
35974         Reported by Eric Blake.
35975
35976 2010-03-22  Eric Blake  <eblake@redhat.com>
35977
35978         gethostname: fix build on mingw
35979         * lib/unistd.in.h (includes): Work around fact that mingw
35980         <winsock2.h> re-includes <unistd.h>, by avoiding any
35981         redeclarations if we are being included by <winsock2.h>.
35982         Reported by Matthias Bolte.
35983
35984 2010-03-21  Bruno Haible  <bruno@clisp.org>
35985
35986         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35987         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35988         modifications.
35989         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35990         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35991         provide the replacement.
35992         * modules/forkpty (Depends-on): Add openpty, login_tty.
35993         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35994         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35995         * doc/glibc-functions/forkpty.texi: More supported platforms.
35996         * config/srclist.txt: Add forkpty.c (commented).
35997
35998 2010-03-21  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36001         (Makefile.am): Verify that PTY_LIB is defined.
36002
36003         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36004
36005 2010-03-21  Bruno Haible  <bruno@clisp.org>
36006
36007         Tests for module 'login_tty'.
36008         * modules/login_tty-tests: New file.
36009         * tests/test-login_tty.c: New file.
36010
36011         New module 'login_tty'.
36012         * lib/login_tty.c: New file.
36013         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36014         * modules/login_tty: New file.
36015         * doc/glibc-functions/login_tty.texi: Mention the new module.
36016
36017 2010-03-21  Bruno Haible  <bruno@clisp.org>
36018
36019         login_tty: Documentation.
36020         * doc/glibc-functions/login_tty.texi: New file.
36021         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36022
36023 2010-03-21  Bruno Haible  <bruno@clisp.org>
36024
36025         pty: Consistent macro naming.
36026         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36027         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36028         * modules/pty (configure.ac): Update.
36029
36030 2010-03-21  Bruno Haible  <bruno@clisp.org>
36031
36032         Tests for openpty: Make stricter.
36033         * tests/test-openpty.c (main): Add test of canonical processing and
36034         erase.
36035         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36036
36037         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36038         * lib/openpty.c (openpty): New replacement function.
36039         * lib/pty.in.h: Include <termios.h>.
36040         (openpty): Update declaration. Add comments.
36041         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36042         is not declared, arrange to provide the replacement. Check for _getpty
36043         and posix_openpt.
36044         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36045         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36046         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36047         * modules/pty-tests (test_pty_c___LDADD): New variable.
36048         * doc/glibc-functions/openpty.texi: More supported platforms.
36049
36050 2010-03-21  Bruno Haible  <bruno@clisp.org>
36051
36052         setenv: Tweaks.
36053         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36054         the test program.
36055         * doc/posix-functions/setenv.texi: Update platforms list.
36056
36057 2010-03-21  Bruno Haible  <bruno@clisp.org>
36058
36059         New module 'unlockpt'.
36060         * lib/unlockpt.c: New file, from glibc with modifications.
36061         * m4/unlockpt.m4: New file.
36062         * modules/unlockpt: New file.
36063         * lib/stdlib.in.h (unlockpt): New declaration.
36064         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36065         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36066         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36067         HAVE_UNLOCKPT.
36068         * doc/posix-functions/unlockpt.texi: Mention the new module.
36069         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36070         * config/srclist.txt: Add unlockpt.c (commented).
36071
36072 2010-03-21  Jim Meyering  <meyering@redhat.com>
36073
36074         maint.mk: prohibit inclusion of "intprops.h" without use
36075         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36076
36077 2010-03-21  Bruno Haible  <bruno@clisp.org>
36078
36079         New module 'grantpt'.
36080         * lib/grantpt.c: New file, from glibc with modifications.
36081         * m4/grantpt.m4: New file.
36082         * modules/grantpt: New file.
36083         * lib/stdlib.in.h (grantpt): New declaration.
36084         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36085         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36086         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36087         HAVE_GRANTPT.
36088         * doc/posix-functions/grantpt.texi: Mention the new module.
36089         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36090         * config/srclist.txt: Add grantpt.c (commented).
36091
36092 2010-03-21  Bruno Haible  <bruno@clisp.org>
36093
36094         New module 'pt_chown'.
36095         * lib/pt_chown.c: New file, from glibc with modifications.
36096         * lib/pty-private.h: New file, from glibc with modifications.
36097         * modules/pt_chown: New file.
36098         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36099
36100 2010-03-21  Bruno Haible  <bruno@clisp.org>
36101
36102         Tests for module 'ptsname'.
36103         * modules/ptsname-tests: New file.
36104         * tests/test-ptsname.c: New file.
36105
36106         New module 'ptsname'.
36107         * lib/ptsname.c: New file, from glibc with modifications.
36108         * m4/ptsname.m4: New file.
36109         * modules/ptsname: New file.
36110         * lib/stdlib.in.h (ptsname): New declaration.
36111         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36112         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36113         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36114         HAVE_PTSNAME.
36115         * doc/posix-functions/ptsname.texi: Mention the new module.
36116         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36117         * config/srclist.txt: Add ptsname.c (commented).
36118
36119 2010-03-21  Bruno Haible  <bruno@clisp.org>
36120
36121         Tests for module 'ttyname_r'.
36122         * modules/ttyname_r-tests: New file.
36123         * tests/test-ttyname_r.c: New file.
36124
36125         New module 'ttyname_r'.
36126         * lib/ttyname_r.c: New file.
36127         * m4/ttyname_r.m4: New file.
36128         * modules/ttyname_r: New file.
36129         * lib/unistd.in.h (ttyname_r): New declaration.
36130         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36131         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36132         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36133         HAVE_TTYNAME_R.
36134         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36135         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36136
36137 2010-03-20  Bruno Haible  <bruno@clisp.org>
36138
36139         signal: Undefine macro definitions in C++ mode.
36140         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36141         sigfillset): Undefine macro definitions from the system header in C++
36142         mode.
36143         Reported by John W. Eaton <jwe@gnu.org>.
36144
36145 2010-03-20  Bruno Haible  <bruno@clisp.org>
36146
36147         Ensure no #include statements inside extern "C" { ... }.
36148         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36149         contain #include statements.
36150         * lib/time.in.h: Likewise.
36151
36152 2010-03-20  Bruno Haible  <bruno@clisp.org>
36153
36154         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36155         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36156         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36157         Reported by John W. Eaton <jwe@gnu.org>.
36158
36159 2010-03-20  Bruno Haible  <bruno@clisp.org>
36160
36161         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36162         Reported by Jim Meyering.
36163
36164 2010-03-20  Bruno Haible  <bruno@clisp.org>
36165
36166         pipe: Set errno upon failure.
36167         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36168         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36169         errno value in error message.
36170
36171 2010-03-20  Bruno Haible  <bruno@clisp.org>
36172             Jim Meyering  <meyering@redhat.com>
36173
36174         lchown: Avoid "unused variable" warning.
36175         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36176
36177 2010-03-20  Bruno Haible  <bruno@clisp.org>
36178
36179         Work around unlink() bug on MacOS X 10.5.6.
36180         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36181         attempting to unlink a parent directory.
36182         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36183         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36184         activate for the replacement function.
36185         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36186
36187 2010-03-20  Bruno Haible  <bruno@clisp.org>
36188
36189         Fix link errors on Solaris 8.
36190         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36191         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36192
36193 2010-03-19  Jim Meyering  <meyering@redhat.com>
36194
36195         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36196         The _LIBC implementation of build_range_exp correctly honors the
36197         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36198         However, the non-_LIBC implementation would ignore that syntax-bit
36199         flag and return REG_ERANGE unconditionally.
36200         This change makes it honor that flag.
36201         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36202         Make two pointer parameters "const".
36203         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36204         (parse_bracket_exp): Update caller.
36205
36206         regex.m4: correct the reversed range endpoint ([b-a]) test
36207         * m4/regex.m4: When requiring that [b-a] evoke failure,
36208         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36209         test pass once again for x86-based systems.
36210
36211 2010-03-19  Bruno Haible  <bruno@clisp.org>
36212
36213         scandir: Fix link error on Solaris 8.
36214         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36215         macros.
36216
36217 2010-03-19  Bruno Haible  <bruno@clisp.org>
36218
36219         getusershell: Fix documentation.
36220         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36221         module.
36222         * doc/glibc-functions/setusershell.texi: Likewise.
36223
36224         getusershell: Provide declaration, missing on Solaris 9.
36225         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36226         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36227         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36228         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36230         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36231         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36232         HAVE_GETUSERSHELL.
36233         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36234
36235 2010-03-19  Bruno Haible  <bruno@clisp.org>
36236
36237         wctype: Provide iswblank function.
36238         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36239         exists and is fine.
36240         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36241         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36242         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36243         * doc/posix-functions/iswblank.texi: Update.
36244
36245 2010-03-19  Bruno Haible  <bruno@clisp.org>
36246
36247         Tests of module 'pty' in C++ mode.
36248         * modules/pty-tests: New file.
36249         * tests/test-pty-c++.cc: New file.
36250         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36251
36252 2010-03-19  Eric Blake  <eblake@redhat.com>
36253
36254         logb: fix documentation
36255         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36256         1.5 declaration bug.
36257
36258         forkpty, openpty: prefer glibc's const-safe prototype
36259         * lib/forkpty.c (rpl_forkpty): New file.
36260         * lib/openpty.c (rpl_openpty): Likewise.
36261         * modules/forkpty (Files): Distribute it.
36262         * modules/openpty (Files): Likewise.
36263         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36264         check...
36265         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36266         replacement for for non-const BSD signature.
36267         * modules/pty (Makefile.am): Substitute witnesses.
36268         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36269         * tests/test-forkpty.c: Update signature check.
36270         * tests/test-openpty.c: Likewise.
36271         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36272         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36273
36274         forkpty, openpty: split functions into new modules
36275         * modules/pty (Makefile.am): Substitute new witnesses.
36276         (Libraries): Move library detection...
36277         * modules/forkpty: ...into new module.
36278         * modules/openpty: Another new module.
36279         * modules/pty-tests: Rename and split...
36280         * modules/forkpty-tests: ...to this...
36281         * modules/openpty-tests: ...and this.
36282         * tests/test-pty.c: Rename and split...
36283         * tests/test-forkpty.c: ...to this...
36284         * tests/test-openpty.c: ...and this.
36285         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36286         (gl_PTY): Split library searching...
36287         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36288         (gl_FORKPTY, gl_OPENPTY): New macros.
36289         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36290         * NEWS: Mention the split.
36291         * MODULES.html.sh (Misc): Document the modules.
36292         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36293         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36294
36295         pty: improve replacement header
36296         * lib/pty.in.h: New file.
36297         * modules/pty (Files): Ship it.
36298         (Makefile.am): Always build replacement.
36299         * m4/pty.m4: Rename...
36300         * m4/pty_h.m4: ...to this.
36301         (gl_PTY): Modernize setting of witness macros; update check of
36302         forkpty to take proper advantage of cache.
36303         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36304
36305         getopt: avoid compiler warning
36306         * lib/getopt.c (attribute_hidden): Remove unused macro.
36307
36308 2010-03-18  Bruno Haible  <bruno@clisp.org>
36309
36310         Fix link errors on Solaris 8.
36311         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36312         * modules/search-tests (test_search_c___LDADD): Likewise.
36313         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36314         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36315         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36316         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36317         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36318         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36319         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36320
36321 2010-03-18  Bruno Haible  <bruno@clisp.org>
36322
36323         Fix bug introduced on 2010-03-14.
36324         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36325         (gl_SPAWN_H): Require it.
36326         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36327         Reported by Simon Josefsson.
36328
36329 2010-03-18  Bruno Haible  <bruno@clisp.org>
36330
36331         Fix typo introduced on 2009-12-31.
36332         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36333         posix_spawn_file_actions_adddup2.
36334
36335 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36336         and Eric Blake  <eblake@redhat.com>
36337
36338         test-vc-list-files-git: make more robust
36339         * tests/test-vc-list-files-git.sh: Unset problematic environment
36340         variables.  Chain commands together.
36341
36342 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36343
36344         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36345         `AC_CHECK_DECL' invocation.
36346
36347 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36348
36349         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36350         appears before executable statements. Suggested by Petr Sumbera
36351         <Petr.Sumbera@Sun.COM>.
36352
36353 2010-03-14  Bruno Haible  <bruno@clisp.org>
36354
36355         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36356         portability problems. Instead use a simpler test.
36357         (main): Check that invalid arguments are rejected only on Linux.
36358
36359 2010-03-14  Bruno Haible  <bruno@clisp.org>
36360
36361         Fix bug introduced on 2009-12-31.
36362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36363         gl_PREREQ_SYS_H_WINSOCK2 always.
36364         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36365         SYS_SOCKET_H variable.
36366         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36367         Update comments.
36368         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36369         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36370         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36371         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36372         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36373
36374 2010-03-14  Bruno Haible  <bruno@clisp.org>
36375
36376         Fix values returned by sinl, cosl.
36377         * lib/trigl.h: Add specification comments.
36378         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36379         that combines the values from the precomputed table with the values of
36380         the Chebyshev polynomials.
36381
36382 2010-03-14  Bruno Haible  <bruno@clisp.org>
36383
36384         Fix compilation error when modules 'posix_spawn[p]' are not used.
36385         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36386         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36387
36388 2010-03-14  Bruno Haible  <bruno@clisp.org>
36389
36390         Fix compilation error on mingw when module 'time_r' is not used.
36391         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36392         is 1.
36393         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36394         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36395         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36396         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36397
36398 2010-03-14  Bruno Haible  <bruno@clisp.org>
36399
36400         Fix compilation error with Sun C.
36401         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36402         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36403         instead of GCC specific ULONG_LONG_MAX.
36404         * lib/xstrtoll.c: Likewise.
36405         * lib/xstrtoull.c: Likewise.
36406
36407 2010-03-13  Bruno Haible  <bruno@clisp.org>
36408
36409         Allow the user to disable C++ code and tests.
36410         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36411         (gl_PROG_ANSI_CXX): Require it.
36412
36413 2010-03-13  Bruno Haible  <bruno@clisp.org>
36414
36415         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36416         cases.
36417
36418 2010-03-13  Bruno Haible  <bruno@clisp.org>
36419
36420         Test that gnulib does not break the standard C++ headers.
36421         * tests/test-locale-c++2.cc: New file.
36422         * modules/locale-tests (Files): Add it.
36423         (Makefile.am): Compile it for test-locale-c++.
36424         * tests/test-math-c++2.cc: New file.
36425         * modules/math-tests (Files): Add it.
36426         (Makefile.am): Compile it for test-math-c++.
36427         * tests/test-signal-c++2.cc: New file.
36428         * modules/signal-tests (Files): Add it.
36429         (Makefile.am): Compile it for test-signal-c++.
36430         * tests/test-stdio-c++2.cc: New file.
36431         * modules/stdio-tests (Files): Add it.
36432         (Makefile.am): Compile it for test-stdio-c++.
36433         * tests/test-stdlib-c++2.cc: New file.
36434         * modules/stdlib-tests (Files): Add it.
36435         (Makefile.am): Compile it for test-stdlib-c++.
36436         * tests/test-string-c++2.cc: New file.
36437         * modules/string-tests (Files): Add it.
36438         (Makefile.am): Compile it for test-string-c++.
36439         * tests/test-time-c++2.cc: New file.
36440         * modules/time-tests (Files): Add it.
36441         (Makefile.am): Compile it for test-time-c++.
36442         Reported by John W. Eaton <jwe@gnu.org>.
36443
36444 2010-03-13  Bruno Haible  <bruno@clisp.org>
36445
36446         * gnulib-tool (func_usage): Clarify which options are available for
36447         --create-testdir and --create-megatestdir.
36448
36449 2010-03-13  Bruno Haible  <bruno@clisp.org>
36450
36451         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36452         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36453         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36454         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36455         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36456         when appropriate.
36457         Reported by Jim Meyering.
36458
36459 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36460
36461         * gnulib-tool (func_import): Explain origin of code.
36462
36463 2010-03-12  Bruno Haible  <bruno@clisp.org>
36464
36465         Fix problem with automake's definition of CXXLINK.
36466         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36467         Reported by Simon Josefsson and Ludovic Courtès.
36468
36469 2010-03-12  Bruno Haible  <bruno@clisp.org>
36470
36471         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36472         stable releases.
36473
36474 2010-03-11  Bruno Haible  <bruno@clisp.org>
36475
36476         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36477         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36478         whether the system provides one variant or multiple variants of the
36479         function.
36480         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36481         C++ compilers.
36482         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36483         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36484         Reported by Jim Meyering.
36485
36486 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36487
36488         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36489
36490 2010-03-08  Bruno Haible  <bruno@clisp.org>
36491
36492         gnulib-tool: Add support for --libtool in --create-testdir.
36493         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36494         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36495
36496 2010-03-08  Eric Blake  <eblake@redhat.com>
36497
36498         gnulib-tool.texi: mention possibility of git submodule
36499         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36500         submodules.
36501         * doc/.gitignore: Ignore another generated file.
36502
36503 2010-03-08  Karl Berry  <karl@gnu.org>
36504
36505         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36506         of committing gnulib files while skipping others.
36507
36508 2010-03-07  Bruno Haible  <bruno@clisp.org>
36509
36510         Tests of module 'wctype' in C++ mode.
36511         * tests/test-wctype-c++.cc: New file.
36512         * modules/wctype-tests (Files): Add it and tests/signature.h.
36513         (Depends-on): Add ansi-c++-opt.
36514         (Makefile.am): Arrange to compile and run test-wctype-c++.
36515
36516         Tests of module 'wchar' in C++ mode.
36517         * tests/test-wchar-c++.cc: New file.
36518         * modules/wchar-tests (Files): Add it and tests/signature.h.
36519         (Depends-on): Add ansi-c++-opt.
36520         (Makefile.am): Arrange to compile and run test-wchar-c++.
36521         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36522         gl_MODULE_INDICATOR.
36523
36524         Tests of module 'unistd' in C++ mode.
36525         * tests/test-unistd-c++.cc: New file.
36526         * modules/unistd-tests (Files): Add it and tests/signature.h.
36527         (Depends-on): Add ansi-c++-opt.
36528         (Makefile.am): Arrange to compile and run test-unistd-c++.
36529         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36530         gl_MODULE_INDICATOR.
36531
36532         Tests of module 'time' in C++ mode.
36533         * tests/test-time-c++.cc: New file.
36534         * modules/time-tests (Files): Add it and tests/signature.h.
36535         (Depends-on): Add ansi-c++-opt.
36536         (Makefile.am): Arrange to compile and run test-time-c++.
36537         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36538
36539         Tests of module 'sys_time' in C++ mode.
36540         * tests/test-sys_time-c++.cc: New file.
36541         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36542         (Depends-on): Add ansi-c++-opt.
36543         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36544         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36545         gl_MODULE_INDICATOR.
36546
36547         Tests of module 'sys_stat' in C++ mode.
36548         * tests/test-sys_stat-c++.cc: New file.
36549         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36550         (Depends-on): Add ansi-c++-opt.
36551         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36552         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36553         gl_MODULE_INDICATOR.
36554
36555         Tests of module 'sys_socket' in C++ mode.
36556         * tests/test-sys_socket-c++.cc: New file.
36557         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36558         (Depends-on): Add ansi-c++-opt.
36559         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36560         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36561         gl_MODULE_INDICATOR.
36562
36563         Tests of module 'sys_select' in C++ mode.
36564         * tests/test-sys_select-c++.cc: New file.
36565         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36566         (Depends-on): Add ansi-c++-opt.
36567         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36568         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36569         gl_MODULE_INDICATOR.
36570
36571         Tests of module 'sys_ioctl' in C++ mode.
36572         * tests/test-sys_ioctl-c++.cc: New file.
36573         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36574         (Depends-on): Add ansi-c++-opt.
36575         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36576         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36577         gl_MODULE_INDICATOR.
36578
36579         Tests of module 'string' in C++ mode.
36580         * tests/test-string-c++.cc: New file.
36581         * modules/string-tests (Files): Add it and tests/signature.h.
36582         (Depends-on): Add ansi-c++-opt.
36583         (Makefile.am): Arrange to compile and run test-string-c++.
36584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36585         gl_MODULE_INDICATOR.
36586
36587         Tests of module 'stdlib' in C++ mode.
36588         * tests/test-stdlib-c++.cc: New file.
36589         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36590         (Depends-on): Add ansi-c++-opt.
36591         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36592         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36593         gl_MODULE_INDICATOR.
36594
36595         Tests of module 'stdio' in C++ mode.
36596         * tests/test-stdio-c++.cc: New file.
36597         * modules/stdio-tests (Files): Add it and tests/signature.h.
36598         (Depends-on): Add ansi-c++-opt.
36599         (Makefile.am): Arrange to compile and run test-stdio-c++.
36600         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36601         gl_MODULE_INDICATOR.
36602
36603         Tests of module 'spawn' in C++ mode.
36604         * tests/test-spawn-c++.cc: New file.
36605         * modules/spawn-tests (Files): Add it and tests/signature.h.
36606         (Depends-on): Add ansi-c++-opt.
36607         (Makefile.am): Arrange to compile and run test-spawn-c++.
36608         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36609         gl_MODULE_INDICATOR.
36610
36611         Tests of module 'signal' in C++ mode.
36612         * tests/test-signal-c++.cc: New file.
36613         * modules/signal-tests (Files): Add it and tests/signature.h.
36614         (Depends-on): Add ansi-c++-opt.
36615         (Makefile.am): Arrange to compile and run test-signal-c++.
36616         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36617         gl_MODULE_INDICATOR.
36618
36619         Tests of module 'search' in C++ mode.
36620         * tests/test-search-c++.cc: New file.
36621         * modules/search-tests (Files): Add it and tests/signature.h.
36622         (Depends-on): Add ansi-c++-opt.
36623         (Makefile.am): Arrange to compile and run test-search-c++.
36624         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36625         gl_MODULE_INDICATOR.
36626
36627         Tests of module 'math' in C++ mode.
36628         * tests/test-math-c++.cc: New file.
36629         * modules/math-tests (Files): Add it and tests/signature.h.
36630         (Depends-on): Add ansi-c++-opt.
36631         (Makefile.am): Arrange to compile and run test-math-c++.
36632         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36633
36634         Tests of module 'locale' in C++ mode.
36635         * tests/test-locale-c++.cc: New file.
36636         * modules/locale-tests (Files): Add it and tests/signature.h.
36637         (Depends-on): Add ansi-c++-opt.
36638         (Makefile.am): Arrange to compile and run test-locale-c++.
36639         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36640         gl_MODULE_INDICATOR.
36641
36642         Tests of module 'langinfo' in C++ mode.
36643         * tests/test-langinfo-c++.cc: New file.
36644         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36645         (Depends-on): Add ansi-c++-opt.
36646         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36647         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36648         gl_MODULE_INDICATOR.
36649
36650         Tests of module 'iconv-h' in C++ mode.
36651         * tests/test-iconv-h-c++.cc: New file.
36652         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36653         (Depends-on): Add ansi-c++-opt.
36654         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36655
36656         Tests of module 'glob' in C++ mode.
36657         * tests/test-glob-c++.cc: New file.
36658         * modules/glob-tests (Files): Add it.
36659         (Depends-on): Add ansi-c++-opt.
36660         (Makefile.am): Arrange to compile and run test-glob-c++.
36661
36662         Tests of module 'fcntl-h' in C++ mode.
36663         * tests/test-fcntl-h-c++.cc: New file.
36664         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36665         (Depends-on): Add ansi-c++-opt.
36666         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36667         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36668         gl_MODULE_INDICATOR.
36669
36670         Tests of module 'dirent' in C++ mode.
36671         * tests/test-dirent-c++.cc: New file.
36672         * modules/dirent-tests (Files): Add it and tests/signature.h.
36673         (Depends-on): Add ansi-c++-opt.
36674         (Makefile.am): Arrange to compile and run test-dirent-c++.
36675         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36676         gl_MODULE_INDICATOR.
36677
36678         New module 'ansi-c++-opt'.
36679         * modules/ansi-c++-opt: New file.
36680         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36681
36682         Document C++ namespace mode.
36683         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36684
36685         wctype: Avoid #define replacements in C++ mode.
36686         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36687         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36688         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36689         In C++, define a namespaced alias symbol.
36690         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36691         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36692         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36693         rule.
36694
36695         wchar: Avoid #define replacements in C++ mode.
36696         * lib/wchar.in.h: Include c++defs.h.
36697         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36698         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36699         symbol.
36700         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36701         * modules/wchar (Depends-on): Add c++defs.
36702         (Makefile.am): Update wchar.h rule.
36703
36704         unistd: Avoid #define replacements in C++ mode.
36705         * lib/unistd.in.h: Include c++defs.h.
36706         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36707         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36708         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36709         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36710         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36711         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36712         symbol.
36713         (environ): Update.
36714         * modules/unistd (Depends-on): Add c++defs.
36715         (Makefile.am): Update unistd.h rule.
36716
36717         time: Avoid #define replacements in C++ mode.
36718         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36719         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36720         define a namespaced alias symbol.
36721         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36722         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36723         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36724         * modules/time (Depends-on): Add c++defs, warn-on-use.
36725         (Makefile.am): Update time.h rule.
36726         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36727         * modules/nanosleep (configure.ac): Likewise.
36728         * modules/strptime (configure.ac): Likewise.
36729         * modules/timegm (configure.ac): Likewise.
36730
36731         sys_time: Avoid #define replacements in C++ mode.
36732         * lib/sys_time.in.h: Include c++defs.h.
36733         (gettimeofday): In C++, define a namespaced alias symbol.
36734         * modules/sys_time (Depends-on): Add c++defs.
36735         (Makefile.am): Update sys/time.h rule.
36736
36737         sys_stat: Avoid #define replacements in C++ mode.
36738         * lib/sys_stat.in.h: Include c++defs.h.
36739         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36740         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36741         namespaced alias symbol.
36742         In C++, define a namespaced alias symbol.
36743         * modules/sys_stat (Depends-on): Add c++defs.
36744         (Makefile.am): Update sys/stat.h rule.
36745
36746         sys_socket: Avoid #define replacements in C++ mode.
36747         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36748         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36749         definitions also when the system has a <sys/socket.h>.
36750         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36751         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36752         In C++, define a namespaced alias symbol.
36753         * modules/sys_socket (Depends-on): Add c++defs.
36754         (Makefile.am): Update sys/socket.h rule.
36755
36756         sys_select: Avoid #define replacements in C++ mode.
36757         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36758         definitions also when the system has a <sys/select.h>.
36759         (select): In C++, define a namespaced alias symbol.
36760         * modules/sys_select (Depends-on): Add c++defs.
36761         (Makefile.am): Update sys/select.h rule.
36762
36763         sys_ioctl: Avoid #define replacements in C++ mode.
36764         * lib/sys_ioctl.in.h: Include c++defs.h.
36765         (ioctl): In C++, define a namespaced alias symbol.
36766         * modules/sys_ioctl (Depends-on): Add c++defs.
36767         (Makefile.am): Update sys/ioctl.h rule.
36768
36769         string: Avoid #define replacements in C++ mode.
36770         * lib/string.in.h: Include c++defs.h.
36771         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36772         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36773         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36774         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36775         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36776         * modules/string (Depends-on): Add c++defs.
36777         (Makefile.am): Update string.h rule.
36778
36779         stdlib: Avoid #define replacements in C++ mode.
36780         * lib/stdlib.in.h: Include c++defs.h.
36781         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36782         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36783         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36784         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36785         symbol.
36786         * modules/stdlib (Depends-on): Add c++defs.
36787         (Makefile.am): Update stdlib.h rule.
36788
36789         stdio: Avoid #define replacements in C++ mode.
36790         * lib/stdio.in.h: Include c++defs.h.
36791         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36792         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36793         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36794         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36795         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36796         namespaced alias symbol.
36797         * modules/stdio (Depends-on): Add c++defs.
36798         (Makefile.am): Update stdio.h rule.
36799
36800         spawn: Avoid #define replacements in C++ mode.
36801         * lib/spawn.in.h: Include c++defs.h.
36802         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36803         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36804         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36805         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36806         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36807         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36808         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36809         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36810         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36811         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36812         In C++, define a namespaced alias symbol.
36813         * modules/spawn (Depends-on): Add c++defs.
36814         (Makefile.am): Update spawn.h rule.
36815
36816         signal: Avoid #define replacements in C++ mode.
36817         * lib/signal.in.h: Include c++defs.h.
36818         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36819         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36820         namespaced alias symbol.
36821         * modules/signal (Depends-on): Add c++defs.
36822         (Makefile.am): Update signal.h rule.
36823
36824         search: Avoid #define replacements in C++ mode.
36825         * lib/search.in.h: Include c++defs.h.
36826         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36827         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36828         symbol.
36829         * modules/search (Depends-on): Add c++defs.
36830         (Makefile.am): Update search.h rule.
36831
36832         math: Avoid #define replacements in C++ mode.
36833         * lib/math.in.h: Include c++defs.h.
36834         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36835         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36836         trunc, truncl): In C++, define a namespaced alias symbol.
36837         * modules/math (Depends-on): Add c++defs.
36838         (Makefile.am): Update math.h rule.
36839
36840         locale: Avoid #define replacements in C++ mode.
36841         * lib/locale.in.h: Include c++defs.h.
36842         (duplocale): In C++, define a namespaced alias symbol.
36843         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36844         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36845         * modules/locale (Depends-on): Add c++defs.
36846         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36847
36848         langinfo: Avoid #define replacements in C++ mode.
36849         * lib/langinfo.in.h: Include c++defs.h.
36850         (nl_langinfo): In C++, define a namespaced alias symbol.
36851         * modules/langinfo (Depends-on): Add c++defs.
36852         (Makefile.am): Update langinfo.h rule.
36853
36854         iconv-h: Avoid #define replacements in C++ mode.
36855         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36856         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36857         symbol.
36858         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36859         whenever iconv is present.
36860         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36861         (Makefile.am): Update iconv.h rule.
36862
36863         glob: Avoid #define replacements in C++ mode.
36864         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36865         (_gl_glob_errfunc_fn): New type.
36866         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36867         symbol.
36868         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36869         (Makefile.am): Update glob.h rule.
36870
36871         fcntl-h: Avoid #define replacements in C++ mode.
36872         * lib/fcntl.in.h: Include c++defs.h.
36873         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36874         * modules/fcntl-h (Depends-on): Add c++defs.
36875         (Makefile.am): Update fcntl.h rule.
36876
36877         dirent: Avoid #define replacements in C++ mode.
36878         * lib/dirent.in.h: Include c++defs.h.
36879         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36880         namespaced alias symbol.
36881         (dirfd): Update declaration.
36882         * modules/dirent (Depends-on): Add c++defs.
36883         (Makefile.am): Update dirent.h rule.
36884
36885         ctype: Make it usable in C++ code.
36886         * lib/ctype.in.h: Include c++defs.h.
36887         (isblank): Declare as extern "C".
36888         * modules/ctype (Depends-on): Add c++defs.
36889         (Makefile.am): Update ctype.h rule.
36890
36891         New module 'c++defs'.
36892         * modules/c++defs: New file.
36893         * build-aux/c++defs.h: New file.
36894         Reported by John W. Eaton <jwe@gnu.org>.
36895
36896 2010-03-07  Bruno Haible  <bruno@clisp.org>
36897
36898         logb: Provide missing declaration for Cygwin.
36899         * lib/math.in.h (logb): New declaration.
36900         * m4/logb.m4: New file.
36901         * modules/logb (Files): Add m4/logb.m4.
36902         (Depends-on): Add math.
36903         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36904         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36906         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36907         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36908
36909 2010-03-07  Bruno Haible  <bruno@clisp.org>
36910
36911         Fix test-cond link error.
36912         * tests/test-cond.c: Include <stdio.h>.
36913
36914 2010-03-07  Bruno Haible  <bruno@clisp.org>
36915
36916         Fix test-dirent-safer link error.
36917         * modules/dirent-safer-tests (Makefile.am): Define
36918         test_dirent_safer_LDADD.
36919
36920 2010-03-07  Bruno Haible  <bruno@clisp.org>
36921
36922         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36923         among default module list.
36924
36925 2010-03-07  Bruno Haible  <bruno@clisp.org>
36926
36927         Fix link error on platforms with GNU libiconv.
36928         * modules/unistr/u8-strcoll-tests (Makefile): Define
36929         test_u8_strcoll_LDADD.
36930         * modules/unistr/u16-strcoll-tests (Makefile): Define
36931         test_u16_strcoll_LDADD.
36932         * modules/unistr/u32-strcoll-tests (Makefile): Define
36933         test_u32_strcoll_LDADD.
36934
36935 2010-03-07  Bruno Haible  <bruno@clisp.org>
36936
36937         Use POSIX declarations for socket functions.
36938         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36939         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36940         rpl_sendto): Change declaration to match POSIX.
36941         * lib/connect.c (rpl_connect): Likewise.
36942         * lib/accept.c (rpl_accept): Likewise.
36943         * lib/bind.c (rpl_bind): Likewise.
36944         * lib/getpeername.c (rpl_getpeername): Likewise.
36945         * lib/getsockname.c (rpl_getsockname): Likewise.
36946         * lib/recv.c (rpl_recv): Likewise.
36947         * lib/send.c (rpl_send): Likewise.
36948         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36949         * lib/sendto.c (rpl_sendto): Likewise.
36950
36951 2010-03-06  Bruno Haible  <bruno@clisp.org>
36952
36953         Clarify access, euidaccess, faccessat.
36954         * doc/posix-functions/faccessat.texi: Mention security problem under
36955         "Other problems", not "Portability problems".
36956         * doc/posix-functions/access.texi: Likewise. Mention a related security
36957         problem.
36958         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36959         * lib/euidaccess.c: Add comments about platforms.
36960         * lib/unistd.in.h (access, euidaccess): Add warnings.
36961
36962 2010-03-07  Bruno Haible  <bruno@clisp.org>
36963
36964         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36965         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36966         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36967         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36968         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36969         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36970         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36971         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36972         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36974         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36975         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36976         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36977         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36978         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36979         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36980         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36981         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36982         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36983         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36984         Likewise.
36985         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36986         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36987         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36988         Likewise.
36989         * tests/test-spawn.c (main): Make it work when
36990         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36991
36992 2010-03-07  Bruno Haible  <bruno@clisp.org>
36993
36994         Fix incorrect Makefile.am generation in German locale.
36995         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36996         Execute sed command with character range in C locale.
36997
36998 2010-03-06  Bruno Haible  <bruno@clisp.org>
36999
37000         Tests for module 'iconv-h'.
37001         * modules/iconv-h-tests: New file.
37002         * tests/test-iconv-h.c: New file.
37003
37004         New module 'iconv-h'.
37005         * modules/iconv-h: New file.
37006         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37007         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37008         (configure.ac): Remove gl_ICONV_H.
37009         (Makefile.am): Remove rule for iconv.h.
37010
37011 2010-03-06  Bruno Haible  <bruno@clisp.org>
37012
37013         More consistent naming of *.m4 files.
37014         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37015         * modules/wctype (Files): Update.
37016
37017         More consistent naming of *.m4 files.
37018         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37019         * modules/wchar (Files): Update.
37020
37021 2010-03-06  Jim Meyering  <meyering@redhat.com>
37022
37023         euidaccess: relax license to LGPLv2+
37024         * modules/euidaccess (License): Relax to LGPLv2+.
37025
37026 2010-03-06  Bruno Haible  <bruno@clisp.org>
37027
37028         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37029         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37030         (Makefile.am): Augment lib_SOURCES instead.
37031
37032 2010-03-04  Jim Meyering  <meyering@redhat.com>
37033
37034         utime: remove obsolete module
37035         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37036         unnecessary for years, and has been marked as obsolete for 10 months.
37037         * modules/utime: Remove file.
37038         * lib/utime.c: Remove file.
37039         * m4/utime.m4: Remove file.
37040         * m4/utimes-null.m4: Remove file.
37041         * doc/posix-functions/utime.texi (utime): Remove reference to
37042         the module.  Move the sole "fixed by gnulib" item into the
37043         "problems not fixed by Gnulib" list.
37044         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37045
37046 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37047
37048         * modules/exit (License): Relax license to LGPLv2+.
37049         (Status): Mark as obsolete.
37050         * NEWS: Mention deprecated 'exit' module.
37051         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37052         of now obsolete 'exit'.
37053
37054 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37055
37056         fts-lgpl: remove unused module
37057         * modules/fts-lgpl: Remove.
37058         * MODULES.html.sh (func_all_modules): Adjust.
37059         * check-module (find_included_lib_files): Adjust.
37060         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37061
37062 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37063
37064         copy-acl: enhance Solaris ACL error handling
37065         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37066         * lib/set-mode-acl.c (qset_acl): Likewise.
37067
37068 2010-03-02  Bruno Haible  <bruno@clisp.org>
37069
37070         spawn: Don't override the system defined values on FreeBSD 8.
37071         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37072         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37073         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37074         if HAVE_POSIX_SPAWN is 1.
37075         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37076
37077 2010-03-01  Bruno Haible  <bruno@clisp.org>
37078
37079         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37080         regarding Automake.
37081
37082 2010-02-25  Bruno Haible  <bruno@clisp.org>
37083
37084         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37085         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37086         setting, not afterwards.
37087         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37088
37089 2010-02-24  Eric Blake  <eblake@redhat.com>
37090
37091         bootstrap, git-version-gen: use timestamp
37092         * build-aux/git-version-gen (scriptversion): Force UTC.
37093         * build-aux/bootstrap (scriptversion): New variable.
37094
37095         bootstrap: allow older git
37096         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37097         older than 1.6.4.  Requested by the libvirt project.
37098
37099 2010-02-23  Eric Blake  <eblake@redhat.com>
37100
37101         warn-on-use: work with old autoconf
37102         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37103         AS_VAR semantics of autoconf 2.60.
37104         Reported by Bruno Haible.
37105
37106         bootstrap: improve some comments
37107         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37108         clarification comments.
37109
37110         gettimeofday: provide correct function
37111         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37112         when replacement is declared, otherwise provide gettimeofday.
37113         Reported by Michael Goffioul.
37114
37115 2010-02-23  Jim Meyering  <meyering@redhat.com>
37116
37117         lib-ignore: relax license to "unlimited", not LGPLv2+
37118         * modules/lib-ignore (License): Relax to "unlimited".
37119
37120 2010-02-23  Jim Meyering  <meyering@redhat.com>
37121
37122         lib-ignore: relax license to LGPLv2+
37123         * modules/lib-ignore (License): Relax to LGPLv2+.
37124
37125 2010-02-22  Eric Blake  <eblake@redhat.com>
37126
37127         lseek: avoid bash 3.2 broken pipe bug
37128         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37129         warning from bash 3.2.
37130         Reported by Ben Pfaff, with analysis from Bruno Haible.
37131
37132         bootstrap: support non-FSF copyright holder
37133         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37134         bootstrap.conf override of COPYRIGHT_HOLDER.
37135         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37136
37137         bootstrap: interoperate with gettext 0.14.1
37138         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37139
37140         bootstrap: allow for alternate submodule location
37141         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37142         hardcoding submodule location.
37143         (gnulib_mk): Allow direct use of Makefile.am.
37144
37145         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37146         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37147         rather than reconfiguring where the submodule points.
37148
37149         gettimeofday: restore support for platforms that lack function
37150         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37151         replacement if function is missing.
37152         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37153         * modules/sys_time (Makefile.am): Substitute it.
37154         * lib/sys_time.in.h (gettimeofday): Check it.
37155         Reported by Michael Goffioul.
37156
37157 2010-02-21  Bruno Haible  <bruno@clisp.org>
37158
37159         * lib/stdio.in.h (obstack_printf): Fix typo.
37160
37161 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37162
37163         vc-list-files: use bzr ls's -R option
37164         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37165         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37166
37167 2010-02-21  Jim Meyering  <meyering@redhat.com>
37168
37169         init.sh: fix EXEEXT shims to work also for names like test-prog
37170         * tests/init.sh: Re-exec a better shell, when needed.
37171         If the current shell lacks support for posix $(...), an init.sh-using
37172         test will now try to find a shell that supports that.  If EXEEXT is
37173         nonempty, we also require support for hyphen-in-alias-name and shell
37174         substitutions like ${var#glob}.  Failure to find such a shell results
37175         in a skipped test.
37176
37177 2010-02-21  Bruno Haible  <bruno@clisp.org>
37178
37179         Really work around around "broken pipe" error message from bash 3.2.
37180         * gnulib-tool (func_reset_sigpipe): Remove function.
37181         (echo): In bash 3.2, define to a function that uses printf.
37182         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37183
37184 2010-02-20  Bruno Haible  <bruno@clisp.org>
37185
37186         Restore support for automake 1.9.6 with autoconf 2.61.
37187         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37188         Reported by James Youngman <jay@gnu.org>.
37189
37190 2010-02-20  Bruno Haible  <bruno@clisp.org>
37191
37192         Improve *printf warning condition.
37193         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37194         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37195         and the function is overridden due to SIGPIPE emulation.
37196
37197 2010-02-20  Bruno Haible  <bruno@clisp.org>
37198
37199         * lib/stdio.in.h: Tweak comments.
37200
37201 2010-02-19  Bruno Haible  <bruno@clisp.org>
37202
37203         Make it easier to find modules. New gnulib-tool option '--find'.
37204         * gnulib-tool: New option --find.
37205         (func_usage): Document it.
37206         (func_sanitize_modulelist): New function, extracted from
37207         func_all_modules.
37208         (func_all_modules): Invoke it.
37209         * doc/gnulib-tool.texi (Which modules?): New node.
37210
37211 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37212
37213         * lib/sys_select.in.h: Provide select replacement even if
37214         sys/select.h exists on a system, for Interix.
37215
37216 2010-02-18  Jim Meyering  <meyering@redhat.com>
37217
37218         init.sh: don't use $(...) just yet
37219         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37220         to accommodate e.g., Solaris' /bin/sh.
37221
37222 2010-02-17  Bruno Haible  <bruno@clisp.org>
37223
37224         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37225         Reported by Ludovic Courtès <ludo@gnu.org>.
37226
37227 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37228
37229         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37230         linking with -lintl.
37231
37232 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37233
37234         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37235         if not provided by the system's netdb.h.  Reported by
37236         ludo@gnu.org (Ludovic Courtès).
37237
37238 2010-02-15  Jim Meyering  <meyering@redhat.com>
37239
37240         init.sh: improve portability and efficiency
37241         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37242         "dummy" in a for loop.
37243         Use '!', not '^' to select the complement of a character set used
37244         in a "case" statement.
37245         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37246         Suggestions from Eric Blake.
37247
37248         init.sh: automatically accommodate programs with the .exe suffix
37249         Automatically arrange for an invocation of "prog" to execute the
37250         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37251         may use the simpler "prog", yet still work when built on a system
37252         that requires specifying the added suffix.
37253         Do this by constructing a function named "prog" that invokes
37254         "prog.exe" for each .exe file in selected directories.
37255         * tests/init.sh (find_exe_basenames_): New function.
37256         (create_exe_shim_functions_): New function.
37257         (path_prepend_): Use it.
37258
37259         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37260         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37261         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37262
37263 2010-02-14  Jim Meyering  <meyering@redhat.com>
37264
37265         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37266         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37267         (sc_prohibit_hash_pjw_without_use): New rule.
37268
37269         maint.mk: allow the default upload destination dir to be overridden
37270         * top/maint.mk (upload_dest_dir_): Define with a default that
37271         preserves the status quo.
37272         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37273         Reported by Peter Simons.
37274
37275         maint.mk: prohibit inclusion of "hash.h" without_use
37276         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37277
37278 2010-02-10  Jim Meyering  <meyering@redhat.com>
37279
37280         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37281         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37282
37283 2010-02-09  Eric Blake  <ebb9@byu.net>
37284         and Bruno Haible  <bruno@clisp.org>
37285
37286         obstack-printf-posix: ensure declaration
37287         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37288         extracted from gl_FUNC_OBSTACK_PRINTF.
37289         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37290         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37291         Likewise.
37292         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37293         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37294         0.
37295
37296 2010-02-08  Bruno Haible  <bruno@clisp.org>
37297
37298         gnulib-tool: Fix typo in 2010-02-07 commit.
37299         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37300         Reported by Eric Blake.
37301
37302 2010-02-07  Bruno Haible  <bruno@clisp.org>
37303
37304         gnulib-tool: Fix up caching patches.
37305         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37306         option --no-cache. Use associative arrays when supported by the shell.
37307         (sed_comments): New variable.
37308         (modcache): Renamed from do_cache.
37309         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37310         abbreviate unnecessarily.
37311         (have_associative): New variable.
37312         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37313         way also for ksh and zsh.
37314         (func_init_sed_convert_to_cache_statements): New function, extracted
37315         from func_cache_lookup_module. Add support for associative arrays.
37316         Don't set the c_MODULE_cached variable here. Ignore all lines before
37317         the first field header. Remove only the final newline, not all trailing
37318         newlines. Support empty fields correctly. Limit the use of 'eval' to
37319         assignments.
37320         (func_get_description, func_get_status, func_get_notice,
37321         func_get_applicability, func_get_filelist, func_get_dependencies,
37322         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37323         func_get_automake_snippet, func_get_include_directive,
37324         func_get_link_directive, func_get_license, func_get_maintainer):
37325         Update documentation. List the unoptimized code first. Add support for
37326         associative arrays. Limit the use of 'eval' to assignments.
37327         (func_get_applicability): Undo stylistic pessimisations.
37328         (func_get_automake_snippet, func_get_include_directive): Reduce code
37329         duplication.
37330         (func_modules_transitive_closure, func_modules_add_dummy,
37331         func_modules_notice, func_modules_to_filelist, func_add_file,
37332         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37333         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37334         func_create_testdir, func_create_megatestdir): Update documentation.
37335
37336 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37337
37338         * gnulib-tool (func_cache_lookup_module): Store the module name
37339         belonging to the cache variable; error out if two different
37340         module names map to the same cache variable name.
37341
37342 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37343
37344         gnulib-tool: Make caching optional.
37345         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37346         Update matching short versions of --no-changelog.
37347         (func_usage): Update.
37348         (sed_extract_cache_prog): Renamed from ...
37349         (sed_extract_prog): ... this; revert to old extraction script.
37350         (func_get_description, func_get_status)
37351         (func_get_notice, func_get_applicability, func_get_filelist)
37352         (func_get_dependencies, func_get_autoconf_early_snippet)
37353         (func_get_autoconf_snippet, func_get_automake_snippet)
37354         (func_get_include_directive, func_get_link_directive)
37355         (func_get_license, func_get_maintainer): If $do_cache is false,
37356         use old, non-caching extraction scripts.
37357         Suggestion by Bruno Haible.
37358
37359 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37360
37361         gnulib-tool: cache module metainformation.
37362         * gnulib-tool (sed_extract_prog): Match newline before each
37363         header, and rewrite header to a shell variable suffix.
37364         (func_cache_var, func_cache_lookup_module): New functions,
37365         to turn a module name into a cache variable prefix, and to
37366         look up and cache module metainformation.
37367         (func_get_description, func_get_status)
37368         (func_get_notice, func_get_applicability, func_get_filelist)
37369         (func_get_dependencies, func_get_autoconf_early_snippet)
37370         (func_get_autoconf_snippet, func_get_automake_snippet)
37371         (func_get_include_directive, func_get_link_directive)
37372         (func_get_license, func_get_maintainer): Use
37373         func_cache_lookup_module.
37374
37375 2010-02-07  Bruno Haible  <bruno@clisp.org>
37376
37377         fnctl: Fix missing dependency.
37378         * modules/fcntl (Depends-on): Add getdtablesize.
37379         Reported by John W. Eaton <jwe@gnu.org>.
37380
37381 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37382
37383         Argp: fix recognition of short alias options.
37384
37385         * lib/argp-parse.c (convert_options): Fix improper use of
37386         `|' between character values.
37387         * tests/test-argp.c (group1_option): New alias option
37388         --read (-r).
37389         (group1_parser): Special handling for 'r'.
37390         (test15): New test case.
37391         (test_fun): Add test15.
37392         * tests/test-argp-2.sh: Update expected --help and --usage
37393         outputs.
37394
37395 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37396
37397         * tests/test-argp.c: Fix indentation.
37398
37399 2010-02-04  Eric Blake  <ebb9@byu.net>
37400
37401         gettimeofday: expose type of second argument
37402         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37403         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37404         * tests/test-gettimeofday.c: Use it to silence warning.
37405         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37406         the issue.
37407
37408 2010-02-03  Jim Meyering  <meyering@redhat.com>
37409
37410         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37411         * lib/regcomp.c (TYPE_SIGNED): Define.
37412         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37413
37414         regcomp.c: avoid a new -Wshadow warning
37415         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37416
37417 2010-02-01  Jim Meyering  <meyering@redhat.com>
37418
37419         removing useless parentheses in cpp #define directives
37420         For motivation, see commit c0221df4, "define STREQ(a,b)
37421         consistently, removing useless parentheses"
37422         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37423         * lib/mountlist.c (MNT_IGNORE): Likewise.
37424         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37425
37426 2010-02-01  Eric Blake  <ebb9@byu.net>
37427
37428         sys_time: use link-warning
37429         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37430         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37431         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37432         * modules/sys_time (Depends-on): Add warn-on-use.
37433         (Makefile.am): Always build replacement.
37434         (configure.ac): Update substitutions.
37435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37436         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37437         bother with SYS_TIME_H.
37438         * modules/gettimeofday (configure.ac): Declare indicator.
37439         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37440         in use.
37441
37442         closein-tests: silence compiler warning
37443         * tests/test-closein.c (main): Ignore fread result.
37444         * modules/closein-tests (Depends-on): Add ignore-value.
37445
37446         tests: silence warning about system return
37447         * tests/test-areadlink-with-size.c (main): Ignore system result.
37448         * tests/test-areadlink.c (main): Likewise.
37449         * tests/test-areadlinkat-with-size.c (main): Likewise.
37450         * tests/test-areadlinkat.c (main): Likewise.
37451         * tests/test-canonicalize-lgpl.c (main): Likewise.
37452         * tests/test-canonicalize.c (main): Likewise.
37453         * tests/test-chown.c (main): Likewise.
37454         * tests/test-fchownat.c (main): Likewise.
37455         * tests/test-fdutimensat.c (main): Likewise.
37456         * tests/test-fstatat.c (main): Likewise.
37457         * tests/test-futimens.c (main): Likewise.
37458         * tests/test-lchown.c (main): Likewise.
37459         * tests/test-link.c (main): Likewise.
37460         * tests/test-linkat.c (main): Likewise.
37461         * tests/test-lstat.c (main): Likewise.
37462         * tests/test-mkdir.c (main): Likewise.
37463         * tests/test-mkdirat.c (main): Likewise.
37464         * tests/test-mkfifo.c (main): Likewise.
37465         * tests/test-mkfifoat.c (main): Likewise.
37466         * tests/test-mknod.c (main): Likewise.
37467         * tests/test-readlink.c (main): Likewise.
37468         * tests/test-remove.c (main): Likewise.
37469         * tests/test-rename.c (main): Likewise.
37470         * tests/test-renameat.c (main): Likewise.
37471         * tests/test-rmdir.c (main): Likewise.
37472         * tests/test-symlink.c (main): Likewise.
37473         * tests/test-symlinkat.c (main): Likewise.
37474         * tests/test-unlink.c (main): Likewise.
37475         * tests/test-unlinkat.c (main): Likewise.
37476         * tests/test-utimens.c (main): Likewise.
37477         * tests/test-utimensat.c (main): Likewise.
37478         * modules/areadlink-tests (Depends-on): Add ignore-value.
37479         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37480         * modules/areadlinkat-tests (Depends-on): Likewise.
37481         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37482         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37483         * modules/canonicalize-tests (Depends-on): Likewise.
37484         * modules/chown-tests (Depends-on): Likewise.
37485         * modules/fdutimensat-tests (Depends-on): Likewise.
37486         * modules/futimens-tests (Depends-on): Likewise.
37487         * modules/lchown-tests (Depends-on): Likewise.
37488         * modules/link-tests (Depends-on): Likewise.
37489         * modules/linkat-tests (Depends-on): Likewise.
37490         * modules/lstat-tests (Depends-on): Likewise.
37491         * modules/mkdir-tests (Depends-on): Likewise.
37492         * modules/mkfifo-tests (Depends-on): Likewise.
37493         * modules/mkfifoat-tests (Depends-on): Likewise.
37494         * modules/mknod-tests (Depends-on): Likewise.
37495         * modules/openat-tests (Depends-on): Likewise.
37496         * modules/readlink-tests (Depends-on): Likewise.
37497         * modules/remove-tests (Depends-on): Likewise.
37498         * modules/rename-tests (Depends-on): Likewise.
37499         * modules/renameat-tests (Depends-on): Likewise.
37500         * modules/rmdir-tests (Depends-on): Likewise.
37501         * modules/symlink-tests (Depends-on): Likewise.
37502         * modules/symlinkat-tests (Depends-on): Likewise.
37503         * modules/unlink-tests (Depends-on): Likewise.
37504         * modules/utimens-tests (Depends-on): Likewise.
37505         * modules/utimensat-tests (Depends-on): Likewise.
37506
37507 2010-01-31  Bruno Haible  <bruno@clisp.org>
37508
37509         Perform the same test for many <math.h> functions.
37510         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37511         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37512         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37513         of gl_MATHFUNC.
37514         * modules/acos (configure.ac): Likewise.
37515         * modules/asin (configure.ac): Likewise.
37516         * modules/atan (configure.ac): Likewise.
37517         * modules/atan2 (configure.ac): Likewise.
37518         * modules/cbrt (configure.ac): Likewise.
37519         * modules/copysign (configure.ac): Likewise.
37520         * modules/cos (configure.ac): Likewise.
37521         * modules/cosh (configure.ac): Likewise.
37522         * modules/erf (configure.ac): Likewise.
37523         * modules/erfc (configure.ac): Likewise.
37524         * modules/exp (configure.ac): Likewise.
37525         * modules/fmod (configure.ac): Likewise.
37526         * modules/hypot (configure.ac): Likewise.
37527         * modules/j0 (configure.ac): Likewise.
37528         * modules/j1 (configure.ac): Likewise.
37529         * modules/jn (configure.ac): Likewise.
37530         * modules/lgamma (configure.ac): Likewise.
37531         * modules/log (configure.ac): Likewise.
37532         * modules/log10 (configure.ac): Likewise.
37533         * modules/log1p (configure.ac): Likewise.
37534         * modules/pow (configure.ac): Likewise.
37535         * modules/remainder (configure.ac): Likewise.
37536         * modules/sin (configure.ac): Likewise.
37537         * modules/sinh (configure.ac): Likewise.
37538         * modules/tan (configure.ac): Likewise.
37539         * modules/tanh (configure.ac): Likewise.
37540         * modules/y0 (configure.ac): Likewise.
37541         * modules/y1 (configure.ac): Likewise.
37542         * modules/yn (configure.ac): Likewise.
37543         Suggested by Paolo Bonzini.
37544
37545 2010-01-31  Bruno Haible  <bruno@clisp.org>
37546
37547         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37548
37549 2010-01-31  Bruno Haible  <bruno@clisp.org>
37550
37551         Work around getdelim() bug on FreeBSD 8.0.
37552         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37553         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37554         not work.
37555         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37556         is 1.
37557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37558         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37559         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37560         a non-zero size.
37561         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37562
37563 2010-01-31  Bruno Haible  <bruno@clisp.org>
37564
37565         Work around getline() bug on FreeBSD 8.0.
37566         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37567         and a non-zero size.
37568         * tests/test-getline.c (main): Likewise.
37569         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37570         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37571
37572 2010-01-28  Eric Blake  <ebb9@byu.net>
37573
37574         regex: fix build failure
37575         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37576         platforms.
37577
37578 2010-01-28  Jim Meyering  <meyering@redhat.com>
37579
37580         regex: do not ignore memory allocation failure
37581         * lib/regex_internal.c (create_cd_newstate): Detect
37582         re_node_set_init_copy failure.   Extracted from glibc commit
37583         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37584
37585         regex: sync more white-space changes from libc
37586         * lib/regex_internal.c: White-space only changes.
37587         * lib/regexec.c: Likewise.
37588
37589         regex: add many uses of __attribute_warn_unused_result__
37590         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37591         * lib/regexec.c: Likewise.
37592         Extracted from a messy glibc commit.
37593
37594         regcomp.c: spelling and merge-artifact from glibc
37595         * lib/regcomp.c: Merge remainder of glibc's
37596         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37597
37598         regcomp.c: sync white-space changes from glibc
37599         * lib/regcomp.c: Merge to accommodate white space
37600         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37601
37602         regcomp.c: do not ignore internal return values
37603         * lib/regcomp.c: Do not ignore internal return values.
37604         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37605         but without its white-space changes and spelling fixes.
37606
37607         regex_internal.h: define __attribute_warn_unused_result__
37608         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37609
37610         maint: add a syntax-check rule to check for vulnerable Makefile.in
37611         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37612
37613 2010-01-27  Jim Meyering  <meyering@redhat.com>
37614
37615         ncftpput-ftp: clean up spaces
37616         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37617         Remove trailing blanks.
37618
37619 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37620
37621         * build-aux/git-version-gen: Fix copyright statement.
37622         * build-aux/gnupload: Likewise.
37623         * tests/test-arcfour.c: Likewise.
37624         * tests/test-arctwo.c: Likewise.
37625         * tests/test-count-one-bits.c: Likewise.
37626         * tests/test-crc.c: Likewise.
37627         * tests/test-des.c: Likewise.
37628         * tests/test-gc-arcfour.c: Likewise.
37629         * tests/test-gc-arctwo.c: Likewise.
37630         * tests/test-gc-des.c: Likewise.
37631         * tests/test-gc-hmac-md5.c: Likewise.
37632         * tests/test-gc-hmac-sha1.c: Likewise.
37633         * tests/test-gc-md2.c: Likewise.
37634         * tests/test-gc-md4.c: Likewise.
37635         * tests/test-gc-md5.c: Likewise.
37636         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37637         * tests/test-gc-rijndael.c: Likewise.
37638         * tests/test-gc-sha1.c: Likewise.
37639         * tests/test-gc.c: Likewise.
37640         * tests/test-gethostname.c: Likewise.
37641         * tests/test-gettimeofday.c: Likewise.
37642         * tests/test-hash.c: Likewise.
37643         * tests/test-hmac-md5.c: Likewise.
37644         * tests/test-hmac-sha1.c: Likewise.
37645         * tests/test-md2.c: Likewise.
37646         * tests/test-md4.c: Likewise.
37647         * tests/test-md5.c: Likewise.
37648         * tests/test-memchr.c: Likewise.
37649         * tests/test-memchr2.c: Likewise.
37650         * tests/test-memcmp.c: Likewise.
37651         * tests/test-memmem.c: Likewise.
37652         * tests/test-memrchr.c: Likewise.
37653         * tests/test-rawmemchr.c: Likewise.
37654         * tests/test-read-file.c: Likewise.
37655         * tests/test-rijndael.c: Likewise.
37656         * tests/test-sockets.c: Likewise.
37657         * tests/test-strchrnul.c: Likewise.
37658         * tests/test-strstr.c: Likewise.
37659         * tests/test-strtod.c: Likewise.
37660         * build-aux/ncftpput-ftp: Likewise.
37661
37662 2010-01-26  Eric Blake  <ebb9@byu.net>
37663
37664         ignore-value: update recommended header name
37665         * modules/ignore-value (Include): Only use <> for headers that
37666         exist in glibc.
37667
37668 2010-01-26  Jim Meyering  <meyering@redhat.com>
37669
37670         test-userspec.c: avoid compiler warnings
37671         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37672         and "initialization discards qualifiers..." warnings.
37673         Put the first "uid" in its own scope, and make char* members "const".
37674
37675 2010-01-25  Bruno Haible  <bruno@clisp.org>
37676
37677         gnulib-tool: Make warning diagnostics consistent.
37678         * gnulib-tool (func_warning): New function.
37679         Use it everywhere where gnulib-tool produces output to stderr and it is
37680         not a fatal error.
37681
37682 2010-01-25  Bruno Haible  <bruno@clisp.org>
37683
37684         Fix test dependencies.
37685         * modules/xstrtol-tests (Depends-on): Add inttypes.
37686         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37687
37688 2010-01-25 Pádraig Brady <P@draigBrady.com>
37689
37690         syntax-check: detect incorrect boolean macro values in config.h
37691         * modules/maintainer-makefile (configure.ac): Parameterize the location
37692         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37693         The logic is from Eric Blake and the location indicated by Jim Meyering.
37694         Note the more natural CONFIG_HEADER name is prohibited by automake
37695         for backwards compatibility reasons.
37696         * top/maint.mk (sc_Wundef_boolean): New rule.
37697
37698 2010-01-25  Jim Meyering  <meyering@redhat.com>
37699
37700         bootstrap: detect MacOS 10.6's shasum, too
37701         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37702         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37703
37704 2010-01-23  Jim Meyering  <meyering@redhat.com>
37705
37706         xstrtoll: new module
37707         * modules/xstrtoll: New file.
37708         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37709         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37710         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37711         ./configure fails if you use this module and lack "long long".
37712         * modules/xstrtoll-tests: New module.
37713         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37714         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37715         new init.sh-based test framework.
37716
37717 2010-01-24  Bruno Haible  <bruno@clisp.org>
37718
37719         Tests for module 'yn'.
37720         * modules/yn-tests: New file.
37721         * tests/test-yn.c: New file.
37722
37723         Tests for module 'y1'.
37724         * modules/y1-tests: New file.
37725         * tests/test-y1.c: New file.
37726
37727         Tests for module 'y0'.
37728         * modules/y0-tests: New file.
37729         * tests/test-y0.c: New file.
37730
37731         Tests for module 'tanh'.
37732         * modules/tanh-tests: New file.
37733         * tests/test-tanh.c: New file.
37734
37735         Tests for module 'tan'.
37736         * modules/tan-tests: New file.
37737         * tests/test-tan.c: New file.
37738
37739         Tests for module 'sqrt'.
37740         * modules/sqrt-tests: New file.
37741         * tests/test-sqrt.c: New file.
37742
37743         Tests for module 'sinh'.
37744         * modules/sinh-tests: New file.
37745         * tests/test-sinh.c: New file.
37746
37747         Tests for module 'sin'.
37748         * modules/sin-tests: New file.
37749         * tests/test-sin.c: New file.
37750
37751         Tests for module 'rint'.
37752         * modules/rint-tests: New file.
37753         * tests/test-rint.c: New file.
37754
37755         Tests for module 'remainder'.
37756         * modules/remainder-tests: New file.
37757         * tests/test-remainder.c: New file.
37758
37759         Tests for module 'pow'.
37760         * modules/pow-tests: New file.
37761         * tests/test-pow.c: New file.
37762
37763         Tests for module 'nextafter'.
37764         * modules/nextafter-tests: New file.
37765         * tests/test-nextafter.c: New file.
37766
37767         Tests for module 'modf'.
37768         * modules/modf-tests: New file.
37769         * tests/test-modf.c: New file.
37770
37771         Tests for module 'logb'.
37772         * modules/logb-tests: New file.
37773         * tests/test-logb.c: New file.
37774
37775         Tests for module 'log1p'.
37776         * modules/log1p-tests: New file.
37777         * tests/test-log1p.c: New file.
37778
37779         Tests for module 'log10'.
37780         * modules/log10-tests: New file.
37781         * tests/test-log10.c: New file.
37782
37783         Tests for module 'log'.
37784         * modules/log-tests: New file.
37785         * tests/test-log.c: New file.
37786
37787         Tests for module 'lgamma'.
37788         * modules/lgamma-tests: New file.
37789         * tests/test-lgamma.c: New file.
37790
37791         Tests for module 'ldexp'.
37792         * modules/ldexp-tests: New file.
37793         * tests/test-ldexp.c: New file.
37794
37795         Tests for module 'jn'.
37796         * modules/jn-tests: New file.
37797         * tests/test-jn.c: New file.
37798
37799         Tests for module 'j1'.
37800         * modules/j1-tests: New file.
37801         * tests/test-j1.c: New file.
37802
37803         Tests for module 'j0'.
37804         * modules/j0-tests: New file.
37805         * tests/test-j0.c: New file.
37806
37807         Tests for module 'hypot'.
37808         * modules/hypot-tests: New file.
37809         * tests/test-hypot.c: New file.
37810
37811         Tests for module 'fmod'.
37812         * modules/fmod-tests: New file.
37813         * tests/test-fmod.c: New file.
37814
37815         Tests for module 'fabs'.
37816         * modules/fabs-tests: New file.
37817         * tests/test-fabs.c: New file.
37818
37819         Tests for module 'exp'.
37820         * modules/exp-tests: New file.
37821         * tests/test-exp.c: New file.
37822
37823         Tests for module 'erfc'.
37824         * modules/erfc-tests: New file.
37825         * tests/test-erfc.c: New file.
37826
37827         Tests for module 'erf'.
37828         * modules/erf-tests: New file.
37829         * tests/test-erf.c: New file.
37830
37831         Tests for module 'cosh'.
37832         * modules/cosh-tests: New file.
37833         * tests/test-cosh.c: New file.
37834
37835         Tests for module 'cos'.
37836         * modules/cos-tests: New file.
37837         * tests/test-cos.c: New file.
37838
37839         Tests for module 'copysign'.
37840         * modules/copysign-tests: New file.
37841         * tests/test-copysign.c: New file.
37842
37843         Tests for module 'cbrt'.
37844         * modules/cbrt-tests: New file.
37845         * tests/test-cbrt.c: New file.
37846
37847         Tests for module 'atan2'.
37848         * modules/atan2-tests: New file.
37849         * tests/test-atan2.c: New file.
37850
37851         Tests for module 'atan'.
37852         * modules/atan-tests: New file.
37853         * tests/test-atan.c: New file.
37854
37855         Tests for module 'asin'.
37856         * modules/asin-tests: New file.
37857         * tests/test-asin.c: New file.
37858
37859         Tests for module 'acos'.
37860         * modules/acos-tests: New file.
37861         * tests/test-acos.c: New file.
37862
37863 2010-01-24  Bruno Haible  <bruno@clisp.org>
37864
37865         Fix tests for common <math.h> functions.
37866         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37867         code snippet that references the function pointer, rather than merely
37868         calling the function. Substitute the FUNC_LIBM variable.
37869         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37870         * modules/acos (configure.ac): Likewise.
37871         * modules/asin (configure.ac): Likewise.
37872         * modules/atan (configure.ac): Likewise.
37873         * modules/atan2 (configure.ac): Likewise.
37874         * modules/cbrt (configure.ac): Likewise.
37875         * modules/copysign (configure.ac): Likewise.
37876         * modules/cos (configure.ac): Likewise.
37877         * modules/cosh (configure.ac): Likewise.
37878         * modules/erf (configure.ac): Likewise.
37879         * modules/erfc (configure.ac): Likewise.
37880         * modules/exp (configure.ac): Likewise.
37881         * modules/fabs (configure.ac): Likewise.
37882         * modules/fmod (configure.ac): Likewise.
37883         * modules/hypot (configure.ac): Likewise.
37884         * modules/j0 (configure.ac): Likewise.
37885         * modules/j1 (configure.ac): Likewise.
37886         * modules/jn (configure.ac): Likewise.
37887         * modules/ldexp (configure.ac): Likewise.
37888         * modules/lgamma (configure.ac): Likewise.
37889         * modules/log (configure.ac): Likewise.
37890         * modules/log10 (configure.ac): Likewise.
37891         * modules/log1p (configure.ac): Likewise.
37892         * modules/logb (configure.ac): Likewise.
37893         * modules/modf (configure.ac): Likewise.
37894         * modules/nextafter (configure.ac): Likewise.
37895         * modules/pow (configure.ac): Likewise.
37896         * modules/remainder (configure.ac): Likewise.
37897         * modules/rint (configure.ac): Likewise.
37898         * modules/sin (configure.ac): Likewise.
37899         * modules/sinh (configure.ac): Likewise.
37900         * modules/tan (configure.ac): Likewise.
37901         * modules/tanh (configure.ac): Likewise.
37902         * modules/y0 (configure.ac): Likewise.
37903         * modules/y1 (configure.ac): Likewise.
37904         * modules/yn (configure.ac): Likewise.
37905
37906 2010-01-24  Bruno Haible  <bruno@clisp.org>
37907
37908         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37909         * tests/test-acosl.c (x): New variable.
37910         (main): Store argument in x and fetch it from x.
37911         * tests/test-asinl.c (x): New variable.
37912         (main): Store argument in x and fetch it from x.
37913         * tests/test-atanl.c (x): New variable.
37914         (main): Store argument in x and fetch it from x.
37915         * tests/test-cosl.c (x): New variable.
37916         (main): Store argument in x and fetch it from x.
37917         * tests/test-expl.c (x): New variable.
37918         (main): Store argument in x and fetch it from x.
37919         * tests/test-logl.c (x): New variable.
37920         (main): Store argument in x and fetch it from x.
37921         * tests/test-sinl.c (x): New variable.
37922         (main): Store argument in x and fetch it from x.
37923         * tests/test-sqrtl.c (x): New variable.
37924         (main): Store argument in x and fetch it from x.
37925         * tests/test-tanl.c (x): New variable.
37926         (main): Store argument in x and fetch it from x.
37927
37928 2010-01-24  Bruno Haible  <bruno@clisp.org>
37929
37930         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37931         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37932         assignments to the initial TESTS_ENVIRONMENT.
37933         * doc/gnulib.texi (Unit test modules): Document it.
37934         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37935         TESTS_ENVIRONMENT.
37936         * modules/btowc-tests (Makefile.am): Likewise.
37937         * modules/c-stack-tests (Makefile.am): Likewise.
37938         * modules/c-strcase-tests (Makefile.am): Likewise.
37939         * modules/copy-file-tests (Makefile.am): Likewise.
37940         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37941         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37942         * modules/mbrtowc-tests (Makefile.am): Likewise.
37943         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37944         * modules/mbscasestr-tests (Makefile.am): Likewise.
37945         * modules/mbschr-tests (Makefile.am): Likewise.
37946         * modules/mbscspn-tests (Makefile.am): Likewise.
37947         * modules/mbsinit-tests (Makefile.am): Likewise.
37948         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37949         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37950         * modules/mbspbrk-tests (Makefile.am): Likewise.
37951         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37952         * modules/mbsrchr-tests (Makefile.am): Likewise.
37953         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37954         * modules/mbsspn-tests (Makefile.am): Likewise.
37955         * modules/mbsstr-tests (Makefile.am): Likewise.
37956         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37957         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37958         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37959         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37960         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37961         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37962         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37963         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37964         * modules/wcrtomb-tests (Makefile.am): Likewise.
37965         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37966         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37967         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37968         assignments from TESTS_ENVIRONMENT.
37969         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37970         augmentation.
37971         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37972         * modules/atexit-tests (Makefile.am): Likewise.
37973         * modules/binary-io-tests (Makefile.am): Likewise.
37974         * modules/closein-tests (Makefile.am): Likewise.
37975         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37976         * modules/exclude-tests (Makefile.am): Likewise.
37977         * modules/fflush-tests (Makefile.am): Likewise.
37978         * modules/fpending-tests (Makefile.am): Likewise.
37979         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37980         * modules/freadahead-tests (Makefile.am): Likewise.
37981         * modules/freadptr-tests (Makefile.am): Likewise.
37982         * modules/freadseek-tests (Makefile.am): Likewise.
37983         * modules/fseek-tests (Makefile.am): Likewise.
37984         * modules/fseeko-tests (Makefile.am): Likewise.
37985         * modules/ftell-tests (Makefile.am): Likewise.
37986         * modules/ftello-tests (Makefile.am): Likewise.
37987         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37988         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37989         * modules/lseek-tests (Makefile.am): Likewise.
37990         * modules/parse-duration-tests (Makefile.am): Likewise.
37991         * modules/perror-tests (Makefile.am): Likewise.
37992         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37993         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37994         * modules/pipe-tests (Makefile.am): Likewise.
37995         * modules/pread-tests (Makefile.am): Likewise.
37996         * modules/printf-posix-tests (Makefile.am): Likewise.
37997         * modules/select-tests (Makefile.am): Likewise.
37998         * modules/sigpipe-tests (Makefile.am): Likewise.
37999         * modules/tsearch-tests (Makefile.am): Likewise.
38000         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38001         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38002         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38003         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38004         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38005         * modules/version-etc-tests (Makefile.am): Likewise.
38006         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38007         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38008         * modules/xalloc-die-tests (Makefile.am): Likewise.
38009         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38010         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38011         * modules/xstrtol-tests (Makefile.am): Likewise.
38012         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38013         * modules/yesno-tests (Makefile.am): Likewise.
38014         Suggested by Jim Meyering.
38015
38016 2010-01-24  Bruno Haible  <bruno@clisp.org>
38017
38018         More documentation.
38019         * doc/gnulib.texi (Writing modules): New chapter.
38020         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38021         the new chapter.
38022
38023 2010-01-24  Jim Meyering  <meyering@redhat.com>
38024
38025         maint.mk: do not prepend "./" after filtering
38026         * top/maint.mk (_prepend_srcdir_prefix): New variable
38027         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38028         "./" when $(srcdir) is ".".
38029
38030         define STREQ(a,b) consistently, removing useless parentheses
38031         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38032         since the only risk is that "a" or "b" contains an unparenthesized
38033         comma, but if either did that, STREQ would have 3 or more arguments.
38034         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38035         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38036         * lib/hash-triple.c (STREQ): Likewise.
38037         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38038         * lib/getugroups.c (STREQ): Likewise.
38039
38040 2010-01-23  Jim Meyering  <meyering@redhat.com>
38041
38042         maint.mk: fix syntax-check in a non-srcdir build directory
38043         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38044         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38045
38046 2010-01-22  Jim Meyering  <meyering@redhat.com>
38047
38048         userspec: add unit tests
38049         * tests/test-userspec.c: New file.
38050         * modules/userspec-tests: Likewise.
38051
38052 2010-01-21  Jim Meyering  <meyering@redhat.com>
38053
38054         maint.mk: handle source file names containing "." robustly
38055         * top/maint.mk (_dot_escaped_srcdir): Define.
38056         (VC_LIST): Use it in LHS of sed substitution.
38057
38058 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38059
38060         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38061         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38062         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38063         from a non-srcdir build.
38064
38065 2010-01-20  Eric Blake  <ebb9@byu.net>
38066
38067         warn-on-use: use instead of link-warning
38068         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38069         * modules/unistd (Depends-on, Makefile.am): Likewise.
38070         * modules/arpa_inet (Depends-on): Replace link-warning with
38071         warn-on-use.
38072         (Makefile.am): Update rules accordingly.
38073         * modules/ctype (Depends-on, Makefile.am): Likewise.
38074         * modules/dirent (Depends-on, Makefile.am): Likewise.
38075         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38076         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38077         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38078         * modules/locale (Depends-on, Makefile.am): Likewise.
38079         * modules/math (Depends-on, Makefile.am): Likewise.
38080         * modules/search (Depends-on, Makefile.am): Likewise.
38081         * modules/signal (Depends-on, Makefile.am): Likewise.
38082         * modules/spawn (Depends-on, Makefile.am): Likewise.
38083         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38084         * modules/string (Depends-on, Makefile.am): Likewise.
38085         * modules/strings (Depends-on, Makefile.am): Likewise.
38086         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38087         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38088         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38089         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38090         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38091         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38092         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38093         * modules/wchar (Depends-on, Makefile.am): Likewise.
38094         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38095         should be poisoned.
38096         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38097         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38098         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38099         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38100         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38101         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38102         * m4/math_h.m4 (gl_MATH_H): Likewise.
38103         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38104         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38105         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38106         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38107         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38108         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38109         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38110         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38111         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38113         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38115         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38116         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38117         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38118         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38119         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38120         GL_LINK_WARNING.
38121         * lib/ctype.in.h: Likewise.
38122         * lib/dirent.in.h: Likewise.
38123         * lib/fcntl.in.h: Likewise.
38124         * lib/inttypes.in.h: Likewise.
38125         * lib/langinfo.in.h: Likewise.
38126         * lib/locale.in.h: Likewise.
38127         * lib/math.in.h: Likewise.
38128         * lib/search.in.h: Likewise.
38129         * lib/signal.in.h: Likewise.
38130         * lib/spawn.in.h: Likewise.
38131         * lib/stdio.in.h: Likewise.
38132         * lib/stdlib.in.h: Likewise.
38133         * lib/string.in.h: Likewise.
38134         * lib/strings.in.h: Likewise.
38135         * lib/sys_file.in.h: Likewise.
38136         * lib/sys_ioctl.in.h: Likewise.
38137         * lib/sys_select.in.h: Likewise.
38138         * lib/sys_socket.in.h: Likewise.
38139         * lib/sys_stat.in.h: Likewise.
38140         * lib/sys_times.in.h: Likewise.
38141         * lib/sys_utsname.in.h: Likewise.
38142         * lib/unistd.in.h: Likewise.
38143         * lib/wchar.in.h: Likewise.
38144
38145 2010-01-20  Bruno Haible  <bruno@clisp.org>
38146
38147         Avoid duplicate -lm.
38148         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38149         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38151         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38152         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38153         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38154         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38155         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38156         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38157         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38158         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38159         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38160         Reported by Paolo Bonzini.
38161
38162 2010-01-19  Bruno Haible  <bruno@clisp.org>
38163
38164         langinfo, nl_langinfo: Relicense under LGPLv2+.
38165         * modules/langinfo (License): Change to LGPLv2+.
38166         * modules/nl_langinfo (License): Likewise.
38167         Patch by David Lutterkort <lutter@redhat.com>.
38168
38169 2010-01-19  Bruno Haible  <bruno@clisp.org>
38170
38171         Avoid compilation error with cc on OSF/1 5.1.
38172         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38173         statement, not before.
38174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38175
38176 2010-01-18  Bruno Haible  <bruno@clisp.org>
38177
38178         Avoid a link error due to the __printf__ symbol.
38179         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38180         and 2.6.x.
38181         (__format__, __printf__): Remove definitions.
38182         * lib/argp-fmtstream.h: Likewise.
38183         * lib/argp.h: Likewise.
38184         * lib/error.h: Likewise.
38185         * lib/vasnprintf.h: Likewise.
38186         * lib/xprintf.h: Likewise.
38187         * lib/xvasprintf.h: Likewise.
38188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38189
38190 2010-01-18  Bruno Haible  <bruno@clisp.org>
38191
38192         Tests for module 'tanl'.
38193         * modules/tanl-tests: New file.
38194         * tests/test-tanl.c: New file.
38195
38196         Tests for module 'sqrtl'.
38197         * modules/sqrtl-tests: New file.
38198         * tests/test-sqrtl.c: New file.
38199
38200         Tests for module 'sinl'.
38201         * modules/sinl-tests: New file.
38202         * tests/test-sinl.c: New file.
38203
38204         Tests for module 'logl'.
38205         * modules/logl-tests: New file.
38206         * tests/test-logl.c: New file.
38207
38208         Tests for module 'expl'.
38209         * modules/expl-tests: New file.
38210         * tests/test-expl.c: New file.
38211
38212         Tests for module 'cosl'.
38213         * modules/cosl-tests: New file.
38214         * tests/test-cosl.c: New file.
38215
38216         Tests for module 'atanl'.
38217         * modules/atanl-tests: New file.
38218         * tests/test-atanl.c: New file.
38219
38220         Tests for module 'asinl'.
38221         * modules/asinl-tests: New file.
38222         * tests/test-asinl.c: New file.
38223
38224         Tests for module 'acosl'.
38225         * modules/acosl-tests: New file.
38226         * tests/test-acosl.c: New file.
38227
38228         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38229         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38230         tanl): Use the standard gnulib idiom.
38231         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38232         * lib/sinl.c: Likewise.
38233         * lib/tanl.c: Don't include trigl.c.
38234         (kernel_tanl): Make static.
38235         * lib/sincosl.c: Include trigl.h first.
38236         * lib/trigl.c: Likewise.
38237         * m4/acosl.m4: New file.
38238         * m4/asinl.m4: New file.
38239         * m4/atanl.m4: New file.
38240         * m4/cosl.m4: New file.
38241         * m4/expl.m4: New file.
38242         * m4/logl.m4: New file.
38243         * m4/sinl.m4: New file.
38244         * m4/sqrtl.m4: New file.
38245         * m4/tanl.m4: New file.
38246         * m4/mathl.m4: Remove file.
38247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38248         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38249         Don't initialize GNULIB_MATHL.
38250         * modules/acosl: New file.
38251         * modules/asinl: New file.
38252         * modules/atanl: New file.
38253         * modules/cosl: New file.
38254         * modules/expl: New file.
38255         * modules/logl: New file.
38256         * modules/sinl: New file.
38257         * modules/sqrtl: New file.
38258         * modules/tanl: New file.
38259         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38260         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38261         substitute GNULIB_MATHL.
38262         * modules/mathl: Rewritten.
38263         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38264         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38265         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38266         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38267         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38268         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38269         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38270         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38271         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38272
38273 2010-01-18  Bruno Haible  <bruno@clisp.org>
38274
38275         sqrt: Make gl_FUNC_SQRT requirable.
38276         * m4/sqrt.m4: New file.
38277         * modules/sqrt (Files): Add it.
38278         (configure.ac): Invoke gl_FUNC_SQRT.
38279
38280 2010-01-18  Bruno Haible  <bruno@clisp.org>
38281
38282         New modules for common <math.h> functions.
38283         * m4/mathfunc.m4: New file.
38284         * modules/acos: New file.
38285         * modules/asin: New file.
38286         * modules/atan: New file.
38287         * modules/atan2: New file.
38288         * modules/cbrt: New file.
38289         * modules/copysign: New file.
38290         * modules/cos: New file.
38291         * modules/cosh: New file.
38292         * modules/erf: New file.
38293         * modules/erfc: New file.
38294         * modules/exp: New file.
38295         * modules/fabs: New file.
38296         * modules/fmod: New file.
38297         * modules/hypot: New file.
38298         * modules/j0: New file.
38299         * modules/j1: New file.
38300         * modules/jn: New file.
38301         * modules/ldexp: New file.
38302         * modules/lgamma: New file.
38303         * modules/log: New file.
38304         * modules/log10: New file.
38305         * modules/log1p: New file.
38306         * modules/logb: New file.
38307         * modules/modf: New file.
38308         * modules/nextafter: New file.
38309         * modules/pow: New file.
38310         * modules/remainder: New file.
38311         * modules/rint: New file.
38312         * modules/sin: New file.
38313         * modules/sinh: New file.
38314         * modules/sqrt: New file.
38315         * modules/tan: New file.
38316         * modules/tanh: New file.
38317         * modules/y0: New file.
38318         * modules/y1: New file.
38319         * modules/yn: New file.
38320         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38321         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38322         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38323         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38324         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38325         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38326         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38327         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38328         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38329         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38330         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38331         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38332         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38333         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38334         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38335         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38336         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38337         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38338         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38339         * doc/posix-functions/log.texi: Mention the 'log' module.
38340         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38341         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38342         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38343         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38344         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38345         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38346         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38347         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38348         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38349         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38350         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38351         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38352         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38353         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38354         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38355         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38356
38357 2010-01-18  Jim Meyering  <meyering@redhat.com>
38358
38359         ignore-value: relax license to LGPLv2+
38360         * modules/ignore-value (License): Relax to LGPLv2+.
38361
38362         getdate: don't leak when TZ contains two or more '"'s
38363         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38364         double quote in TZ after the first one.
38365
38366         readtokens: do not leak internal token_lengths buffer
38367         * lib/readtokens.c (readtokens): Free the local, lengths,
38368         when the supplied "token_lengths" parameter is NULL.
38369
38370 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38371
38372         Fix a couple of missing LIBTHREAD link failures on AIX.
38373         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38374         $(LIBTHREAD).
38375         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38376
38377         Link test-poll against INET_PTON_LIB.
38378         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38379         for inet_pton on Solaris 10.
38380
38381 2010-01-17  Bruno Haible  <bruno@clisp.org>
38382
38383         unistdio/*-sprintf: Fix typo in module description.
38384         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38385         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38386         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38387         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38388         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38389         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38390         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38391         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38392
38393 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38394
38395         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38396         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38397         variables in shell case patterns, for AIX and HP-UX ksh.
38398
38399         Split large sed scripts, for HP-UX sed.
38400         * modules/stdio: Split sed scripts around 50 sed commands,
38401         to avoid HP-UX limit of 99 commands, in the near future.
38402         * modules/string: Likewise.
38403         * modules/unistd: Likewise.
38404
38405         gnulib-tool: avoid writing in the current directory.
38406         * gnulib-tool (func_emit_lib_Makefile_am)
38407         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38408         not in the current directory, so concurrent gnulib-tool
38409         instances do not interfere.
38410
38411 2010-01-16  Jim Meyering  <meyering@redhat.com>
38412
38413         doc: update users.txt
38414         * users.txt: Add grep.
38415         (diffutils, gzip): Update URLs.
38416
38417 2010-01-12  Bruno Haible  <bruno@clisp.org>
38418
38419         posix_spawn: Avoid test failure on Cygwin.
38420         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38421         characters.
38422         Reported by Simon Josefsson.
38423
38424 2010-01-12  Bruno Haible  <bruno@clisp.org>
38425
38426         * tests/test-cond.c (main): When skipping the test, show the reason.
38427
38428 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38429
38430         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38431
38432 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38433
38434         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38435         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38436
38437 2010-01-12  Eric Blake  <ebb9@byu.net>
38438
38439         build: guarantee AS_VAR_IF
38440         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38441         (gl_AS_VAR_IF): Move...
38442         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38443         Reported by Simon Josefsson.
38444
38445 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38446
38447         * lib/stdio.in.h: Fix typo.
38448
38449 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38450
38451         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38452         libgpg-error.
38453
38454 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38455
38456         * tests/test-xalloc-die.sh: Use $EXEEXT.
38457
38458 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38459             Bruno Haible  <bruno@clisp.org>
38460
38461         getlogin, getlogin_r: Avoid test failure.
38462         * tests/test-getlogin.c: Include <stdio.h>.
38463         (main): Skip the test when the function fails because stdin is not a
38464         tty.
38465         * tests/test-getlogin_r.c: Include <stdio.h>.
38466         (main): Skip the test when the function fails because stdin is not a
38467         tty.
38468
38469 2010-01-11  Eric Blake  <ebb9@byu.net>
38470
38471         tests: avoid more large file warnings
38472         * tests/test-fflush.c: Avoid warning about ftell use.
38473         * tests/test-fseek.c: Avoid warning about fseek use.
38474
38475 2010-01-10  Bruno Haible  <bruno@clisp.org>
38476
38477         nproc: Work better on Linux when /proc and /sys are not mounted.
38478         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38479         as lower bound when, on glibc/Linux systems,
38480         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38481         Suggested by Pádraig Brady <P@draigbrady.com>.
38482         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38483
38484         nproc: Refactor.
38485         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38486         extracted from num_processors.
38487         (num_processors): Call it.
38488
38489 2010-01-11  Jim Meyering  <meyering@redhat.com>
38490
38491         utimecmp: avoid new warning from upcoming gcc-4.5.0
38492         * lib/utimecmp.c (BILLION): Define using #define rather than an
38493         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38494
38495 2010-01-11  Eric Blake  <ebb9@byu.net>
38496
38497         math: add portability warnings for classification macros
38498         * modules/math (Depends-on): Add warn-on-use.
38499         (Makefile.am): Provide new substitutions.
38500         * m4/math_h.m4 (gl_MATH_H): Require inline.
38501         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38502         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38503         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38504         implement warnings.
38505
38506         unistd: warn on use of environ without module
38507         * modules/unistd (Depends-on): Add warn-on-use.
38508         (Makefile.am): Provide new substitutions.
38509         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38510         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38511
38512         stdio: warn on suspicious uses
38513         * modules/stdio (Depends-on): Add warn-on-use.
38514         (Makefile.am): Provide new substitutions.
38515         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38516         fseeko.
38517         * lib/stdio.in.h (gets): Always warn on use.
38518         (fseek, ftell): Adjust when warnings are issued, and honor
38519         _GL_NO_LARGE_FILES as a way to silence the warning.
38520         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38521         any warning about large file offsets.
38522         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38523         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38524         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38525         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38526         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38527         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38528         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38529         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38530
38531         warn-on-use: new module
38532         * modules/warn-on-use: New file.
38533         * build-aux/warn-on-use.h: Likewise.
38534         * m4/warn-on-use.m4: Likewise.
38535         * MODULES.html.sh (Support for building): Mention it.
38536
38537 2010-01-10  Bruno Haible  <bruno@clisp.org>
38538
38539         Tests for module 'unistr/u32-strdup'.
38540         * modules/unistr/u32-strdup-tests: New file.
38541         * tests/unistr/test-u32-strdup.c: New file.
38542
38543         Tests for module 'unistr/u16-strdup'.
38544         * modules/unistr/u16-strdup-tests: New file.
38545         * tests/unistr/test-u16-strdup.c: New file.
38546
38547         Tests for module 'unistr/u8-strdup'.
38548         * modules/unistr/u8-strdup-tests: New file.
38549         * tests/unistr/test-u8-strdup.c: New file.
38550         * tests/unistr/test-strdup.h: New file.
38551
38552         Tests for module 'unistr/u32-strncmp'.
38553         * modules/unistr/u32-strncmp-tests: New file.
38554         * tests/unistr/test-u32-strncmp.c: New file.
38555
38556         Tests for module 'unistr/u16-strncmp'.
38557         * modules/unistr/u16-strncmp-tests: New file.
38558         * tests/unistr/test-u16-strncmp.c: New file.
38559
38560         Tests for module 'unistr/u8-strncmp'.
38561         * modules/unistr/u8-strncmp-tests: New file.
38562         * tests/unistr/test-u8-strncmp.c: New file.
38563         * tests/unistr/test-strncmp.h: New file.
38564
38565         Tests for module 'unistr/u32-strcoll'.
38566         * modules/unistr/u32-strcoll-tests: New file.
38567         * tests/unistr/test-u32-strcoll.c: New file.
38568
38569         Tests for module 'unistr/u16-strcoll'.
38570         * modules/unistr/u16-strcoll-tests: New file.
38571         * tests/unistr/test-u16-strcoll.c: New file.
38572
38573         Tests for module 'unistr/u8-strcoll'.
38574         * modules/unistr/u8-strcoll-tests: New file.
38575         * tests/unistr/test-u8-strcoll.c: New file.
38576
38577         Tests for module 'unistr/u32-strcmp'.
38578         * modules/unistr/u32-strcmp-tests: New file.
38579         * tests/unistr/test-u32-strcmp.c: New file.
38580         * tests/unistr/test-u32-strcmp.h: New file.
38581
38582         Tests for module 'unistr/u16-strcmp'.
38583         * modules/unistr/u16-strcmp-tests: New file.
38584         * tests/unistr/test-u16-strcmp.c: New file.
38585         * tests/unistr/test-u16-strcmp.h: New file.
38586
38587         Tests for module 'unistr/u8-strcmp'.
38588         * modules/unistr/u8-strcmp-tests: New file.
38589         * tests/unistr/test-u8-strcmp.c: New file.
38590         * tests/unistr/test-u8-strcmp.h: New file.
38591         * tests/unistr/test-strcmp.h: New file.
38592
38593         Tests for module 'unistr/u32-strncat'.
38594         * modules/unistr/u32-strncat-tests: New file.
38595         * tests/unistr/test-u32-strncat.c: New file.
38596
38597         Tests for module 'unistr/u16-strncat'.
38598         * modules/unistr/u16-strncat-tests: New file.
38599         * tests/unistr/test-u16-strncat.c: New file.
38600
38601         Tests for module 'unistr/u8-strncat'.
38602         * modules/unistr/u8-strncat-tests: New file.
38603         * tests/unistr/test-u8-strncat.c: New file.
38604         * tests/unistr/test-strncat.h: New file.
38605
38606         Tests for module 'unistr/u32-strcat'.
38607         * modules/unistr/u32-strcat-tests: New file.
38608         * tests/unistr/test-u32-strcat.c: New file.
38609
38610         Tests for module 'unistr/u16-strcat'.
38611         * modules/unistr/u16-strcat-tests: New file.
38612         * tests/unistr/test-u16-strcat.c: New file.
38613
38614         Tests for module 'unistr/u8-strcat'.
38615         * modules/unistr/u8-strcat-tests: New file.
38616         * tests/unistr/test-u8-strcat.c: New file.
38617         * tests/unistr/test-strcat.h: New file.
38618
38619         Tests for module 'unistr/u32-stpncpy'.
38620         * modules/unistr/u32-stpncpy-tests: New file.
38621         * tests/unistr/test-u32-stpncpy.c: New file.
38622
38623         Tests for module 'unistr/u16-stpncpy'.
38624         * modules/unistr/u16-stpncpy-tests: New file.
38625         * tests/unistr/test-u16-stpncpy.c: New file.
38626
38627         Tests for module 'unistr/u8-stpncpy'.
38628         * modules/unistr/u8-stpncpy-tests: New file.
38629         * tests/unistr/test-u8-stpncpy.c: New file.
38630         * tests/unistr/test-stpncpy.h: New file.
38631
38632         Tests for module 'unistr/u32-strncpy'.
38633         * modules/unistr/u32-strncpy-tests: New file.
38634         * tests/unistr/test-u32-strncpy.c: New file.
38635
38636         Tests for module 'unistr/u16-strncpy'.
38637         * modules/unistr/u16-strncpy-tests: New file.
38638         * tests/unistr/test-u16-strncpy.c: New file.
38639
38640         Tests for module 'unistr/u8-strncpy'.
38641         * modules/unistr/u8-strncpy-tests: New file.
38642         * tests/unistr/test-u8-strncpy.c: New file.
38643         * tests/unistr/test-strncpy.h: New file.
38644
38645         Tests for module 'unistr/u32-stpcpy'.
38646         * modules/unistr/u32-stpcpy-tests: New file.
38647         * tests/unistr/test-u32-stpcpy.c: New file.
38648
38649         Tests for module 'unistr/u16-stpcpy'.
38650         * modules/unistr/u16-stpcpy-tests: New file.
38651         * tests/unistr/test-u16-stpcpy.c: New file.
38652
38653         Tests for module 'unistr/u8-stpcpy'.
38654         * modules/unistr/u8-stpcpy-tests: New file.
38655         * tests/unistr/test-u8-stpcpy.c: New file.
38656         * tests/unistr/test-stpcpy.h: New file.
38657
38658         Tests for module 'unistr/u32-strcpy'.
38659         * modules/unistr/u32-strcpy-tests: New file.
38660         * tests/unistr/test-u32-strcpy.c: New file.
38661
38662         Tests for module 'unistr/u16-strcpy'.
38663         * modules/unistr/u16-strcpy-tests: New file.
38664         * tests/unistr/test-u16-strcpy.c: New file.
38665
38666         Tests for module 'unistr/u8-strcpy'.
38667         * modules/unistr/u8-strcpy-tests: New file.
38668         * tests/unistr/test-u8-strcpy.c: New file.
38669         * tests/unistr/test-strcpy.h: New file.
38670
38671         Tests for module 'unistr/u32-strnlen'.
38672         * modules/unistr/u32-strnlen-tests: New file.
38673         * tests/unistr/test-u32-strnlen.c: New file.
38674
38675         Tests for module 'unistr/u16-strnlen'.
38676         * modules/unistr/u16-strnlen-tests: New file.
38677         * tests/unistr/test-u16-strnlen.c: New file.
38678
38679         Tests for module 'unistr/u8-strnlen'.
38680         * modules/unistr/u8-strnlen-tests: New file.
38681         * tests/unistr/test-u8-strnlen.c: New file.
38682         * tests/unistr/test-strnlen.h: New file.
38683
38684         Tests for module 'unistr/u32-strlen'.
38685         * modules/unistr/u32-strlen-tests: New file.
38686         * tests/unistr/test-u32-strlen.c: New file.
38687
38688         Tests for module 'unistr/u16-strlen'.
38689         * modules/unistr/u16-strlen-tests: New file.
38690         * tests/unistr/test-u16-strlen.c: New file.
38691
38692         Tests for module 'unistr/u8-strlen'.
38693         * modules/unistr/u8-strlen-tests: New file.
38694         * tests/unistr/test-u8-strlen.c: New file.
38695
38696         Tests for module 'unistr/u32-prev'.
38697         * modules/unistr/u32-prev-tests: New file.
38698         * tests/unistr/test-u32-prev.c: New file.
38699
38700         Tests for module 'unistr/u16-prev'.
38701         * modules/unistr/u16-prev-tests: New file.
38702         * tests/unistr/test-u16-prev.c: New file.
38703
38704         Tests for module 'unistr/u8-prev'.
38705         * modules/unistr/u8-prev-tests: New file.
38706         * tests/unistr/test-u8-prev.c: New file.
38707
38708         Tests for module 'unistr/u32-next'.
38709         * modules/unistr/u32-next-tests: New file.
38710         * tests/unistr/test-u32-next.c: New file.
38711
38712         Tests for module 'unistr/u16-next'.
38713         * modules/unistr/u16-next-tests: New file.
38714         * tests/unistr/test-u16-next.c: New file.
38715
38716         Tests for module 'unistr/u8-next'.
38717         * modules/unistr/u8-next-tests: New file.
38718         * tests/unistr/test-u8-next.c: New file.
38719
38720         Tests for module 'unistr/u32-strmbtouc'.
38721         * modules/unistr/u32-strmbtouc-tests: New file.
38722         * tests/unistr/test-u32-strmbtouc.c: New file.
38723
38724         Tests for module 'unistr/u16-strmbtouc'.
38725         * modules/unistr/u16-strmbtouc-tests: New file.
38726         * tests/unistr/test-u16-strmbtouc.c: New file.
38727
38728         Tests for module 'unistr/u8-strmbtouc'.
38729         * modules/unistr/u8-strmbtouc-tests: New file.
38730         * tests/unistr/test-u8-strmbtouc.c: New file.
38731
38732         Tests for module 'unistr/u32-strmblen'.
38733         * modules/unistr/u32-strmblen-tests: New file.
38734         * tests/unistr/test-u32-strmblen.c: New file.
38735
38736         Tests for module 'unistr/u16-strmblen'.
38737         * modules/unistr/u16-strmblen-tests: New file.
38738         * tests/unistr/test-u16-strmblen.c: New file.
38739
38740         Tests for module 'unistr/u8-strmblen'.
38741         * modules/unistr/u8-strmblen-tests: New file.
38742         * tests/unistr/test-u8-strmblen.c: New file.
38743
38744         Tests for module 'unistr/u32-cpy-alloc'.
38745         * modules/unistr/u32-cpy-alloc-tests: New file.
38746         * tests/unistr/test-u32-cpy-alloc.c: New file.
38747
38748         Tests for module 'unistr/u16-cpy-alloc'.
38749         * modules/unistr/u16-cpy-alloc-tests: New file.
38750         * tests/unistr/test-u16-cpy-alloc.c: New file.
38751
38752         Tests for module 'unistr/u8-cpy-alloc'.
38753         * modules/unistr/u8-cpy-alloc-tests: New file.
38754         * tests/unistr/test-u8-cpy-alloc.c: New file.
38755         * tests/unistr/test-cpy-alloc.h: New file.
38756
38757         Tests for module 'unistr/u32-mbsnlen'.
38758         * modules/unistr/u32-mbsnlen-tests: New file.
38759         * tests/unistr/test-u32-mbsnlen.c: New file.
38760
38761         Tests for module 'unistr/u16-mbsnlen'.
38762         * modules/unistr/u16-mbsnlen-tests: New file.
38763         * tests/unistr/test-u16-mbsnlen.c: New file.
38764
38765         Tests for module 'unistr/u8-mbsnlen'.
38766         * modules/unistr/u8-mbsnlen-tests: New file.
38767         * tests/unistr/test-u8-mbsnlen.c: New file.
38768
38769         Tests for module 'unistr/u32-chr'.
38770         * modules/unistr/u32-chr-tests: New file.
38771         * tests/unistr/test-u32-chr.c: New file.
38772
38773         Tests for module 'unistr/u16-chr'.
38774         * modules/unistr/u16-chr-tests: New file.
38775         * tests/unistr/test-u16-chr.c: New file.
38776
38777         Tests for module 'unistr/u8-chr'.
38778         * modules/unistr/u8-chr-tests: New file.
38779         * tests/unistr/test-u8-chr.c: New file.
38780         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38781
38782         Tests for module 'unistr/u32-cmp2'.
38783         * modules/unistr/u32-cmp2-tests: New file.
38784         * tests/unistr/test-u32-cmp2.c: New file.
38785
38786         Tests for module 'unistr/u16-cmp2'.
38787         * modules/unistr/u16-cmp2-tests: New file.
38788         * tests/unistr/test-u16-cmp2.c: New file.
38789
38790         Tests for module 'unistr/u8-cmp2'.
38791         * modules/unistr/u8-cmp2-tests: New file.
38792         * tests/unistr/test-u8-cmp2.c: New file.
38793         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38794
38795         Tests for module 'unistr/u32-cmp'.
38796         * modules/unistr/u32-cmp-tests: New file.
38797         * tests/unistr/test-u32-cmp.c: New file.
38798
38799         Tests for module 'unistr/u16-cmp'.
38800         * modules/unistr/u16-cmp-tests: New file.
38801         * tests/unistr/test-u16-cmp.c: New file.
38802
38803         Tests for module 'unistr/u8-cmp'.
38804         * modules/unistr/u8-cmp-tests: New file.
38805         * tests/unistr/test-u8-cmp.c: New file.
38806         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38807
38808         Tests for module 'unistr/u32-set'.
38809         * modules/unistr/u32-set-tests: New file.
38810         * tests/unistr/test-u32-set.c: New file.
38811
38812         Tests for module 'unistr/u16-set'.
38813         * modules/unistr/u16-set-tests: New file.
38814         * tests/unistr/test-u16-set.c: New file.
38815
38816         Tests for module 'unistr/u8-set'.
38817         * modules/unistr/u8-set-tests: New file.
38818         * tests/unistr/test-u8-set.c: New file.
38819         * tests/unistr/test-set.h: New file.
38820
38821         Tests for module 'unistr/u32-move'.
38822         * modules/unistr/u32-move-tests: New file.
38823         * tests/unistr/test-u32-move.c: New file.
38824
38825         Tests for module 'unistr/u16-move'.
38826         * modules/unistr/u16-move-tests: New file.
38827         * tests/unistr/test-u16-move.c: New file.
38828
38829         Tests for module 'unistr/u8-move'.
38830         * modules/unistr/u8-move-tests: New file.
38831         * tests/unistr/test-u8-move.c: New file.
38832         * tests/unistr/test-move.h: New file.
38833
38834         Tests for module 'unistr/u32-cpy'.
38835         * modules/unistr/u32-cpy-tests: New file.
38836         * tests/unistr/test-u32-cpy.c: New file.
38837
38838         Tests for module 'unistr/u16-cpy'.
38839         * modules/unistr/u16-cpy-tests: New file.
38840         * tests/unistr/test-u16-cpy.c: New file.
38841
38842         Tests for module 'unistr/u8-cpy'.
38843         * modules/unistr/u8-cpy-tests: New file.
38844         * tests/unistr/test-u8-cpy.c: New file.
38845         * tests/unistr/test-cpy.h: New file.
38846
38847 2010-01-09  Bruno Haible  <bruno@clisp.org>
38848
38849         Tests for module 'unistr/u32-uctomb'.
38850         * modules/unistr/u32-uctomb-tests: New file.
38851         * tests/unistr/test-u32-uctomb.c: New file.
38852
38853         Tests for module 'unistr/u16-uctomb'.
38854         * modules/unistr/u16-uctomb-tests: New file.
38855         * tests/unistr/test-u16-uctomb.c: New file.
38856
38857         Tests for module 'unistr/u8-uctomb'.
38858         * modules/unistr/u8-uctomb-tests: New file.
38859         * tests/unistr/test-u8-uctomb.c: New file.
38860
38861         Tests for module 'unistr/u32-mbtoucr'.
38862         * modules/unistr/u32-mbtoucr-tests: New file.
38863         * tests/unistr/test-u32-mbtoucr.c: New file.
38864
38865         Tests for module 'unistr/u16-mbtoucr'.
38866         * modules/unistr/u16-mbtoucr-tests: New file.
38867         * tests/unistr/test-u16-mbtoucr.c: New file.
38868
38869         Tests for module 'unistr/u8-mbtoucr'.
38870         * modules/unistr/u8-mbtoucr-tests: New file.
38871         * tests/unistr/test-u8-mbtoucr.c: New file.
38872
38873         Tests for module 'unistr/u32-mbtouc'.
38874         * modules/unistr/u32-mbtouc-tests: New file.
38875         * tests/unistr/test-u32-mbtouc.c: New file.
38876
38877         Tests for module 'unistr/u16-mbtouc'.
38878         * modules/unistr/u16-mbtouc-tests: New file.
38879         * tests/unistr/test-u16-mbtouc.c: New file.
38880
38881         Tests for module 'unistr/u8-mbtouc'.
38882         * modules/unistr/u8-mbtouc-tests: New file.
38883         * tests/unistr/test-u8-mbtouc.c: New file.
38884
38885         Tests for module 'unistr/u32-mbtouc-unsafe'.
38886         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38887         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38888         * tests/unistr/test-u32-mbtouc.h: New file.
38889
38890         Tests for module 'unistr/u16-mbtouc-unsafe'.
38891         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38892         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38893         * tests/unistr/test-u16-mbtouc.h: New file.
38894
38895         Tests for module 'unistr/u8-mbtouc-unsafe'.
38896         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38897         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38898         * tests/unistr/test-u8-mbtouc.h: New file.
38899
38900         Tests for module 'unistr/u32-mblen'.
38901         * modules/unistr/u32-mblen-tests: New file.
38902         * tests/unistr/test-u32-mblen.c: New file.
38903
38904         Tests for module 'unistr/u16-mblen'.
38905         * modules/unistr/u16-mblen-tests: New file.
38906         * tests/unistr/test-u16-mblen.c: New file.
38907
38908         Tests for module 'unistr/u8-mblen'.
38909         * modules/unistr/u8-mblen-tests: New file.
38910         * tests/unistr/test-u8-mblen.c: New file.
38911
38912         Tests for module 'unistr/u32-to-u16'.
38913         * modules/unistr/u32-to-u16-tests: New file.
38914         * tests/unistr/test-u32-to-u16.c: New file.
38915
38916         Tests for module 'unistr/u32-to-u8'.
38917         * modules/unistr/u32-to-u8-tests: New file.
38918         * tests/unistr/test-u32-to-u8.c: New file.
38919
38920         Tests for module 'unistr/u16-to-u32'.
38921         * modules/unistr/u16-to-u32-tests: New file.
38922         * tests/unistr/test-u16-to-u32.c: New file.
38923
38924         Tests for module 'unistr/u16-to-u8'.
38925         * modules/unistr/u16-to-u8-tests: New file.
38926         * tests/unistr/test-u16-to-u8.c: New file.
38927
38928         Tests for module 'unistr/u8-to-u32'.
38929         * modules/unistr/u8-to-u32-tests: New file.
38930         * tests/unistr/test-u8-to-u32.c: New file.
38931
38932         Tests for module 'unistr/u8-to-u16'.
38933         * modules/unistr/u8-to-u16-tests: New file.
38934         * tests/unistr/test-u8-to-u16.c: New file.
38935
38936         Tests for module 'unistr/u32-check'.
38937         * modules/unistr/u32-check-tests: New file.
38938         * tests/unistr/test-u32-check.c: New file.
38939
38940         Tests for module 'unistr/u16-check'.
38941         * modules/unistr/u16-check-tests: New file.
38942         * tests/unistr/test-u16-check.c: New file.
38943
38944         Tests for module 'unistr/u8-check'.
38945         * modules/unistr/u8-check-tests: New file.
38946         * tests/unistr/test-u8-check.c: New file.
38947
38948         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38949         (category_equals): New function.
38950         (main): Add more tests.
38951         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38952
38953         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38954
38955 2010-01-10  Bruno Haible  <bruno@clisp.org>
38956
38957         unistr/u*-strcoll: Try harder to distinguish different strings.
38958         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38959         compare s1 and s2 to see if they are different.
38960
38961 2010-01-10  Bruno Haible  <bruno@clisp.org>
38962
38963         unistr/u*-stpncpy: Fix the return value.
38964         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38965         description of the return value consistent with stpncpy in glibc.
38966         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38967         written non-NUL unit.
38968
38969 2010-01-10  Bruno Haible  <bruno@clisp.org>
38970
38971         unistr/u*-next: Add missing dependencies.
38972         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38973         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38974         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38975
38976 2010-01-10  Bruno Haible  <bruno@clisp.org>
38977
38978         unistr/u8-mbsnlen: Fix return value for incomplete character.
38979         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38980         u8_mblen.
38981         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38982         Remove unistr/u8-mblen.
38983         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38984         u16_mblen.
38985         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38986         Remove unistr/u16-mblen.
38987
38988 2010-01-10  Bruno Haible  <bruno@clisp.org>
38989
38990         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38991         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38992         Reported by Brian Gough <bjg@gnu.org> and
38993         Chris Clayton <chris2553@googlemail.com> via
38994         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38995
38996 2010-01-09  Bruno Haible  <bruno@clisp.org>
38997
38998         unistr/u16-to-u32: Reject invalid input.
38999         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39000         u16_mbtouc.
39001         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39002         Remove unistr/u16-mbtouc.
39003
39004         unistr/u16-to-u8: Reject invalid input.
39005         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39006         u16_mbtouc.
39007         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39008         Remove unistr/u16-mbtouc.
39009
39010         unistr/u8-to-u32: Reject invalid input.
39011         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39012         u8_mbtouc.
39013         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39014         Remove unistr/u8-mbtouc.
39015
39016         unistr/u8-to-u16: Reject invalid input.
39017         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39018         u8_mbtouc.
39019         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39020         Remove unistr/u8-mbtouc.
39021
39022 2010-01-09  Bruno Haible  <bruno@clisp.org>
39023
39024         Tests for module 'getlogin'.
39025         * modules/getlogin-tests: New file.
39026         * tests/test-getlogin.c: New file.
39027
39028         New module 'getlogin'.
39029         * lib/unistd.in.h (getlogin): New declaration.
39030         * lib/getlogin.c: New file.
39031         * m4/getlogin.m4: New file.
39032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39033         HAVE_GETLOGIN.
39034         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39035         HAVE_GETLOGIN.
39036         * modules/getlogin: New file.
39037         * doc/posix-functions/getlogin.texi: Mention the new module.
39038         Reported by John W. Eaton <jwe@gnu.org>.
39039
39040 2010-01-09  Bruno Haible  <bruno@clisp.org>
39041
39042         getlogin_r: Support for native Windows.
39043         * lib/getlogin_r.c: Include <windows.h>
39044         (getlogin_r): Implement for native Windows.
39045         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39046         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39047         via John W. Eaton <jwe@gnu.org>.
39048
39049 2010-01-09  Bruno Haible  <bruno@clisp.org>
39050
39051         getlogin_r: Small fixes.
39052         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39053         succeeds.
39054         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39055         before testing whether getlogin_r is declared. No need to set
39056         HAVE_DECL_GETLOGIN_R to 1.
39057         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39058
39059 2010-01-09  Bruno Haible  <bruno@clisp.org>
39060
39061         * lib/unistd.in.h (getlogin_r): Add comment.
39062
39063 2010-01-09  Bruno Haible  <bruno@clisp.org>
39064
39065         Tests for module 'getlogin_r'.
39066         * modules/getlogin_r-tests: New file.
39067         * tests/test-getlogin_r.c: New file.
39068
39069 2010-01-09  Jim Meyering  <meyering@redhat.com>
39070
39071         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39072         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39073         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39074
39075 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39076
39077         * lib/dup2.c (rpl_dup2): Improve comment.
39078
39079 2010-01-08  Eric Blake  <ebb9@byu.net>
39080
39081         maint.mk: allow packages to add makefile @@ exceptions
39082         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39083         (sc_makefile_check): Rename...
39084         (sc_makefile_at_at_check): ...to this, and use hook.
39085
39086         dup2: work around mingw bug
39087         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39088         Reported by Simon Josefsson.
39089
39090 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39091
39092         glob: Fix C++ compilation.
39093         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39094         C++.
39095
39096 2010-01-07  Bruno Haible  <bruno@clisp.org>
39097
39098         Fix indentation of wctype.in.h, broken since 2007-01-06.
39099         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39100
39101 2010-01-07  Bruno Haible  <bruno@clisp.org>
39102
39103         mbslen: Avoid collision with system function.
39104         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39105         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39106         * m4/mbslen.m4: New file.
39107         * modules/mbslen (Files): Add it.
39108         (configure.ac): Invoke gl_MBSLEN.
39109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39110         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39111         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39112         via Ian Beckwith <ianb@erislabs.net>.
39113
39114 2010-01-07  Bruno Haible  <bruno@clisp.org>
39115
39116         dirent: Document the last fix.
39117         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39118
39119 2010-01-07  Bruno Haible  <bruno@clisp.org>
39120
39121         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39122         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39123         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39124         va_list are defined.
39125         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39126         Reported by Eric Blake.
39127
39128 2010-01-07  Bruno Haible  <bruno@clisp.org>
39129
39130         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39131         * modules/xlist (Depends-on): Add 'list',
39132         * modules/xoset (Depends-on): Add 'oset'.
39133         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39134
39135 2010-01-07  Bruno Haible  <bruno@clisp.org>
39136
39137         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39138         * doc/posix-functions/strncasecmp.texi: Likewise.
39139
39140 2010-01-07  Bruno Haible  <bruno@clisp.org>
39141
39142         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39143
39144 2010-01-07  John W. Eaton  <jwe@octave.org>
39145
39146         wctype: allow C++ use
39147         * lib/wctype.in.h: Add extern "C" block for C++.
39148
39149 2010-01-06  Eric Blake  <ebb9@byu.net>
39150
39151         maint.mk: detect incorrect GFDL usage
39152         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39153
39154 2010-01-06  Jim Meyering  <meyering@redhat.com>
39155         and Eric Blake  <ebb9@byu.net>
39156
39157         maint.mk: ignore multi-line copyright in NEWS
39158         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39159
39160 2010-01-06  Eric Blake  <ebb9@byu.net>
39161
39162         select: add missing dependency
39163         * modules/select-tests (Depends-on): Move sockets dependency...
39164         * modules/select (Depends-on): ...here.
39165         Reported by Ian Beckwith.
39166
39167         doc: regenerate INSTALL
39168         * doc/INSTALL: Reflect recent autoconf update.
39169         * doc/INSTALL.ISO: Likewise.
39170         * doc/INSTALL.UTF-8: Likewise.
39171
39172         pread: fix compilation on glibc
39173         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39174         Reported by Ralf Wildenhues.
39175
39176         dirent: fix test failure
39177         * lib/dirent.in.h (includes): Guarantee ino_t.
39178         Reported by Ralf Wildenhues.
39179
39180 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39181
39182         linkat, renameat: avoid bad free
39183         * lib/at-func2.c (at_func2): Fix typo.
39184         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39185
39186 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39187
39188         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39189         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39190         to avoid failure of symlink test later.
39191
39192 2010-01-06  Eric Blake  <ebb9@byu.net>
39193
39194         stdio, unistd: guarantee ssize_t
39195         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39196         2008 are exposed when needed.
39197         * lib/stdio.in.h (includes): Likewise.
39198         Reported by Ralf Wildenhues.
39199
39200 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39201
39202         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39203         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39204         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39205
39206 2010-01-06  Jim Meyering  <meyering@redhat.com>
39207
39208         readtokens: this module *does* require xalloc.h
39209         It uses only functions that were omitted by the old syntax-check rule.
39210         * lib/readtokens.c: Include "xalloc.h" once again.
39211         * modules/readtokens (Depends-on): Add xalloc.
39212         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39213
39214 2010-01-05  Eric Blake  <ebb9@byu.net>
39215
39216         maint: support 'make announcement' from a VPATH build
39217         * top/maint.mk (announcement): Look for correct NEWS file.
39218
39219 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39220
39221         utimens (fdutimens): ignore a negative FD, per contract
39222         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39223         when we have a valid file descriptor.  Otherwise, using a brand
39224         new glibc (with just-patched futimens that now fails with EBADF)
39225         would cause this function to fail with ENOSYS.
39226         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39227         See also http://bugzilla.redhat.com/552320.
39228
39229 2010-01-05  Eric Blake  <ebb9@byu.net>
39230
39231         strcase: document what it provides
39232         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39233         gnulib module.
39234         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39235         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39236
39237 2010-01-05  Jim Meyering  <meyering@redhat.com>
39238
39239         maint: remove useless inclusions of "xalloc.h"
39240         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39241         * lib/readtokens.c: Likewise.
39242         * lib/same.c: Likewise.
39243         * modules/getloadavg (Depends-on): Remove xalloc.
39244         * modules/readtokens: Likewise.
39245         * modules/same: Likewise.
39246
39247         maint.mk: include 4 more function names in alloca.h-checking regexp
39248         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39249         regexp.  Before, we would give a false-positive (saying alloca.h
39250         is included unnecessarily) when the only uses involved omitted symbols.
39251
39252         xalloc.h: use consistent formatting
39253         * lib/xalloc.h: Move declarations to start in the first column.
39254
39255 2010-01-05  Eric Blake  <ebb9@byu.net>
39256
39257         mkdir: avoid xalloc
39258         * lib/mkdir.c (includes): Drop unused header.
39259         Reported by John W. Eaton.
39260
39261 2010-01-04  Jim Meyering  <meyering@redhat.com>
39262
39263         nl_langinfo: avoid configure-time syntax error
39264         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39265         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39266         the empty string.  Don't let that provoke a shell syntax error.
39267
39268         regcomp, regexec, fnmatch: avoid array bounds read error
39269         * lib/regcomp.c (build_equiv_class): From glibc:
39270         Use only the low 24 bits of a findidx return value as an index
39271         into the weights array.  Patch by Ulrich Drepper:
39272         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39273         * lib/regexec.c (check_node_accept_bytes): Likewise.
39274         * lib/fnmatch_loop.c (FCT): Likewise.
39275
39276         regcomp: skip collseq lookup when there are no rules
39277         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39278         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39279
39280         regcomp: recognize ill-formed { } expressions
39281         * lib/regcomp.c (parse_dup_op): From glibc:
39282         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39283
39284         regcomp: fix typo in comment
39285         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39286         s/satisfy/satisfies/.
39287
39288         regcomp: sync from glibc: remove dead store
39289         * lib/regcomp.c (duplicate_node_closure): Remove useless
39290         search_duplicated_node call and dead store.
39291
39292         regcomp: sync from glibc; always use nl_langinfo
39293         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39294         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39295         * modules/regex (Depends-on): Add nl_langinfo.
39296
39297 2010-01-04  Eric Blake  <ebb9@byu.net>
39298
39299         fdopendir: fix configure test
39300         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39301
39302 2010-01-01  Bruno Haible  <bruno@clisp.org>
39303
39304         wchar: Remove unused configure check.
39305         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39306
39307 2010-01-01  Eric Blake  <ebb9@byu.net>
39308
39309         headers: make check of system header explicit
39310         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39311         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39312         ourselves.
39313         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39316         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39317         internals.
39318         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39319         missing.
39320         Suggested by Bruno Haible.
39321
39322 2010-01-01  Jim Meyering  <meyering@redhat.com>
39323
39324         ChangeLog: tweak to eliminate unnecessary copyright line
39325         * ChangeLog: Remove a copyright line that was mistakenly updated
39326         by today's update-copyright run.  Reported by Eric Blake.
39327
39328         test-update-copyright: don't let envvar setting cause test failure
39329         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39330
39331 2010-01-01  Bruno Haible  <bruno@clisp.org>
39332
39333         localename: Avoid gcc warning.
39334         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39335         function if it is not used.
39336
39337 2010-01-01  Jim Meyering  <meyering@redhat.com>
39338
39339         update nearly all FSF copyright year lists to include 2010
39340         Use the same procedure as for 2009, outlined in
39341         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39342
39343         version-etc: set COPYRIGHT_YEAR to 2010
39344         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39345
39346 2009-12-31  Eric Blake  <ebb9@byu.net>
39347
39348         doc: correct availability of cygwin 1.5.x getopt
39349         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39350         variables.
39351         * doc/posix-functions/opterr.texi (opterr): Likewise.
39352         * doc/posix-functions/optind.texi (optind): Likewise.
39353         * doc/posix-functions/optopt.texi (optopt): Likewise.
39354         * doc/posix-functions/tzname.texi (tzname): Likewise.
39355
39356         openat: update maintainer
39357         * modules/openat (Maintainer): Add myself.
39358
39359         utimens: avoid shadowing warning
39360         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39361         buffers into one, to avoid shadowing, as well as avoiding a
39362         redundant stat.
39363         Reported by Jim Meyering.
39364
39365         test-dup2: avoid compiler warning
39366         * tests/test-dup2.c (is_inheritable): Only define if used.
39367
39368 2010-01-01  Bruno Haible  <bruno@clisp.org>
39369
39370         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39371         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39372         defined, use wctomb instead of wcrtomb.
39373
39374 2010-01-01  Bruno Haible  <bruno@clisp.org>
39375
39376         iconv: Reject native Solaris iconv.
39377         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39378         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39379
39380 2009-12-31  Bruno Haible  <bruno@clisp.org>
39381
39382         * tests/test-signal.c (main): Remove test of 'SIG'.
39383
39384 2009-12-31  Bruno Haible  <bruno@clisp.org>
39385
39386         spawn: Fix incomplete fix.
39387         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39388         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39389         warnings for GNULIB_POSIXCHECK again.
39390         Reported by Eric Blake.
39391
39392 2009-12-31  Bruno Haible  <bruno@clisp.org>
39393
39394         Avoid namespace pollution on glibc systems.
39395         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39396         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39397         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39398         glibc systems.
39399
39400 2009-12-31  Bruno Haible  <bruno@clisp.org>
39401
39402         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39403         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39404         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39405         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39406         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39407         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39408         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39409
39410 2009-12-31  Bruno Haible  <bruno@clisp.org>
39411
39412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39413         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39414         afterwards.
39415
39416 2009-12-31  Bruno Haible  <bruno@clisp.org>
39417
39418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39419         SYS_UTSNAME_H.
39420
39421 2009-12-31  Bruno Haible  <bruno@clisp.org>
39422
39423         spawn: Fix misapplied patch.
39424         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39425         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39426         warnings for GNULIB_POSIXCHECK.
39427
39428 2009-12-31  Bruno Haible  <bruno@clisp.org>
39429
39430         times: Update after sys_times changed.
39431         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39432         * modules/times (Files): Add it.
39433         (configure.ac): Invoke gl_FUNC_TIMES.
39434
39435 2009-12-31  Bruno Haible  <bruno@clisp.org>
39436
39437         Use AC_C_INLINE where necessary.
39438         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39439         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39440         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39441         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39442         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39443         * m4/mbiter.m4 (gl_MBITER): Likewise.
39444         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39445         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39446         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39447         * modules/u64 (configure.ac): Likewise.
39448
39449 2009-12-31  Bruno Haible  <bruno@clisp.org>
39450
39451         Use AC_C_INLINE instead of module 'inline' where possible.
39452         * modules/inline (Description): Clarify purpose.
39453         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39454         * modules/count-one-bits (Depends-on): Remove inline.
39455         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39456         * modules/openat (Depends-on): Remove inline.
39457         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39458         instead of depending on module 'inline'.
39459         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39460         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39461         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39462         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39463         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39464         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39465         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39466         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39467         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39468         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39469         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39470         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39471         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39472         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39473         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39474         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39475         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39476         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39477         Likewise.
39478         * modules/unictype/property-ascii-hex-digit (Depends-on,
39479         configure.ac): Likewise.
39480         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39481         configure.ac): Likewise.
39482         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39483         configure.ac): Likewise.
39484         * modules/unictype/property-bidi-block-separator (Depends-on,
39485         configure.ac): Likewise.
39486         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39487         configure.ac): Likewise.
39488         * modules/unictype/property-bidi-common-separator (Depends-on,
39489         configure.ac): Likewise.
39490         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39491         Likewise.
39492         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39493         configure.ac): Likewise.
39494         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39495         configure.ac): Likewise.
39496         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39497         configure.ac): Likewise.
39498         * modules/unictype/property-bidi-european-digit (Depends-on,
39499         configure.ac): Likewise.
39500         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39501         configure.ac): Likewise.
39502         * modules/unictype/property-bidi-left-to-right (Depends-on,
39503         configure.ac): Likewise.
39504         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39505         configure.ac): Likewise.
39506         * modules/unictype/property-bidi-other-neutral (Depends-on,
39507         configure.ac): Likewise.
39508         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39509         Likewise.
39510         * modules/unictype/property-bidi-segment-separator (Depends-on,
39511         configure.ac): Likewise.
39512         * modules/unictype/property-bidi-whitespace (Depends-on,
39513         configure.ac): Likewise.
39514         * modules/unictype/property-combining (Depends-on, configure.ac):
39515         Likewise.
39516         * modules/unictype/property-composite (Depends-on, configure.ac):
39517         Likewise.
39518         * modules/unictype/property-currency-symbol (Depends-on,
39519         configure.ac): Likewise.
39520         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39521         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39522         Likewise.
39523         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39524         configure.ac): Likewise.
39525         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39526         Likewise.
39527         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39528         Likewise.
39529         * modules/unictype/property-extender (Depends-on, configure.ac):
39530         Likewise.
39531         * modules/unictype/property-format-control (Depends-on, configure.ac):
39532         Likewise.
39533         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39534         Likewise.
39535         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39536         Likewise.
39537         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39538         Likewise.
39539         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39540         Likewise.
39541         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39542         Likewise.
39543         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39544         Likewise.
39545         * modules/unictype/property-id-start (Depends-on, configure.ac):
39546         Likewise.
39547         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39548         Likewise.
39549         * modules/unictype/property-ids-binary-operator (Depends-on,
39550         configure.ac): Likewise.
39551         * modules/unictype/property-ids-trinary-operator (Depends-on,
39552         configure.ac): Likewise.
39553         * modules/unictype/property-ignorable-control (Depends-on,
39554         configure.ac): Likewise.
39555         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39556         Likewise.
39557         * modules/unictype/property-join-control (Depends-on, configure.ac):
39558         Likewise.
39559         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39560         Likewise.
39561         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39562         Likewise.
39563         * modules/unictype/property-logical-order-exception (Depends-on,
39564         configure.ac): Likewise.
39565         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39566         Likewise.
39567         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39568         * modules/unictype/property-non-break (Depends-on, configure.ac):
39569         Likewise.
39570         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39571         Likewise.
39572         * modules/unictype/property-numeric (Depends-on, configure.ac):
39573         Likewise.
39574         * modules/unictype/property-other-alphabetic (Depends-on,
39575         configure.ac): Likewise.
39576         * modules/unictype/property-other-default-ignorable-code-point
39577         (Depends-on, configure.ac): Likewise.
39578         * modules/unictype/property-other-grapheme-extend (Depends-on,
39579         configure.ac): Likewise.
39580         * modules/unictype/property-other-id-continue (Depends-on,
39581         configure.ac): Likewise.
39582         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39583         Likewise.
39584         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39585         Likewise.
39586         * modules/unictype/property-other-math (Depends-on, configure.ac):
39587         Likewise.
39588         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39589         Likewise.
39590         * modules/unictype/property-paired-punctuation (Depends-on,
39591         configure.ac): Likewise.
39592         * modules/unictype/property-paragraph-separator (Depends-on,
39593         configure.ac): Likewise.
39594         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39595         Likewise.
39596         * modules/unictype/property-pattern-white-space (Depends-on,
39597         configure.ac): Likewise.
39598         * modules/unictype/property-private-use (Depends-on, configure.ac):
39599         Likewise.
39600         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39601         Likewise.
39602         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39603         Likewise.
39604         * modules/unictype/property-radical (Depends-on, configure.ac):
39605         Likewise.
39606         * modules/unictype/property-sentence-terminal (Depends-on,
39607         configure.ac): Likewise.
39608         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39609         Likewise.
39610         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39611         * modules/unictype/property-terminal-punctuation (Depends-on,
39612         configure.ac): Likewise.
39613         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39614         Likewise.
39615         * modules/unictype/property-unassigned-code-value (Depends-on,
39616         configure.ac): Likewise.
39617         * modules/unictype/property-unified-ideograph (Depends-on,
39618         configure.ac): Likewise.
39619         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39620         Likewise.
39621         * modules/unictype/property-variation-selector (Depends-on,
39622         configure.ac): Likewise.
39623         * modules/unictype/property-white-space (Depends-on, configure.ac):
39624         Likewise.
39625         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39626         Likewise.
39627         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39628         Likewise.
39629         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39630         Likewise.
39631         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39632         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39633         Likewise.
39634
39635 2009-12-31  Bruno Haible  <bruno@clisp.org>
39636
39637         Remove unnecessary AC_C_INLINE invocation.
39638         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39639         since 2009-08-21.
39640
39641 2009-12-31  Jim Meyering  <meyering@redhat.com>
39642
39643         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39644         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39645         With this change, we can all remove the gpg_key_ID = ... definition
39646         from our respective cfg.mk files.
39647
39648         maint.mk: create announcement template in ~/, not in /tmp
39649         * top/maint.mk (emit_upload_commands): Adjust.
39650         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39651         Remove temporary file, .ci-msg.
39652
39653 2009-12-31  Eric Blake  <ebb9@byu.net>
39654
39655         link-warning: always build headers with link warnings
39656         * modules/arpa_inet (Makefile.am): Always build replacement
39657         header.
39658         * modules/ctype (Makefile.am): Likewise.
39659         * modules/dirent (Makefile.am): Likewise.
39660         * modules/inttypes (Makefile.am): Likewise.
39661         * modules/langinfo (Makefile.am): Likewise.
39662         * modules/locale (Makefile.am): Likewise.
39663         * modules/spawn (Makefile.am): Likewise.
39664         * modules/sys_file (Makefile.am): Likewise.
39665         * modules/sys_ioctl (Makefile.am): Likewise.
39666         * modules/sys_select (Makefile.am): Likewise.
39667         * modules/sys_socket (Makefile.am): Likewise.
39668         * modules/sys_times (Makefile.am): Likewise.
39669         * modules/sys_utsname (Makefile.am): Likewise.
39670         * modules/sys_wait (Makefile.am): Likewise.
39671         * modules/wchar (Makefile.am): Likewise.
39672         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39673         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39674         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39675         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39676         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39677         Likewise.
39678         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39679         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39680         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39681         Likewise.
39682         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39683         Likewise.
39684         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39685         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39686         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39688         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39689         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39690         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39691         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39692         (gl_WCHAR_H_DEFAULTS): Likewise.
39693
39694 2009-12-31  Eric Blake  <ebb9@byu.net>
39695
39696         signal, spawn: use link warnings
39697         * lib/signal.in.h (sigset_t): Make unconditional.
39698         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39699         (sigpending, sigprocmask, sigaction): Add link warnings.
39700         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39701         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39702         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39703         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39704         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39705         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39706         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39707         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39708         (posix_spawn_file_actions_destroy)
39709         (posix_spawn_file_actions_addopen)
39710         (posix_spawn_file_actions_addclose)
39711         (posix_spawn_file_actions_adddup2): Likewise.
39712         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39713         * tests/test-signal.c (main): Enhance test.
39714
39715         spawn: improve wrapper support
39716         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39717         (gl_SPAWN_H_DEFAULTS): New defaults.
39718         * modules/spawn (Makefile.am): Substitute them.
39719         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39720         Only declare if missing or broken.
39721
39722         sys_times, sys_utsname: use include_next
39723         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39724         header.
39725         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39726         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39727         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39728         * modules/sys_times (Depends-on): Add include_next.
39729         (Makefile.am): Substitute additional values.
39730         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39731         * lib/sys_times.in.h (includes): Include native header, if
39732         available.
39733         * lib/sys_utsname.in.h (includes): Likewise.
39734         * tests/test-sys_times.c (main): Enhance test.
39735
39736         fdutimensat: revert prior patch
39737         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39738         utimens.h.
39739         Reported by Bruno Haible.
39740
39741 2009-12-30  Eric Blake  <ebb9@byu.net>
39742
39743         sys_wait: drop link-warning dependency
39744         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39745         link-warning efforts.
39746         * lib/sys_wait.in.h: Likewise.
39747
39748         fdutimensat: remove bogus dependency
39749         * modules/fdutimensat (Depends-on): Drop inline.
39750
39751         unistd: fix typo
39752         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39753
39754 2009-12-30  Bruno Haible  <bruno@clisp.org>
39755
39756         Fix compilation error with Solaris cc.
39757         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39758         * lib/unicase/u16-is-invariant.c: Likewise.
39759         * lib/unicase/u32-is-invariant.c: Likewise.
39760         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39761
39762 2009-12-30  Bruno Haible  <bruno@clisp.org>
39763
39764         Fix test crash.
39765         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39766         locales.
39767         Reported by Simon Josefsson <simon@josefsson.org>.
39768
39769 2009-12-30  Bruno Haible  <bruno@clisp.org>
39770
39771         Fix compilation error on most platforms.
39772         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39773         Reported by Simon Josefsson <simon@josefsson.org>
39774         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39775
39776 2009-12-30  Eric Blake  <ebb9@byu.net>
39777
39778         futimens, utimensat: work around ntfs-3g bug
39779         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39780         a ctime bug is present, and expand workaround to cover ntfs-3g.
39781         * lib/utimens.c (fdutimens, lutimens): Likewise.
39782         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39783         (validate_timespec): Adjust return value.
39784         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39785         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39786         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39787
39788 2009-12-29  Eric Blake  <ebb9@byu.net>
39789
39790         link-warning: make usage consistent
39791         * modules/ctype (Depends-on): Add link-warning.
39792         (Makefile.am): Update rules accordingly.
39793         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39794         * modules/locale (Depends-on, Makefile.am): Likewise.
39795         * modules/sys_file (Makefile.am): Likewise.
39796         * modules/getopt-posix (Makefile.am): Delete unused link warning
39797         efforts.
39798         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39799         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39800         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39801         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39802
39803         stdio: remove unused variables
39804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39805         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39806         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39807
39808         tests: test more substitute headers
39809         * modules/ctype-tests: New file.
39810         * modules/dirent-tests: Likewise.
39811         * modules/spawn-tests: Likewise.
39812         * modules/sys_file-tests: Likewise.
39813         * modules/sys_ioctl-tests: Likewise.
39814         * modules/sys_wait-tests: Likewise.
39815         * tests/test-ctype.c: Likewise.
39816         * tests/test-dirent.c: Likewise.
39817         * tests/test-spawn.c: Likewise.
39818         * tests/test-sys_file.c: Likewise.
39819         * tests/test-sys_ioctl.c: Likewise.
39820         * tests/test-sys_wait.c: Likewise.
39821         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39822         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39823         whether or not flock is in use.
39824
39825         tests: remove License section from module
39826         * modules/arpa_inet-tests: Remove unneeded section.
39827         * modules/byteswap-tests: Likewise.
39828         * modules/ceilf-tests: Likewise.
39829         * modules/ceill-tests: Likewise.
39830         * modules/crypto/des-tests: Likewise.
39831         * modules/crypto/gc-arcfour-tests: Likewise.
39832         * modules/crypto/gc-arctwo-tests: Likewise.
39833         * modules/crypto/gc-des-tests: Likewise.
39834         * modules/crypto/gc-hmac-md5-tests: Likewise.
39835         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39836         * modules/crypto/gc-md2-tests: Likewise.
39837         * modules/crypto/gc-md4-tests: Likewise.
39838         * modules/crypto/gc-md5-tests: Likewise.
39839         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39840         * modules/crypto/gc-rijndael-tests: Likewise.
39841         * modules/crypto/gc-sha1-tests: Likewise.
39842         * modules/crypto/gc-tests: Likewise.
39843         * modules/crypto/md2-tests: Likewise.
39844         * modules/crypto/md4-tests: Likewise.
39845         * modules/fcntl-h-tests: Likewise.
39846         * modules/floorf-tests: Likewise.
39847         * modules/floorl-tests: Likewise.
39848         * modules/frexp-nolibm-tests: Likewise.
39849         * modules/frexp-tests: Likewise.
39850         * modules/frexpl-nolibm-tests: Likewise.
39851         * modules/frexpl-tests: Likewise.
39852         * modules/getaddrinfo-tests: Likewise.
39853         * modules/inttypes-tests: Likewise.
39854         * modules/isfinite-tests: Likewise.
39855         * modules/isinf-tests: Likewise.
39856         * modules/ldexpl-tests: Likewise.
39857         * modules/locale-tests: Likewise.
39858         * modules/math-tests: Likewise.
39859         * modules/netdb-tests: Likewise.
39860         * modules/netinet_in-tests: Likewise.
39861         * modules/printf-frexp-tests: Likewise.
39862         * modules/printf-frexpl-tests: Likewise.
39863         * modules/priv-set-tests: Likewise.
39864         * modules/random_r-tests: Likewise.
39865         * modules/round-tests: Likewise.
39866         * modules/roundf-tests: Likewise.
39867         * modules/roundl-tests: Likewise.
39868         * modules/search-tests: Likewise.
39869         * modules/select-tests: Likewise.
39870         * modules/signal-tests: Likewise.
39871         * modules/stdbool-tests: Likewise.
39872         * modules/stddef-tests: Likewise.
39873         * modules/stdint-tests: Likewise.
39874         * modules/stdio-tests: Likewise.
39875         * modules/stdlib-tests: Likewise.
39876         * modules/string-tests: Likewise.
39877         * modules/strings-tests: Likewise.
39878         * modules/sys_select-tests: Likewise.
39879         * modules/sys_socket-tests: Likewise.
39880         * modules/sys_stat-tests: Likewise.
39881         * modules/sys_time-tests: Likewise.
39882         * modules/sys_utsname-tests: Likewise.
39883         * modules/sysexits-tests: Likewise.
39884         * modules/time-tests: Likewise.
39885         * modules/trunc-tests: Likewise.
39886         * modules/truncf-tests: Likewise.
39887         * modules/truncl-tests: Likewise.
39888         * modules/tsearch-tests: Likewise.
39889         * modules/unistd-tests: Likewise.
39890         * modules/wchar-tests: Likewise.
39891         * modules/wctype-tests: Likewise.
39892
39893         tests: fix license on several tests
39894         * tests/test-des.c: Update to GPLv3+.
39895         * tests/test-flock.c: Likewise.
39896         * tests/test-fsync.c: Likewise.
39897         * tests/test-futimens.h: Likewise.
39898         * tests/test-gc-arcfour.c: Likewise.
39899         * tests/test-gc-arctwo.c: Likewise.
39900         * tests/test-gc-des.c: Likewise.
39901         * tests/test-gc-hmac-md5.c: Likewise.
39902         * tests/test-gc-hmac-sha1.c: Likewise.
39903         * tests/test-gc-md2.c: Likewise.
39904         * tests/test-gc-md4.c: Likewise.
39905         * tests/test-gc-md5.c: Likewise.
39906         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39907         * tests/test-gc-rijndael.c: Likewise.
39908         * tests/test-gc-sha1.c: Likewise.
39909         * tests/test-gc.c: Likewise.
39910         * tests/test-getcwd.c: Likewise.
39911         * tests/test-link.c: Likewise.
39912         * tests/test-link.h: Likewise.
39913         * tests/test-lutimens.h: Likewise.
39914         * tests/test-md2.c: Likewise.
39915         * tests/test-md4.c: Likewise.
39916         * tests/test-mkdir.h: Likewise.
39917         * tests/test-rename.c: Likewise.
39918         * tests/test-rename.h: Likewise.
39919         * tests/test-safe-alloc.c: Likewise.
39920         * tests/test-utimens-common.h: Likewise.
39921         * tests/test-utimens.h: Likewise.
39922
39923         maint: sync license texts
39924         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39925         * doc/gpl-3.0.texi: Revert copyright year update.
39926         * doc/lgpl-3.0.texi: Likewise.
39927
39928 2009-12-29  Jim Meyering  <meyering@redhat.com>
39929
39930         update nearly all FSF copyright year lists to include 2009
39931         The files named by the following are exempted:
39932             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39933               test -f "$dst" && { echo "$dst"; continue; }
39934               test -d "$dst" || continue
39935               echo "$dst"/$(basename "$src")
39936             done > exempt
39937             git ls-files tests/unictype >> exempt
39938         In the remaining files, convert to all-interval notation if
39939         - there is already at least one year interval like 2000-2003
39940         - the file is maintained by me
39941         - the file is in lib/uni*/, where that style already prevails
39942         Otherwise, use update-copyright's default.
39943
39944 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39945         and Eric Blake  <ebb9@byu.net>
39946
39947         tests: don't require debug system() to pass
39948         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39949         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39950         * tests/test-unlink.h (test_unlink_func): Likewise.
39951         * tests/test-fstatat.c (main): ...into callers.
39952         * tests/test-lstat.c (main): Likewise.
39953         * tests/test-rmdir.c (main): Likewise.
39954         * tests/test-unlink.c (main): Likewise.
39955         * tests/test-unlinkat.c (main): Likewise.
39956         * tests/test-areadlink-with-size.c (main): Don't require a
39957         debug-only system call to pass, aiding cross-testing to mingw.
39958         * tests/test-areadlink.c (main): Likewise.
39959         * tests/test-areadlinkat-with-size.c (main): Likewise.
39960         * tests/test-areadlinkat.c (main): Likewise.
39961         * tests/test-canonicalize-lgpl.c (main): Likewise.
39962         * tests/test-canonicalize.c (main): Likewise.
39963         * tests/test-chown.c (main): Likewise.
39964         * tests/test-fchownat.c (main): Likewise.
39965         * tests/test-lchown.c (main): Likewise.
39966         * tests/test-fdutimensat.c (main): Likewise.
39967         * tests/test-futimens.c (main): Likewise.
39968         * tests/test-link.c (main): Likewise.
39969         * tests/test-linkat.c (main): Likewise.
39970         * tests/test-mkdir.c (main): Likewise.
39971         * tests/test-mkdirat.c (main): Likewise.
39972         * tests/test-mkfifo.c (main): Likewise.
39973         * tests/test-mkfifoat.c (main): Likewise.
39974         * tests/test-mknod.c (main): Likewise.
39975         * tests/test-readlink.c (main): Likewise.
39976         * tests/test-remove.c (main): Likewise.
39977         * tests/test-rename.c (main): Likewise.
39978         * tests/test-renameat.c (main): Likewise.
39979         * tests/test-symlink.c (main): Likewise.
39980         * tests/test-symlinkat.c (main): Likewise.
39981         * tests/test-utimens.c (main): Likewise.
39982         * tests/test-utimensat.c (main): Likewise.
39983
39984 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39985
39986         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39987         on $(UNUSED_PARAMETER_H) to avoid build failure.
39988
39989 2009-12-28  Jim Meyering  <meyering@redhat.com>
39990
39991         update-copyright: you may specify a max. line length other than 72
39992         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39993
39994         maint: use consistent FSF copyright line syntax
39995         * lib/posixtm.c: Add missing comma in FSF copyright line.
39996         * lib/posixtm.h: Likewise.
39997         * lib/getugroups.c: Add missing ", Inc.".
39998
39999         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40000         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40001         FSF copyright line.  Remove trailing blanks.
40002
40003 2009-12-28  Eric Blake  <ebb9@byu.net>
40004
40005         test-dup2: reduce dependencies
40006         * modules/cloexec (Configure.ac): Set witness.
40007         * modules/dup2-tests (Depends-on): Drop cloexec.
40008         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40009         not present.
40010         Suggested by Bruno Haible.
40011
40012 2009-12-26  Bruno Haible  <bruno@clisp.org>
40013
40014         Remove an unneeded dependency.
40015         * modules/fseterr (Depends-on): Remove dup2.
40016
40017 2009-12-26  Eric Blake  <ebb9@byu.net>
40018
40019         tests: use macros.h in more places
40020         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40021         (ASSERT_STREAM): Provide default of stderr.
40022         * tests/test-dirent-safer.c: Include macros.h, using alternate
40023         stream for assertions.
40024         * tests/test-dup-safer.c: Likewise.
40025         * tests/test-freopen-safer.c: Likewise.
40026         * tests/test-getopt.c: Likewise.
40027         * tests/test-openat-safer.c: Likewise.
40028         * tests/test-pipe.c: Likewise.
40029         * tests/test-popen-safer.c: Likewise.
40030         * modules/dirent-safer-tests (Files): Include macros.h.
40031         * modules/unistd-safer-tests (Files): Likewise.
40032         * modules/freopen-safer-tests (Files): Likewise.
40033         * modules/getopt-posix-tests (Files): Likewise.
40034         * modules/openat-safer-tests (Files): Likewise.
40035         * modules/pipe-tests (Files): Likewise.
40036
40037 2009-12-26  Bruno Haible  <bruno@clisp.org>
40038
40039         javacomp: Portability fix.
40040         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40041         that it also works on Solaris.
40042
40043 2009-12-26  Bruno Haible  <bruno@clisp.org>
40044
40045         localename: Fix storage allocation of gl_locale_name_thread's result.
40046         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40047         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40048         all platforms that have 'uselocale'.
40049         (gl_locale_name_thread_unsafe): New function, extracted from
40050         gl_locale_name_thread.
40051         (gl_locale_name_thread): Call struniq on all platforms that have
40052         'uselocale'.
40053         * tests/test-localename.c (test_locale_name_thread): Check that the
40054         resulting strings are permanently allocated.
40055         * modules/localename-tests (Depends-on): Add strdup.
40056
40057 2009-12-26  Bruno Haible  <bruno@clisp.org>
40058
40059         * tests/test-localename.c (categories): Fill in the strings.
40060
40061 2009-12-26  Jim Meyering  <meyering@redhat.com>
40062
40063         isdir: complete the removal of m4/isdir.m4
40064         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40065
40066         isdir: clean up, since at least grep still uses it
40067         * lib/isdir.c: Include "isdir.h".
40068         (S_ISDIR): Remove now-unneeded definition.
40069         * modules/isdir (Files): Add lib/isdir.h.
40070         * lib/isdir.h: New file, with declaration.
40071         * m4/isdir.m4: Remove file -- unneeded.
40072
40073 2009-12-25  Bruno Haible  <bruno@clisp.org>
40074
40075         selinux-h: Make generated .h files standalone.
40076         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40077         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40078         * lib/se-selinux.in.h: Likewise.
40079         * modules/selinux-h (Depends-on): Add unused-parameter.
40080         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40081         selinux/selinux.h and selinux/context.h.
40082         Suggested by Eric Blake.
40083
40084 2009-12-25  Bruno Haible  <bruno@clisp.org>
40085
40086         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40087         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40088         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40089         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40090         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40091
40092 2009-12-24  Bruno Haible  <bruno@clisp.org>
40093
40094         openat: Fix warning.
40095         * lib/openat-proc.c: Include <unistd.h>.
40096
40097 2009-12-24  Bruno Haible  <bruno@clisp.org>
40098
40099         New module 'unused-parameter'.
40100         * build-aux/unused-parameter.h: New file, extracted from earlier
40101         gnulib-common.m4.
40102         * modules/unused-parameter: New file.
40103         * lib/unistr.h: Include unused-parameter.h.
40104         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40105         _GL_UNUSED.
40106         * modules/unistr/base (Depends-on): Add unused-parameter.
40107
40108 2009-12-24  Bruno Haible  <bruno@clisp.org>
40109
40110         Add missing dependencies to 'extensions' module.
40111         * m4/extensions.m4: Add comment.
40112         * modules/accept4 (Depends-on): Add extensions.
40113         * modules/dup3 (Depends-on): Likewise.
40114         * modules/fcntl (Depends-on): Likewise.
40115         * modules/futimens (Depends-on): Likewise.
40116         * modules/mknod (Depends-on): Likewise.
40117         * modules/pipe2 (Depends-on): Likewise.
40118         * modules/stat-time (Depends-on): Likewise.
40119         * modules/strcasestr-simple (Depends-on): Likewise.
40120         * modules/strsignal (Depends-on): Likewise.
40121         * modules/utimensat (Depends-on): Likewise.
40122         * modules/localcharset (Depends-on): Likewise. Needed because of
40123         gl_FCNTL_O_FLAGS.
40124         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40125         AC_TYPE_MBSTATE_T.
40126         * modules/wcsnrtombs (Depends-on): Likewise.
40127         * modules/wcsrtombs (Depends-on): Likewise.
40128
40129 2009-12-24  Bruno Haible  <bruno@clisp.org>
40130
40131         binary-io: Avoid gcc warning due to SET_BINARY.
40132         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40133         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40134
40135 2009-12-24  Bruno Haible  <bruno@clisp.org>
40136
40137         Avoid future namespace pollution on glibc systems.
40138         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40139         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40140         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40141         glibc systems.
40142
40143 2009-12-24  Bruno Haible  <bruno@clisp.org>
40144
40145         Refactor common macros used in tests.
40146         * tests/macros.h: New file.
40147         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40148         and/or <stdlib.h>, if appropriate.
40149         (ASSERT, SIZEOF): Remove macros.
40150         * tests/test-areadlink-with-size.c: Likewise.
40151         * tests/test-areadlinkat.c: Likewise.
40152         * tests/test-areadlinkat-with-size.c: Likewise.
40153         * tests/test-argmatch.c: Likewise.
40154         * tests/test-argv-iter.c: Likewise.
40155         * tests/test-array-mergesort.c: Likewise.
40156         * tests/test-array_list.c: Likewise.
40157         * tests/test-array_oset.c: Likewise.
40158         * tests/test-avltree_list.c: Likewise.
40159         * tests/test-avltree_oset.c: Likewise.
40160         * tests/test-avltreehash_list.c: Likewise.
40161         * tests/test-base64.c: Likewise.
40162         * tests/test-binary-io.c: Likewise.
40163         * tests/test-bitrotate.c: Likewise.
40164         * tests/test-btowc.c: Likewise.
40165         * tests/test-byteswap.c: Likewise.
40166         * tests/test-c-ctype.c: Likewise.
40167         * tests/test-c-stack.c: Likewise.
40168         * tests/test-c-strcasecmp.c: Likewise.
40169         * tests/test-c-strcasestr.c: Likewise.
40170         * tests/test-c-strncasecmp.c: Likewise.
40171         * tests/test-c-strstr.c: Likewise.
40172         * tests/test-canonicalize-lgpl.c: Likewise.
40173         * tests/test-canonicalize.c: Likewise.
40174         * tests/test-carray_list.c: Likewise.
40175         * tests/test-ceilf1.c: Likewise.
40176         * tests/test-ceilf2.c: Likewise.
40177         * tests/test-ceill.c: Likewise.
40178         * tests/test-chown.c: Likewise.
40179         * tests/test-cloexec.c: Likewise.
40180         * tests/test-copy-acl.c: Likewise.
40181         * tests/test-copy-file.c: Likewise.
40182         * tests/test-count-one-bits.c: Likewise.
40183         * tests/test-dprintf-posix.c: Likewise.
40184         * tests/test-dup2.c: Likewise.
40185         * tests/test-dup3.c: Likewise.
40186         * tests/test-duplocale.c: Likewise.
40187         * tests/test-fbufmode.c: Likewise.
40188         * tests/test-fchdir.c: Likewise.
40189         * tests/test-fchownat.c: Likewise.
40190         * tests/test-fcntl-safer.c: Likewise.
40191         * tests/test-fcntl.c: Likewise.
40192         * tests/test-fdopendir.c: Likewise.
40193         * tests/test-fdutimensat.c: Likewise.
40194         * tests/test-fflush2.c: Likewise.
40195         * tests/test-file-has-acl.c: Likewise.
40196         * tests/test-filevercmp.c: Likewise.
40197         * tests/test-flock.c: Likewise.
40198         * tests/test-floorf1.c: Likewise.
40199         * tests/test-floorf2.c: Likewise.
40200         * tests/test-floorl.c: Likewise.
40201         * tests/test-fnmatch.c: Likewise.
40202         * tests/test-fopen.h: Likewise.
40203         * tests/test-fpending.c: Likewise.
40204         * tests/test-fprintf-posix.c: Likewise.
40205         * tests/test-fpurge.c: Likewise.
40206         * tests/test-freadable.c: Likewise.
40207         * tests/test-freadahead.c: Likewise.
40208         * tests/test-freading.c: Likewise.
40209         * tests/test-freadptr.c: Likewise.
40210         * tests/test-freadptr2.c: Likewise.
40211         * tests/test-freadseek.c: Likewise.
40212         * tests/test-freopen.c: Likewise.
40213         * tests/test-frexp.c: Likewise.
40214         * tests/test-frexpl.c: Likewise.
40215         * tests/test-fseek.c: Likewise.
40216         * tests/test-fseeko.c: Likewise.
40217         * tests/test-fstatat.c: Likewise.
40218         * tests/test-fstrcmp.c: Likewise.
40219         * tests/test-fsync.c: Likewise.
40220         * tests/test-ftell.c: Likewise.
40221         * tests/test-ftello.c: Likewise.
40222         * tests/test-func.c: Likewise.
40223         * tests/test-futimens.c: Likewise.
40224         * tests/test-fwritable.c: Likewise.
40225         * tests/test-fwriting.c: Likewise.
40226         * tests/test-getcwd.c: Likewise.
40227         * tests/test-getdate.c: Likewise.
40228         * tests/test-getdelim.c: Likewise.
40229         * tests/test-getdtablesize.c: Likewise.
40230         * tests/test-getgroups.c: Likewise.
40231         * tests/test-getline.c: Likewise.
40232         * tests/test-getndelim2.c: Likewise.
40233         * tests/test-glob.c: Likewise.
40234         * tests/test-hash.c: Likewise.
40235         * tests/test-i-ring.c: Likewise.
40236         * tests/test-iconv-utf.c: Likewise.
40237         * tests/test-iconv.c: Likewise.
40238         * tests/test-idpriv-drop.c: Likewise.
40239         * tests/test-idpriv-droptemp.c: Likewise.
40240         * tests/test-inet_ntop.c: Likewise.
40241         * tests/test-inet_pton.c: Likewise.
40242         * tests/test-isblank.c: Likewise.
40243         * tests/test-isfinite.c: Likewise.
40244         * tests/test-isinf.c: Likewise.
40245         * tests/test-isnan.c: Likewise.
40246         * tests/test-isnand.h: Likewise.
40247         * tests/test-isnanf.h: Likewise.
40248         * tests/test-isnanl.h: Likewise.
40249         * tests/test-lchown.c: Likewise.
40250         * tests/test-ldexpl.c: Likewise.
40251         * tests/test-link.c: Likewise.
40252         * tests/test-linkat.c: Likewise.
40253         * tests/test-linked_list.c: Likewise.
40254         * tests/test-linkedhash_list.c: Likewise.
40255         * tests/test-localename.c: Likewise.
40256         * tests/test-lseek.c: Likewise.
40257         * tests/test-lstat.c: Likewise.
40258         * tests/test-mbmemcasecmp.c: Likewise.
40259         * tests/test-mbmemcasecoll.c: Likewise.
40260         * tests/test-mbrtowc.c: Likewise.
40261         * tests/test-mbscasecmp.c: Likewise.
40262         * tests/test-mbscasestr1.c: Likewise.
40263         * tests/test-mbscasestr2.c: Likewise.
40264         * tests/test-mbscasestr3.c: Likewise.
40265         * tests/test-mbscasestr4.c: Likewise.
40266         * tests/test-mbschr.c: Likewise.
40267         * tests/test-mbscspn.c: Likewise.
40268         * tests/test-mbsinit.c: Likewise.
40269         * tests/test-mbsncasecmp.c: Likewise.
40270         * tests/test-mbsnrtowcs.c: Likewise.
40271         * tests/test-mbspbrk.c: Likewise.
40272         * tests/test-mbspcasecmp.c: Likewise.
40273         * tests/test-mbsrchr.c: Likewise.
40274         * tests/test-mbsrtowcs.c: Likewise.
40275         * tests/test-mbsspn.c: Likewise.
40276         * tests/test-mbsstr1.c: Likewise.
40277         * tests/test-mbsstr2.c: Likewise.
40278         * tests/test-mbsstr3.c: Likewise.
40279         * tests/test-memchr.c: Likewise.
40280         * tests/test-memchr2.c: Likewise.
40281         * tests/test-memcmp.c: Likewise.
40282         * tests/test-memmem.c: Likewise.
40283         * tests/test-memrchr.c: Likewise.
40284         * tests/test-mkdir.c: Likewise.
40285         * tests/test-mkdirat.c: Likewise.
40286         * tests/test-mkfifo.c: Likewise.
40287         * tests/test-mkfifoat.c: Likewise.
40288         * tests/test-mknod.c: Likewise.
40289         * tests/test-nanosleep.c: Likewise.
40290         * tests/test-nl_langinfo.c: Likewise.
40291         * tests/test-obstack-printf.c: Likewise.
40292         * tests/test-open.c: Likewise.
40293         * tests/test-openat.c: Likewise.
40294         * tests/test-pipe-filter-gi1.c: Likewise.
40295         * tests/test-pipe-filter-gi2-main.c: Likewise.
40296         * tests/test-pipe-filter-ii1.c: Likewise.
40297         * tests/test-pipe-filter-ii2-main.c: Likewise.
40298         * tests/test-pipe2.c: Likewise.
40299         * tests/test-popen.h: Likewise.
40300         * tests/test-posixtm.c: Likewise.
40301         * tests/test-pread.c: Likewise.
40302         * tests/test-printf-frexp.c: Likewise.
40303         * tests/test-printf-frexpl.c: Likewise.
40304         * tests/test-printf-posix.c: Likewise.
40305         * tests/test-priv-set.c: Likewise.
40306         * tests/test-quotearg.c: Likewise.
40307         * tests/test-random_r.c: Likewise.
40308         * tests/test-rawmemchr.c: Likewise.
40309         * tests/test-rbtree_list.c: Likewise.
40310         * tests/test-rbtree_oset.c: Likewise.
40311         * tests/test-rbtreehash_list.c: Likewise.
40312         * tests/test-readlink.c: Likewise.
40313         * tests/test-remove.c: Likewise.
40314         * tests/test-rename.c: Likewise.
40315         * tests/test-renameat.c: Likewise.
40316         * tests/test-rmdir.c: Likewise.
40317         * tests/test-round1.c: Likewise.
40318         * tests/test-roundf1.c: Likewise.
40319         * tests/test-roundl.c: Likewise.
40320         * tests/test-safe-alloc.c: Likewise.
40321         * tests/test-sameacls.c: Likewise.
40322         * tests/test-set-mode-acl.c: Likewise.
40323         * tests/test-setenv.c: Likewise.
40324         * tests/test-sigaction.c: Likewise.
40325         * tests/test-signbit.c: Likewise.
40326         * tests/test-sleep.c: Likewise.
40327         * tests/test-snprintf-posix.c: Likewise.
40328         * tests/test-snprintf.c: Likewise.
40329         * tests/test-sprintf-posix.c: Likewise.
40330         * tests/test-stat-time.c: Likewise.
40331         * tests/test-stat.c: Likewise.
40332         * tests/test-strcasestr.c: Likewise.
40333         * tests/test-strchrnul.c: Likewise.
40334         * tests/test-strerror.c: Likewise.
40335         * tests/test-striconv.c: Likewise.
40336         * tests/test-striconveh.c: Likewise.
40337         * tests/test-striconveha.c: Likewise.
40338         * tests/test-strsignal.c: Likewise.
40339         * tests/test-strstr.c: Likewise.
40340         * tests/test-strtod.c: Likewise.
40341         * tests/test-strverscmp.c: Likewise.
40342         * tests/test-symlink.c: Likewise.
40343         * tests/test-symlinkat.c: Likewise.
40344         * tests/test-trunc1.c: Likewise.
40345         * tests/test-trunc2.c: Likewise.
40346         * tests/test-truncf1.c: Likewise.
40347         * tests/test-truncf2.c: Likewise.
40348         * tests/test-truncl.c: Likewise.
40349         * tests/test-uname.c: Likewise.
40350         * tests/test-unlink.c: Likewise.
40351         * tests/test-unlinkat.c: Likewise.
40352         * tests/test-unsetenv.c: Likewise.
40353         * tests/test-usleep.c: Likewise.
40354         * tests/test-utimens.c: Likewise.
40355         * tests/test-utimensat.c: Likewise.
40356         * tests/test-vasnprintf-posix.c: Likewise.
40357         * tests/test-vasnprintf-posix2.c: Likewise.
40358         * tests/test-vasnprintf.c: Likewise.
40359         * tests/test-vasprintf-posix.c: Likewise.
40360         * tests/test-vasprintf.c: Likewise.
40361         * tests/test-vdprintf-posix.c: Likewise.
40362         * tests/test-vfprintf-posix.c: Likewise.
40363         * tests/test-vprintf-posix.c: Likewise.
40364         * tests/test-vsnprintf-posix.c: Likewise.
40365         * tests/test-vsnprintf.c: Likewise.
40366         * tests/test-vsprintf-posix.c: Likewise.
40367         * tests/test-wcrtomb.c: Likewise.
40368         * tests/test-wcsnrtombs.c: Likewise.
40369         * tests/test-wcsrtombs.c: Likewise.
40370         * tests/test-wctype.c: Likewise.
40371         * tests/test-wcwidth.c: Likewise.
40372         * tests/test-xfprintf-posix.c: Likewise.
40373         * tests/test-xmemdup0.c: Likewise.
40374         * tests/test-xprintf-posix.c: Likewise.
40375         * tests/test-xvasprintf.c: Likewise.
40376         * tests/unicase/test-locale-language.c: Likewise.
40377         * tests/unicase/test-mapping-part1.h: Likewise.
40378         * tests/unicase/test-predicate-part1.h: Likewise.
40379         * tests/unicase/test-u8-casecmp.c: Likewise.
40380         * tests/unicase/test-u8-casecoll.c: Likewise.
40381         * tests/unicase/test-u8-casefold.c: Likewise.
40382         * tests/unicase/test-u8-is-cased.c: Likewise.
40383         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40384         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40385         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40386         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40387         * tests/unicase/test-u8-tolower.c: Likewise.
40388         * tests/unicase/test-u8-totitle.c: Likewise.
40389         * tests/unicase/test-u8-toupper.c: Likewise.
40390         * tests/unicase/test-u16-casecmp.c: Likewise.
40391         * tests/unicase/test-u16-casecoll.c: Likewise.
40392         * tests/unicase/test-u16-casefold.c: Likewise.
40393         * tests/unicase/test-u16-is-cased.c: Likewise.
40394         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40395         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40396         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40397         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40398         * tests/unicase/test-u16-tolower.c: Likewise.
40399         * tests/unicase/test-u16-totitle.c: Likewise.
40400         * tests/unicase/test-u16-toupper.c: Likewise.
40401         * tests/unicase/test-u32-casecmp.c: Likewise.
40402         * tests/unicase/test-u32-casecoll.c: Likewise.
40403         * tests/unicase/test-u32-casefold.c: Likewise.
40404         * tests/unicase/test-u32-is-cased.c: Likewise.
40405         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40406         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40407         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40408         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40409         * tests/unicase/test-u32-tolower.c: Likewise.
40410         * tests/unicase/test-u32-totitle.c: Likewise.
40411         * tests/unicase/test-u32-toupper.c: Likewise.
40412         * tests/unicase/test-ulc-casecmp.c: Likewise.
40413         * tests/unicase/test-ulc-casecoll.c: Likewise.
40414         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40415         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40416         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40417         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40418         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40419         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40420         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40421         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40422         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40423         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40424         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40425         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40426         * tests/unictype/test-bidi_byname.c: Likewise.
40427         * tests/unictype/test-bidi_name.c: Likewise.
40428         * tests/unictype/test-bidi_of.c: Likewise.
40429         * tests/unictype/test-bidi_test.c: Likewise.
40430         * tests/unictype/test-block_list.c: Likewise.
40431         * tests/unictype/test-block_of.c: Likewise.
40432         * tests/unictype/test-block_test.c: Likewise.
40433         * tests/unictype/test-categ_and.c: Likewise.
40434         * tests/unictype/test-categ_and_not.c: Likewise.
40435         * tests/unictype/test-categ_byname.c: Likewise.
40436         * tests/unictype/test-categ_name.c: Likewise.
40437         * tests/unictype/test-categ_none.c: Likewise.
40438         * tests/unictype/test-categ_of.c: Likewise.
40439         * tests/unictype/test-categ_or.c: Likewise.
40440         * tests/unictype/test-categ_test_withtable.c: Likewise.
40441         * tests/unictype/test-combining.c: Likewise.
40442         * tests/unictype/test-decdigit.c: Likewise.
40443         * tests/unictype/test-digit.c: Likewise.
40444         * tests/unictype/test-mirror.c: Likewise.
40445         * tests/unictype/test-numeric.c: Likewise.
40446         * tests/unictype/test-pr_byname.c: Likewise.
40447         * tests/unictype/test-pr_test.c: Likewise.
40448         * tests/unictype/test-predicate-part1.h: Likewise.
40449         * tests/unictype/test-scripts.c: Likewise.
40450         * tests/unictype/test-sy_c_ident.c: Likewise.
40451         * tests/unictype/test-sy_java_ident.c: Likewise.
40452         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40453         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40454         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40455         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40456         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40457         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40458         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40459         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40460         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40461         * tests/uninorm/test-compat-decomposition.c: Likewise.
40462         * tests/uninorm/test-composition.c: Likewise.
40463         * tests/uninorm/test-decomposing-form.c: Likewise.
40464         * tests/uninorm/test-decomposition.c: Likewise.
40465         * tests/uninorm/test-u8-nfc.c: Likewise.
40466         * tests/uninorm/test-u8-nfd.c: Likewise.
40467         * tests/uninorm/test-u8-nfkc.c: Likewise.
40468         * tests/uninorm/test-u8-nfkd.c: Likewise.
40469         * tests/uninorm/test-u8-normcmp.c: Likewise.
40470         * tests/uninorm/test-u8-normcoll.c: Likewise.
40471         * tests/uninorm/test-u16-nfc.c: Likewise.
40472         * tests/uninorm/test-u16-nfd.c: Likewise.
40473         * tests/uninorm/test-u16-nfkc.c: Likewise.
40474         * tests/uninorm/test-u16-nfkd.c: Likewise.
40475         * tests/uninorm/test-u16-normcmp.c: Likewise.
40476         * tests/uninorm/test-u16-normcoll.c: Likewise.
40477         * tests/uninorm/test-u32-nfc.c: Likewise.
40478         * tests/uninorm/test-u32-nfd.c: Likewise.
40479         * tests/uninorm/test-u32-nfkc.c: Likewise.
40480         * tests/uninorm/test-u32-nfkd.c: Likewise.
40481         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40482         * tests/uninorm/test-u32-normcmp.c: Likewise.
40483         * tests/uninorm/test-u32-normcoll.c: Likewise.
40484         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40485         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40486         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40487         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40488         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40489         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40490         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40491         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40492         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40493         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40494         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40495         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40496         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40497         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40498         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40499         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40500         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40501         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40502         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40503         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40504         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40505         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40506         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40507         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40508         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40509         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40510         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40511         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40512         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40513         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40514         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40515         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40516         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40517         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40518         * tests/uniwidth/test-u8-width.c: Likewise.
40519         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40520         * tests/uniwidth/test-u16-width.c: Likewise.
40521         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40522         * tests/uniwidth/test-u32-width.c: Likewise.
40523         * tests/uniwidth/test-uc_width.c: Likewise.
40524         * tests/uniwidth/test-uc_width2.c: Likewise.
40525         * modules/acl-tests (Files): Add tests/macros.h.
40526         * modules/areadlink-tests (Files): Likewise.
40527         * modules/areadlink-with-size-tests (Files): Likewise.
40528         * modules/areadlinkat-tests (Files): Likewise.
40529         * modules/areadlinkat-with-size-tests (Files): Likewise.
40530         * modules/argmatch-tests (Files): Likewise.
40531         * modules/argv-iter-tests (Files): Likewise.
40532         * modules/array-list-tests (Files): Likewise.
40533         * modules/array-mergesort-tests (Files): Likewise.
40534         * modules/array-oset-tests (Files): Likewise.
40535         * modules/avltree-list-tests (Files): Likewise.
40536         * modules/avltree-oset-tests (Files): Likewise.
40537         * modules/avltreehash-list-tests (Files): Likewise.
40538         * modules/base64-tests (Files): Likewise.
40539         * modules/binary-io-tests (Files): Likewise.
40540         * modules/bitrotate-tests (Files): Likewise.
40541         * modules/btowc-tests (Files): Likewise.
40542         * modules/byteswap-tests (Files): Likewise.
40543         * modules/c-ctype-tests (Files): Likewise.
40544         * modules/c-stack-tests (Files): Likewise.
40545         * modules/c-strcase-tests (Files): Likewise.
40546         * modules/c-strcasestr-tests (Files): Likewise.
40547         * modules/c-strstr-tests (Files): Likewise.
40548         * modules/canonicalize-lgpl-tests (Files): Likewise.
40549         * modules/canonicalize-tests (Files): Likewise.
40550         * modules/carray-list-tests (Files): Likewise.
40551         * modules/ceilf-tests (Files): Likewise.
40552         * modules/ceill-tests (Files): Likewise.
40553         * modules/chown-tests (Files): Likewise.
40554         * modules/cloexec-tests (Files): Likewise.
40555         * modules/copy-file-tests (Files): Likewise.
40556         * modules/count-one-bits-tests (Files): Likewise.
40557         * modules/dprintf-posix-tests (Files): Likewise.
40558         * modules/dup2-tests (Files): Likewise.
40559         * modules/dup3-tests (Files): Likewise.
40560         * modules/duplocale-tests (Files): Likewise.
40561         * modules/fbufmode-tests (Files): Likewise.
40562         * modules/fchdir-tests (Files): Likewise.
40563         * modules/fcntl-safer-tests (Files): Likewise.
40564         * modules/fcntl-tests (Files): Likewise.
40565         * modules/fdopendir-tests (Files): Likewise.
40566         * modules/fdutimensat-tests (Files): Likewise.
40567         * modules/fflush-tests (Files): Likewise.
40568         * modules/filevercmp-tests (Files): Likewise.
40569         * modules/flock-tests (Files): Likewise.
40570         * modules/floorf-tests (Files): Likewise.
40571         * modules/floorl-tests (Files): Likewise.
40572         * modules/fnmatch-tests (Files): Likewise.
40573         * modules/fopen-safer-tests (Files): Likewise.
40574         * modules/fopen-tests (Files): Likewise.
40575         * modules/fpending-tests (Files): Likewise.
40576         * modules/fprintf-posix-tests (Files): Likewise.
40577         * modules/fpurge-tests (Files): Likewise.
40578         * modules/freadable-tests (Files): Likewise.
40579         * modules/freadahead-tests (Files): Likewise.
40580         * modules/freading-tests (Files): Likewise.
40581         * modules/freadptr-tests (Files): Likewise.
40582         * modules/freadseek-tests (Files): Likewise.
40583         * modules/freopen-tests (Files): Likewise.
40584         * modules/frexp-nolibm-tests (Files): Likewise.
40585         * modules/frexp-tests (Files): Likewise.
40586         * modules/frexpl-nolibm-tests (Files): Likewise.
40587         * modules/frexpl-tests (Files): Likewise.
40588         * modules/fseek-tests (Files): Likewise.
40589         * modules/fseeko-tests (Files): Likewise.
40590         * modules/fstrcmp-tests (Files): Likewise.
40591         * modules/fsync-tests (Files): Likewise.
40592         * modules/ftell-tests (Files): Likewise.
40593         * modules/ftello-tests (Files): Likewise.
40594         * modules/func-tests (Files): Likewise.
40595         * modules/futimens-tests (Files): Likewise.
40596         * modules/fwritable-tests (Files): Likewise.
40597         * modules/fwriting-tests (Files): Likewise.
40598         * modules/getcwd-tests (Files): Likewise.
40599         * modules/getdate-tests (Files): Likewise.
40600         * modules/getdelim-tests (Files): Likewise.
40601         * modules/getdtablesize-tests (Files): Likewise.
40602         * modules/getgroups-tests (Files): Likewise.
40603         * modules/getline-tests (Files): Likewise.
40604         * modules/getndelim2-tests (Files): Likewise.
40605         * modules/glob-tests (Files): Likewise.
40606         * modules/hash-tests (Files): Likewise.
40607         * modules/i-ring-tests (Files): Likewise.
40608         * modules/iconv-tests (Files): Likewise.
40609         * modules/iconv_open-utf-tests (Files): Likewise.
40610         * modules/idpriv-drop-tests (Files): Likewise.
40611         * modules/idpriv-droptemp-tests (Files): Likewise.
40612         * modules/inet_ntop-tests (Files): Likewise.
40613         * modules/inet_pton-tests (Files): Likewise.
40614         * modules/isblank-tests (Files): Likewise.
40615         * modules/isfinite-tests (Files): Likewise.
40616         * modules/isinf-tests (Files): Likewise.
40617         * modules/isnan-tests (Files): Likewise.
40618         * modules/isnand-nolibm-tests (Files): Likewise.
40619         * modules/isnand-tests (Files): Likewise.
40620         * modules/isnanf-nolibm-tests (Files): Likewise.
40621         * modules/isnanf-tests (Files): Likewise.
40622         * modules/isnanl-nolibm-tests (Files): Likewise.
40623         * modules/isnanl-tests (Files): Likewise.
40624         * modules/lchown-tests (Files): Likewise.
40625         * modules/ldexpl-tests (Files): Likewise.
40626         * modules/link-tests (Files): Likewise.
40627         * modules/linkat-tests (Files): Likewise.
40628         * modules/linked-list-tests (Files): Likewise.
40629         * modules/linkedhash-list-tests (Files): Likewise.
40630         * modules/localename-tests (Files): Likewise.
40631         * modules/lseek-tests (Files): Likewise.
40632         * modules/lstat-tests (Files): Likewise.
40633         * modules/mbmemcasecmp-tests (Files): Likewise.
40634         * modules/mbmemcasecoll-tests (Files): Likewise.
40635         * modules/mbrtowc-tests (Files): Likewise.
40636         * modules/mbscasecmp-tests (Files): Likewise.
40637         * modules/mbscasestr-tests (Files): Likewise.
40638         * modules/mbschr-tests (Files): Likewise.
40639         * modules/mbscspn-tests (Files): Likewise.
40640         * modules/mbsinit-tests (Files): Likewise.
40641         * modules/mbsncasecmp-tests (Files): Likewise.
40642         * modules/mbsnrtowcs-tests (Files): Likewise.
40643         * modules/mbspbrk-tests (Files): Likewise.
40644         * modules/mbspcasecmp-tests (Files): Likewise.
40645         * modules/mbsrchr-tests (Files): Likewise.
40646         * modules/mbsrtowcs-tests (Files): Likewise.
40647         * modules/mbsspn-tests (Files): Likewise.
40648         * modules/mbsstr-tests (Files): Likewise.
40649         * modules/memchr-tests (Files): Likewise.
40650         * modules/memchr2-tests (Files): Likewise.
40651         * modules/memcmp-tests (Files): Likewise.
40652         * modules/memmem-tests (Files): Likewise.
40653         * modules/memrchr-tests (Files): Likewise.
40654         * modules/mkdir-tests (Files): Likewise.
40655         * modules/mkfifo-tests (Files): Likewise.
40656         * modules/mkfifoat-tests (Files): Likewise.
40657         * modules/mknod-tests (Files): Likewise.
40658         * modules/nanosleep-tests (Files): Likewise.
40659         * modules/nl_langinfo-tests (Files): Likewise.
40660         * modules/obstack-printf-tests (Files): Likewise.
40661         * modules/open-tests (Files): Likewise.
40662         * modules/openat-tests (Files): Likewise.
40663         * modules/pipe-filter-gi-tests (Files): Likewise.
40664         * modules/pipe-filter-ii-tests (Files): Likewise.
40665         * modules/pipe2-tests (Files): Likewise.
40666         * modules/popen-safer-tests (Files): Likewise.
40667         * modules/popen-tests (Files): Likewise.
40668         * modules/posixtm-tests (Files): Likewise.
40669         * modules/pread-tests (Files): Likewise.
40670         * modules/printf-frexp-tests (Files): Likewise.
40671         * modules/printf-frexpl-tests (Files): Likewise.
40672         * modules/printf-posix-tests (Files): Likewise.
40673         * modules/priv-set-tests (Files): Likewise.
40674         * modules/quotearg-tests (Files): Likewise.
40675         * modules/random_r-tests (Files): Likewise.
40676         * modules/rawmemchr-tests (Files): Likewise.
40677         * modules/rbtree-list-tests (Files): Likewise.
40678         * modules/rbtree-oset-tests (Files): Likewise.
40679         * modules/rbtreehash-list-tests (Files): Likewise.
40680         * modules/readlink-tests (Files): Likewise.
40681         * modules/remove-tests (Files): Likewise.
40682         * modules/rename-tests (Files): Likewise.
40683         * modules/renameat-tests (Files): Likewise.
40684         * modules/rmdir-tests (Files): Likewise.
40685         * modules/round-tests (Files): Likewise.
40686         * modules/roundf-tests (Files): Likewise.
40687         * modules/roundl-tests (Files): Likewise.
40688         * modules/safe-alloc-tests (Files): Likewise.
40689         * modules/setenv-tests (Files): Likewise.
40690         * modules/sigaction-tests (Files): Likewise.
40691         * modules/signbit-tests (Files): Likewise.
40692         * modules/sleep-tests (Files): Likewise.
40693         * modules/snprintf-posix-tests (Files): Likewise.
40694         * modules/snprintf-tests (Files): Likewise.
40695         * modules/sprintf-posix-tests (Files): Likewise.
40696         * modules/stat-tests (Files): Likewise.
40697         * modules/stat-time-tests (Files): Likewise.
40698         * modules/strcasestr-tests (Files): Likewise.
40699         * modules/strchrnul-tests (Files): Likewise.
40700         * modules/strerror-tests (Files): Likewise.
40701         * modules/striconv-tests (Files): Likewise.
40702         * modules/striconveh-tests (Files): Likewise.
40703         * modules/striconveha-tests (Files): Likewise.
40704         * modules/strsignal-tests (Files): Likewise.
40705         * modules/strstr-tests (Files): Likewise.
40706         * modules/strtod-tests (Files): Likewise.
40707         * modules/strverscmp-tests (Files): Likewise.
40708         * modules/symlink-tests (Files): Likewise.
40709         * modules/symlinkat-tests (Files): Likewise.
40710         * modules/trunc-tests (Files): Likewise.
40711         * modules/truncf-tests (Files): Likewise.
40712         * modules/truncl-tests (Files): Likewise.
40713         * modules/uname-tests (Files): Likewise.
40714         * modules/unicase/cased-tests (Files): Likewise.
40715         * modules/unicase/ignorable-tests (Files): Likewise.
40716         * modules/unicase/locale-language-tests (Files): Likewise.
40717         * modules/unicase/tolower-tests (Files): Likewise.
40718         * modules/unicase/totitle-tests (Files): Likewise.
40719         * modules/unicase/toupper-tests (Files): Likewise.
40720         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40721         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40722         * modules/unicase/u8-casefold-tests (Files): Likewise.
40723         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40724         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40725         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40726         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40727         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40728         * modules/unicase/u8-tolower-tests (Files): Likewise.
40729         * modules/unicase/u8-totitle-tests (Files): Likewise.
40730         * modules/unicase/u8-toupper-tests (Files): Likewise.
40731         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40732         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40733         * modules/unicase/u16-casefold-tests (Files): Likewise.
40734         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40735         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40736         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40737         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40738         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40739         * modules/unicase/u16-tolower-tests (Files): Likewise.
40740         * modules/unicase/u16-totitle-tests (Files): Likewise.
40741         * modules/unicase/u16-toupper-tests (Files): Likewise.
40742         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40743         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40744         * modules/unicase/u32-casefold-tests (Files): Likewise.
40745         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40746         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40747         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40748         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40749         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40750         * modules/unicase/u32-tolower-tests (Files): Likewise.
40751         * modules/unicase/u32-totitle-tests (Files): Likewise.
40752         * modules/unicase/u32-toupper-tests (Files): Likewise.
40753         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40754         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40755         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40756         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40757         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40758         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40759         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40760         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40761         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40762         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40763         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40764         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40765         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40766         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40767         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40768         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40769         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40770         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40771         * modules/unictype/block-list-tests (Files): Likewise.
40772         * modules/unictype/block-of-tests (Files): Likewise.
40773         * modules/unictype/block-test-tests (Files): Likewise.
40774         * modules/unictype/category-C-tests (Files): Likewise.
40775         * modules/unictype/category-Cc-tests (Files): Likewise.
40776         * modules/unictype/category-Cf-tests (Files): Likewise.
40777         * modules/unictype/category-Cn-tests (Files): Likewise.
40778         * modules/unictype/category-Co-tests (Files): Likewise.
40779         * modules/unictype/category-Cs-tests (Files): Likewise.
40780         * modules/unictype/category-L-tests (Files): Likewise.
40781         * modules/unictype/category-Ll-tests (Files): Likewise.
40782         * modules/unictype/category-Lm-tests (Files): Likewise.
40783         * modules/unictype/category-Lo-tests (Files): Likewise.
40784         * modules/unictype/category-Lt-tests (Files): Likewise.
40785         * modules/unictype/category-Lu-tests (Files): Likewise.
40786         * modules/unictype/category-M-tests (Files): Likewise.
40787         * modules/unictype/category-Mc-tests (Files): Likewise.
40788         * modules/unictype/category-Me-tests (Files): Likewise.
40789         * modules/unictype/category-Mn-tests (Files): Likewise.
40790         * modules/unictype/category-N-tests (Files): Likewise.
40791         * modules/unictype/category-Nd-tests (Files): Likewise.
40792         * modules/unictype/category-Nl-tests (Files): Likewise.
40793         * modules/unictype/category-No-tests (Files): Likewise.
40794         * modules/unictype/category-P-tests (Files): Likewise.
40795         * modules/unictype/category-Pc-tests (Files): Likewise.
40796         * modules/unictype/category-Pd-tests (Files): Likewise.
40797         * modules/unictype/category-Pe-tests (Files): Likewise.
40798         * modules/unictype/category-Pf-tests (Files): Likewise.
40799         * modules/unictype/category-Pi-tests (Files): Likewise.
40800         * modules/unictype/category-Po-tests (Files): Likewise.
40801         * modules/unictype/category-Ps-tests (Files): Likewise.
40802         * modules/unictype/category-S-tests (Files): Likewise.
40803         * modules/unictype/category-Sc-tests (Files): Likewise.
40804         * modules/unictype/category-Sk-tests (Files): Likewise.
40805         * modules/unictype/category-Sm-tests (Files): Likewise.
40806         * modules/unictype/category-So-tests (Files): Likewise.
40807         * modules/unictype/category-Z-tests (Files): Likewise.
40808         * modules/unictype/category-Zl-tests (Files): Likewise.
40809         * modules/unictype/category-Zp-tests (Files): Likewise.
40810         * modules/unictype/category-Zs-tests (Files): Likewise.
40811         * modules/unictype/category-and-not-tests (Files): Likewise.
40812         * modules/unictype/category-and-tests (Files): Likewise.
40813         * modules/unictype/category-byname-tests (Files): Likewise.
40814         * modules/unictype/category-name-tests (Files): Likewise.
40815         * modules/unictype/category-none-tests (Files): Likewise.
40816         * modules/unictype/category-of-tests (Files): Likewise.
40817         * modules/unictype/category-or-tests (Files): Likewise.
40818         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40819         * modules/unictype/combining-class-tests (Files): Likewise.
40820         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40821         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40822         * modules/unictype/ctype-blank-tests (Files): Likewise.
40823         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40824         * modules/unictype/ctype-digit-tests (Files): Likewise.
40825         * modules/unictype/ctype-graph-tests (Files): Likewise.
40826         * modules/unictype/ctype-lower-tests (Files): Likewise.
40827         * modules/unictype/ctype-print-tests (Files): Likewise.
40828         * modules/unictype/ctype-punct-tests (Files): Likewise.
40829         * modules/unictype/ctype-space-tests (Files): Likewise.
40830         * modules/unictype/ctype-upper-tests (Files): Likewise.
40831         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40832         * modules/unictype/decimal-digit-tests (Files): Likewise.
40833         * modules/unictype/digit-tests (Files): Likewise.
40834         * modules/unictype/mirror-tests (Files): Likewise.
40835         * modules/unictype/numeric-tests (Files): Likewise.
40836         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40837         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40838         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40839         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40840         Likewise.
40841         * modules/unictype/property-bidi-block-separator-tests (Files):
40842         Likewise.
40843         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40844         Likewise.
40845         * modules/unictype/property-bidi-common-separator-tests (Files):
40846         Likewise.
40847         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40848         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40849         Likewise.
40850         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40851         Likewise.
40852         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40853         Likewise.
40854         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40855         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40856         Likewise.
40857         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40858         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40859         Likewise.
40860         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40861         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40862         * modules/unictype/property-bidi-segment-separator-tests (Files):
40863         Likewise.
40864         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40865         * modules/unictype/property-byname-tests (Files): Likewise.
40866         * modules/unictype/property-combining-tests (Files): Likewise.
40867         * modules/unictype/property-composite-tests (Files): Likewise.
40868         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40869         * modules/unictype/property-dash-tests (Files): Likewise.
40870         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40871         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40872         Likewise.
40873         * modules/unictype/property-deprecated-tests (Files): Likewise.
40874         * modules/unictype/property-diacritic-tests (Files): Likewise.
40875         * modules/unictype/property-extender-tests (Files): Likewise.
40876         * modules/unictype/property-format-control-tests (Files): Likewise.
40877         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40878         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40879         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40880         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40881         * modules/unictype/property-hyphen-tests (Files): Likewise.
40882         * modules/unictype/property-id-continue-tests (Files): Likewise.
40883         * modules/unictype/property-id-start-tests (Files): Likewise.
40884         * modules/unictype/property-ideographic-tests (Files): Likewise.
40885         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40886         * modules/unictype/property-ids-trinary-operator-tests (Files):
40887         Likewise.
40888         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40889         * modules/unictype/property-iso-control-tests (Files): Likewise.
40890         * modules/unictype/property-join-control-tests (Files): Likewise.
40891         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40892         * modules/unictype/property-line-separator-tests (Files): Likewise.
40893         * modules/unictype/property-logical-order-exception-tests (Files):
40894         Likewise.
40895         * modules/unictype/property-lowercase-tests (Files): Likewise.
40896         * modules/unictype/property-math-tests (Files): Likewise.
40897         * modules/unictype/property-non-break-tests (Files): Likewise.
40898         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40899         * modules/unictype/property-numeric-tests (Files): Likewise.
40900         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40901         * modules/unictype/property-other-default-ignorable-code-point-tests
40902         (Files): Likewise.
40903         * modules/unictype/property-other-grapheme-extend-tests (Files):
40904         Likewise.
40905         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40906         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40907         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40908         * modules/unictype/property-other-math-tests (Files): Likewise.
40909         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40910         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40911         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40912         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40913         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40914         * modules/unictype/property-private-use-tests (Files): Likewise.
40915         * modules/unictype/property-punctuation-tests (Files): Likewise.
40916         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40917         * modules/unictype/property-radical-tests (Files): Likewise.
40918         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40919         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40920         * modules/unictype/property-space-tests (Files): Likewise.
40921         * modules/unictype/property-terminal-punctuation-tests (Files):
40922         Likewise.
40923         * modules/unictype/property-test-tests (Files): Likewise.
40924         * modules/unictype/property-titlecase-tests (Files): Likewise.
40925         * modules/unictype/property-unassigned-code-value-tests (Files):
40926         Likewise.
40927         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40928         * modules/unictype/property-uppercase-tests (Files): Likewise.
40929         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40930         * modules/unictype/property-white-space-tests (Files): Likewise.
40931         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40932         * modules/unictype/property-xid-start-tests (Files): Likewise.
40933         * modules/unictype/property-zero-width-tests (Files): Likewise.
40934         * modules/unictype/scripts-tests (Files): Likewise.
40935         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40936         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40937         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40938         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40939         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40940         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40941         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40942         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40943         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40944         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40945         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40946         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40947         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40948         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40949         * modules/uninorm/composition-tests (Files): Likewise.
40950         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40951         * modules/uninorm/decomposition-tests (Files): Likewise.
40952         * modules/uninorm/filter-tests (Files): Likewise.
40953         * modules/uninorm/nfc-tests (Files): Likewise.
40954         * modules/uninorm/nfd-tests (Files): Likewise.
40955         * modules/uninorm/nfkc-tests (Files): Likewise.
40956         * modules/uninorm/nfkd-tests (Files): Likewise.
40957         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40958         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40959         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40960         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40961         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40962         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40963         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40964         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40965         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40966         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40967         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40968         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40969         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40970         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40971         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40972         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40973         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40974         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40975         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40976         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40977         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40978         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40979         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40980         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40981         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40982         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40983         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40984         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40985         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40986         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40987         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40988         * modules/uniwidth/u8-width-tests (Files): Likewise.
40989         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40990         * modules/uniwidth/u16-width-tests (Files): Likewise.
40991         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40992         * modules/uniwidth/u32-width-tests (Files): Likewise.
40993         * modules/uniwidth/width-tests (Files): Likewise.
40994         * modules/unlink-tests (Files): Likewise.
40995         * modules/unsetenv-tests (Files): Likewise.
40996         * modules/usleep-tests (Files): Likewise.
40997         * modules/utimens-tests (Files): Likewise.
40998         * modules/utimensat-tests (Files): Likewise.
40999         * modules/vasnprintf-posix-tests (Files): Likewise.
41000         * modules/vasnprintf-tests (Files): Likewise.
41001         * modules/vasprintf-posix-tests (Files): Likewise.
41002         * modules/vasprintf-tests (Files): Likewise.
41003         * modules/vdprintf-posix-tests (Files): Likewise.
41004         * modules/vfprintf-posix-tests (Files): Likewise.
41005         * modules/vprintf-posix-tests (Files): Likewise.
41006         * modules/vsnprintf-posix-tests (Files): Likewise.
41007         * modules/vsnprintf-tests (Files): Likewise.
41008         * modules/vsprintf-posix-tests (Files): Likewise.
41009         * modules/wcrtomb-tests (Files): Likewise.
41010         * modules/wcsnrtombs-tests (Files): Likewise.
41011         * modules/wcsrtombs-tests (Files): Likewise.
41012         * modules/wctype-tests (Files): Likewise.
41013         * modules/wcwidth-tests (Files): Likewise.
41014         * modules/xmemdup0-tests (Files): Likewise.
41015         * modules/xprintf-posix-tests (Files): Likewise.
41016         * modules/xvasprintf-tests (Files): Likewise.
41017
41018 2009-12-24  Eric Blake  <ebb9@byu.net>
41019
41020         test-nanosleep: fix typo
41021         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41022         patch.
41023         Reported by Bruno Haible.
41024
41025 2009-12-24  Bruno Haible  <bruno@clisp.org>
41026
41027         Reduce namespace pollution on glibc systems.
41028         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41029         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41030         systems.
41031         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41032         <getopt.h> on glibc systems.
41033         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41034         systems.
41035         * lib/fcntl.c: Include <unistd.h> here instead.
41036
41037 2009-12-24  Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41040
41041 2009-12-24  Eric Blake  <ebb9@byu.net>
41042
41043         tests: add signature checks
41044         * tests/signature.h (SIGNATURE_CHECK): New file.
41045         * modules/atexit-tests (Files): Use it.
41046         * modules/btowc-tests (Files): Likewise.
41047         * modules/canonicalize-lgpl-tests (Files): Likewise.
41048         * modules/ceilf-tests (Files): Likewise.
41049         * modules/ceill-tests (Files): Likewise.
41050         * modules/chown-tests (Files): Likewise.
41051         * modules/dprintf-posix-tests (Files): Likewise.
41052         * modules/dup2-tests (Files): Likewise.
41053         * modules/dup3-tests (Files): Likewise.
41054         * modules/duplocale-tests (Files): Likewise.
41055         * modules/fchdir-tests (Files): Likewise.
41056         * modules/fcntl-tests (Files): Likewise.
41057         * modules/fdopendir-tests (Files): Likewise.
41058         * modules/fflush-tests (Files): Likewise.
41059         * modules/flock-tests (Files): Likewise.
41060         * modules/floorf-tests (Files): Likewise.
41061         * modules/floorl-tests (Files): Likewise.
41062         * modules/fnmatch-tests (Files): Likewise.
41063         * modules/fopen-tests (Files): Likewise.
41064         * modules/fprintf-posix-tests (Files): Likewise.
41065         * modules/freopen-tests (Files): Likewise.
41066         * modules/frexp-nolibm-tests (Files): Likewise.
41067         * modules/frexp-tests (Files): Likewise.
41068         * modules/frexpl-nolibm-tests (Files): Likewise.
41069         * modules/frexpl-tests (Files): Likewise.
41070         * modules/fseek-tests (Files): Likewise.
41071         * modules/fseeko-tests (Files): Likewise.
41072         * modules/fsync-tests (Files): Likewise.
41073         * modules/ftell-tests (Files): Likewise.
41074         * modules/ftello-tests (Files): Likewise.
41075         * modules/futimens-tests (Files): Likewise.
41076         * modules/getaddrinfo-tests (Files): Likewise.
41077         * modules/getcwd-tests (Files): Likewise.
41078         * modules/getdelim-tests (Files): Likewise.
41079         * modules/getdtablesize-tests (Files): Likewise.
41080         * modules/getgroups-tests (Files): Likewise.
41081         * modules/gethostname-tests (Files): Likewise.
41082         * modules/getline-tests (Files): Likewise.
41083         * modules/getopt-posix-tests (Files): Likewise.
41084         * modules/gettimeofday-tests (Files): Likewise.
41085         * modules/glob-tests (Files): Likewise.
41086         * modules/iconv-tests (Files): Likewise.
41087         * modules/inet_ntop-tests (Files): Likewise.
41088         * modules/inet_pton-tests (Files): Likewise.
41089         * modules/isblank-tests (Files): Likewise.
41090         * modules/lchown-tests (Files): Likewise.
41091         * modules/ldexpl-tests (Files): Likewise.
41092         * modules/link-tests (Files): Likewise.
41093         * modules/linkat-tests (Files): Likewise.
41094         * modules/lseek-tests (Files): Likewise.
41095         * modules/lstat-tests (Files): Likewise.
41096         * modules/mbrtowc-tests (Files): Likewise.
41097         * modules/mbsinit-tests (Files): Likewise.
41098         * modules/mbsnrtowcs-tests (Files): Likewise.
41099         * modules/mbsrtowcs-tests (Files): Likewise.
41100         * modules/memchr-tests (Files): Likewise.
41101         * modules/memcmp-tests (Files): Likewise.
41102         * modules/memmem-tests (Files): Likewise.
41103         * modules/memrchr-tests (Files): Likewise.
41104         * modules/mkdir-tests (Files): Likewise.
41105         * modules/mkfifo-tests (Files): Likewise.
41106         * modules/mkfifoat-tests (Files): Likewise.
41107         * modules/mknod-tests (Files): Likewise.
41108         * modules/nanosleep-tests (Files): Likewise.
41109         * modules/nl_langinfo-tests (Files): Likewise.
41110         * modules/obstack-printf-tests (Files): Likewise.
41111         * modules/open-tests (Files): Likewise.
41112         * modules/openat-tests (Files): Likewise.
41113         * modules/perror-tests (Files): Likewise.
41114         * modules/pipe2-tests (Files): Likewise.
41115         * modules/poll-tests (Files): Likewise.
41116         * modules/popen-tests (Files): Likewise.
41117         * modules/posix_spawn-tests (Files): Likewise.
41118         * modules/posix_spawnp-tests (Files): Likewise.
41119         * modules/pread-tests (Files): Likewise.
41120         * modules/printf-posix-tests (Files): Likewise.
41121         * modules/pty-tests (Files): Likewise.
41122         * modules/random_r-tests (Files): Likewise.
41123         * modules/rawmemchr-tests (Files): Likewise.
41124         * modules/readlink-tests (Files): Likewise.
41125         * modules/remove-tests (Files): Likewise.
41126         * modules/rename-tests (Files): Likewise.
41127         * modules/renameat-tests (Files): Likewise.
41128         * modules/rmdir-tests (Files): Likewise.
41129         * modules/round-tests (Files): Likewise.
41130         * modules/roundf-tests (Files): Likewise.
41131         * modules/roundl-tests (Files): Likewise.
41132         * modules/select-tests (Files): Likewise.
41133         * modules/setenv-tests (Files): Likewise.
41134         * modules/sigaction-tests (Files): Likewise.
41135         * modules/sleep-tests (Files): Likewise.
41136         * modules/snprintf-posix-tests (Files): Likewise.
41137         * modules/snprintf-tests (Files): Likewise.
41138         * modules/sprintf-posix-tests (Files): Likewise.
41139         * modules/stat-tests (Files): Likewise.
41140         * modules/strcasestr-tests (Files): Likewise.
41141         * modules/strchrnul-tests (Files): Likewise.
41142         * modules/strerror-tests (Files): Likewise.
41143         * modules/strsignal-tests (Files): Likewise.
41144         * modules/strstr-tests (Files): Likewise.
41145         * modules/strtod-tests (Files): Likewise.
41146         * modules/strverscmp-tests (Files): Likewise.
41147         * modules/symlink-tests (Files): Likewise.
41148         * modules/symlinkat-tests (Files): Likewise.
41149         * modules/times-tests (Files): Likewise.
41150         * modules/trunc-tests (Files): Likewise.
41151         * modules/truncf-tests (Files): Likewise.
41152         * modules/truncl-tests (Files): Likewise.
41153         * modules/tsearch-tests (Files): Likewise.
41154         * modules/uname-tests (Files): Likewise.
41155         * modules/unlink-tests (Files): Likewise.
41156         * modules/unsetenv-tests (Files): Likewise.
41157         * modules/usleep-tests (Files): Likewise.
41158         * modules/utimensat-tests (Files): Likewise.
41159         * modules/vasprintf-tests (Files): Likewise.
41160         * modules/vdprintf-posix-tests (Files): Likewise.
41161         * modules/vfprintf-posix-tests (Files): Likewise.
41162         * modules/vprintf-posix-tests (Files): Likewise.
41163         * modules/vsnprintf-posix-tests (Files): Likewise.
41164         * modules/vsnprintf-tests (Files): Likewise.
41165         * modules/vsprintf-posix-tests (Files): Likewise.
41166         * modules/wcrtomb-tests (Files): Likewise.
41167         * modules/wcsnrtombs-tests (Files): Likewise.
41168         * modules/wcsrtombs-tests (Files): Likewise.
41169         * modules/wcwidth-tests (Files): Likewise.
41170         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41171         * tests/test-isinf.c (isinf): Likewise.
41172         * tests/test-isnan.c (isnan): Likewise.
41173         * tests/test-signbit.c (signbit): Likewise.
41174         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41175         declaration, either as macro or with correct signature.
41176         (select): Ensure function under test is declared with correct
41177         signature in correct header.
41178         * tests/test-atexit.c (atexit): Likewise.
41179         * tests/test-btowc.c (btowc): Likewise.
41180         * tests/test-canonicalize-lgpl.c (realpath)
41181         (canonicalize_file_name): Likewise.
41182         * tests/test-ceilf1.c (ceilf): Likewise.
41183         * tests/test-ceill.c (ceill): Likewise.
41184         * tests/test-chown.c (chown): Likewise.
41185         * tests/test-dprintf-posix.c (dprintf): Likewise.
41186         * tests/test-dup2.c (dup2): Likewise.
41187         * tests/test-dup3.c (dup3): Likewise.
41188         * tests/test-duplocale.c (duplocale): Likewise.
41189         * tests/test-fchdir.c (fchdir): Likewise.
41190         * tests/test-fchownat.c (fchownat): Likewise.
41191         * tests/test-fcntl.c (fcntl): Likewise.
41192         * tests/test-fdopendir.c (fdopendir): Likewise.
41193         * tests/test-fflush.c (fflush): Likewise.
41194         * tests/test-flock.c (flock): Likewise.
41195         * tests/test-floorf1.c (floorf): Likewise.
41196         * tests/test-floorl.c (floorl): Likewise.
41197         * tests/test-fnmatch.c (fnmatch): Likewise.
41198         * tests/test-fopen.c (fopen): Likewise.
41199         * tests/test-fprintf-posix.c (fprintf): Likewise.
41200         * tests/test-freopen.c (freopen): Likewise.
41201         * tests/test-frexp.c (frexp): Likewise.
41202         * tests/test-frexpl.c (frexpl): Likewise.
41203         * tests/test-fseek.c (fseek): Likewise.
41204         * tests/test-fseeko.c (fseeko): Likewise.
41205         * tests/test-fstatat.c (fstatat): Likewise.
41206         * tests/test-fsync.c (fsync): Likewise.
41207         * tests/test-ftell.c (ftell): Likewise.
41208         * tests/test-ftello.c (ftello): Likewise.
41209         * tests/test-futimens.c (futimens): Likewise.
41210         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41211         (gai_strerror): Likewise.
41212         * tests/test-getcwd.c (getcwd): Likewise.
41213         * tests/test-getdelim.c (getdelim): Likewise.
41214         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41215         * tests/test-getgroups.c (getgroups): Likewise.
41216         * tests/test-gethostname.c (gethostname): Likewise.
41217         * tests/test-getline.c (getline): Likewise.
41218         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41219         Likewise.
41220         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41221         * tests/test-glob.c (glob, globfree): Likewise.
41222         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41223         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41224         * tests/test-inet_pton.c (inet_pton): Likewise.
41225         * tests/test-isblank.c (isblank): Likewise.
41226         * tests/test-lchown.c (lchown): Likewise.
41227         * tests/test-ldexpl.c (ldexpl): Likewise.
41228         * tests/test-link.c (link): Likewise.
41229         * tests/test-linkat.c (linkat): Likewise.
41230         * tests/test-lseek.c (lseek): Likewise.
41231         * tests/test-lstat.c (lstat): Likewise.
41232         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41233         * tests/test-mbsinit.c (mbsinit): Likewise.
41234         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41235         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41236         * tests/test-memchr.c (memchr): Likewise.
41237         * tests/test-memcmp.c (memcmp): Likewise.
41238         * tests/test-memmem.c (memmem): Likewise.
41239         * tests/test-memrchr.c (memrchr): Likewise.
41240         * tests/test-mkdir.c (mkdir): Likewise.
41241         * tests/test-mkdirat.c (mkdirat): Likewise.
41242         * tests/test-mkfifo.c (mkfifo): Likewise.
41243         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41244         * tests/test-mknod.c (mknod): Likewise.
41245         * tests/test-nanosleep.c (nanosleep): Likewise.
41246         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41247         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41248         Likewise.
41249         * tests/test-open.c (open): Likewise.
41250         * tests/test-openat.c (openat): Likewise.
41251         * tests/test-perror.c (perror): Likewise.
41252         * tests/test-pipe2.c (pipe2): Likewise.
41253         * tests/test-poll.c (poll): Likewise.
41254         * tests/test-popen.c (popen, pclose): Likewise.
41255         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41256         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41257         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41258         (posix_spawn_file_actions_destroy)
41259         (posix_spawn_file_actions_addclose)
41260         (posix_spawn_file_actions_addopen)
41261         (posix_spawn_file_actions_adddup2): Likewise.
41262         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41263         * tests/test-pread.c (pread): Likewise.
41264         * tests/test-printf-posix.c (printf): Likewise.
41265         * tests/test-pty.c (openpty, forkpty): Likewise.
41266         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41267         (random_r): Likewise.
41268         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41269         * tests/test-readlink.c (readlink): Likewise.
41270         * tests/test-remove.c (remove): Likewise.
41271         * tests/test-rename.c (rename): Likewise.
41272         * tests/test-renameat.c (renameat): Likewise.
41273         * tests/test-rmdir.c (rmdir): Likewise.
41274         * tests/test-round1.c (round): Likewise.
41275         * tests/test-roundf1.c (roundf): Likewise.
41276         * tests/test-roundl.c (roundl): Likewise.
41277         * tests/test-setenv.c (setenv): Likewise.
41278         * tests/test-sigaction.c (sigaction): Likewise.
41279         * tests/test-sleep.c (sleep): Likewise.
41280         * tests/test-snprintf.c (snprintf): Likewise.
41281         * tests/test-sprintf-posix.c (sprintf): Likewise.
41282         * tests/test-stat.c (stat): Likewise.
41283         * tests/test-stpncpy.c (stpncpy): Likewise.
41284         * tests/test-strcasestr.c (strcasestr): Likewise.
41285         * tests/test-strchrnul.c (strchrnul): Likewise.
41286         * tests/test-strerror.c (strerror): Likewise.
41287         * tests/test-strsignal.c (strsignal): Likewise.
41288         * tests/test-strstr.c (strstr): Likewise.
41289         * tests/test-strtod.c (strtod): Likewise.
41290         * tests/test-strverscmp.c (strverscmp): Likewise.
41291         * tests/test-symlink.c (symlink): Likewise.
41292         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41293         * tests/test-times.c (times): Likewise.
41294         * tests/test-trunc1.c (trunc): Likewise.
41295         * tests/test-truncf1.c (truncf): Likewise.
41296         * tests/test-truncl.c (truncl): Likewise.
41297         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41298         Likewise.
41299         * tests/test-uname.c (uname): Likewise.
41300         * tests/test-unlink.c (unlink): Likewise.
41301         * tests/test-unlinkat.c (unlinkat): Likewise.
41302         * tests/test-unsetenv.c (unsetenv): Likewise.
41303         * tests/test-usleep.c (usleep): Likewise.
41304         * tests/test-utimensat.c (utimensat): Likewise.
41305         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41306         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41307         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41308         * tests/test-vprintf-posix.c (vprintf): Likewise.
41309         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41310         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41311         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41312         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41313         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41314         * tests/test-wcwidth.c (wcwidth): Likewise.
41315
41316         build: pull in conditional headers during GNULIB_POSIXCHECK
41317         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41318         definitions from any conditionally-included headers.
41319         * lib/stdlib.in.h (includes): Likewise.
41320         * lib/unistd.in.h (includes): Likewise.
41321
41322 2009-12-24  Bruno Haible  <bruno@clisp.org>
41323
41324         * tests/test-argv-iter.c: Include header file being tested immediately
41325         after config.h.
41326         * tests/test-base64.c: Likewise.
41327         * tests/test-flock.c: Likewise.
41328         * tests/test-fsync.c: Likewise.
41329         * tests/test-getdate.c: Likewise.
41330         * tests/test-getndelim2.c: Likewise.
41331         * tests/test-isfinite.c: Likewise.
41332         * tests/test-isinf.c: Likewise.
41333         * tests/test-strerror.c: Likewise.
41334         * tests/test-strsignal.c: Likewise.
41335
41336 2009-12-23  Eric Blake  <ebb9@byu.net>
41337
41338         unistd: work around cygwin bug
41339         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41340         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41341         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41342
41343 2009-12-23  Bruno Haible  <bruno@clisp.org>
41344
41345         localename: More tests.
41346         * tests/test-localename.c (SIZEOF): New macro.
41347         (categories): New variable.
41348         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41349         test_locale_name_default): Add test w.r.t. thread locale.
41350         (test_locale_name_thread): New function.
41351         (main): Invoke it.
41352
41353         localename: Make aware of thread locale.
41354         * lib/localename.h (gl_locale_name_thread): New declaration.
41355         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41356         behaviour with respect to thread locale.
41357         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41358         <langinfo.h>, glthread/lock.h.
41359         (SIZE_BITS): New macro.
41360         (string_hash): New function.
41361         (struct hash_node): New type.
41362         (HASH_TABLE_SIZE): New macro.
41363         (struniq_hash_table, struniq_lock): New variables.
41364         (struniq): New function.
41365         (gl_locale_name_thread): New function.
41366         (gl_locale_name): Invoke it.
41367         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41368         * modules/localename (Depends-on): Add lock.
41369         Reported by Mike Gran <spk121@yahoo.com>.
41370
41371 2009-12-23  Eric Blake  <ebb9@byu.net>
41372
41373         va-args: new module
41374         * modules/va-args: New file.
41375         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41376         * MODULES.html.sh (Core language properties): Mention it.
41377
41378         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41379         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41380         named alias for __attribute__((__unused__)).
41381         * lib/chown.c: Update client.
41382         * lib/fchmodat.c: Likewise.
41383         * lib/fts.c: Likewise.
41384         * lib/getdate.y: Likewise.
41385         * lib/getgroups.c: Likewise.
41386         * lib/getopt.c: Likewise.
41387         * lib/getugroups.c: Likewise.
41388         * lib/mkdir.c: Likewise.
41389         * lib/mkfifo.c: Likewise.
41390         * lib/mkfifoat.c: Likewise.
41391         * lib/mknod.c: Likewise.
41392         * lib/mknodat.c: Likewise.
41393         * lib/readlink.c: Likewise.
41394         * lib/se-context.in.h: Likewise.
41395         * lib/se-selinux.in.h: Likewise.
41396         * lib/sockets.c: Likewise.
41397         * lib/symlink.c: Likewise.
41398         * lib/symlinkat.c: Likewise.
41399         * lib/unicodeio.c: Likewise.
41400         * lib/unistr.h: Likewise.
41401         * tests/test-areadlink.c: Likewise.
41402         * tests/test-areadlinkat.c: Likewise.
41403         * tests/test-filenamecat.c: Likewise.
41404         * tests/test-fseeko.c: Likewise.
41405         * tests/test-ftello.c: Likewise.
41406         * tests/test-getdate.c: Likewise.
41407         * tests/test-getgroups.c: Likewise.
41408         * tests/test-gethostname.c: Likewise.
41409         * tests/test-quotearg.c: Likewise.
41410         * tests/test-version-etc.c: Likewise.
41411         * tests/test-xalloc-die.c: Likewise.
41412         * tests/test-xfprintf-posix.c: Likewise.
41413         * tests/test-xprintf-posix.c: Likewise.
41414         * tests/test-xvasprintf.c: Likewise.
41415
41416         tests: avoid compiler warnings
41417         * tests/test-fcntl.c (main): Delete unused parameters.
41418         * tests/test-freopen-safer.c (main): Likewise.
41419         * tests/test-xalloc-die.c (main): Mark unused parameters.
41420         * tests/test-fseeko.c (main): Likewise.
41421         * tests/test-ftello.c (main): Likewise.
41422         * tests/test-nanosleep.c (main): Avoid declaration warning.
41423         * tests/test-sleep.c (main): Likewise.
41424         * tests/test-unsetenv.c (main): Silence warning about string
41425         literal.
41426         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41427
41428 2009-12-23  Bruno Haible  <bruno@clisp.org>
41429
41430         * tests/test-localename.c (test_locale_name): New function, extracted
41431         from main. Also test mixed situations.
41432         (test_locale_name_posix, test_locale_name_environ,
41433         test_locale_name_default): New functions.
41434         (main): Invoke them all.
41435         * modules/localename-tests (configure.ac): Test for newlocale.
41436
41437 2009-12-23  Bruno Haible  <bruno@clisp.org>
41438
41439         unistd: Ensure getcwd gets declared before being overridden.
41440         * lib/unistd.in.h: Conditionally include <io.h>.
41441
41442 2009-12-22  Bruno Haible  <bruno@clisp.org>
41443
41444         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41445         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41446         (gl_WCHAR_H): Invoke it.
41447         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41448         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41449         Reported by Karl Berry <karl@freefriends.org>.
41450
41451 2009-12-22  Eric Blake  <ebb9@byu.net>
41452
41453         math, unistd: avoid redundant includes
41454         * lib/math.in.h (isnan): No need to re-include <math.h>.
41455         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41456
41457         getsubopt: work around cygwin bug
41458         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41459         avoid conflicting with system getsubopt.
41460         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41461         bug.
41462
41463         getopt: synchronize from glibc
41464         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41465         parameter order.  Adjust all callers.
41466         (_getopt_internal_r, main): Adjust quoting in error messages.
41467         Drop considerations for outdated POSIX 1003.2 error message.
41468         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41469         callers.
41470         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41471
41472         test-getopt: test stderr behavior
41473         * modules/getopt-posix-tests (Depends-on): Add dup2.
41474         * tests/test-getopt.c (ASSERT): Avoid stderr.
41475         (main): Move stderr to a temporary file.
41476         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41477         Instead, add parameter to inform caller if output occurred.
41478         (test_getopt): Adjust all existing tests to expect silence, and
41479         add new tests of leading ":".
41480         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41481         glibc shortcomings with leading "-:" or "+:" in optstring.
41482         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41483         Likewise.
41484         * doc/posix-functions/getopt.texi (getopt): Likewise.
41485
41486         test-getopt: enhance test
41487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41488         supports optind=0.
41489         * tests/test-getopt.c (OPTIND_MIN): Move...
41490         * tests/test-getopt.h (OPTIND_MIN): ...here.
41491         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41492         Require that optind=0 works, since modern BSD supports it in
41493         addition to optreset, and since coreutils expects it.
41494         (test_getopt_long_only): New test.
41495         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41496         glibc shortcomings with 'W;', and enforcement of optind=0.
41497         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41498         Likewise.
41499
41500 2009-12-21  Bruno Haible  <bruno@clisp.org>
41501
41502         localename: Improvements for MacOS X and Cygwin.
41503         * lib/localename.h (gl_locale_name_environ): New declaration.
41504         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41505         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41506         (gl_locale_name_posix): Invoke it.
41507         (gl_locale_name_default): Add comments. Use Windows native API also on
41508         Cygwin.
41509
41510 2009-12-21  Bruno Haible  <bruno@clisp.org>
41511
41512         Update list of Win32 locale ids.
41513         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41514         (LANG_SAMI): Renamed from LANG_SAAMI.
41515         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41516         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41517         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41518         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41519         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41520         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41521         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41522         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41523         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41524         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41525         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41526         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41527         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41528         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41529         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41530         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41531         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41532         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41533         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41534         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41535         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41536         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41537         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41538         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41539         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41540         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41541         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41542         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41543         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41544         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41545         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41546         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41547         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41548         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41549         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41550         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41551         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41552         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41553         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41554         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41555         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41556         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41557         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41558         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41559         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41560         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41561         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41562         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41563         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41564         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41565         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41566         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41567         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41568         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41569         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41570         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41571         Add more languages and countries for Sami, Sorbian. Add more countries
41572         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41573         for Pashto. Change country for Syriac, Tswana.
41574
41575 2009-12-21  Eric Blake  <ebb9@byu.net>
41576
41577         test-utimens: avoid spurious failure
41578         * tests/test-chown.h (nap): Factor...
41579         * tests/nap.h: ...into new file.
41580         * tests/test-lchown.h (nap): Avoid duplication.
41581         * tests/test-utimens-common.h (nap): Use shared implementation,
41582         necessary on file systems with 1-second resolution.
41583         * modules/chown-tests (Files): Include new file.
41584         * modules/fdutimensat-tests (Files): Likewise.
41585         * modules/futimens-tests (Files): Likewise.
41586         * modules/lchown-tests (Files): Likewise.
41587         * modules/openat-tests (Files): Likewise.
41588         * modules/utimens-tests (Files): Likewise.
41589         * modules/utimensat-tests (Files): Likewise.
41590
41591 2009-12-19  Eric Blake  <ebb9@byu.net>
41592
41593         futimens, utimensat: work around Linux bug
41594         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41595         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41596         * lib/utimensat.c (rpl_utimensat): Work around it.
41597         * lib/futimens.c (rpl_futimens): Adjust comment.
41598
41599         utimens: work around Linux ctime bug
41600         * lib/utimens.c (detect_ctime_bug): New helper function.
41601         (update_timespec): Differentiate between workaround needed for
41602         this bug vs. what is needed for systems that lack utimensat.
41603         (fdutimens, lutimens): Work around bug.
41604
41605         utimens: check for ctime update
41606         * tests/test-utimens-common.h (check_ctime): Define.
41607         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41608         * tests/test-futimens.h (test_futimens): Likewise.
41609         * tests/test-lutimens.h (test_lutimens): Likewise.
41610         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41611         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41612
41613 2009-12-19  Bruno Haible  <bruno@clisp.org>
41614
41615         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41616         * tests/test-dprintf-posix2.sh: New file.
41617         * tests/test-dprintf-posix2.c: New file.
41618         * modules/dprintf-posix-tests (Files): Add them.
41619         (configure.ac): Check for getrlimit and setrlimit.
41620         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41621
41622 2009-12-19  Bruno Haible  <bruno@clisp.org>
41623
41624         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41625         * tests/test-fprintf-posix3.sh: New file.
41626         * tests/test-fprintf-posix3.c: New file.
41627         * modules/fprintf-posix-tests (Files): Add them.
41628         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41629
41630 2009-12-19  Eric Blake  <ebb9@byu.net>
41631
41632         dirfd: fix prototype
41633         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41634         * lib/dirfd.c (dirfd): Likewise.
41635
41636         canonicalize: reduce memory usage
41637         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41638         allocation to size.
41639         Reported by Solar Designer <solar@openwall.com>.
41640
41641 2009-12-19  Bruno Haible  <bruno@clisp.org>
41642
41643         New module attribute 'Applicability'.
41644         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41645         * gnulib-tool: New option --extract-applicability.
41646         (func_usage): Document it.
41647         (sed_extract_prog): Recognize it.
41648         (func_get_applicability): New function.
41649         (func_import): Generalize handling of 'link-warning' module.
41650         * modules/link-warning (Applicability): New section.
41651         * modules/arg-nonnull (Applicability): New section.
41652         Repoted by Simon Josefsson <simon@josefsson.org>.
41653
41654 2009-12-19  Bruno Haible  <bruno@clisp.org>
41655
41656         fflush: tweak
41657         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41658         * lib/fseeko.c (rpl_fseeko): Likewise.
41659
41660 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41661
41662         * lib/gl_list.h: Fix typo in comment.
41663
41664 2009-12-16  Eric Blake  <ebb9@byu.net>
41665
41666         fcntl: use to simplify other modules
41667         * modules/cloexec (Depends-on): Add fcntl.
41668         * modules/fchdir (Depends-on): Likewise.
41669         * modules/fd-safer-flag (Depends-on): Likewise.
41670         * modules/unistd-safer (Depends-on): Likewise.
41671         * modules/dup3 (configure.ac): Set module indicator.
41672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41673         missing.
41674         * lib/fchdir.c (_gl_register_dup): Fix comment.
41675         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41676         * lib/dup-safer.c (dup_safer): Likewise.
41677         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41678         * lib/dup3.c (dup3): Likewise.
41679         * tests/test-fchdir.c (main): Enhance test.
41680         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41681
41682         fcntl: port portions of fcntl to mingw
41683         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41684         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41685         replacement for mingw.
41686         * modules/fcntl (Description): Update.
41687         (Depends-on): Add dup2.
41688         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41689         * modules/fcntl-h (Makefile.am): Substitute it.
41690         * lib/fcntl.in.h (fcntl): Update declaration.
41691         (F_DUPFD, F_GETFD): New macros, when needed.
41692         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41693         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41694         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41695         we now guarantee.
41696
41697         fcntl: work around cygwin bug in F_DUPFD
41698         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41699         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41700         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41701         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41702         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41703
41704         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41705         * modules/fcntl (Files): List new files.
41706         (configure.ac): Run a test.
41707         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41708         * lib/fcntl.c (rpl_fcntl): Likewise.
41709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41710         (gl_FCNTL_H): Always replace fcntl.h.
41711         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41712         * lib/fcntl.in.h (fcntl): Declare replacement.
41713         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41714         needed, plus a witness.
41715         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41716         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41717         * tests/test-fcntl.c: New file.
41718         * modules/fcntl-tests: Likewise.
41719
41720         binary-io: avoid potential compilation warning
41721         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41722         directives.
41723
41724         fflush: avoid compilation error on NetBSD
41725         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41726         between off_t and fpos_t, since the latter is sometimes a struct.
41727         * lib/fseeko.c (rpl_fseeko): Likewise.
41728         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41729
41730 2009-12-15  Eric Blake  <ebb9@byu.net>
41731
41732         fcntl-h, stdio, sys_ioctl: fix declarations
41733         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41734         function must not take arguments.
41735         * lib/sys_ioctl.in.h (ioctl): Likewise.
41736         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41737         (open): Add a link warning.
41738
41739 2009-12-15  Jim Meyering  <meyering@redhat.com>
41740
41741         areadlink, areadlink-with-size: relax license to LGPLv2+
41742         * modules/areadlink (License): Relax to LGPLv2+.
41743         * modules/areadlink-with-size (License): Likewise.
41744
41745 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41746             Bruno Haible  <bruno@clisp.org>
41747
41748         *printf: Fix memory leak.
41749         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41750         * lib/vfprintf.c (vfprintf): Likewise.
41751         * lib/dprintf.c (dprintf): Likewise.
41752         * lib/vdprintf.c (vdprintf): Likewise.
41753
41754 2009-12-14  Eric Blake  <ebb9@byu.net>
41755
41756         accept4: adjust module dependencies
41757         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41758
41759         utimens: one more try at avoiding compiler warning
41760         * lib/utimens.c (lutimens): Lower scope of result.
41761
41762 2009-12-13  Bruno Haible  <bruno@clisp.org>
41763
41764         Move the malloc checking from module 'list' to new module 'xlist'.
41765         * modules/xlist: New file.
41766         * lib/gl_xlist.h: New file.
41767         * lib/gl_xlist.c: New file.
41768         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41769         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41770         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41771         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41772         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41773         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41774         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41775         gl_sortedlist_nx_add): New declarations.
41776         (struct gl_list_implementation): Rename and change methods accordingly.
41777         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41778         (gl_list_nx_create): Renamed from gl_list_create.
41779         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41780         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41781         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41782         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41783         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41784         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41785         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41786         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41787         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41788         gl_list_create_empty.
41789         (gl_list_nx_create): Renamed from gl_list_create.
41790         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41791         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41792         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41793         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41794         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41795         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41796         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41797         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41798         * lib/gl_array_list.c: Don't include xalloc.h.
41799         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41800         NULL upon out-of-memory.
41801         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41802         out-of-memory.
41803         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41804         Change return type to 'int'.
41805         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41806         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41807         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41808         upon out-of-memory.
41809         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41810         upon out-of-memory.
41811         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41812         upon out-of-memory.
41813         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41814         upon out-of-memory.
41815         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41816         out-of-memory.
41817         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41818         Update.
41819         (gl_array_list_implementation): Update.
41820         * lib/gl_carray_list.c: Don't include xalloc.h.
41821         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41822         Return NULL upon out-of-memory.
41823         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41824         out-of-memory.
41825         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41826         Change return type to 'int'.
41827         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41828         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41829         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41830         upon out-of-memory.
41831         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41832         upon out-of-memory.
41833         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41834         out-of-memory.
41835         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41836         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41837         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41838         Update.
41839         (gl_carray_list_implementation): Update.
41840         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41841         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41842         gl_linked_create_empty. Return NULL upon out-of-memory.
41843         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41844         out-of-memory.
41845         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41846         Change return type to 'int'. Return -1 upon out-of-memory.
41847         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41848         out-of-memory.
41849         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41850         upon out-of-memory.
41851         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41852         upon out-of-memory.
41853         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41854         NULL upon out-of-memory.
41855         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41856         upon out-of-memory.
41857         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41858         out-of-memory.
41859         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41860         Update.
41861         * lib/gl_linked_list.c: Don't include xalloc.h.
41862         (gl_linked_list_implementation): Update.
41863         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41864         (add_to_bucket): Change return type to 'int'.
41865         (gl_linkedhash_list_implementation): Update.
41866         * lib/gl_anytree_list1.h (free_subtree): New function.
41867         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41868         gl_tree_create_empty. Return NULL upon out-of-memory.
41869         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41870         Change return type to 'int'. Return -1 upon out-of-memory.
41871         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41872         out-of-memory.
41873         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41874         (gl_tree_remove_node): New function, moved here from
41875         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41876         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41877         Update.
41878         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41879         malloc, not xmalloc. Return NULL upon out-of-memory.
41880         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41881         out-of-memory.
41882         (gl_tree_remove_node_from_tree): New function, extracted from
41883         gl_tree_remove_node.
41884         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41885         upon out-of-memory.
41886         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41887         out-of-memory.
41888         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41889         upon out-of-memory.
41890         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41891         upon out-of-memory.
41892         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41893         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41894         not xmalloc. Return NULL upon out-of-memory.
41895         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41896         out-of-memory.
41897         (gl_tree_remove_node_from_tree): New function, extracted from
41898         gl_tree_remove_node.
41899         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41900         upon out-of-memory.
41901         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41902         out-of-memory.
41903         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41904         upon out-of-memory.
41905         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41906         upon out-of-memory.
41907         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41908         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41909         gl_anytree_list1.h before gl_anyavltree_list2.h.
41910         (gl_avltree_list_implementation): Update.
41911         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41912         gl_anytree_list1.h before gl_anyavltree_list2.h.
41913         (gl_rbtree_list_implementation): Update.
41914         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41915         Change return type to 'int'. Return -1 upon out-of-memory. Use
41916         __builtin_expect.
41917         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41918         (gl_avltreehash_list_implementation): Update.
41919         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41920         (gl_rbtreehash_list_implementation): Update.
41921         * modules/array-list (Depends-on): Remove xalloc.
41922         * modules/carray-list (Depends-on): Likewise.
41923         * modules/linked-list (Depends-on): Likewise.
41924         * modules/linkedhash-list (Depends-on): Likewise.
41925         * modules/avltree-list (Depends-on): Likewise.
41926         * modules/rbtree-list (Depends-on): Likewise.
41927         * modules/avltreehash-list (Depends-on): Likewise.
41928         * modules/rbtreehash-list (Depends-on): Likewise.
41929
41930         * modules/xsublist: New file.
41931         * lib/gl_xsublist.h: New file.
41932         * lib/gl_xsublist.c: New file.
41933         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41934         (gl_sublist_nx_create): New declaration.
41935         * lib/gl_sublist.c: Don't include xalloc.h.
41936         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41937         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41938         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41939         Change return type to 'int'. Return -1 upon out-of-memory.
41940         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41941         upon out-of-memory.
41942         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41943         NULL upon out-of-memory.
41944         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41945         upon out-of-memory.
41946         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41947         NULL upon out-of-memory.
41948         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41949         NULL upon out-of-memory.
41950         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41951         upon out-of-memory.
41952         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41953         (gl_sublist_list_implementation): Update.
41954         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41955         upon out-of-memory.
41956         * modules/sublist (Depends-on): Remove xalloc.
41957
41958         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41959         * tests/test-carray_list.c: Likewise.
41960         * tests/test-linked_list.c: Likewise.
41961         * tests/test-linkedhash_list.c: Likewise.
41962         * tests/test-avltree_list.c: Likewise.
41963         * tests/test-rbtree_list.c: Likewise.
41964         * tests/test-avltreehash_list.c: Likewise.
41965         * tests/test-rbtreehash_list.c: Likewise.
41966         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41967         * modules/carray-list-tests (Makefile.am): Likewise.
41968         * modules/linked-list-tests (Makefile.am): Likewise.
41969         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41970         * modules/avltree-list-tests (Makefile.am): Likewise.
41971         * modules/rbtree-list-tests (Makefile.am): Likewise.
41972         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41973         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41974
41975         * NEWS: Mention the changes.
41976
41977         * lib/clean-temp.c: Include gl_xlist.h.
41978         * modules/clean-temp (Depends-on): Add xlist.
41979
41980         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41981         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41982
41983         * tests/test-array_oset.c: Include gl_xlist.h.
41984         * modules/array-oset-tests (Depends-on): Add xlist.
41985
41986         Reported by José E. Marchesi <jemarch@gnu.org>.
41987
41988 2009-12-13  Bruno Haible  <bruno@clisp.org>
41989
41990         Move the malloc checking from module 'oset' to new module 'xoset'.
41991         * modules/xoset: New file.
41992         * lib/gl_xoset.h: New file.
41993         * lib/gl_xoset.c: New file.
41994         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41995         declarations.
41996         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41997         (struct gl_oset_implementation): Rename and change methods accordingly.
41998         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41999         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42000         'int'. Mark as __warn_unused_result__.
42001         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42002         gl_oset_create_empty.
42003         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42004         'int'.
42005         * lib/gl_array_oset.c: Don't include xalloc.h.
42006         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42007         malloc, not xmalloc.
42008         (grow): Change return type to 'int'. Don't call xalloc_die.
42009         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42010         to 'int'.
42011         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42012         'int'.
42013         (gl_array_oset_implementation): Update.
42014         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42015         gl_tree_create_empty.
42016         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42017         'int'.
42018         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42019         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42020         xmalloc.
42021         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42022         not xmalloc.
42023         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42024         xmalloc.
42025         (gl_avltree_oset_implementation): Update.
42026         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42027         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42028         xmalloc.
42029         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42030         not xmalloc.
42031         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42032         xmalloc.
42033         (gl_rbtree_oset_implementation): Update.
42034         * modules/array-oset (Depends-on): Remove xalloc.
42035         * modules/avltree-oset (Depends-on): Likewise.
42036         * modules/rbtree-oset (Depends-on): Likewise.
42037         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42038         * tests/test-avltree_oset.c: Likewise.
42039         * tests/test-rbtree_oset.c: Likewise.
42040         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42041         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42042         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42043         * NEWS: Mention the change.
42044
42045 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42046
42047         maint.mk: allow a project to override release-prep commands
42048         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42049         commands into a new rule.
42050         (release-prep): New rule.
42051         (release-prep-hook): New overridable variable.
42052
42053 2009-12-13  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42056
42057 2009-12-13  Jim Meyering  <meyering@redhat.com>
42058
42059         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42060         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42061
42062 2009-12-12  Bruno Haible  <bruno@clisp.org>
42063
42064         duplocale: Tweak.
42065         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42066
42067 2009-12-12  Karl Berry  <karl@gnu.org>
42068
42069         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42070
42071 2009-12-12  Bruno Haible  <bruno@clisp.org>
42072
42073         * m4/po.m4: Undo incorrect untabification.
42074
42075 2009-12-12  Bruno Haible  <bruno@clisp.org>
42076
42077         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42078         * modules/c-strtod (Depends-on): Add locale.
42079         * modules/c-strtold (Depends-on): Likewise.
42080
42081 2009-12-12  Bruno Haible  <bruno@clisp.org>
42082
42083         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42084
42085 2009-12-11  Eric Blake  <ebb9@byu.net>
42086
42087         setenv: relax requirement in light of POSIX ruling
42088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42089         not NULL.
42090         * tests/test-setenv.c (main): Relax test.
42091         * tests/test-unsetenv.c (main): Likewise.
42092         * doc/posix-functions/setenv.texi (setenv): Document this.
42093         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42094
42095 2009-12-11  Bruno Haible  <bruno@clisp.org>
42096
42097         New module 'fd-safer-flag'.
42098         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42099         * lib/dup-safer.c (dup_safer_flag): Remove function.
42100         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42101         * lib/fd-safer.c (fd_safer_flag): Remove function.
42102         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42103         * modules/cloexec (configure.ac): Drop indicator macro.
42104         * modules/fd-safer-flag: New file.
42105         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42106         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42107         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42108
42109 2009-12-11  Bruno Haible  <bruno@clisp.org>
42110
42111         Tests for module 'nl_langinfo'.
42112         * modules/nl_langinfo-tests: New file.
42113         * tests/test-nl_langinfo.sh: New file.
42114         * tests/test-nl_langinfo.c: New file.
42115
42116         New module 'nl_langinfo'.
42117         * lib/nl_langinfo.c: New file.
42118         * m4/nl_langinfo.m4: New file.
42119         * modules/nl_langinfo: New file.
42120         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42121
42122 2009-12-11  Bruno Haible  <bruno@clisp.org>
42123
42124         Tests for module 'langinfo'.
42125         * modules/langinfo-tests: New file.
42126         * tests/test-langinfo.c: New file.
42127
42128         New module 'langinfo'.
42129         * lib/langinfo.in.h: New file.
42130         * m4/langinfo_h.m4: New file.
42131         * modules/langinfo: New file.
42132         * doc/posix-headers/langinfo.texi: Mention the new module.
42133
42134 2009-12-11  Bruno Haible  <bruno@clisp.org>
42135
42136         * lib/config.charset: Untabify.
42137
42138 2009-12-11  Bruno Haible  <bruno@clisp.org>
42139
42140         * modules/unistd-safer (configure.ac): Drop indicator macro.
42141
42142 2009-12-11  Bruno Haible  <bruno@clisp.org>
42143
42144         Move pipe2-safer code to its own file.
42145         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42146         * lib/pipe-safer.c (pipe2_safer): Remove function.
42147         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42148         (Makefile.am): Add it to lib_SOURCES.
42149
42150 2009-12-10  Bruno Haible  <bruno@clisp.org>
42151
42152         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42153
42154 2009-12-10  Bruno Haible  <bruno@clisp.org>
42155
42156         Declare which arguments expect non-NULL values, for GCC and clang.
42157         * build-aux/arg-nonnull.h: New file.
42158         * modules/arg-nonnull: New file.
42159         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42160         (inet_ntop, inet_pton): Use it.
42161         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42162         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42163         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42164         (open, openat): Use it.
42165         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42166         (fnmatch): Use it.
42167         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42168         (getopt, getopt_long, getopt_long_only): Use it.
42169         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42170         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42171         Use it.
42172         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42173         (iconv_open): Use it.
42174         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42175         (strtoimax, strtoumax): Use it.
42176         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42177         (duplocale): Use it.
42178         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42179         (frexp, frexpl): Use it.
42180         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42181         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42182         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42183         (tsearch, tfind, tdelete, twalk): Use it.
42184         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42185         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42186         sigpending): Use it.
42187         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42188         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42189         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42190         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42191         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42192         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42193         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42194         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42195         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42196         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42197         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42198         Use it.
42199         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42200         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42201         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42202         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42203         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42204         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42205         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42206         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42207         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42208         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42209         strtoull, unsetenv): Use it.
42210         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42211         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42212         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42213         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42214         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42215         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42216         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42217         (strcasecmp, strncasecmp): Use it.
42218         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42219         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42220         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42221         rpl_setsockopt): Use it.
42222         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42223         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42224         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42225         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42226         (gettimeofday): Use it.
42227         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42228         (times): Use it.
42229         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42230         (uname): Use it.
42231         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42232         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42233         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42234         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42235         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42236         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42237         unlinkat, write): Use it.
42238         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42239         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42240         * lib/argv-iter.h: Include arg-nonnull.h.
42241         (_ATTRIBUTE_NONNULL_): Remove macro.
42242         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42243         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42244         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42245         optimization.
42246         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42247         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42248         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42249         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42250         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42251         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42252         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42253         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42254         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42255         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42256         * modules/dirent (Depends-on): Add arg-nonnull.
42257         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42258         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42259         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42260         * modules/fnmatch (Depends-on): Add arg-nonnull.
42261         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42262         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42263         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42264         * modules/glob (Depends-on): Add arg-nonnull.
42265         (Makefile.am): Insert arg-nonnull.h into glob.h.
42266         * modules/iconv_open (Depends-on): Add arg-nonnull.
42267         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42268         * modules/inttypes (Depends-on): Add arg-nonnull.
42269         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42270         * modules/locale (Depends-on): Add arg-nonnull.
42271         (Makefile.am): Insert arg-nonnull.h into locale.h.
42272         * modules/math (Depends-on): Add arg-nonnull.
42273         (Makefile.am): Insert arg-nonnull.h into math.h.
42274         * modules/netdb (Depends-on): Add arg-nonnull.
42275         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42276         * modules/search (Depends-on): Add arg-nonnull.
42277         (Makefile.am): Insert arg-nonnull.h into search.h.
42278         * modules/signal (Depends-on): Add arg-nonnull.
42279         (Makefile.am): Insert arg-nonnull.h into signal.h.
42280         * modules/spawn (Depends-on): Add arg-nonnull.
42281         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42282         * modules/stdio (Depends-on): Add arg-nonnull.
42283         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42284         * modules/stdlib (Depends-on): Add arg-nonnull.
42285         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42286         * modules/string (Depends-on): Add arg-nonnull.
42287         (Makefile.am): Insert arg-nonnull.h into string.h.
42288         * modules/strings (Depends-on): Add arg-nonnull.
42289         (Makefile.am): Insert arg-nonnull.h into strings.h.
42290         * modules/sys_socket (Depends-on): Add arg-nonnull.
42291         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42292         * modules/sys_stat (Depends-on): Add arg-nonnull.
42293         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42294         * modules/sys_time (Depends-on): Add arg-nonnull.
42295         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42296         * modules/sys_times (Depends-on): Add arg-nonnull.
42297         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42298         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42299         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42300         * modules/time (Depends-on): Add arg-nonnull.
42301         (Makefile.am): Insert arg-nonnull.h into time.h.
42302         * modules/unistd (Depends-on): Add arg-nonnull.
42303         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42304         * modules/wchar (Depends-on): Add arg-nonnull.
42305         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42306         * modules/argv-iter (Depends-on): Add arg-nonnull.
42307         * tests/test-canonicalize.c (null_ptr): New function.
42308         (main): Use it.
42309         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42310         (main): Use it.
42311         * tests/test-memmem.c (null_ptr): New function.
42312         (main): Use it.
42313         Reported by Jim Meyering.
42314
42315 2009-12-10  Bruno Haible  <bruno@clisp.org>
42316
42317         Use spaces for indentation, not tabs.
42318         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42319         * m4/*.m4: Untabify.
42320         * build-aux/*.h: Untabify.
42321         * tests/**/*.[hc]: Untabify.
42322         * README: New section "Indent with spaces, not TABs", based on
42323         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42324         * NEWS: Mention the change.
42325
42326 2009-12-10  Bruno Haible  <bruno@clisp.org>
42327
42328         pty test: Fix link error.
42329         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42330         test_pty_LDADD.
42331
42332 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42333
42334         * modules/pty: New file.
42335         * modules/pty-tests: New file.
42336         * m4/pty.m4: New file.
42337         * tests/test-pty.c: New file.
42338         * doc/glibc-headers/pty.texi: Modified.
42339         * doc/glibc-functions/forkpty.texi: Modified.
42340         * doc/glibc-functions/openpty.texi: Modified.
42341
42342 2009-12-10  Bruno Haible  <bruno@clisp.org>
42343
42344         Avoid syntax error in C++ mode.
42345         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42346
42347 2009-12-10  Bruno Haible  <bruno@clisp.org>
42348
42349         Use sed with option -e.
42350         * gnulib-tool (func_version, func_emit_copyright_notice,
42351         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42352         option -e to sed.
42353         * modules/link-warning (Makefile.am): Likewise.
42354
42355 2009-12-10  Jim Meyering  <meyering@redhat.com>
42356
42357         mgetgroups: do not write bytes beyond end of malloc'd buffer
42358         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42359         username, we call getgroups with a one-element-shorter buffer,
42360         but still told it the length was original, max_n_groups.
42361
42362 2009-12-09  Eric Blake  <ebb9@byu.net>
42363
42364         cloexec: relax license
42365         * modules/cloexec (Maintainer): Add myself.
42366         (License): Use LGPL, not GPL.
42367
42368         link-warning: optimize generation
42369         * modules/link-warning (Makefile.am): Reduce process usage.
42370
42371 2009-12-09  Bruno Haible  <bruno@clisp.org>
42372
42373         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42374         workaround was added on 2009-11-17.
42375
42376 2009-12-09  Jim Meyering  <meyering@redhat.com>
42377             Bruno Haible  <bruno@clisp.org>
42378
42379         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42380         * modules/link-warning (Makefile.am): Make the comment-removing sed
42381         command more robust in the face of bootstrap-prepended comment lines.
42382
42383 2009-12-09  Bruno Haible  <bruno@clisp.org>
42384
42385         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42386         most one group.
42387
42388 2009-12-09  Simon Josefsson <simon@josefsson.org>
42389             Bruno Haible  <bruno@clisp.org>
42390
42391         * build-aux/link-warning.h: Add copyright notice.
42392         * modules/link-warning (Makefile.am): Generate link-warning.h from
42393         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42394         * NEWS: Mention change in link-warning module.
42395         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42396         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42397         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42398         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42399         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42400         * modules/math (Makefile.am): Add dependency to math.h.
42401         * modules/search (Makefile.am): Add dependency to search.h.
42402         * modules/signal (Makefile.am): Add dependency to signal.h.
42403         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42404         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42405         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42406         * modules/string (Makefile.am): Add dependency to string.h.
42407         * modules/strings (Makefile.am): Add dependency to strings.h.
42408         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42409         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42410         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42411         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42412         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42413         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42414         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42415         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42416         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42417
42418 2009-12-09  Bruno Haible  <bruno@clisp.org>
42419
42420         fchdir: Optimize away rpl_fstat when possible.
42421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42422         REPLACE_OPEN_DIRECTORY.
42423         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42424
42425 2009-12-09  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/fchdir.c: Update comment.
42428
42429 2009-12-09  Bruno Haible  <bruno@clisp.org>
42430
42431         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42432
42433 2009-12-08  Eric Blake  <ebb9@byu.net>
42434
42435         fchdir: avoid memory leak on re-registration.
42436         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42437
42438 2009-12-08  Jim Meyering  <meyering@redhat.com>
42439
42440         init.sh: avoid Solaris 10 /bin/sh portability problem
42441         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42442         sourced script:
42443           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42444           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42445           bar
42446         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42447         and two tests used that idiom.
42448         * tests/init.sh: Update suggested usage comments.
42449         (path_prepend_): New function, to be used in place
42450         of the --src-path=DIR option.
42451         (setup_): Move PATH-prepending code into path_prepend_.
42452         * tests/test-pread.sh: Adapt to new usage.
42453         * tests/test-xalloc-die.sh: Likewise.
42454
42455 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42456
42457         * doc/gnulib.texi (Glibc pty.h): Add.
42458         * doc/glibc-functions/forkpty.texi: Add.
42459         * doc/glibc-functions/openpty.texi: Add.
42460         Suggested by Bruno Haible.
42461
42462 2009-12-08  Eric Blake  <ebb9@byu.net>
42463
42464         fchdir: fix logic bugs
42465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42466         * tests/test-fchdir.c (main): Enhance test.
42467         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42468         is in use.
42469
42470         dup2: fix logic bugs
42471         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42472         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42473         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42474         exists.
42475         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42476
42477 2009-12-07  Eric Blake  <ebb9@byu.net>
42478
42479         unlink: fix m4 detection
42480         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42481
42482         unistd-safer: add unit test
42483         * modules/unistd-safer-tests: New file.
42484         * tests/test-dup-safer.c: Likewise.
42485         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42486         * tests/test-dup2.c (setmode): Likewise.
42487         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42488
42489         cloexec: preserve text vs. binary across dup_cloexec
42490         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42491         mode.
42492         * modules/dup2-tests (Depends-on): Add binary-io.
42493         * modules/cloexec-tests (Depends-on): Likewise.
42494         * tests/test-dup2.c (setmode, is_mode): New helpers.
42495         (main): Add tests that translation mode is preserved.
42496         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42497         Reported by Bruno Haible.
42498
42499         mgetgroups: reduce duplicate listings
42500         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42501         resulting array.
42502         * tests/test-chown.h (test_chown): Simplify client.
42503         * tests/test-lchown.h (test_lchown): Likewise.
42504
42505 2009-12-06  Bruno Haible  <bruno@clisp.org>
42506
42507         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42508         value.
42509
42510 2009-12-06  Bruno Haible  <bruno@clisp.org>
42511
42512         * lib/progname.c: Include stdio.h, stdlib.h.
42513         (set_program_name): Reject a NULL argument.
42514
42515 2009-12-05  Eric Blake  <ebb9@byu.net>
42516
42517         pipe2-safer: new module
42518         * modules/pipe2-safer: New file.
42519         * lib/unistd-safer.h (pipe2_safer): New prototype.
42520         * lib/unistd--.h (pipe2): New wrapper.
42521         * lib/pipe-safer.c (pipe2_safer): New function.
42522         * modules/pipe (Depends-on): Add pipe2-safer.
42523         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42524
42525         stdlib-safer: preserve cloexec flag for mkostemp[s]
42526         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42527         fd_safer_flag.
42528
42529         unistd-safer: allow preservation of cloexec status via flag
42530         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42531         prototypes.
42532         * lib/dup-safer.c (dup_safer_flag): New function.
42533         * lib/fd-safer.c (fd_safer_flag): Likewise.
42534         * modules/cloexec (configure.ac): Set witness.
42535
42536         test-dup2: enhance test
42537         * modules/dup2-tests (Depends-on): Add cloexec.
42538         * tests/test-dup2.c (main): Enhance test.
42539
42540         cloexec: add dup_cloexec
42541         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42542         header and comments.
42543         * lib/cloexec.c (set_cloexec_flag): Add comments.
42544         (dup_cloexec): New function, with mingw implementation borrowed
42545         from...
42546         * lib/w32spawn.h (dup_noinherit): ...here.
42547         * modules/execute (Depends-on): Add cloexec.
42548         * modules/pipe (Depends-on): Likewise.
42549         * modules/cloexec (Depends-on): Add dup2.
42550         * modules/cloexec-tests (Files): New file.
42551         * tests/test-cloexec.c: Likewise.
42552
42553         test-xalloc-die: fix test for mingw
42554         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42555         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42556         directory and .exe suffix off argv[0] output.
42557
42558         test-fseeko: fix test for mingw
42559         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42560         than undefining fseek, so test will pass on mingw.
42561
42562 2009-12-05  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/progname.h (set_program_name): Clarify specification.
42565         * lib/progname.c (set_program_name): Likewise.
42566         Reported by Jim Meyering.
42567
42568 2009-12-05  Jim Meyering  <meyering@redhat.com>
42569
42570         maint.mk: backslash-escape parens in default regexp
42571         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42572         backslash-escape the literal parentheses.
42573
42574         maint.mk: news-date-check: use grep -E
42575         * top/maint.mk (today): Define a Make variable, not a...
42576         (news-date-check): ...shell variable.
42577         (news-date-regexp): Use the Make variable.
42578         Use grep's -E option.  Change the failing diagnostic to mention
42579         the variable, $(news-date-regexp).
42580
42581 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42582
42583         maintainer-makefile: allow customization of NEWS entry format
42584         * top/maint.mk (news-date-regexp): New overridable variable.
42585         (news-date-check): Use it.
42586
42587 2009-12-04  Eric Blake  <ebb9@byu.net>
42588
42589         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42590         * lib/mgetgroups.h (xgetgroups): New prototype.
42591         * lib/mgetgroups.c (xgetgroups): New wrapper.
42592         (mgetgroups): Handle ENOSYS.
42593         * modules/mgetgroups (Depends-on): Add realloc.
42594         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42595
42596         mgetgroups: avoid argument promotion issues with -1
42597         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42598         for invalid gid_t.
42599         * tests/test-chown.h (getegid, test_chown): Likewise.
42600         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42601
42602 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42603
42604         exclude: Fix header file problems.
42605         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42606
42607 2009-12-01  Jim Meyering  <meyering@redhat.com>
42608
42609         fts: fts_open: do not let an empty string cause immediate failure
42610         This is required in support of GNU rm, for which the command
42611         "rm A '' B" must process and remove both A and B, in spite of
42612         the empty string argument.
42613         * lib/fts.c (fts_open): Do not let the presence of an empty string
42614         cause fts_open to fail immediately.  Most fts-using tools must be
42615         able to process all arguments, in order, and can be expected to
42616         diagnose such arguments themselves.
42617
42618 2009-11-30  Eric Blake  <ebb9@byu.net>
42619
42620         utimens: fix compilation error
42621         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42622         Declare variable at right scope.
42623
42624 2009-11-29  Jim Meyering  <meyering@redhat.com>
42625
42626         bootstrap: handle perl-5.11's changed --version output
42627         * build-aux/bootstrap (get_version): Handle perl separately,
42628         since perl-5.11's --version output is different.
42629
42630 2009-11-28  Jim Meyering  <meyering@redhat.com>
42631
42632         userspec: depend on the inttostr module, too
42633         * modules/userspec (Depends-on): Add inttostr.
42634
42635         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42636         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42637         number of MAXUID when it evaluates to (uid_t) -1.
42638         Likewise for group ID.  Reported by Matt McCutchen in
42639         <http://savannah.gnu.org/bugs/?28113>
42640
42641         userspec: reformat to use spaces, not TABs
42642         * lib/userspec.c: Expand TABs to spaces.
42643         Add Emacs' "indent-tabs-mode: nil" hint.
42644
42645 2009-11-27  Eric Blake  <ebb9@byu.net>
42646
42647         getopt-gnu: flush out another BSD bug
42648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42649         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42650         flush out BSD bug.
42651         * tests/test-getopt.h (test_getopt): End lists with NULL.
42652         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42653         (test_getopt_long_posix): Enhance test.
42654         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42655         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42656         getopt-gnu.
42657         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42658         Likewise.
42659
42660 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42661
42662         * modules/idpriv-droptemp-tests (Notice): Fix text.
42663
42664 2009-11-27  Jim Meyering  <meyering@redhat.com>
42665
42666         test-xalloc-die: avoid spurious failure due to libtool argv difference
42667         In a libtool-enabled project, this test would fail due to a difference
42668         in the emitted program name, e.g.,
42669         -test-xalloc-die: memory exhausted
42670         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42671         Use program to avoid that.
42672         * modules/xalloc-die-tests (Depends-on): Add progname.
42673         * tests/test-xalloc-die.c: Include progname.h".
42674         (program_name): Remove decl.
42675         (main): Call set_program_name.
42676         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42677
42678 2009-11-26  Richard Jones  <rjones@redhat.com>
42679
42680         w32sock: leave win32 error in place.
42681         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42682
42683 2009-11-26  Eric Blake  <ebb9@byu.net>
42684
42685         init.sh: suggest to use skip_ and fail_ functions in comments
42686         * tests/init.sh: Add a sentence.
42687
42688 2009-11-25  Bruno Haible  <bruno@clisp.org>
42689
42690         init.sh: add documentation in comments
42691         * tests/init.sh: Add some developer and user documentation.
42692
42693 2009-11-26  Jim Meyering  <meyering@redhat.com>
42694
42695         init.sh: accommodate even those who specify bogus srcdir manually
42696         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42697         configure-time tests to be sanitized, so that there is no need to
42698         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42699         (with no double quotes) suffices.  However, since tests may be
42700         invoked manually, and since you may explicitly set srcdir to the
42701         name of a directory containing spaces, do quote its uses here.
42702         * tests/test-pread.sh: Likewise.
42703         Suggested by Bruno Haible.
42704
42705         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42706         * tests/test-pread.sh: Write no data into the pipe, because
42707         test-pread actually reads none.  This avoids a diagnostic,
42708         "bash: echo: write error: Broken pipe", that arises in the unusual
42709         event something is ignoring SIGPIPE, and might be interpreted
42710         as some sort of failure.  Reported by Bruno Haible.
42711
42712 2009-11-25  Jim Meyering  <meyering@redhat.com>
42713
42714         test-pread: cover failure with ESPIPE and EINVAL
42715         * tests/test-pread.c (main): Test for failure, too.
42716         * tests/test-pread.sh: Invoke with stdin on a pipe.
42717         Suggested by Eric Blake.
42718
42719         pread: improvement and fix
42720         * modules/pread (Depends-on): Depend on lseek, for portability to
42721         e.g., mingw.  Suggested by Eric Blake.
42722         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42723
42724         unistd.in.h: correct declaration of pread
42725         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42726         Reported by Richard W.M. Jones.
42727
42728         test-pread.sh: distribute the test script
42729         * modules/pread-tests (Files): Include test-pread.sh.
42730
42731         test-pread.sh: clean up
42732         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42733         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42734         That is unnecessary, since it's always ".".
42735         Suggestion from Eric Blake.
42736
42737         test-pread.sh: make executable
42738         * tests/test-pread.sh: Set executable bit.
42739         Reported by Eric Blake.
42740
42741         correct typo in test-pread.sh
42742         * tests/test-pread.sh: Add #! line.
42743
42744         test pread
42745         * tests/test-pread.c: New file.
42746         * tests/test-pread.sh: Likewise.
42747         * modules/pread-tests: Likewise.
42748
42749         pread: new module
42750         * modules/pread: New file.
42751         * lib/unistd.in.h (pread): Define/declare.
42752         * lib/pread.c (pread): New file.
42753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42754         * modules/unistd (Makefile.am): Substitute witnesses.
42755         * doc/posix-functions/pread.texi (pread): Update.
42756         * MODULES.html.sh: Add pread.
42757
42758 2009-11-25  Jim Meyering  <meyering@redhat.com>
42759
42760         tests/init.sh: new file to be used via most *.sh tests
42761         * tests/init.sh: New file.
42762
42763 2009-11-25  Eric Blake  <ebb9@byu.net>
42764
42765         utimens: work around older Linux failure with symlinks
42766         * lib/utimens.c (lutimensat_works_really): New variable.
42767         (fdutimens, lutimens): Use it to manage kernels that support
42768         nanosecond times on files, but not on symlinks.
42769         Reported by Ondřej Vašík.
42770
42771         utimes: fix configure grammar
42772         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42773
42774 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42775
42776         regex: Fix fastmap for multibyte character ranges.
42777         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42778         characters when a multibyte character range is included.
42779
42780 2009-11-22  Andy Wingo  <wingo@pobox.com>
42781
42782         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42783         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42784
42785 2009-11-24  Bruno Haible  <bruno@clisp.org>
42786
42787         doc: Most *_l functions exist in MacOS X 10.5.
42788         * doc/posix-functions/duplocale.texi: Update platforms list.
42789         * doc/posix-functions/freelocale.texi: Likewise.
42790         * doc/posix-functions/newlocale.texi: Likewise.
42791         * doc/posix-functions/uselocale.texi: Likewise.
42792         * doc/posix-functions/isalnum_l.texi: Likewise.
42793         * doc/posix-functions/isalpha_l.texi: Likewise.
42794         * doc/posix-functions/isblank_l.texi: Likewise.
42795         * doc/posix-functions/iscntrl_l.texi: Likewise.
42796         * doc/posix-functions/isdigit_l.texi: Likewise.
42797         * doc/posix-functions/isgraph_l.texi: Likewise.
42798         * doc/posix-functions/islower_l.texi: Likewise.
42799         * doc/posix-functions/isprint_l.texi: Likewise.
42800         * doc/posix-functions/ispunct_l.texi: Likewise.
42801         * doc/posix-functions/isspace_l.texi: Likewise.
42802         * doc/posix-functions/isupper_l.texi: Likewise.
42803         * doc/posix-functions/iswalnum_l.texi: Likewise.
42804         * doc/posix-functions/iswalpha_l.texi: Likewise.
42805         * doc/posix-functions/iswblank_l.texi: Likewise.
42806         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42807         * doc/posix-functions/iswctype_l.texi: Likewise.
42808         * doc/posix-functions/iswdigit_l.texi: Likewise.
42809         * doc/posix-functions/iswgraph_l.texi: Likewise.
42810         * doc/posix-functions/iswlower_l.texi: Likewise.
42811         * doc/posix-functions/iswprint_l.texi: Likewise.
42812         * doc/posix-functions/iswpunct_l.texi: Likewise.
42813         * doc/posix-functions/iswspace_l.texi: Likewise.
42814         * doc/posix-functions/iswupper_l.texi: Likewise.
42815         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42816         * doc/posix-functions/isxdigit_l.texi: Likewise.
42817         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42818         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42819         * doc/posix-functions/strcoll_l.texi: Likewise.
42820         * doc/posix-functions/strfmon_l.texi: Likewise.
42821         * doc/posix-functions/strftime_l.texi: Likewise.
42822         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42823         * doc/posix-functions/strxfrm_l.texi: Likewise.
42824         * doc/posix-functions/tolower_l.texi: Likewise.
42825         * doc/posix-functions/toupper_l.texi: Likewise.
42826         * doc/posix-functions/towctrans_l.texi: Likewise.
42827         * doc/posix-functions/towlower_l.texi: Likewise.
42828         * doc/posix-functions/towupper_l.texi: Likewise.
42829         * doc/posix-functions/wcscoll_l.texi: Likewise.
42830         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42831         * doc/posix-functions/wctrans_l.texi: Likewise.
42832         * doc/posix-functions/wctype_l.texi: Likewise.
42833         * doc/glibc-functions/strptime_l.texi: Likewise.
42834         * doc/glibc-functions/strtod_l.texi: Likewise.
42835         * doc/glibc-functions/strtof_l.texi: Likewise.
42836         * doc/glibc-functions/strtol_l.texi: Likewise.
42837         * doc/glibc-functions/strtold_l.texi: Likewise.
42838         * doc/glibc-functions/strtoll_l.texi: Likewise.
42839         * doc/glibc-functions/strtoul_l.texi: Likewise.
42840         * doc/glibc-functions/strtoull_l.texi: Likewise.
42841         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42842         * doc/glibc-functions/wcstod_l.texi: Likewise.
42843         * doc/glibc-functions/wcstof_l.texi: Likewise.
42844         * doc/glibc-functions/wcstol_l.texi: Likewise.
42845         * doc/glibc-functions/wcstold_l.texi: Likewise.
42846         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42847         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42848         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42849
42850 2009-11-24  Bruno Haible  <bruno@clisp.org>
42851
42852         duplocale: Fix logic bug.
42853         * lib/duplocale.c: Don't include <langinfo.h>.
42854         (_NL_LOCALE_NAME): Remove macro.
42855         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42856         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42857
42858 2009-11-23  Jim Meyering  <meyering@redhat.com>
42859
42860         test-update-copyright: don't hard-code /usr/bin/perl
42861         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42862         perl to print the current year.  Gilles Espinasse reported that
42863         the replaced use of perl was hard-coded as /usr/bin/perl.
42864
42865 2009-11-23  Bruno Haible  <bruno@clisp.org>
42866
42867         duplocale: Add support for glibc 2.3.x.
42868         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42869
42870 2009-11-22  Bruno Haible  <bruno@clisp.org>
42871
42872         vasnprintf: Tiny optimization.
42873         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42874         MacOS X.
42875
42876 2009-11-22  Bruno Haible  <bruno@clisp.org>
42877
42878         Tests for module 'duplocale'.
42879         * modules/duplocale-tests: New file.
42880         * tests/test-duplocale.c: New file.
42881
42882         New module 'duplocale'.
42883         * m4/duplocale.m4: New file.
42884         * lib/locale.in.h (duplocale): New declaration.
42885         * lib/duplocale.c: New file.
42886         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42887         gl_LOCALE_H_DEFAULTS): New macros.
42888         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42889         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42890         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42891         REPLACE_DUPLOCALE.
42892         * modules/duplocale: New file.
42893         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42894
42895 2009-11-22  Bruno Haible  <bruno@clisp.org>
42896
42897         * modules/locale-tests (configure.ac): Test for newlocale function.
42898         * tests/test-locale.c: When the system has extended locale functions,
42899         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42900
42901         locale: Make locale_t available when possible.
42902         * lib/locale.in.h: Include <xlocale.h> when it exists.
42903         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42904         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42905         * modules/locale (Depends-on): Add extensions.
42906         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42907         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42908
42909 2009-11-22  Bruno Haible  <bruno@clisp.org>
42910
42911         Add comments.
42912         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42913         invocation.
42914         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42915         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42917
42918 2009-11-22  Bruno Haible  <bruno@clisp.org>
42919
42920         error: account for the possibility of freopen (stdout).
42921         * lib/error.c: Include <unistd.h>.
42922         (flush_stdout): New function, extracted from error and error_at_line.
42923         Determine stdout's fd dynamically.
42924         (error, error_at_line): Invoke flush_stdout.
42925         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42926         * modules/error (Depends-on): Add unistd.
42927
42928 2009-11-22  Bruno Haible  <bruno@clisp.org>
42929
42930         diffseq: Add comment.
42931         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42932
42933 2009-11-22  Jim Meyering  <meyering@redhat.com>
42934
42935         c-stack: avoid defining an unused static function
42936         * lib/c-stack.c (find_stack_direction): Do not define this function
42937         when it will not be used.
42938
42939         diffseq: avoid spurious gcc warnings
42940         * lib/diffseq.h (IF_LINT2): Define.
42941         (compareseq): Use it to initialize two members of "part".
42942         This avoids two used-uninitialized warnings.
42943
42944 2009-11-21  Jim Meyering  <meyering@redhat.com>
42945
42946         c-stack: avoid "ignoring return value of `write'" warning
42947         * lib/c-stack.c: Include "ignore-value.h".
42948         (die): Explicitly ignore each write return value.
42949         * modules/c-stack (Depends-on): Add ignore-value.
42950
42951 2009-11-21  Bruno Haible  <bruno@clisp.org>
42952
42953         diffseq: reduce scope of variable 'best'.
42954         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42955         variable, earlier used for two different purposes.
42956
42957 2009-11-21  Jim Meyering  <meyering@redhat.com>
42958
42959         diffseq: remove useless assignment to "best"
42960         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42961         assignment.  At that point "best" is already guaranteed to be zero.
42962
42963 2009-11-20  Eric Blake  <ebb9@byu.net>
42964
42965         build: mention ftp redirector in release announcements
42966         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42967         values that used to come from cfg.mk; mention FTP redirect URL.
42968         * build-aux/announce-gen: Mention the mirror list.
42969         Suggested by Karl Berry.
42970
42971         nanosleep: improve port to mingw
42972         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42974         LIB_NANOSLEEP, but only when needed.
42975         * modules/select (Link): Document LIBSOCKET.
42976         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42977         enough.
42978
42979         nanosleep: work around cygwin bug
42980         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42981         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42982         bug.
42983         (getnow): Delete, not needed.
42984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42985         LIB_CLOCK_GETTIME.
42986         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42987         clock-time, gettime.
42988         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42989         bug.
42990         * modules/nanosleep-tests: New test.
42991         * tests/test-nanosleep.c: New file.
42992
42993         sleep: work around cygwin bug
42994         * lib/sleep.c (rpl_sleep): Work around the bug.
42995         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42996         (gl_PREREQ_SLEEP): Delete unused macro.
42997         * modules/sleep (Depends-on): Add verify.
42998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42999         * modules/unistd (Makefile.am): Substitute witness.
43000         * lib/unistd.in.h (sleep): Update prototype.
43001         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43002         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43003         * modules/sleep-tests (Depends-on): Check for alarm.
43004
43005 2009-11-20  Jim Meyering  <meyering@redhat.com>
43006
43007         maint.mk: improve sc_prohibit_magic_number_exit
43008         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43009         so it does not match uses like System.exit(1).
43010         Add comments showing how to correct all offenders.
43011
43012 2009-11-19  Eric Blake  <ebb9@byu.net>
43013
43014         xalloc-die-tests: add missing library
43015         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43016
43017         test-xvasprintf: silence compiler warnings
43018         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43019         empty string from gcc.
43020
43021 2009-11-19  Jim Meyering  <meyering@redhat.com>
43022
43023         xfreopen: new module, from coreutils
43024         * modules/xfreopen: New module.
43025         * lib/xfreopen.c: New file.
43026         * lib/xfreopen.h: New file.
43027         * MODULES.html.sh (File stream based Input/Output"): Add it.
43028
43029 2009-11-19  Eric Blake  <ebb9@byu.net>
43030
43031         manywarnings: depend on warnings
43032         * modules/manywarnings (Depends-on): Add warnings.
43033
43034         build: avoid compiler warnings
43035         * lib/select.c (rpl_select): Delete unused variable.
43036         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43037
43038 2009-11-18  Eric Blake  <ebb9@byu.net>
43039
43040         tests: avoid false negative with --with-packager
43041         * tests/test-version-etc.sh: Discard packager information.
43042         * tests/test-argp-version-etc-1.sh: Likewise.
43043         Reported by Mike Frysinger.
43044
43045         utimens: fix regression on Solaris
43046         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43047         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43048         can only change fd timestamps via futimesat.  Instead, use an
43049         additional witness macro to avoid BSD bug.
43050         Reported by Jim Meyering.
43051
43052 2009-11-17  Eric Blake  <ebb9@byu.net>
43053
43054         usleep: use it to simplify tests
43055         * modules/stat-time-tests (Depends-on): Add usleep.
43056         (configure.ac): Drop usleep check.
43057         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43058         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43059         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43060         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43061         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43062         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43063         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43064         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43065         Likewise.
43066         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43067         * tests/test-lchown.h (nap): Likewise.
43068         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43069         * tests/test-stat-time.c (nap): Likewise.
43070         * tests/test-utimens-common.h (nap): Update comments.
43071
43072         usleep: new module
43073         * modules/usleep: New file.
43074         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43075         * lib/usleep.c (usleep): Likewise.
43076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43077         * modules/unistd (Makefile.am): Substitute witnesses.
43078         * lib/unistd.in.h (usleep): Add declaration.
43079         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43080         * MODULES.html.sh (Date and time): Likewise.
43081         * modules/usleep-tests (Depends-on): New test.
43082         * tests/test-usleep.c: New file.
43083
43084         chown: work around OpenBSD bug
43085         * lib/chown.c (rpl_chown): Work around the bug.
43086         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43087         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43088         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43089         * modules/chown (Depends-on): Add stdbool.
43090         * modules/lchown (Depends-on): Likewise.
43091         * doc/posix-functions/chown.texi (chown): Document the bug.
43092         * doc/posix-functions/lchown.texi (lchown): Likewise.
43093         * tests/test-lchown.h (test_chown): Relax test.
43094
43095         mkstemp: avoid conflict with C++ keyword template
43096         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43097         * lib/mkostemp.c (mkostemp): Likewise.
43098         * lib/mkostemps.c (mkostemps): Likewise.
43099         * lib/mkstemp.c (mkstemp): Likewise.
43100         * lib/mkstemps.c (mkstemps): Likewise.
43101
43102         xalloc-die-tests: optimize
43103         * tests/test-xalloc-die.sh: Reduce number of processes.
43104
43105 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43106
43107         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43108         patch from ludo@gnu.org (Ludovic Courtès).
43109
43110 2009-11-17  Jim Meyering  <meyering@redhat.com>
43111
43112         version-etc: use proper license string
43113         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43114         * modules/version-etc-fsf: Likewise.
43115
43116 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43117
43118         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43119         printed to stdout.  Deal with EOL differences.
43120
43121 2009-11-17  Eric Blake  <ebb9@byu.net>
43122
43123         unsetenv: work around Solaris bug
43124         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43125         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43126         Reported by Jim Meyering.
43127
43128         vasnprintf: avoid compiler warnings
43129         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43130         variables.
43131         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43132
43133 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43134
43135         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43136         settings since xalloc-die is no longer the self test,
43137         xalloc-die.sh is.
43138
43139 2009-11-17  Jim Meyering  <meyering@redhat.com>
43140
43141         test-xalloc-die.sh: make the code agree with the commit log
43142         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43143         at the end, just in case you happen to have a test-xalloc-die
43144         program in some other PATH directory.
43145
43146         test-xalloc-die.sh: fix a portability bug
43147         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43148         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43149         Otherwise, argv[0] (as often seen in diagnostics) would be too
43150         system-dependent, sometimes with, and sometimes without the leading "./".
43151
43152         version-etc-fsf: relax license to LGPLv3+
43153         * modules/version-etc-fsf (License): Relax license.
43154
43155 2009-11-16  Eric Blake  <ebb9@byu.net>
43156
43157         xalloc-die-tests: avoid printing null pointer
43158         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43159         shell script.
43160         * tests/test-xalloc-die.c (program_name): Declare.
43161         * tests/test-xalloc-die.sh (tmpfiles): New file.
43162
43163         setenv, unsetenv: work around various bugs
43164         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43165         (setenv) [HAVE_SETENV]: Work around bugs.
43166         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43167         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43168         for bugs.
43169         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43170         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43172         * modules/stdlib (Makefile.am): Update substitutions.
43173         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43174         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43175         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43176         * modules/setenv-tests: New test.
43177         * modules/unsetenv-tests: Likewise.
43178         * tests/test-setenv.c: New file.
43179         * tests/test-unsetenv.c: Likewise.
43180
43181 2009-11-16  Jim Meyering  <meyering@redhat.com>
43182
43183         version-etc: relax license to LGPLv3+
43184         * modules/version-etc (License): Relax license.
43185
43186         better AC_REQUIRE expanded-before-required-warning avoidance
43187         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43188         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43189         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43190         which is no longer needed.
43191
43192 2009-11-16  Eric Blake  <ebb9@byu.net>
43193
43194         test-freading: clean up temporary file
43195         * tests/test-freading.c (main): Remove file on success, and use
43196         ASSERT more liberally.
43197         Reported by Jim Meyering.
43198
43199 2009-11-16  Jim Meyering  <meyering@redhat.com>
43200
43201         avoid new AC_REQUIRE expanded-before-required warnings
43202         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43203         merely using it.
43204         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43205         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43206
43207 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43208
43209         * tests/test-xalloc-die.c: New file.
43210         * modules/xalloc-die-tests: New file.
43211         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43212         XFAIL_TESTS so it can be appended by modules.
43213
43214 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43215
43216         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43217         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43218
43219 2009-11-14  Eric Blake  <ebb9@byu.net>
43220
43221         fnmatch: avoid compiler warning
43222         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43223         to silence compiler warning about mismatch signedness in ?:.
43224         Reported by Robert Millan.
43225
43226         intprops: add double-inclusion guard
43227         * lib/intprops.h: Allow idempotent includes.
43228         Suggested by Bruce Korb.
43229
43230         openat: detect Solaris fchownat bug
43231         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43232         penalizing glibc chownat when only lchownat is broken.
43233         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43234         trailing slash bugs.
43235         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43236         * modules/openat-tests (Files): Include more files.
43237         (Depends-on): Add mgetgroups, sleep, stat-time.
43238         (configure.ac): Add additional checks.
43239         (Makefile.am): Build new test.
43240         * tests/test-fchownat.c: New file.
43241
43242         lchown: detect Solaris and FreeBSD bug
43243         * lib/lchown.c (rpl_lchown): Work around bug.
43244         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43246         * modules/unistd (Makefile.am): Populate it.
43247         * lib/unistd.in.h (lchown): Update declaration.
43248         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43249         * modules/lchown-tests: New file.
43250         * tests/test-lchown.h (test_lchown): Likewise.
43251         * tests/test-lchown.c (main): Likewise.
43252
43253         chown: detect Solaris and FreeBSD bug
43254         * lib/chown.c (rpl_chown): Work around bug.
43255         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43256         (gl_PREREQ_CHOWN): Delete.
43257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43258         * modules/unistd (Makefile.am): Populate it.
43259         * lib/unistd.in.h (chown): Update declaration.
43260         * lib/lchown.c (chown): Update client.
43261         * modules/lchown (Depends-on): Add lstat.
43262         * doc/posix-functions/chown.texi (chown): Document the bug.
43263         * doc/posix-functions/getgroups.texi (getgroups): Document
43264         getgroups pitfall.
43265         * modules/chown-tests: New file.
43266         * tests/test-chown.h (test_chown): Likewise.
43267         * tests/test-chown.c (main): Likewise.
43268
43269 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43270
43271         gnulib-tool: correctly detect absence of m4 directories
43272         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43273
43274 2009-11-14  Jim Meyering  <meyering@redhat.com>
43275
43276         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43277         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43278
43279 2009-11-14  John W. Eaton  <jwe@gnu.org>
43280
43281         strftime.h: wrap function declaration in extern "C" block
43282         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43283
43284 2009-11-13  Eric Blake  <ebb9@byu.net>
43285
43286         getgroups: avoid compiler warning
43287         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43288
43289         getgroups: work around FreeBSD bug
43290         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43292         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43293         * tests/test-getgroups.c (main): Fix buffer overrun.
43294
43295         getgroups: avoid compilation failure
43296         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43297         * modules/getgroups (Depends-on): Add stdint.
43298
43299 2009-11-13  Jim Meyering  <meyering@redhat.com>
43300
43301         test-getgroups: avoid compilation failure
43302         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43303
43304 2009-11-13  Eric Blake  <ebb9@byu.net>
43305
43306         mgetgroups: new module, taken from coreutils
43307         * modules/mgetgroups: New file.
43308         * lib/mgetgroups.h: Likewise.
43309         * lib/mgetgroups.c (mgetgroups): Likewise.
43310         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43311         * MODULES.html.sh (Users and groups): Mention it.
43312
43313         getgroups: don't expose GETGROUPS_T to user
43314         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43315         an element at a time if GETGROUPS_T is wrong size.
43316         * lib/getugroups.h (getugroups): Change signature.
43317         * lib/unistd.in.h (getgroups): Likewise.
43318         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43319         signature needs fixing.
43320         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43321         AC_TYPE_GETGROUPS.
43322         * modules/group-member (Depends-on): Add getgroups.
43323         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43324         (group_member): Rely on getgroups replacement.
43325         * lib/getugroups.c (getugroups): Use gid_t.
43326         * tests/test-getgroups.c (main): Likewise.
43327         * NEWS: Mention the signature change.
43328         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43329         problem with signature.
43330         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43331         GETGROUPS_T is still useful for setgroups.
43332
43333         getgroups, getugroups: provide stubs for mingw
43334         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43335         * lib/getugroups.c (getugroups): Likewise.
43336         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43337         function.  Modernize replacement scheme.
43338         (gl_PREREQ_GETGROUPS): Delete.
43339         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43340         * modules/getgroups (configure.ac): Declare witness.
43341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43342         * modules/unistd (Depends-on): Substitute witness.
43343         * lib/unistd.in.h (getgroups): Declare replacement.
43344
43345         getgroups: avoid calling exit
43346         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43347         drop xalloc.
43348         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43349         dependencies.
43350         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43351         exiting, in the rare case of malloc failure.
43352
43353         getgroups: fix logic error
43354         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43355         has more than 20 groups.
43356         * modules/getgroups-tests: New test.
43357         * tests/test-getgroups.c: New file.
43358
43359 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43360
43361         * tests/test-base64.c: Improve.
43362
43363 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43364
43365         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43366         Blake <ebb9@byu.net>.
43367
43368 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43369
43370         * tests/test-xvasprintf.c: Add %s%s related checks.
43371
43372 2009-11-12  Eric Blake  <ebb9@byu.net>
43373
43374         version-etc: match standards.texi style
43375         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43376         and use <> only for URLs.
43377
43378 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43379
43380         fts: do not fail on a submount during traversal
43381         * lib/fts.c (fts_build): Read the stat info again after opening
43382         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43383         Original report at http://bugzilla.redhat.com/501848.
43384
43385 2009-11-12  Jim Meyering  <meyering@redhat.com>
43386
43387         bootstrap: sync from coreutils
43388         * build-aux/bootstrap (bootstrap_epilogue): New function.
43389         Use git_modules_config in one more place.  This make bootstrap's
43390         --gnulib-srcdir option more useful for testing.
43391
43392         bootstrap: generalize autoheader check
43393         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43394         AC_CONFIG_HEADERS.
43395
43396 2009-11-11  Eric Blake  <ebb9@byu.net>
43397
43398         mkfifoat: use new modules for Solaris and BSD bugs
43399         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43400         * lib/mkfifoat.c (mknodat): Split...
43401         * lib/mknodat.c (mknodat): ...into new file.
43402         * modules/mkfifoat (Files): Ship new file.
43403         (Depends-on): Add mkfifo, mknod.
43404         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43405         (Depends-on): Add symlink.
43406         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43407         redundant with test_mkfifo.h.
43408         (do_mkfifoat, do_mknodat): New helpers.
43409
43410         mknod: new module
43411         * modules/mknod: New file.
43412         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43413         * lib/mknod.c (mknod): Likewise.
43414         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43415         defaults.
43416         * modules/sys_stat (Makefile.am): Substitute them.
43417         * lib/sys_stat.in.h (mknod): Declare replacement.
43418         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43419         Document it.
43420         * doc/posix-functions/mknod.texi (mknod): Likewise.
43421         * modules/mknod-tests: New test.
43422         * tests/test-mknod.c: Likewise.
43423
43424         mkfifo: new module
43425         * modules/mkfifo: New file.
43426         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43427         * lib/mkfifo.c (mkfifo): Likewise.
43428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43429         defaults.
43430         * modules/sys_stat (Makefile.am): Substitute them.
43431         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43432         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43433         Document it.
43434         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43435         * modules/mkfifo-tests: New test.
43436         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43437         from test-mkfifoat.c.
43438         * tests/test-mkfifo.c: New file.
43439
43440         readlink: detect FreeBSD bug
43441         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43442         slash on symlink.
43443         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43444         * tests/test-readlink.h (test_readlink): Enhance test.
43445
43446         symlink: detect FreeBSD bug
43447         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43448         slash on symlink.
43449         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43450         * tests/test-symlink.h (test_symlink): Enhance test.
43451
43452 2009-11-10  Eric Blake  <ebb9@byu.net>
43453
43454         link: detect FreeBSD bug
43455         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43456         symlink.
43457         * doc/posix-functions/link.texi (link): Document the bug.
43458         * tests/test-link.h (test_link): Enhance test.
43459         * tests/test-linkat.c (main): Update caller.
43460
43461         unlink, remove: detect FreeBSD bug
43462         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43463         slash on symlink.
43464         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43465         * doc/posix-functions/remove.texi (remove): Likewise.
43466         * tests/test-unlink.h (test_unlink): Enhance test.
43467         * tests/test-remove.c (main): Likewise.
43468
43469 2009-11-09  Eric Blake  <ebb9@byu.net>
43470
43471         rename: detect FreeBSD bug
43472         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43473         slash on symlink.
43474         * modules/renameat-tests (Depends-on): Add filenamecat.
43475         * tests/test-rename.h (test_rename): Allow one more errno.
43476         * tests/test-renameat.c (main): Likewise.
43477         * doc/posix-functions/rename.texi (rename): Document the bug.
43478
43479         open: detect FreeBSD bug
43480         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43481         symlink.
43482         * doc/posix-functions/open.texi (open): Document the bug.
43483         * doc/posix-functions/utimes.texi (utimes): Likewise.
43484         * tests/test-open.h (test_open): Add parameters, and test symlink
43485         handling.
43486         * tests/test-open.c (main): Adjust caller.
43487         * tests/test-fcntl-safer.c (main): Likewise.
43488         * modules/open-tests (Depends-on): Add stdbool, symlink.
43489         * modules/fcntl-safer-tests (Depends-on): Likewise.
43490         * tests/test-openat.c (main): Add test-open tests.
43491
43492         stat: detect FreeBSD bug
43493         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43494         symlink.
43495         * doc/posix-functions/stat.texi (stat): Document the bug.
43496         * tests/test-stat.h (test_stat_func): Add argument.
43497         * tests/test-stat.c (main): Adjust caller.
43498         * tests/test-fstatat.c (main): Likewise.
43499         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43500         Reported by Jim Meyering.
43501
43502 2009-11-09  James Youngman  <jay@gnu.org>
43503
43504         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43505         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43506
43507 2009-11-08  Jim Meyering  <meyering@redhat.com>
43508
43509         utimens: remove invalid futimesat call
43510         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43511         It used the file descriptor of the target file as the DIR_FD
43512         parameter and NULL as the file name.  That caused failure with
43513         errno == EFAULT on FreeBSD-8.0-rc2
43514
43515 2009-11-07  Eric Blake  <ebb9@byu.net>
43516
43517         fflush, freadseek: use fseeko, not fseek
43518         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43519         (clear_ungetc_buffer): Avoid potential problems on large files.
43520         * lib/freadseek.c (freadseek): Likewise.
43521         * modules/freadseek (Depends-on): Add fseeko.
43522         * modules/fseek (configure.ac): Set a witness.
43523         * tests/test-fflush.c (main): Use fseeko.
43524         * tests/test-fpurge.c (fseek): Disable link warning.
43525         * tests/test-freadable.c (fseek): Likewise.
43526         * tests/test-freading.c (fseek): Likewise.
43527         * tests/test-fseeko.c (fseek): Likewise.
43528         * tests/test-ftell.c (fseek): Likewise.
43529         * tests/test-ftello.c (fseek): Likewise.
43530         * tests/test-fwritable.c (fseek): Likewise.
43531         * tests/test-fwriting.c (fseek): Likewise.
43532
43533 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43534
43535         * modules/memchr (Depends-on): Drop getpagesize dependency.
43536
43537 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43538
43539         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43540         Reported by Ludovic Courtès.
43541         * build-aux/pmccabe2html: Improve example usage.
43542         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43543
43544 2009-11-06  Jim Meyering  <meyering@redhat.com>
43545
43546         do-release-commit-and-tag: New module.
43547         Automate the release-commit and tag process.
43548         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43549         * modules/do-release-commit-and-tag: New file.
43550         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43551
43552 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43553
43554         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43555         because test-select.c uses inet_pton.
43556
43557 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43558
43559         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43560         GETADDRINFO_LIB.  Bump serial number.
43561         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43562         Suggested by Eric Blake <ebb9@byu.net>.
43563
43564 2009-11-05  Eric Blake  <ebb9@byu.net>
43565
43566         strtod: detect darwin bug
43567         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43568         Reported by Leo Davis.
43569
43570         freopen-safer: new module
43571         * modules/freopen-safer: New module.
43572         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43573         * lib/freopen-safer.c (freopen_safer): New file.
43574         * lib/stdio-safer.h (freopen_safer): New declaration.
43575         * lib/stdio--.h (freopen): New override.
43576         * MODULES.html.sh (File stream based Input/Output): Mention it.
43577         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43578         freopen-safer module.
43579         * doc/posix-functions/stderr.texi (stderr): Likewise.
43580         * doc/posix-functions/stdin.texi (stdin): Likewise.
43581         * doc/posix-functions/stdout.texi (stdout): Likewise.
43582         * modules/freopen-safer-tests: New test.
43583         * tests/test-reopen-safer.c: New file.
43584
43585 2009-11-05  Jim Meyering  <meyering@redhat.com>
43586
43587         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43588         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43589
43590 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43591
43592         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43593
43594 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43595
43596         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43597
43598 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43599
43600         Fix link error.
43601         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43602         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43603
43604 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43605
43606         * tests/test-func.c: Also test value of __func__.
43607
43608 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43609
43610         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43611         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43612
43613 2009-11-05  Bruno Haible  <bruno@clisp.org>
43614
43615         Fix link error.
43616         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43617         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43618         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43619
43620 2009-11-05  Bruno Haible  <bruno@clisp.org>
43621
43622         Tests for module 'inet_pton'.
43623         * modules/inet_pton-tests: New file.
43624         * tests/test-inet_pton.c: New file.
43625
43626 2009-11-05  Bruno Haible  <bruno@clisp.org>
43627
43628         Tests for module 'inet_ntop'.
43629         * modules/inet_ntop-tests: New file.
43630         * tests/test-inet_ntop.c: New file.
43631
43632 2009-11-04  Eric Blake  <ebb9@byu.net>
43633
43634         stdlib-safer: wrap all mkstemp variants
43635         * modules/mkostemp (configure.ac): Set witness.
43636         * modules/mkostemps (configure.ac): Likewise.
43637         * modules/mkstemps (configure.ac): Likewise.
43638         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43639         (mkstemps_safer): Wrap more functions.
43640         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43641         wrapping.
43642         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43643         (mkstemps_safer): Implement the wrappers.
43644
43645         mkstemps, mkostemps: new modules
43646         * modules/mkostemps: New module.
43647         * modules/mkstemps: Likewise.
43648         * lib/mkostemps.c (mkostemps): New file.
43649         * lib/mkstemps.c (mkstemps): Likewise.
43650         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43651         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43653         * modules/stdlib (Makefile.am): Substitute them.
43654         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43655         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43656         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43657         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43658         * MODULES.html.sh (File system functions): Mention them.
43659
43660         tempname: resync from glibc
43661         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43662         same values for __GT_FILE as glibc.  Abort even when assertions
43663         are disabled.
43664         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43665         match its value otherwise.  Allow idempotent inclusion.
43666         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43667         * lib/mkostemp.c (mkostemp): Likewise.
43668         * lib/mkstemp.c (mkstemp): Likewise.
43669         * lib/tmpfile.c (tmpfile): Likewise.
43670         * NEWS: Document this.
43671
43672         utimens: fix use of futimens on older Linux
43673         * lib/utimens.c (fdutimens): Use updated, rather than original,
43674         timespec to avoid bug in older Linux kernel.
43675         Reported by Simon Josefsson.
43676
43677 2009-11-04  Bruno Haible  <bruno@clisp.org>
43678
43679         Make num_processors more flexible and consistent.
43680         * lib/nproc.h (enum nproc_query): New type.
43681         (num_processors): Add a 'query' argument.
43682         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43683         (num_processors): Add a 'query' argument. Test the value of the
43684         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43685         mingw, count the number of CPUs available for the current process.
43686         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43687         Check for sched_getaffinity and sched_getaffinity_np.
43688         * modules/nproc (Depends-on): Add c-ctype, extensions.
43689         * NEWS: Mention the change.
43690
43691 2009-11-03  Bruno Haible  <bruno@clisp.org>
43692
43693         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43694
43695 2009-11-03  Jim Meyering  <meyering@redhat.com>
43696
43697         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43698         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43699         if it is defined.
43700
43701 2009-11-02  Eric Blake  <ebb9@byu.net>
43702
43703         mktime, timegm: share common declaration
43704         * lib/mktime-internal.h: New file.
43705         * lib/mktime.c: Use it rather than open-coding a declaration.
43706         * lib/timegm.c: Likewise.
43707         * modules/mktime (Files): Ship it.
43708         * modules/timegm (Files): Likewise.
43709         Suggested by Bruno Haible.
43710
43711         test-update-copyright: update test to match script changes
43712         * tests/test-update-copyright.sh: Avoid hard-coding perl
43713         location.  Don't update *.bak created by earlier runs.
43714
43715 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43716             Simon Josefsson  <simon@josefsson.org>
43717             Bruno Haible  <bruno@clisp.org>
43718
43719         Fix link error on Solaris 8.
43720         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43721         also in libnsl. Define also INET_PTON_LIB.
43722         * modules/inet_pton (Link): New section.
43723
43724 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43725             Bruno Haible  <bruno@clisp.org>
43726
43727         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43728         * modules/inet_ntop (Link): New section.
43729         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43730
43731 2009-11-02  Eric Blake  <ebb9@byu.net>
43732
43733         maint: avoid compiler warnings in m4 macros
43734         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43736
43737 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43738
43739         * m4/pmccabe2html.m4: Remove file.
43740         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43741         function.  Change maintainer.
43742         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43743         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43744         Courtès).
43745
43746 2009-10-31  Eric Blake  <ebb9@byu.net>
43747
43748         fseeko: fix m4 regression
43749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43750         regression from 2009-10-27.
43751         Reported by Ralf Wildenhues.
43752
43753 2009-10-31  Jim Meyering  <meyering@redhat.com>
43754
43755         inttostr: aesthetics and improved (compile-time) safety
43756         Define inttype_is_signed rather than inttype_is_unsigned,
43757         since the sole use is via "#if inttype_is_signed".
43758         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43759         inttype_is_unsigned.
43760         * lib/offtostr.c (inttype_is_signed): Likewise.
43761         * lib/uinttostr.c (inttype_is_signed): Likewise.
43762         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43763         * lib/inttostr.c (inttostr): Use verify to cross-check the
43764         inttype_is_signed value and the signedness of the actual type.
43765         * modules/inttostr (Depends-on): Add verify.
43766
43767 2009-10-30  Eric Blake  <ebb9@byu.net>
43768
43769         build: avoid compiler warnings
43770         * lib/fchmodat.c (lchmod): Mark unused variables.
43771         * lib/getopt.c (_getopt_initialize): Likewise.
43772         * lib/mktime.c (__mktime_internal): Provide prototype.
43773         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43774         older gcc that do not understand #pragma GCC diagnostic.
43775         * lib/uinttostr.c (inttype_is_unsigned): Define.
43776         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43777
43778 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43779
43780         stat: fix compilation on AIX
43781         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43782         only see struct stat64.
43783
43784 2009-10-30  Eric Blake  <ebb9@byu.net>
43785
43786         exclude: make more robust
43787         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43788         rather than masking a coding bug.
43789         Suggested by Bruno Haible.
43790
43791 2009-10-30  Jim Meyering  <meyering@redhat.com>
43792
43793         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43794         Rather than putting #!/usr/bin/perl on the first line,
43795         start with a variant of what's recommended by "man perlrun" that
43796         invokes the first "perl" program from your shell's search path.
43797         * build-aux/gitlog-to-changelog: Replace #!... as above.
43798         Add a "Local Variables" perl mode setting.
43799         Prompted by a patch from Ludovic Courtès.
43800         Improved by Eric Blake.
43801         * build-aux/useless-if-before-free: Likewise.
43802         * build-aux/announce-gen: Likewise.
43803         * build-aux/update-copyright: Likewise.
43804
43805 2009-10-29  Eric Blake  <ebb9@byu.net>
43806
43807         filenamecat-lgpl: adjust clients
43808         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43809         filenamecat.
43810         * modules/renameat (Depends-on): Likewise.
43811
43812         filenamecat: split into filenamecat-lgpl
43813         * modules/filenamecat-lgpl: New module.
43814         * modules/filenamecat (Files): Move library-safe files into
43815         filenamecat-lgpl.
43816         (Depends-on): Add filenamecat-lgpl.
43817         (configure.ac): Declare witness.
43818         * lib/filenamecat.h (file_name_concat): Only declare when using
43819         GPL module.
43820         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43821         Move...
43822         * lib/filenamecat-lgpl.c: ...into new file.
43823         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43824         (gl_FILE_NAME_CONCAT): Use it.
43825         * MODULES.html.sh (File system functions): Mention new module.
43826
43827         argp: avoid memory leak
43828         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43829         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43830         base_name, since the latter malloc()s and can call exit().
43831         Leak introduced 2006-07-03.
43832
43833         dirname-lgpl: adjust clients that don't need full dirname
43834         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43835         * modules/filenamecat (Depends-on): Likewise.
43836         * modules/linkat (Depends-on): Likewise.
43837         * modules/mkancesdirs (Depends-on): Likewise.
43838         * modules/mkdir (Depends-on): Likewise.
43839         * modules/openat (Depends-on): Likewise.
43840         * modules/savewd (Depends-on): Likewise.
43841         * modules/rename (Depends-on): Likewise.
43842         (License): Relax license.
43843         * modules/mkdir-tests (Depends-on): Drop progname.
43844         (Makefile.am): Delete unneeded LDADD.
43845         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43846
43847         dirname: split into dirname-lgpl
43848         * modules/dirname-lgpl: New module.
43849         * modules/dirname (Files): Move library-safe files into
43850         dirname-lgpl.
43851         (Depends-on): Add dirname-lgpl.
43852         (configure.ac): Declare witness.
43853         * modules/double-slash-root (License): Relax license.
43854         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43855         module.
43856         * lib/dirname.c (dir_len, mdir_name): Move...
43857         * lib/dirname-lgpl.c: ...into new file.
43858         * lib/basename.c (last_component, base_len): Move...
43859         * lib/basename-lgpl.c: ...into new file.
43860         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43861         (gl_DIRNAME): Use it.
43862         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43863         Mention new module.
43864         * modules/dirname-tests (Depends-on): Add progname.
43865         * tests/test-dirname.c (program_name): Delete.
43866
43867         mkdir: make safe for libraries
43868         * modules/mkdir (Depends-on): Drop xalloc.
43869         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43870         exit.
43871
43872         tests: avoid some compiler warnings
43873         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43874         literals.
43875         * tests/test-memchr.c (main): Avoid type mismatch.
43876         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43877         * tests/test-base64.c (main): Likewise.
43878         * tests/test-getdelim.c (main): Likewise.
43879         * tests/test-gethostname.c (main): Likewise.
43880         * tests/test-getline.c (main): Likewise.
43881         * tests/test-netinet_in.c (main): Likewise.
43882         * tests/test-select.c (open_server_socket, main): Likewise.
43883         * tests/test-select-stdin.c (main): Likewise.
43884         * tests/test-sockets.c (main): Likewise.
43885         * tests/test-strsignal.c (main): Likewise.
43886         * tests/test-sys_select.c (main): Likewise.
43887         * tests/test-sys_socket.c (main): Likewise.
43888         * tests/test-u64.c (main): Likewise.
43889         * tests/test-xfprintf-posix.c (main): Likewise.
43890         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43891
43892         sockets: avoid compiler warning
43893         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43894
43895         maint: detect usage(1) and other suspicious exits
43896         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43897
43898 2009-10-29  Jim Meyering  <meyering@redhat.com>
43899
43900         timespec: long-to-int truncation could make timespec_cmp malfunction
43901         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43902         a multiple of 2^32 nanoseconds as no difference.
43903
43904 2009-10-28  Jim Meyering  <meyering@redhat.com>
43905
43906         fprintftime: wrap macro code argument in "do {...} while(0)"
43907         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43908         cpy macro must be a statement that can be followed by a semicolon.
43909         Now that the else clause contains a comment and is hence longer
43910         than one line, I require curly braces.  That in turn requires
43911         that we wrap this code block in the standard do...while(0).
43912
43913         fprintftime: remove stray semicolon from previous change
43914         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43915
43916         fprintftime: avoid a warning about ignored fwrite return value
43917         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43918         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43919         that is unsafe.
43920         * modules/fprintftime (Depends-on): Add ignore-value.
43921
43922         exclude: avoid an unwarranted warning
43923         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43924
43925 2009-10-27  Eric Blake  <ebb9@byu.net>
43926
43927         fseek: avoid compilation failure when fflush is replaced
43928         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43929         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43930         module is in use.
43931         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43932         module is not in use; since REPLACE_FSEEK worked otherwise.
43933         (GNULIB_FTELLO): Likewise for ftell.
43934         Reported by Ian Beckwith and others.
43935
43936 2009-10-27  Bruno Haible  <bruno@clisp.org>
43937
43938         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43939         Reported by Jim Meyering.
43940
43941 2009-10-27  Jim Meyering  <jim@meyering.net>
43942             Bruno Haible  <bruno@clisp.org>
43943
43944         Avoid warning despite dropping the return value of fwrite.
43945         * lib/unicodeio.c: Include ignore-value.h.
43946         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43947         * modules/unicodeio (Depends-on): Add ignore-value.
43948
43949 2009-10-26  Eric Blake  <ebb9@byu.net>
43950
43951         areadlinkat: fix fallback path
43952         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43953         pointer and zero.
43954
43955 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43956
43957         Use a better IO block size for modern systems
43958         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43959         * lib/md2.c: Likewise.
43960         * lib/md4.c: Likewise.
43961         * lib/md5.c: Likewise.
43962         * lib/sha1.c: Likewise.
43963         * lib/sha256.c: Likewise.
43964         * lib/sha512.c: Likewise.
43965
43966 2009-10-22  Eric Blake  <ebb9@byu.net>
43967
43968         tests: avoid several compiler warnings
43969         * tests/test-getcwd.c (main): Avoid buffer underflow.
43970         * tests/test-getdate.c (main): String literals are not safe with
43971         putenv, so use setenv.  Declare unused argument.
43972         * modules/getdate-tests (Depends-on): Add setenv.
43973         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43974         problems with string literals in char *.
43975         * tests/test-hash.c (main): Avoid shadowing declaration.
43976         (insert_new): Treat string literals as char const *.
43977         * tests/test-getopt.h (test_getopt): Likewise.
43978         (getopt_loop): Alter types to minimize casting elsewhere.
43979         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43980         (test_getopt_long_posix): Likewise.
43981         (do_getopt_long): Add wrapper to minimize casting.
43982         * tests/test-atexit.c (clear_temp_file): Use void.
43983         * tests/test-areadlink-with-size.c (main): Declare unused
43984         arguments.
43985         * tests/test-areadlink.c (main): Likewise.
43986         * tests/test-areadlinkat-with-size.c (main): Likewise.
43987         * tests/test-areadlinkat.c (main): Likewise.
43988         * tests/test-canonicalize-lgpl.c (main): Likewise.
43989         * tests/test-canonicalize.c (main): Likewise.
43990         * tests/test-dirent-safer.c (main): Likewise.
43991         * tests/test-dirname.c (main): Likewise.
43992         * tests/test-dup2.c (main): Likewise.
43993         * tests/test-fchdir.c (main): Likewise.
43994         * tests/test-fcntl-h.c (main): Likewise.
43995         * tests/test-fcntl-safer.c (main): Likewise.
43996         * tests/test-fdopendir.c (main): Likewise.
43997         * tests/test-fdutimensat.c (main): Likewise.
43998         * tests/test-fflush.c (main): Likewise.
43999         * tests/test-filenamecat.c (main): Likewise.
44000         * tests/test-filevercmp.c (main): Likewise.
44001         * tests/test-fopen-safer.c (main): Likewise.
44002         * tests/test-fopen.c (main): Likewise.
44003         * tests/test-fpending.c (main): Likewise.
44004         * tests/test-fpurge.c (main): Likewise.
44005         * tests/test-freading.c (main): Likewise.
44006         * tests/test-fstatat.c (main): Likewise.
44007         * tests/test-fsync.c (main): Likewise.
44008         * tests/test-futimens.c (main): Likewise.
44009         * tests/test-getndelim2.c (main): Likewise.
44010         * tests/test-gettimeofday.c (main): Likewise.
44011         * tests/test-getopt.c (main): Likewise.
44012         * tests/test-i-ring.c (main): Likewise.
44013         * tests/test-inttypes.c (main): Likewise.
44014         * tests/test-link.c (main): Likewise.
44015         * tests/test-lstat.c (main): Likewise.
44016         * tests/test-math.c (main): Likewise.
44017         * tests/test-md5.c (main): Likewise.
44018         * tests/test-memchr2.c (main): Likewise.
44019         * tests/test-memrchr.c (main): Likewise.
44020         * tests/test-mkdir.c (main): Likewise.
44021         * tests/test-mkdirat.c (main): Likewise.
44022         * tests/test-mkfifoat.c (main): Likewise.
44023         * tests/test-open.c (main): Likewise.
44024         * tests/test-openat-safer.c (main): Likewise.
44025         * tests/test-openat.c (main): Likewise.
44026         * tests/test-quotearg.c (main): Likewise.
44027         * tests/test-rawmemchr.c (main): Likewise.
44028         * tests/test-readlink.c (main): Likewise.
44029         * tests/test-remove.c (main): Likewise.
44030         * tests/test-rename.c (main): Likewise.
44031         * tests/test-renameat.c (main): Likewise.
44032         * tests/test-rmdir.c (main): Likewise.
44033         * tests/test-sha1.c (main): Likewise.
44034         * tests/test-signal.c (main): Likewise.
44035         * tests/test-sigaction.c (main): Likewise.
44036         * tests/test-stat.c (main): Likewise.
44037         * tests/test-stat-time.c (main): Likewise.
44038         * tests/test-stddef.c (main): Likewise.
44039         * tests/test-stdint.c (main): Likewise.
44040         * tests/test-stdio.c (main): Likewise.
44041         * tests/test-stdlib.c (main): Likewise.
44042         * tests/test-strchrnul.c (main): Likewise.
44043         * tests/test-strerror.c (main): Likewise.
44044         * tests/test-string.c (main): Likewise.
44045         * tests/test-strtod.c (main): Likewise.
44046         * tests/test-strverscmp.c (main): Likewise.
44047         * tests/test-symlink.c (main): Likewise.
44048         * tests/test-symlinkat.c (main): Likewise.
44049         * tests/test-sys_stat.c (main): Likewise.
44050         * tests/test-sys_time.c (main): Likewise.
44051         * tests/test-time.c (main): Likewise.
44052         * tests/test-unistd.c (main): Likewise.
44053         * tests/test-unlink.c (main): Likewise.
44054         * tests/test-unlinkat.c (main): Likewise.
44055         * tests/test-utimens.c (main): Likewise.
44056         * tests/test-utimensat.c (main): Likewise.
44057         * tests/test-version-etc.c (main): Likewise.
44058         * tests/test-wchar.c (main): Likewise.
44059         * tests/test-wctype.c (main): Likewise.
44060         * tests/test-xprintf-posix.c (main): Likewise.
44061         * tests/test-posixtm.c (main): Likewise.
44062         (STREQ): Delete unused macro.
44063         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44064         shadowed variables.
44065         * tests/test-memchr.c (main): Likewise.
44066
44067 2009-10-21  Eric Blake  <ebb9@byu.net>
44068
44069         areadlinkat: avoid failure on older glibc
44070         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44071         rather than mis-comparing 0 against FUNC_RESULT of char*.
44072
44073 2009-10-21  Bruno Haible  <bruno@clisp.org>
44074
44075         * modules/stpncpy (License): Relicense under LGPLv2+.
44076         Reported by David Lutterkort <lutter@redhat.com>.
44077
44078 2009-10-20  Eric Blake  <ebb9@byu.net>
44079
44080         utimensat: work around Solaris 9 bug
44081         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44082         has trailing slash bugs.
44083         * tests/test-lutimens.h (test_lutimens): Enhance test.
44084         * tests/test-utimens.h (test_utimens): Likewise.
44085         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44086         * doc/posix-functions/utimes.texi (utimes): Likewise.
44087         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44088         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44089         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44090         * doc/posix-functions/futimens.texi (futimens): Likewise.
44091
44092         fdutimensat: new module
44093         * modules/fdutimensat: New file.
44094         * lib/fdutimensat.c (fdutimensat): Likewise.
44095         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44096         * MODULES.html.sh (File system functions): Mention module.
44097         * modules/fdutimensat-tests: New test.
44098         * tests/test-fdutimensat.c: Likewise.
44099
44100         doc: regenerate INSTALL
44101         * doc/INSTALL: Reflect recent autoconf update.
44102         * doc/INSTALL.ISO: Likewise.
44103         * doc/INSTALL.UTF-8: Likewise.
44104
44105 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44106
44107         acl: warn if ACL support is not detected
44108         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44109
44110 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44111
44112         * lib/nproc.h: Add extern "C" block for C++.
44113
44114 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44115             Bruno Haible  <bruno@clisp.org>
44116
44117         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44118         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44119         * doc/posix-functions/isalpha.texi: Likewise.
44120         * doc/posix-functions/isblank.texi: Likewise.
44121         * doc/posix-functions/iscntrl.texi: Likewise.
44122         * doc/posix-functions/isdigit.texi: Likewise.
44123         * doc/posix-functions/isgraph.texi: Likewise.
44124         * doc/posix-functions/islower.texi: Likewise.
44125         * doc/posix-functions/isprint.texi: Likewise.
44126         * doc/posix-functions/ispunct.texi: Likewise.
44127         * doc/posix-functions/isspace.texi: Likewise.
44128         * doc/posix-functions/isupper.texi: Likewise.
44129         * doc/posix-functions/isxdigit.texi: Likewise.
44130
44131 2009-10-18  Bruno Haible  <bruno@clisp.org>
44132
44133         Tests for module 'isblank'.
44134         * modules/isblank-tests: New file.
44135         * tests/test-isblank.c: New file.
44136
44137         New module 'isblank'.
44138         * lib/isblank.c: New file.
44139         * m4/isblank.m4: New file.
44140         * modules/isblank: New file.
44141         * doc/posix-functions/isblank.texi: Mention the new module.
44142
44143 2009-10-18  Bruno Haible  <bruno@clisp.org>
44144
44145         New module 'ctype'.
44146         * lib/ctype.in.h: New file.
44147         * m4/ctype.m4: New file.
44148         * modules/ctype: New file.
44149         * doc/posix-headers/ctype.texi: Mention the new module.
44150
44151 2009-10-18  Jim Meyering  <meyering@redhat.com>
44152
44153         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44154         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44155         right after its initialization, rather than farther down.
44156         Keeping these in close proximity makes it easier to ensure
44157         that each such variable is initialized.  E.g.,
44158
44159             LIB_CLOCK_GETTIME=
44160             AC_SUBST([LIB_CLOCK_GETTIME])
44161
44162         This change also increments these serial numbers.
44163         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44164         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44166
44167 2009-10-18  Bruno Haible  <bruno@clisp.org>
44168
44169         Don't let environment variables perturb build.
44170         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44171         (gl_PREREQ_GETHRXTIME): ... not here.
44172
44173 2009-10-18  Bruno Haible  <bruno@clisp.org>
44174
44175         Avoid symlink attack in localcharset module.
44176         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44177         (O_NOFOLLOW): Define fallback.
44178         (get_charset_aliases): Don't open the file if it is a symbolic link.
44179         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44180         gl_FCNTL_H.
44181         (gl_FCNTL_H): Require it.
44182         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44183         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44184         Reported by Fergal Glynn <fglynn@veracode.com>.
44185
44186 2009-10-18  Bruno Haible  <bruno@clisp.org>
44187
44188         Implement nproc for mingw.
44189         * lib/nproc.c: Include <windows.h>
44190         (num_processors): On native Windows platforms, try GetSystemInfo.
44191
44192 2009-10-18  Bruno Haible  <bruno@clisp.org>
44193
44194         Implement nproc for IRIX.
44195         * lib/nproc.c: Include <sys/sysmp.h>.
44196         (num_processors): On IRIX systems, try sysmp.
44197         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44198
44199 2009-10-18  Bruno Haible  <bruno@clisp.org>
44200
44201         Implement nproc for HP-UX.
44202         * lib/nproc.c: Include <sys/pstat.h>
44203         (num_processors): On HP-UX systems, try pstat_getdynamic.
44204         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44205         pstat_getdynamic.
44206
44207 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44208             Bruno Haible  <bruno@clisp.org>
44209
44210         Implement nproc for NetBSD, OpenBSD.
44211         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44212         (ARRAY_SIZE): New macro.
44213         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44214         * m4/nproc.m4: New file.
44215         * modules/nproc (Files): Add m4/nproc.m4.
44216         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44217         (Makefile.am): Instead, augment lib_SOURCES.
44218
44219 2009-10-18  Bruno Haible  <bruno@clisp.org>
44220
44221         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44222         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44223         sys/param.h.
44224
44225 2009-10-16  Eric Blake  <ebb9@byu.net>
44226
44227         utimensat: new module
44228         * modules/utimensat: New file.
44229         * lib/utimensat.c (utimensat): Likewise.
44230         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44231         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44232         so we can work around Linux bugs.
44233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44234         * modules/sys_stat (Makefile.am): Substitute them.
44235         * lib/sys_stat.in.h (utimensat): Declare it.
44236         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44237         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44238         * modules/utimensat-tests: New test.
44239         * tests/test-utimensat.c: Likewise.
44240
44241         utimens: let lutimens work on non-symlinks
44242         * lib/utimens.c (lutimens): Fall back to utimens rather than
44243         failing with ENOSYS, when file is not a symlink.
44244         (utimens): Reduce redirection.
44245         * tests/test-lutimens.h (test_lutimens): Update test to cover
44246         non-symlinks.
44247         * tests/test-utimens.h (test_utimens): Update test to cover
44248         symlinks.
44249         * tests/test-utimens.c (main): Update caller.
44250
44251         utimens: cache whether utimensat syscall works
44252         * lib/utimens.c (utimensat_works_really): New cache variable.
44253         (fdutimens, lutimens): Use it to avoid failing syscall.
44254
44255         test-stat-time, test-utimens: improve portability
44256         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44257         ext4 on alpha, and for cygwin.
44258         * tests/test-utimens-common.h: New file.
44259         (nap): Factor delays into single function.
44260         * tests/test-lutimens.h (test_lutimens): Use new header.
44261         * tests/test-futimens.h (test_futimens): Likewise.
44262         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44263         timestamps to occur from same machine, as was done previously for
44264         test_utimens.
44265         * modules/utimens-tests (Files): Ship new file.
44266         * modules/futimens-tests (Files): Likewise.
44267         Reported in part by Jim Meyering.
44268
44269         sys_stat: sort replacement declarations
44270         * lib/sys_stat.in.h: Sort declarations.
44271         * lib/futimens.c (futimens): Fix typo.
44272
44273 2009-10-15  Jim Meyering  <meyering@redhat.com>
44274
44275         don't let environment settings perturb build
44276         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44277         could cause a configure-time and/or build-time malfunction.
44278         Typically, a configure-time function-in-library test is performed
44279         via code like this:
44280
44281           LIB_VAR=
44282           AC_SUBST([LIB_VAR])
44283           prefix_saved_LIBS=$LIBS
44284             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44285                        [test "$ac_cv_search_FUNC" = "none required" ||
44286                         LIB_VAR=$ac_cv_search_FUNC])
44287           LIBS=$prefix_saved_LIBS
44288
44289         However, in each of the files affected by this change, the LIB_VAR=
44290         initialization was omitted.  Thus, when set in the environment, its
44291         value would propagate into generated Makefiles when FUNC is not found
44292         in LIB_NAME.
44293         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44294         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44296
44297 2009-10-14  Eric Blake  <ebb9@byu.net>
44298
44299         fchdir: avoid infinite recursion in mingw
44300         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44301         recursing.
44302
44303         test-stat-time: port to mingw
44304         * tests/test-stat-time.c (force_unlink): Return a value.
44305         (test_ctime) [W32]: Fix compilation error.
44306         (nap): Don't call usleep with too large an argument.  Use
44307         force_unlink.
44308         * doc/pastposix-functions/usleep.texi (usleep): Document the
44309         portability issue.
44310
44311 2009-10-13  Jim Meyering  <meyering@redhat.com>
44312
44313         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44314         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44315         * modules/pipe-filter-ii: Likewise.
44316         * modules/sys_socket-tests: Likewise.
44317         * modules/tsearch-tests: Likewise.
44318         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44319         (check): Depend on it.
44320
44321 2009-10-12  Eric Blake  <ebb9@byu.net>
44322
44323         utimens-tests: port to NFS file systems
44324         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44325         comparisons to avoid spurious failures from timestamp drift
44326         between NFS machines.
44327
44328 2009-10-12  Eric Blake  <ebb9@byu.net>
44329
44330         stat-time-tests: minor cleanups
44331         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44332         * tests/test-stat-time.c (nap): Separate assignment from call.
44333         Suggested by Paolo Bonzini and Bruno Haible.
44334
44335         sys_stat: guarantee struct timespec
44336         * lib/sys_stat.in.h (includes): Always include <time.h>
44337         * modules/sys_stat (Depends-on): Add time.
44338         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44339         mode_t permission values.
44340         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44341         get at subsecond timestamps.
44342
44343 2009-10-10  Eric Blake  <ebb9@byu.net>
44344
44345         futimens: new module
44346         * modules/futimens: New file.
44347         * lib/futimens.c (futimens): Likewise.
44348         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44349         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44350         we can work around Linux bugs.
44351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44352         * modules/sys_stat (Makefile.am): Substitute them.
44353         * lib/sys_stat.in.h (futimens): Declare it.
44354         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44355         * doc/posix-functions/futimens.texi (futimens): Likewise.
44356         * modules/futimens-tests: New test.
44357         * tests/test-futimens.c: Likewise.
44358
44359         utimens: introduce fdutimens
44360         * lib/utimens.h (fdutimens): New prototype.
44361         * lib/utimens.c (gl_futimens): Move guts...
44362         (fdutimens): ...to new interface.
44363         * tests/test-utimens.c (do_fdutimens): Use it.
44364
44365         utimens: add UTIME_NOW and UTIME_OMIT support
44366         * lib/utimens.c (validate_timespec, update_timespec): New helper
44367         functions.
44368         (gl_futimens, lutimens): Use them.
44369         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44370         stdbool, sys_stat.
44371         (Link): Mention resulting library dependency.
44372         * modules/utimecmp (Link): Likewise.
44373         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44374         (Makefile.am): Pick up library dependency.
44375         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44376         definition.
44377         * tests/test-sys_stat.c: Test the definitions.
44378         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44379         * NEWS: Document library dependency.
44380
44381         utimecmp: support symlink timestamps
44382         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44383         hashing when possible.  Use pathconf when available.
44384         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44385         * modules/utimecmp (Depends-on): Add lstat.
44386
44387         utimens: add lutimens interface
44388         * lib/utimens.c (lutimens): New function.
44389         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44390         * lib/utimens.h (lutimens): Declare new interface.
44391         * tests/test-utimens.c (main): Enhance test.
44392         * tests/test-lutimens.h (test_lutimens): New file.
44393         * modules/utimens-tests (Files): Distribute it.
44394         (Depends-on): Add symlink.
44395         (configure.ac): Check for usleep.
44396
44397         utimens: validate futimens usage
44398         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44399         fewer syscalls on failure later on.  Avoid compiler warning on
44400         mingw.
44401         * modules/utimens (Depends-on): Add dup2.
44402
44403         utimens: add test
44404         * modules/utimens-tests: New test.
44405         * tests/test-utimens.h: New file.
44406         * tests/test-futimens.h: Likewise.
44407         * tests/test-utimens.c: Likewise.
44408
44409         doc: mention timestamp portability issues
44410         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44411         instead.
44412         * doc/posix-functions/utime.texi (utime): Likewise.
44413         * doc/posix-functions/utimes.texi (utimes): Likewise.
44414         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44415         instead.
44416         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44417         module.
44418         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44419         Mention weakness with symlink timestamps.
44420         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44421         to utimensat/futimens instead.
44422         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44423
44424         test-dup2: enhance test
44425         * tests/test-dup2.c (main): Also check AT_FDCWD.
44426
44427         test-stat-time: avoid more spurious failures
44428         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44429         xfs; and avoid race if the two timestamps cross quantization edge.
44430
44431         relocatable: prefer 'file system' over 'filesystem'
44432         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44433         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44434         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44435         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44436         * lib/relocatable.c (compute_curr_prefix): Likewise.
44437
44438 2009-10-10  Jim Meyering  <meyering@redhat.com>
44439
44440         stat-time-tests: check for the usleep function
44441         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44442
44443 2009-10-10  Bruno Haible  <bruno@clisp.org>
44444
44445         * modules/xnanosleep: Put the Link section after the Include section.
44446
44447 2009-10-09  Eric Blake  <ebb9@byu.net>
44448
44449         dup2: work around FreeBSD 6.1 bug
44450         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44451         * doc/posix-functions/dup2.texi (dup2): Document it.
44452         Reported by Nelson H. F. Beebe and Jim Meyering.
44453
44454         test-stat-time: port to buggy NFS clients
44455         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44456         (test_ctime): Also skip test if mtime and ctime are skewed.
44457
44458         maint: prefer 'file system' over 'filesystem'
44459         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44460         * doc/posix-functions/lstat.texi (lstat): Likewise.
44461         * lib/file-has-acl.c (file_has_acl): Likewise.
44462         * lib/fwriteerror.c [TEST]: Likewise.
44463         * tests/test-areadlink.h (test_areadlink): Likewise.
44464         * tests/test-areadlinkat-with-size.c (main): Likewise.
44465         * tests/test-areadlinkat.c (main): Likewise.
44466         * tests/test-canonicalize-lgpl.c (main): Likewise.
44467         * tests/test-canonicalize.c (main): Likewise.
44468         * tests/test-fstatat.c (main): Likewise.
44469         * tests/test-linkat.c (main): Likewise.
44470         * tests/test-lstat.h (test_lstat_func): Likewise.
44471         * tests/test-mkdir.h (test_mkdir): Likewise.
44472         * tests/test-readlink.h (test_readlink): Likewise.
44473         * tests/test-remove.c (main): Likewise.
44474         * tests/test-rename.h (test_rename): Likewise.
44475         * tests/test-renameat.c (main): Likewise.
44476         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44477         * tests/test-symlink.h (test_symlink): Likewise.
44478         * tests/test-symlinkat.c (main): Likewise.
44479         * tests/test-unlink.h (test_unlink_func): Likewise.
44480         * tests/test-unlinkat.c (main): Likewise.
44481
44482         maint: make realtime library usage explicit
44483         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44484         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44485         * modules/settime (Link): Likewise.
44486         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44487
44488         test-stat-time: speed up execution
44489         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44490         warning on mingw.
44491         (nap): New helper function.
44492         (prepare_test): Use it to reduce sleep time.
44493         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44494         execution.
44495         * modules/stat-time-tests (configure.ac): Check for usleep.
44496
44497 2009-10-09  Jim Meyering  <meyering@redhat.com>
44498
44499         selinux-h: always use getfilecon wrappers
44500         * lib/getfilecon.c: New file.
44501         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44502         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44503         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44504         (fgetfilecon): Provide a stub.
44505         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44506         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44507         file unconditionally.
44508         When <selinux/selinux.h> is found, arrange to use wrappers.
44509         * modules/selinux-h (Files): Add getfilecon.c.
44510         (Makefile.am): Substitute include-next-related bits
44511         into the now-always-generated selinux/selinux.h file.
44512         * doc/glibc-functions/lgetfilecon.texi: New file.
44513         * doc/glibc-functions/fgetfilecon.texi: New file.
44514         * doc/glibc-functions/getfilecon.texi: New file.
44515         * doc/glibc-functions/getfilecon-desc.texi: New file.
44516         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44517         which to pull in the new files.
44518         * MODULES.html.sh (Misc): Add selinux-h.
44519
44520 2009-10-08  Jim Meyering  <meyering@redhat.com>
44521
44522         unistd: fix comment typo
44523         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44524
44525 2009-10-08  Eric Blake  <ebb9@byu.net>
44526
44527         areadlink: use SIZE_MAX consistently
44528         * modules/areadlink (Depends-on): Add stdint.
44529         * modules/areadlink-with-size (Depends-on): Likewise.
44530         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44531         gives NULL; drop sys/types, since unistd gives size_t; and add
44532         stdint for SIZE_MAX.
44533         (SIZE_MAX): Rely on headers.
44534         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44535         and add stdint.
44536         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44537         (SIZE_MAX): Likewise.
44538         (INITIAL_BUF_SIZE): Turn into enum.
44539         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44540
44541 2009-10-08  Jim Meyering  <meyering@redhat.com>
44542
44543         areadlinkat: avoid compilation failure
44544         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44545         Fix typo in comment.
44546
44547 2009-10-07  Eric Blake  <ebb9@byu.net>
44548
44549         areadlinkat-with-size: new module
44550         * modules/areadlinkat-with-size: New module.
44551         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44552         * lib/areadlink.h (areadlinkat): Declare it.
44553         * MODULES.html.sh (File system functions): Mention it.
44554         * modules/areadlinkat-with-size-tests: New test.
44555         * tests/test-areadlinkat-with-size.c: New file.
44556
44557         xreadlinkat: new module
44558         * modules/xreadlinkat: New module.
44559         * lib/xreadlinkat.c (xreadlinkat): New file.
44560         * lib/xreadlink.h (xreadlinkat): Declare it.
44561         * MODULES.html.sh (File system functions): Mention it.
44562
44563         areadlinkat: new module
44564         * lib/at-func.c (FUNC_FAIL): New define.
44565         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44566         * modules/areadlinkat: New module.
44567         * lib/linkat.c (areadlinkat): Move...
44568         * lib/areadlinkat.c (areadlinkat): ...to new file.
44569         * lib/areadlink.h (areadlinkat): Declare it.
44570         * modules/linkat (Depends-on): Add areadlinkat.
44571         * MODULES.html.sh (File system functions): Mention it.
44572         * modules/areadlinkat-tests: New test.
44573         * tests/test-areadlinkat.c: New file.
44574
44575         areadlink, areadlink-with-size: add tests
44576         * modules/areadlink-tests: New test.
44577         * modules/areadlink-with-size-tests: Likewise.
44578         * tests/test-areadlink.h: New file.
44579         * tests/test-areadlink.c: Likewise.
44580         * tests/test-areadlink-with-size.c: Likewise.
44581
44582         maint: minor cleanups
44583         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44584         _UNUSED_PARAMETER_ instead.
44585         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44586         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44587         * modules/linkat-tests (Files): Distribute test-link.h.
44588
44589         openat, utimens: whitespace cleanup
44590         * lib/openat.c: Prefer space throughout, rather than mix of 8
44591         spaces vs. tabs.
44592         * lib/at-func.c: Likewise.
44593         * lib/utimens.c: Likewise.
44594
44595         openat: avoid using wrong fd
44596         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44597         working directory chooses same fd.
44598         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44599
44600         mkdir, mkdirat: fix cygwin 1.5.x bug
44601         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44602         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44603         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44604         bug.
44605         (gl_PREREQ_MKDIR): Delete unused macro.
44606         * modules/mkdir (Files): Track file rename.
44607         (configure.ac): Update macro name.
44608         * modules/openat (Depends-on): Add mkdir.
44609         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44610
44611         mkdir, mkdirat: add tests
44612         * modules/mkdir-tests: New test.
44613         * tests/test-mkdir.h: New file.
44614         * tests/test-mkdir.c: Likewise.
44615         * tests/test-mkdirat.c: Likewise.
44616         * modules/openat-tests (Files): Add new files.
44617         (Makefile.am): Run new test.
44618
44619 2009-10-06  Eric Blake  <ebb9@byu.net>
44620
44621         doc: tweak *at function documentation
44622         * doc/posix-functions/faccessat.texi (faccessat): Mention
44623         known issue with replacement.
44624         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44625         * doc/posix-functions/linkat.texi (linkat): Likewise.
44626         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44627         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44628         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44629         * doc/posix-functions/renameat.texi (renameat): Likewise.
44630         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44631
44632         openat: fix GNU/Hurd bug in unlinkat
44633         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44634         broken.
44635         * doc/posix-functions/unlink.texi (unlink): Document this.
44636         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44637
44638         fdopendir: fix GNU/Hurd bug
44639         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44640         allowing non-directory fds.
44641         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44642         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44643         * modules/dirent (Makefile.am): Substitute it.
44644         * lib/dirent.in.h (fdopendir): Declare replacement.
44645         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44646         * tests/test-fdopendir.c (main): Test something other than
44647         /dev/null, since on Hurd that behaves like a directory.
44648
44649         test-symlink: port to GNU/Hurd
44650         * tests/test-symlink.h (test_symlink): Relax expected errno.
44651
44652         doc: tweak more cygwin information
44653         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44654         now compatible with glibc.
44655         * doc/posix-functions/getopt.texi (getopt): Likewise.
44656
44657         getopt-gnu: add another test
44658         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44659         guarantee behavior relied on by m4.
44660         * tests/test-getopt.c (main): Use it.
44661         * modules/getopt-posix-tests (Depends-on): Add setenv.
44662         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44663
44664         getopt: fix compilation on darwin
44665         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44666         include.
44667         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44668         Reported by Ludovic Courtès.
44669
44670 2009-10-06  Bruno Haible  <bruno@clisp.org>
44671
44672         * modules/size_max (Description): Discourage its use.
44673         Reported by Simon Josefsson.
44674
44675 2009-10-06  Jim Meyering  <meyering@redhat.com>
44676
44677         linkat: avoid compilation failure
44678         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44679
44680 2009-10-05  Eric Blake  <ebb9@byu.net>
44681
44682         linkat: support Linux 2.6.17
44683         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44684         linkat on Linux, but allow cache variable override.
44685         * lib/linkat.c (rpl_linkat): Define override.
44686         * modules/linkat (Depends-on): Add symlinkat.
44687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44688         * modules/unistd (Makefile.am): Substitute it.
44689         * lib/unistd.in.h (linkat): Declare replacement.
44690         Reported by Pádraig Brady.
44691
44692         quotearg: port test to systems with C.UTF-8 locale
44693         * tests/test-quotearg.c (struct result_strings): Add another
44694         member, differentiating between C.ASCII and C.UTF-8 handling.
44695         (compare_strings): Add parameter.
44696         (main): Adjust all callers.
44697
44698         getopt: avoid clash with FreeBSD _getopt_internal
44699         * lib/getopt.in.h (_getopt_internal): Override the name.
44700         * lib/getopt_int.h (includes): Pick up any overrides.
44701         Reported by Reuben Thomas.
44702
44703         hash: allow C89 compilation
44704         * lib/hash.c (check_tuning): Move declaration before statement.
44705         Reported by Reuben Thomas.
44706
44707 2009-10-05  Karl Berry  <karl@gnu.org>
44708
44709         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44710
44711 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44712             Bruno Haible  <bruno@clisp.org>
44713
44714         * lib/uname.c (uname): Use a table-driven algorithm to compute
44715         Windows NT versions.
44716
44717 2009-10-04  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44720         program_invocation_short_name.
44721         * modules/progname (configure.ac): Test for presence of
44722         program_invocation_short_name.
44723         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44724
44725 2009-10-04  Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/progname.c (set_program_name): Fix comment.
44728         Reported by Jim Meyering.
44729
44730 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44731             Bruno Haible  <bruno@clisp.org>
44732
44733         * lib/uname.c: Include <string.h>.
44734         (uname): Do only one call to GetVersionEx in the common case.
44735
44736 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44737             Bruno Haible  <bruno@clisp.org>
44738
44739         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44740         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44741         (uname): Add support for Windows CE and various non-x86 CPU types.
44742
44743 2009-10-03  Bruno Haible  <bruno@clisp.org>
44744
44745         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44746         invocation to tests/configure.ac.
44747         Reported by Ian Beckwith <ianb@erislabs.net>.
44748
44749 2009-10-02  Eric Blake  <ebb9@byu.net>
44750
44751         fchdir: avoid compiler warning
44752         * lib/fchdir.c (canonicalize_file_name)
44753         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44754
44755         test-open: support mingw errno values
44756         * tests/test-open.h (test_open): Relax test.
44757         * tests/test-fopen.h (test_fopen): Likewise.
44758         * tests/test-openat-safer.c (main): Likewise.
44759
44760         open: fix opening directory on mingw
44761         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44762
44763         test-open: on GNU/Hurd, /dev/null is a directory
44764         * tests/test-fopen.h (main): Rename...
44765         (test_fopen): ...to this.  Use a guaranteed non-directory when
44766         confirming open behavior on trailing slash.
44767         * tests/test-openat-safer.c (main): Likewise.
44768         * tests/test-open.h (main): Likewise....
44769         (test_open): ...to this.
44770         * tests/test-fopen.c (main): Adjust caller.
44771         * tests/test-fopen-safer.c (main): Likewise.
44772         * tests/test-open.c (main): Likewise.
44773         * tests/test-fcntl-safer.c (main): Likewise.
44774         Reported by Samuel Thibault.
44775
44776         rename, fchdir: don't ignore chdir failure
44777         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44778         * lib/rename.c (rpl_rename) [W32]: Likewise.
44779         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44780         an empty destination directory if source cannot be renamed,
44781         although there is still possibility for failure.
44782         * doc/posix-functions/rename.texi (rename): Document the race.
44783         Reported by Jim Meyering.
44784
44785         maint: cleanup whitespace in recent commits
44786         * lib/rename.c (rpl_rename): Remove tabs.
44787         * tests/test-link.h (test_link): Likewise.
44788         * lib/fchdir.c (get_name): Likewise.
44789         Reported by Jim Meyering.
44790
44791 2009-10-02  Ben Pfaff  <blp@gnu.org>
44792
44793         relocatable-prog-wrapper: Add missing dependency on
44794         double-slash-root.
44795         * modules/relocatable-prog-wrapper: Add dependency.
44796         Reported by Ian Beckwith <ianb@erislabs.net>.
44797
44798 2009-10-02  Eric Blake  <ebb9@byu.net>
44799
44800         renameat: fix Solaris bugs
44801         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44802         needed fixing.
44803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44804         * modules/stdio (Makefile.am): Substitute it.
44805         * lib/stdio.in.h (renameat): Declare replacement.
44806         * lib/renameat.c (rpl_renameat): Implement fix.
44807
44808         renameat: new module
44809         * modules/renameat: New file.
44810         * lib/renameat.c (renameat): Likewise.
44811         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44813         * modules/stdio (Makefile.am): Substitute them.
44814         * lib/stdio.in.h (renameat): Declare it.
44815         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44816         * doc/posix-functions/renameat.texi (renameat): Likewise.
44817         * modules/renameat-tests: New test.
44818         * tests/test-renameat.c: Likewise.
44819
44820         rename: fix mingw bugs
44821         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44822         directory overwrite bugs.
44823
44824         rename: fix another cygwin 1.5 bug
44825         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44826         checks.
44827         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44828         unnecessary cygwin workarounds.  Also work around bug with moving
44829         full directory onto an empty one.
44830         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44831
44832         rename-dest-slash: merge into rename module
44833         * modules/rename-dest-slash (Status): Mark obsolete.
44834         (Depends-on): Add rename.
44835         (Files): Let rename do it all.
44836         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44837         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44838         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44839         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44840         * lib/rename.c (rpl_rename): Update comments.
44841
44842         rename: fix cygwin 1.5.x bugs
44843         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44844         * lib/rename.c (rpl_rename): Work around them.
44845         * modules/rename (Depends-on): Add same-inode.
44846
44847         rename: fix Solaris 10 bug
44848         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44849         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44850         was the only bug.
44851
44852         rename: fix Solaris 9 bug
44853         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44854         on non-directory.  Avoid calling exit.
44855         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44856         strdup.
44857         * modules/rename-tests (Depends-on): Drop lstat.
44858         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44859         (gl_PREREQ_RENAME): Delete unused macro.
44860
44861         rename-dest-slash: fix NetBSD bug
44862         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44863         links.
44864         * modules/rename-dest-slash (Depends-on): Add same-inode.
44865
44866         rename-tests: new test, exposes several platform bugs
44867         * modules/rename-tests: New file.
44868         * tests/test-rename.h: Likewise.
44869         * tests/test-rename.c: Likewise.
44870         * doc/posix-functions/rename.texi (rename): Improve documentation,
44871         including bugs that will eventually be fixed in gnulib.
44872
44873 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44874
44875         * lib/uname.c: Include <stdlib.h>
44876         (uname): Assume version info is available.
44877
44878 2009-10-02  Jim Meyering  <meyering@redhat.com>
44879
44880         gnu-web-doc-update: correct --help output
44881         * build-aux/gnu-web-doc-update: Make --help output relevant.
44882
44883         gnu-web-doc-update: add standard options
44884         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44885
44886         gnu-web-doc-update: New module.
44887         Use this script to automatically update the on-line web documentation
44888         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44889         * modules/gnu-web-doc-update: New file, from coreutils.
44890         * build-aux/gnu-web-doc-update: New script.
44891
44892 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44893
44894         link: LoadLibrary is not needed.
44895         * lib/link.c: Use GetModuleHandle.
44896
44897 2009-10-01  Eric Blake  <ebb9@byu.net>
44898
44899         getopt: bump serial number
44900         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44901         change.
44902
44903         tests: tighten link, rmdir, and remove tests
44904         * tests/test-link.h (includes): No need to use <config.h> here.
44905         Clean up if directory hard link was created, otherwise test for
44906         trailing '.'.
44907         * tests/test-linkat.c (main): Simplify.
44908         * tests/test-remove.c (main): Enhance test for trailing '.'.
44909         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44910
44911 2009-10-01  Jim Meyering  <meyering@redhat.com>
44912
44913         maint.mk: requiring "make major" was annoying, for a "minor" release.
44914         What is intended is "stable", to contrast with alpha and beta,
44915         so require "make stable", not "make major".
44916         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44917         (get_tool_versions): Likewise.
44918         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44919
44920 2009-09-30  Ben Pfaff  <blp@gnu.org>
44921
44922         Fix broken build of replacement for Windows tmpfile().
44923         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44924         flags argument added along with the 'mkostemp' module.
44925
44926 2009-09-28  Bruno Haible  <bruno@clisp.org>
44927
44928         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44929         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44930         to 'remove_elt'.
44931         (gl_list_remove): Update.
44932         * lib/gl_list.c (gl_list_remove): Update.
44933         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44934         to 'remove_elt'.
44935         (gl_oset_remove): Update.
44936         * lib/gl_list.c (gl_oset_remove): Update.
44937         Reported by Eric Blake.
44938
44939 2009-09-28  Eric Blake  <ebb9@byu.net>
44940
44941         doc: mention yet more cygwin 1.7 status
44942         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44943         cygwin.
44944         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44945         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44946
44947         argp: fix test failure
44948         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44949         that are not upper-case.  Pass correct range to tolower.
44950
44951 2009-09-27  Jim Meyering  <meyering@redhat.com>
44952
44953         test-yesno: work around sparc-dash here-document infelicity
44954         Without this change, the literal \177 byte in a here document
44955         would make dash 0.5.5.1-3 access uninitialized memory.
44956         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44957         Instead, use a marker, "@", and filter through tr to create the desired
44958         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44959
44960 2009-09-27  Bruno Haible  <bruno@clisp.org>
44961
44962         Disable untested support for new flavours of ACLs on AIX.
44963         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44964         progress.
44965         * lib/set-mode-acl.c (qset_acl): Likewise.
44966
44967 2008-12-07  Bruno Haible  <bruno@clisp.org>
44968
44969         Add support for new flavours of ACLs on AIX. (Untested.)
44970         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44971         (file_has_acl): Add support for newer AIX.
44972         * lib/set-mode-acl.c (qset_acl): Likewise.
44973         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44974         Rainer Tammer <tammer@tammer.net>.
44975
44976 2009-09-26  Eric Blake  <ebb9@byu.net>
44977
44978         argp: fix compilation of getopt
44979         * lib/getopt.in.h (includes): Use different guard than glibc.
44980         Reported by Sergey Poznyakoff.
44981
44982         doc: mention more cygwin 1.7 status
44983         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44984         bug.
44985         * doc/posix-functions/execl.texi (execl): Likewise.
44986         * doc/posix-functions/execle.texi (execle): Likewise.
44987         * doc/posix-functions/execlp.texi (execlp): Likewise.
44988         * doc/posix-functions/execv.texi (execv): Likewise.
44989         * doc/posix-functions/execve.texi (execve): Likewise.
44990         * doc/posix-functions/execvp.texi (execvp): Likewise.
44991         * doc/glibc-functions/canonicalize_file_name.texi
44992         (canonicalize_file_name): Cygwin 1.7 now provides this.
44993         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44994         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44995         on AT_SYMLINK_NOFOLLOW.
44996
44997 2009-09-24  Eric Blake  <ebb9@byu.net>
44998
44999         test-linkat: make test more robust
45000         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45001
45002         getopt: fix inclusion guards for cygwin
45003         * modules/getopt-posix (Depends-on): Add include-next.
45004         (Makefile.am): Substitute more items in replacement header.
45005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45006         <getopt.h>.
45007         * lib/getopt.in.h (includes): Use split inclusion guard, and
45008         prefer <getopt.h> over include <unistd.h> when one is present.
45009         (option): Also override name of 'struct option'.
45010
45011         same-inode: revert prior change; it is not yet ready
45012         * NEWS: Undo mention of this change.
45013         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45014         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45015         * lib/cycle-check.c (cycle_check): Likewise.
45016         * lib/same.c (same_name): Likewise.
45017         * lib/at-func2.c (at_func2): Likewise.
45018
45019 2009-09-23  Eric Blake  <ebb9@byu.net>
45020
45021         linkat: new module
45022         * modules/linkat: New file.
45023         * lib/at-func2.c (at_func2): Likewise.
45024         * lib/linkat.c (linkat): Likewise.
45025         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45026         * lib/openat-priv.h (at_func2): Add declaration.
45027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45028         * modules/unistd (Makefile.am): Substitute them.
45029         * lib/unistd.in.h (linkat): Declare it.
45030         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45031         * doc/posix-functions/linkat.texi (linkat): Likewise.
45032         * doc/posix-functions/link.texi (link): Tweak wording.
45033         * tests/test-link.c (main): Move guts...
45034         * tests/test-link.h (test_link): ...into new file.
45035         * modules/linkat-tests: New test.
45036         * tests/test-linkat.c: Likewise.
45037         * modules/link-tests (Files): Ship new file.
45038         (Depends-on): Add stdbool.
45039
45040         dirname: add library-safe mdir_name
45041         * lib/dirname.h (mdir_name): New prototype.
45042         * lib/dirname.c (dir_name): Move guts...
45043         (mdir_name): ...to new function that avoids xalloc_die.
45044
45045         fchdir: another mingw fix
45046         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45047         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45048         on mingw (where it has not yet been ported), and make it optional
45049         elsewhere.
45050         (_gl_register_fd): Use it.
45051
45052         same-inode: make SAME_INODE tri-state, to port to mingw
45053         * NEWS: Mention this change.
45054         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45055         st_ino always being 0.
45056         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45057         * lib/cycle-check.c (cycle_check): Likewise.
45058         * lib/same.c (same_name): Likewise.
45059
45060         lstat: avoid mingw compilation error
45061         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45062         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45063         lstat ourselves.
45064         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45065         was adequate.
45066         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45067         the checks for lstat.
45068         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45069
45070         link: fix test failure on Solaris 9
45071         * lib/link.c (rpl_link): Don't assume link will catch bogus
45072         trailing slash on source.
45073
45074         test-symlinkat: enhance test
45075         * tests/test-readlink.c (main): Move guts...
45076         * tests/test-readlink.h (test_readlink): ...into new file.
45077         * tests/test-symlink.c (main): Move guts...
45078         * tests/test-symlink.h (test_symlink): ...into new file.
45079         * tests/test-symlinkat.c (main): Use new files for further
45080         coverage.
45081         (do_symlink, do_readlink): New helper functions.
45082         * modules/symlink-tests (Files): Ship new file.
45083         (Depends-on): Add stdbool.
45084         * modules/readlink-tests (Files): Ship new file.
45085         (Depends-on): Add stdbool.
45086         * modules/symlinkat-tests (Files): Use new files.
45087
45088 2009-09-23  Eric Blake  <ebb9@byu.net>
45089
45090         readlink: document portability issue with symlink length
45091         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45092         systems have bogus st_size on symlinks, and mention the
45093         areadlink-with-size module.
45094         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45095         * doc/posix-functions/readlink.texi (readlink): Mention the
45096         areadlink module, and ERANGE failure.
45097         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45098         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45099
45100         readlink: fix Solaris 9 bug with trailing slash
45101         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45102         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45103         * doc/posix-functions/readlink.texi (readlink): Document this.
45104         * modules/readlink-tests: New test.
45105         * tests/test-readlink.c: Likewise.
45106
45107         readlink: fix cygwin 1.5.x bug with return type
45108         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45109         * lib/unistd.in.h (readlink): Use ssize_t.
45110         * lib/readlink.c (readlink): Likewise.
45111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45112         * modules/unistd (Makefile.am): Substitute it.
45113         * lib/unistd.in.h (readlink): Declare replacement.
45114         * doc/posix-functions/readlink.texi (readlink): Document this.
45115
45116         symlink: use throughout gnulib
45117         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45118         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45119         symlink is not used.
45120         * modules/symlinkat (Depends-on): Add symlink.
45121         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45122         * modules/canonicalize-tests (Depends-on): Likewise.
45123         * modules/lstat-tests (Depends-on): Likewise.
45124         * modules/openat-tests (Depends-on): Likewise.
45125         * modules/remove-tests (Depends-on): Likewise.
45126         * modules/rmdir-tests (Depends-on): Likewise.
45127         * modules/unlink-tests (Depends-on): Likewise.
45128         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45129         * tests/test-canonicalize.c (symlink): Likewise.
45130         * tests/test-fstatat.c (symlink): Likewise.
45131         * tests/test-lstat.c (symlink): Likewise.
45132         * tests/test-remove.c (symlink): Likewise.
45133         * tests/test-rmdir.c (symlink): Likewise.
45134         * tests/test-unlink.c (symlink): Likewise.
45135         * tests/test-unlinkat.c (symlink): Likewise.
45136
45137         symlink: new module, for Solaris 9 bug
45138         * modules/symlink: New file.
45139         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45140         * lib/symlink.c: Likewise.
45141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45142         * modules/unistd (Makefile.am): Substitute them.
45143         * lib/unistd.in.h (symlink): Declare replacement.
45144         * MODULES.html.sh (File system functions): Mention it.
45145         * doc/posix-functions/symlink.texi (symlink): Likewise.
45146         * modules/symlink-tests: New test.
45147         * tests/test-symlink.c: Likewise.
45148
45149 2009-09-23  Bruno Haible  <bruno@clisp.org>
45150
45151         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45152         when needed.
45153         Test case: gnulib-tool --import --with-tests atexit inttypes.
45154         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45155
45156 2009-09-23  Bruno Haible  <bruno@clisp.org>
45157
45158         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45159         subcommand, not in a subshell.
45160
45161 2009-09-22  Eric Blake  <ebb9@byu.net>
45162
45163         unistd: sort replacement declarations
45164         * lib/unistd.in.h: Sort declarations.
45165
45166         open, openat: minor optimization
45167         * lib/open.c (open): If open succeeded, len is non-zero.
45168         * lib/openat.c (rpl_openat): Likewise.
45169
45170         link-follow: ensure correct result
45171         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45172         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45173         distinguish between possible failures.
45174
45175 2009-09-21  Eric Blake  <ebb9@byu.net>
45176
45177         fts: avoid compiler warning
45178         * lib/fts.c (dirent_inode_sort_may_be_useful)
45179         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45180
45181 2009-09-19  Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/progreloc.c (canonicalize_file_name): New declaration.
45184
45185 2009-09-19  Eric Blake  <ebb9@byu.net>
45186
45187         link: fix quoting
45188         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45189
45190         openat: fix openat bugs on Solaris 9
45191         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45192         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45193         * modules/openat (Depends-on): Add open.
45194         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45195         * modules/fcntl-h (Makefile.am): Substitute it.
45196         * lib/fcntl.in.h (openat): Declare replacement.
45197         * doc/posix-functions/openat.texi (openat): Document this.
45198
45199         openat: move fstatat and unlinkat into correct files
45200         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45201         compiled.
45202         * lib/openat.c (fstatat, unlinkat): Move...
45203         * lib/fstatat.c (fstatat): ...into correct files.
45204         * lib/unlinkat.c (unlinkat): Likewise.
45205
45206         openat: fix unlinkat bugs on Solaris 9
45207         * lib/unlinkat.c (unlinkat): New file.
45208         * modules/openat (Depends-on): Add unlink.
45209         (Files): Distribute it.
45210         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45211         trailing slash behavior is broken.
45212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45213         * modules/unistd (Makefile.am): Substitute it.
45214         * lib/unistd.in.h (unlinkat): Declare replacement.
45215         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45216
45217         openat: fix fstatat bugs on Solaris 9
45218         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45219         stat.
45220         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45221
45222         test-unlinkat: enhance test, to expose Solaris 9 bug
45223         * tests/test-unlink.c (main): Factor guts...
45224         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45225         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45226         * tests/test-rmdir.c (main): Adjust caller.
45227         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45228         (unlinker): New helper function.
45229         (rmdirat): Enhance check.
45230         * modules/rmdir-tests (Depends-on): Add stdbool.
45231         * modules/unlink-tests (Depends-on): Likewise.
45232         (Files): Add test-unlink.h.
45233         * modules/openat-tests (Files): Likewise.
45234         (Depends-on): Add unlinkdir.
45235
45236         test-fstatat: new test, to expose Solaris 9 bugs
45237         * tests/test-stat.c (main): Factor guts...
45238         * tests/test-stat.h (test_stat_func): ...into new file.
45239         * tests/test-lstat.c (main): Factor guts...
45240         * tests/test-lstat.h (test_lstat_func): ...into new file.
45241         * tests/test-fstatat.c: New file.
45242         * modules/stat-tests (Files): Add test-stat.h.
45243         * modules/lstat-tests (Files): Add test-lstat.h.
45244         (Depends-on): Add stdbool.
45245         * modules/openat-tests (Depends-on): Add pathmax.
45246         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45247         (Makefile.am): Run new test.
45248
45249         remove: new module, for mingw and Solaris 9 bugs
45250         * modules/remove: New file.
45251         * lib/remove.c: Likewise.
45252         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45254         * modules/stdio (Makefile.am): Use them.
45255         * lib/stdio.in.h (remove): Declare replacement.
45256         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45257         * doc/posix-functions/remove.texi (remove): Likewise.
45258         * modules/remove-tests: New test.
45259         * tests/test-remove.c: Likewise.
45260
45261         unlink: new module, for Solaris 9 bug
45262         * modules/unlink: New file.
45263         * lib/unlink.c: Likewise.
45264         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45266         * modules/unistd (Makefile.am): Use them.
45267         * lib/unistd.in.h (stat): Declare replacement.
45268         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45269         * doc/posix-functions/unlink.texi (unlink): Likewise.
45270         * modules/unlink-tests: New test.
45271         * tests/test-unlink.c: Likewise.
45272
45273         lstat: fix Solaris 9 bug
45274         * lib/lstat.c (lstat): Also check for trailing slash on
45275         non-symlink, non-directories.  Use stat module to simplify logic.
45276         * doc/posix-functions/lstat.texi (lstat): Document it.
45277         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45278         (configure.ac): Check for symlink.
45279         * tests/test-lstat.c (main): Add more tests.
45280
45281         stat: add as dependency to other modules
45282         * modules/chown (Depends-on): Add stat.
45283         * modules/euidaccess (Depends-on): Likewise.
45284         * modules/fchdir (Depends-on): Likewise.
45285         * modules/isdir (Depends-on): Likewise.
45286         * modules/link (Depends-on): Likewise.
45287         * modules/lstat (Depends-on): Likewise.
45288         * modules/mkdir-p (Depends-on): Likewise.
45289         * modules/modechange (Depends-on): Likewise.
45290         * modules/open (Depends-on): Likewise.
45291         * modules/readlink (Depends-on): Likewise.
45292         * modules/same (Depends-on): Likewise.
45293
45294         stat: fix Solaris 9 bug
45295         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45296         slash.
45297         * lib/stat.c (rpl_stat): Work around it.
45298         * doc/posix-functions/stat.texi (stat): Update documentation.
45299
45300         stat: new module, for mingw bug
45301         * modules/stat: New file.
45302         * lib/stat.c: Likewise.
45303         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45305         * modules/sys_stat (Makefile.am): Use them.
45306         * lib/sys_stat.in.h (stat): Declare replacement.
45307         * lib/openat.c (fstatat): Deal with lstat and stat being function
45308         macros.
45309         * modules/openat (Depends-on): Add inline.
45310         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45311         * doc/posix-functions/stat.texi (stat): Likewise.
45312         * modules/stat-tests: New test.
45313         * tests/test-stat.c: Likewise.
45314
45315 2009-09-19  Jim Meyering  <meyering@redhat.com>
45316
45317         syntax-check: detect unnecessary inclusion of canonicalize.h
45318         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45319
45320 2009-09-19  Eric Blake  <ebb9@byu.net>
45321
45322         canonicalize-lgpl: adjust clients to use correct header
45323         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45324         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45325         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45326         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45327         * lib/progreloc.c (includes): Likewise.
45328
45329 2009-09-19  Jim Meyering  <meyering@redhat.com>
45330
45331         test-posixtm.c: correct a comment
45332         * tests/test-posixtm.c: Correct first-line comment.
45333         Spotted by Eric Blake.
45334
45335 2009-09-16  Jim Meyering  <meyering@redhat.com>
45336
45337         posixtm-tests: make T const-correct; add a test case
45338         * tests/test-posixtm.c (T): Declare const.
45339         Add a test for -(2^31+1).
45340         Remove useless can-succeed-only-in-2002 test.
45341
45342         posixtm-tests: adjust the sole failing test
45343         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45344         expected output matches what mktime now produces.  Cross-checked via
45345         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45346
45347         posixtm: move #ifdef'd tests into a new module
45348         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45349         * tests/test-posixtm.c: ... this new file.
45350         * modules/posixtm-tests: New module.
45351
45352 2009-09-19  Eric Blake  <ebb9@byu.net>
45353
45354         openat: simplify use of at-func.c
45355         * lib/at-func.c (includes): Include prerequisites here, to
45356         simplify requirements on client files.
45357         * lib/openat-priv.h: Add double-inclusion guard.
45358         * lib/faccessat.c (includes): Simplify.
45359         * lib/fchmodat.c (includes): Likewise.
45360         * lib/fchownat.c (includes): Likewise.
45361         * lib/mkdirat.c (includes): Likewise.
45362         * lib/mkfifoat.c (includes): Likewise.
45363         * lib/symlinkat.c (includes): Likewise.
45364
45365         openat: allow return of fd 0
45366         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45367         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45368         unistd-safer.
45369         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45370         <fcntl.h>; this module does not leak fds.
45371         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45372         must be allowed to return 0, leaving openat_safer to add the
45373         safety.
45374         (openat_permissive): Avoid writing to just-opened fd 2 if
45375         restoring the current directory fails.
45376         * lib/openat-die.c (openat_restore_fail): Add comment.
45377         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45378         (save_cwd): Guarantee safe fd, but without use of open_safer.
45379         * tests/test-openat.c: New test.
45380         * modules/openat-tests (Files, Makefile.am): Distribute and build
45381         new file.
45382
45383         relocatable-prog-wrapper: fix build
45384         * modules/relocatable-prog-wrapper (Files): Update name of
45385         canonicalize m4 file, broken on 2009-09-17.
45386         Reported by emad hajjar <aleppos@hotmail.com>.
45387
45388 2009-09-19  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45391         * lib/safe-alloc.c: Likewise.
45392         Reported by Ian Beckwith <ianb@erislabs.net>.
45393
45394 2009-09-18  Bruno Haible  <bruno@clisp.org>
45395
45396         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45397         Reported by <erobles@sensacd.com.mx>.
45398
45399 2009-09-17  Eric Blake  <ebb9@byu.net>
45400
45401         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45402         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45403         slashes when checking if last component is missing.
45404         * tests/test-canonicalize.c (main): Test this.
45405
45406         canonicalize, canonicalize-lgpl: honor // if distinct from /
45407         * modules/canonicalize (Files): Add double-slash-root.m4.
45408         * modules/canonicalize-lgpl (Files): Likewise.
45409         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45410         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45411         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45412         fallback definition.
45413         (canonicalize_filename_mode): Use it to protect //.
45414         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45415         (__realpath): Likewise.
45416         * tests/test-canonicalize.c (main): Test this.
45417         * tests/test-canonicalize-lgpl.c (main): Likewise.
45418         * modules/canonicalize-tests (Depends-on): Add same-inode.
45419         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45420
45421         canonicalize-lgpl: fix glibc bug with trailing slash
45422         * m4/canonicalize-lgpl.m4: Move contents...
45423         * m4/canonicalize.m4: ...here.
45424         (gl_CANONICALIZE_LGPL): Factor realpath check...
45425         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45426         glibc 2.3.5 bug, fixed 2005-04-27.
45427         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45428         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45429         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45430         * modules/canonicalize-lgpl (Files): Manage file rename.
45431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45432         * modules/stdlib (Makefile.am): Substitute witness.
45433         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45434         is needed.
45435         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45436         replacement is required.
45437         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45438         * doc/glibc-functions/canonicalize_file_name.texi
45439         (canonicalize_file_name): Document this.
45440         * doc/posix-functions/realpath.texi (realpath): Likewise.
45441
45442         canonicalize-lgpl: reject non-directory with trailing slash
45443         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45444         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45445         catches failures in glibc 2.3.5.
45446         * tests/test-canonicalize.c (main): Likewise.
45447
45448         canonicalize-lgpl: use native realpath if it works
45449         * lib/canonicalize-lgpl.c (realpath): Guard with
45450         FUNC_REALPATH_WORKS.
45451         * lib/stdlib.in.h (realpath): Make declaration optional based on
45452         HAVE_REALPATH.
45453         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45454         native realpath works.
45455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45456         * modules/stdlib (Makefile.am): Substitute witness.
45457
45458         canonicalize, canonicalize-lgpl: use <stdlib.h>
45459         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45460         (Include): Mention <stdlib.h>.
45461         (configure.ac): Mention functions we provide.
45462         * modules/canonicalize (configure.ac): Likewise.
45463         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45464         realpath if canonicalize_file_name is missing.
45465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45466         * modules/stdlib (Makefile.am): Substitute witnesses.
45467         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45468         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45469         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45470         * NEWS: Document this.
45471         * doc/glibc-functions/canonicalize_file_name.texi
45472         (canonicalize_file_name): Likewise.
45473         * doc/posix-functions/realpath.texi (realpath): Likewise.
45474         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45475
45476         test-canonicalize: consolidate into single C program
45477         * tests/test-canonicalize.sh: Delete; move setup into...
45478         * tests/test-canonicalize.c (main): ...the program, making it
45479         easier to run in debugger.  Add some tests.
45480         * modules/canonicalize-tests (Files): Remove unused file.
45481         (Depends-on): Add progname.
45482         (configure.ac, Makefile.am): Simplify.
45483
45484         test-canonicalize-lgpl: consolidate into single C program
45485         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45486         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45487         easier to run in debugger.  Add some tests.
45488         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45489         (configure.ac, Makefile.am): Simplify.
45490
45491         canonicalize: avoid resolvepath
45492         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45493         unnecessary checks.
45494         * lib/canonicalize.c (includes): Simplify.
45495         (canonicalize_file_name): Drop resolvepath implementation.
45496         * modules/canonicalize (Depends-on): Drop filenamecat.
45497
45498         canonicalize: don't lose errno
45499         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45500         over calls to free.
45501
45502         canonicalize: simplify errno handling
45503         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45504         assignment.
45505
45506         canonicalize, canonicalize-lgpl: update module dependencies
45507         * modules/canonicalize (Depends-on): Add extensions, lstat,
45508         pathmax, stdlib.
45509         (Files): Drop pathmax.h.
45510         (configure.ac): Adjust macro name.
45511         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45512         lstat, stdlib, sys_stat.
45513         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45514         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45515         extensions.
45516         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45517         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45518         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45519         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45520         declaration, if available.
45521         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45522         we can rely on the readlink module.
45523         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45524         (includes): Use <unistd.h> unconditionally.
45525
45526 2009-09-17  Eric Blake  <ebb9@byu.net>
45527
45528         maint: make Include sections of modules consistent
45529         * modules/alloca: Use only header name; no need to list #include.
45530         * modules/alloca-opt: Likewise.
45531         * modules/arpa_inet: Likewise.
45532         * modules/canon-host: Likewise.
45533         * modules/configmake: Likewise.
45534         * modules/dirent: Likewise.
45535         * modules/eealloc: Likewise.
45536         * modules/environ: Likewise.
45537         * modules/fchdir: Likewise.
45538         * modules/fcntl: Likewise.
45539         * modules/fcntl-h: Likewise.
45540         * modules/gethrxtime: Likewise.
45541         * modules/gettime: Likewise.
45542         * modules/ignore-value: Likewise.
45543         * modules/inet_ntop: Likewise.
45544         * modules/inet_pton: Likewise.
45545         * modules/inttypes: Likewise.
45546         * modules/isnand-nolibm: Likewise.
45547         * modules/isnanf-nolibm: Likewise.
45548         * modules/mbchar: Likewise.
45549         * modules/mbfile: Likewise.
45550         * modules/mbiter: Likewise.
45551         * modules/mbuiter: Likewise.
45552         * modules/netdb: Likewise.
45553         * modules/netinet_in: Likewise.
45554         * modules/nproc: Likewise.
45555         * modules/pagealign_alloc: Likewise.
45556         * modules/poll: Likewise.
45557         * modules/printf-frexp: Likewise.
45558         * modules/pthread: Likewise.
45559         * modules/putenv: Likewise.
45560         * modules/random_r: Likewise.
45561         * modules/relocatable-prog: Likewise.
45562         * modules/search: Likewise.
45563         * modules/select: Likewise.
45564         * modules/selinux-h: Likewise.
45565         * modules/settime: Likewise.
45566         * modules/signal: Likewise.
45567         * modules/size_max: Likewise.
45568         * modules/socklen: Likewise.
45569         * modules/ssize_t: Likewise.
45570         * modules/stdarg: Likewise.
45571         * modules/stdbool: Likewise.
45572         * modules/stddef: Likewise.
45573         * modules/stdint: Likewise.
45574         * modules/stdio: Likewise.
45575         * modules/stdlib: Likewise.
45576         * modules/string: Likewise.
45577         * modules/strings: Likewise.
45578         * modules/sys_file: Likewise.
45579         * modules/sys_ioctl: Likewise.
45580         * modules/sys_select: Likewise.
45581         * modules/sys_socket: Likewise.
45582         * modules/sys_stat: Likewise.
45583         * modules/sys_time: Likewise.
45584         * modules/sys_times: Likewise.
45585         * modules/sys_utsname: Likewise.
45586         * modules/sys_wait: Likewise.
45587         * modules/sysexits: Likewise.
45588         * modules/time: Likewise.
45589         * modules/times: Likewise.
45590         * modules/tmpfile: Likewise.
45591         * modules/trim: Likewise.
45592         * modules/unistd: Likewise.
45593         * modules/wchar: Likewise.
45594         * modules/wctype: Likewise.
45595
45596 2009-09-17  Bruno Haible  <bruno@clisp.org>
45597
45598         Make getdate.y compile on QNX and NetBSD 5 / i386.
45599         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45600         TIME_T_FITS_IN_LONG_INT.
45601         * lib/getdate.y (long_time_t): New type.
45602         (relative_time): Change type of 'seconds' field to long_time_t.
45603         (get_date): Update types of local variables. Check against overflow
45604         during conversion from long_time_t to time_t.
45605         Reported by Matt Kraai <kraai@ftbfs.org>
45606         and Hasso Tepper <hasso@netbsd.org>.
45607
45608 2009-09-17  Bruno Haible  <bruno@clisp.org>
45609
45610         * modules/COPYING: Update copyright years.
45611         * modules/README: Likeiwse.
45612         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45613         Reported by Ian Beckwith <ianb@erislabs.net>.
45614
45615 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45616
45617         * users.txt: Update references for gnuit package.
45618
45619 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45620
45621         * m4/getdelim.m4: Fix typo in copyright line.
45622
45623 2009-09-17  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/atoll.c: Use the standard header with GPL copyright.
45626         * lib/argz.in.h: Likewise.
45627         * lib/glob.c: Likewise.
45628         * lib/glob-libc.h: Likewise.
45629         * lib/random_r.c: Likewise.
45630         * lib/siglist.h: Likewise.
45631         * lib/strsignal.c: Likewise.
45632         Reported by Ian Beckwith <ianb@erislabs.net>.
45633
45634 2009-09-17  Eric Blake  <ebb9@byu.net>
45635
45636         rmdir: ensure correct dependency order
45637         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45638
45639 2009-09-17  Bruno Haible  <bruno@clisp.org>
45640
45641         Disable assertion that fails on NetBSD 5 / i386.
45642         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45643         Reported by Sam Steingold <sds@gnu.org>
45644         and Hasso Tepper <hasso@netbsd.org>.
45645
45646 2009-09-16  Eric Blake  <ebb9@byu.net>
45647
45648         unlinkdir: port to mingw
45649         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45650         on which no one can unlink a directory.
45651
45652         stdlib: sort witness names
45653         * modules/stdlib (Makefile.am): Sort replacements.
45654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45655         * lib/stdlib.in.h: Likewise.
45656
45657         parse-duration-tests: avoid link failure
45658         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45659         LIBINTL.
45660         Reported by Tom G. Christensen.
45661
45662         openat-tests: ensure unlinkat behaves like rmdir
45663         * tests/test-rmdir.c (main): Factor guts...
45664         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45665         * modules/rmdir-tests (Files): Ship new file.
45666         * modules/openat-tests: New test.
45667         * tests/test-unlinkat.c: Likewise.
45668
45669         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45670         * modules/rmdir-errno (Status, Notice): Now obsolete.
45671
45672         rmdir: work around cygwin 1.5.x and mingw bugs
45673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45674         * lib/rmdir.c (rmdir): Work around it.
45675         * modules/rmdir (Status, Notice): No longer obsolete.
45676         (Files): Add dos.m4.
45677         (Depends-on): Add unistd.
45678         (configure.ac): Set witnesses.
45679         (License): Relax to LGPLv2+.
45680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45681         * modules/unistd (Makefile.am): Substitute witnesses.
45682         * lib/unistd.in.h (rmdir): Declare replacement.
45683         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45684         * modules/rmdir-tests: New tests.
45685         * tests/test-rmdir.c: Likewise.
45686
45687 2009-09-15  Eric Blake  <ebb9@byu.net>
45688
45689         fchdir: improve use of replacement functions
45690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45691         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45692         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45693         REPLACE_CLOSEDIR.
45694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45695         * modules/sys_stat (Makefile.am): Substitute correct witness.
45696         * modules/dirent (Makefile.am): Likewise.
45697         * modules/unistd (Makefile.am): Likewise.
45698         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45699         * lib/unistd.in.h (dup): Likewise.
45700         * lib/sys_stat.in.h (fstat): Likewise.
45701
45702         maint: ignore gnulib-tool temp files
45703         * .gitignore: Ignore files created during gnulib-tool --test.
45704
45705 2009-09-13  Jim Meyering  <meyering@redhat.com>
45706
45707         posixtm: don't reject a time that specify "60" as the number of seconds
45708         * lib/posixtm.c (posixtime): The code to reject invalid dates
45709         would also reject a time specified with the .60 suffix.
45710         But POSIX allows that, in order to accommodate leap seconds.
45711         So don't reject it.
45712         (main): Adjust tests accordingly.
45713         * modules/posixtm (Depends-on): Add stpcpy.
45714
45715 2009-09-11  Jim Meyering  <meyering@redhat.com>
45716
45717         announce-gen: include [$release_type] in emitted Subject:
45718         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45719         e.g., [stable] in the emitted Subject: line.
45720
45721 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45722
45723         Remove obsolete macros from several modules.
45724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45725         obsolete Autoconf macros with their modern counterparts.
45726         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45727         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45728         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45729         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45730         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45731         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45733         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45734         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45735         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45736         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45737         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45738         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45739         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45740         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45741         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45742         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45743         * m4/time_r.m4 (gl_TIME_R): Likewise.
45744         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45745         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45746         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45747
45748         Fix copyright header in build-aux scripts.
45749         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45750         recommendation.
45751         * build-aux/ncftpput-ftp: Likewise.
45752         * build-aux/update-copyright: Likewise.
45753
45754 2009-09-09  Eric Blake  <ebb9@byu.net>
45755
45756         test-link: allow Linux choice of errno
45757         * tests/test-link.c (main): Relax test for alternate error.
45758
45759         strndup: fix improper m4 caching
45760         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45761         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45762         (gl_PREREQ_STRNDUP): Delete.
45763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45764         * modules/string (Makefile.am): Substitute it.
45765         * lib/string.in.h (strndup): Modernize prototype.
45766
45767         getcwd: port to mingw
45768         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45769         different from the POSIX assumptions made throughout the getcwd
45770         module; fortunately, the mingw getcwd does not need replacement.
45771         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45772         * modules/getcwd-tests: New test.
45773         * tests/test-getcwd.c: Likewise.
45774
45775         link: fix platform bugs
45776         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45777         * lib/link.c (link): Work around them.  Fix related mingw bug.
45778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45779         * modules/unistd (Makefile.am): Substitute it.
45780         * lib/unistd.in.h (link): Declare replacement.
45781         * doc/posix-functions/link.texi (link): Document this.
45782         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45783
45784         test-link: consolidate into single C program, test more cases
45785         * tests/test-link.sh: Delete.
45786         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45787         at least Cygwin and Solaris.
45788         * modules/link-tests (Files): Remove unused file.
45789         (Depends-on): Add errno, sys_stat.
45790         (Makefile.am): Simplify.
45791
45792 2009-09-08  Bruno Haible  <bruno@clisp.org>
45793
45794         Work around towlower, towupper bug on mingw.
45795         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45796         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45797         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45798         * doc/posix-functions/towupper.texi: Likewise.
45799         Reported by Eric Blake.
45800
45801 2009-09-08  Jim Meyering  <meyering@redhat.com>
45802
45803         build: don't try to run autoheader if we don't use it
45804         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45805         is not used in configure.ac.
45806
45807 2009-09-08  Eric Blake  <ebb9@byu.net>
45808
45809         euidaccess: fix compilation error
45810         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45811
45812         rawmemchr: relax license
45813         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45814         okay.
45815         Reported by Jim Meyering.
45816
45817         mkfifoat: new module
45818         * modules/mkfifoat: New file.
45819         * lib/mkfifoat.c: Likewise.
45820         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45822         * modules/sys_stat (Makefile.am): Use them.
45823         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45824         * MODULES.html.sh (File system functions): Mention module.
45825         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45826         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45827         * modules/mkfifoat-tests: New test.
45828         * tests/test-mkfifoat.c: Likewise.
45829
45830         strchrnul: relax license
45831         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45832         okay.
45833         Reported by Jim Meyering.
45834
45835 2009-09-08  Eric Blake  <ebb9@byu.net>
45836
45837         fstatat: fix compilation on Solaris
45838         * lib/fstatat.c (includes): Add fcntl.h.
45839         Reported by Pádraig Brady.
45840
45841 2009-09-07  Eric Blake  <ebb9@byu.net>
45842
45843         rename: modernize replacement
45844         * modules/rename (Depends-on): Add stdio.
45845         (configure.ac): Declare witness.
45846         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45847         stdio take care of replacement.
45848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45849         * modules/stdio (Makefile.am): Substitute them.
45850         * lib/stdio.in.h (rename): Declare replacement.
45851         * lib/rename.c (includes): Allow cross-compilation to non-windows
45852         machines.
45853         * doc/posix-functions/rename.texi (rename): Improve
45854         documentation.
45855
45856         stdio: sort witness names
45857         * modules/stdio (Makefile.am): Sort replacements.
45858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45859         * lib/stdio.in.h: Likewise.
45860
45861         getcwd: minor cleanups
45862         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45863         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45864
45865         openat: provide more convenience names
45866         * modules/faccessat (configure.ac): Add C witness.
45867         * lib/unistd.in.h (readlinkat): Fix typo.
45868         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45869         convenience wrappers.
45870         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45871         wrappers in syntax checks.
45872
45873 2009-09-06  Eric Blake  <ebb9@byu.net>
45874
45875         doc: fix comments in recent patches
45876         * lib/faccessat.c: Mention correct function.
45877         * lib/fchmodat.c: Likewise.
45878         * lib/fchownat.c: Likewise.
45879         * lib/symlinkat.c: Likewise.
45880         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45881         constants.
45882
45883         faccessat, symlinkat: continue cleanup of previous patch
45884         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45885         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45886         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45888         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45889         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45890         set.
45891
45892 2009-09-06  Bruno Haible  <bruno@clisp.org>
45893
45894         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45895         (fstatat): Declare if GNULIB_FSTATAT is set.
45896         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45897         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45898         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45899         * modules/fcntl-h (Files): Remove m4/openat.m4.
45900         * modules/sys_stat (Files): Remove m4/openat.m4.
45901         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45902         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45903         * modules/unistd (Files): Remove m4/openat.m4.
45904         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45905         GNULIB_OPENAT.
45906         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45907         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45908         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45909         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45910         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45911         gl_OPENAT_DEFAULTS.
45912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45913         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45914         Don't require gl_OPENAT_DEFAULTS.
45915         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45916         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45917         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45918         (gl_OPENAT_DEFAULTS): Remove macro.
45919
45920 2009-09-06  Bruno Haible  <bruno@clisp.org>
45921
45922         * modules/openat (configure.ac): Remove unneeded witness.
45923
45924 2009-09-06  Bruno Haible  <bruno@clisp.org>
45925
45926         Set errno to ENOSYS when a function is entirely unsupported.
45927         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45928         EOPNOTSUPP.
45929         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45930         * modules/chown (Depends-on): Remove errno.
45931
45932 2009-09-06  Bruno Haible  <bruno@clisp.org>
45933
45934         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45935
45936 2009-09-06  Bruno Haible  <bruno@clisp.org>
45937
45938         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45939
45940 2009-09-06  Ben Pfaff  <blp@gnu.org>
45941             Bruno Haible  <bruno@clisp.org>
45942
45943         Work around a glibc bug in strtok_r.
45944         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45945         Undefine if UNDEFINE_STRTOK_R is set.
45946         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45948         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45949         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45950         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45951         UNDEFINE_STRTOK_R.
45952         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45953
45954 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45955
45956         exclude: minor fix
45957         * lib/exclude.c: Include wctype.h
45958
45959 2009-09-06  Akim Demaille  <demaille@gostai.com>
45960
45961         bootstrap: improve error message
45962         * build-aux/bootstrap (find_tool): Upon failure, report the list
45963         of candidates.
45964         Honor the initial value of the envvar.
45965
45966 2009-09-05  Eric Blake  <ebb9@byu.net>
45967
45968         symlinkat: new module
45969         * modules/symlinkat: New file.
45970         * lib/symlinkat.c: Likewise.
45971         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45973         * modules/unistd (Makefile.am): Use them.
45974         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45975         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45976         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45977         * MODULES.html.sh (File system functions): Mention module.
45978         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45979         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45980         * modules/symlinkat-tests: New test.
45981         * tests/test-symlinkat.c: Likewise.
45982
45983         test-openat-safer: add more checks
45984         * tests/test-openat-safer.c (main): Check more code paths.
45985
45986 2009-09-05  Jim Meyering  <meyering@redhat.com>
45987
45988         syntax-check: detect unnecessary inclusion of openat.h
45989         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45990
45991 2009-09-05  Bruno Haible  <bruno@clisp.org>
45992
45993         Support towlower, towupper.
45994         * doc/posix-functions/towlower.texi: Mention module wctype.
45995         * doc/posix-functions/towupper.texi: Likewise.
45996         * lib/wctype.in.h (towlower, towupper): New functions.
45997         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45998         (ASSERT): New macro.
45999         (e): New variable.
46000         (main): Test also towlower, towupper. Test WEOF argument.
46001         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46002
46003 2009-09-05  Bruno Haible  <bruno@clisp.org>
46004
46005         Fix conversion behaviour when the input is invalid.
46006         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46007         mark occurring in first pass of indirect conversion.
46008         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46009         input.
46010         Found by clang's static analyzer.
46011
46012 2009-09-05  Bruno Haible  <bruno@clisp.org>
46013
46014         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46015         where direct conversion is possible.
46016
46017 2009-09-04  Eric Blake  <ebb9@byu.net>
46018
46019         openat: fail with ENOENT on empty name
46020         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46021         buffer.
46022
46023         link-follow: fix logic bug in prior patch
46024         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46025         reversed sense of yes and no in prior patch.  Avoid confusing
46026         compilation failure with desired semantics.
46027
46028         link-follow: accommodate mingw and cross-compilation
46029         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46030         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46031         cross-compilation results to -1, to make linkat easier to
46032         implement when cross-compiling.  Trivially support mingw.
46033         * modules/link-follow (configure.ac): Call new name.
46034         * NEWS: Mention this.
46035
46036 2009-09-03  Eric Blake  <ebb9@byu.net>
46037
46038         faccessat: compile replacement
46039         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46040         needed.
46041
46042         fts: fix compilation error
46043         * lib/fts.c (includes): Re-add "openat.h", for
46044         openat_needs_fchdir.
46045
46046         faccessat: new module
46047         * modules/faccessat: New file.
46048         * lib/faccessat.c: Likewise.
46049         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46051         * modules/unistd (Makefile.am): Use it.
46052         * lib/unistd.in.h (faccessat): Declare it.
46053         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46054         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46055         * MODULES.html.sh (File system functions): Mention it.
46056         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46057         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46058
46059         euidaccess: prefer POSIX over non-standard implementation
46060         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46061         * lib/euidaccess.c (euidaccess): Use it if available.
46062
46063         openat: make template easier to use
46064         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46065         AT_FUNC_F2 to be undefined.
46066         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46067         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46068         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46069         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46070         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46071         Likewise.
46072         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46073         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46074         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46075         Likewise.
46076
46077         openat: declare in POSIX headers
46078         * NEWS: Mention this.
46079         * modules/openat (configure.ac): Declare witnesses.
46080         (Depends-on): Add fcntl-h, sys_stat, unistd.
46081         (Include): Mention correct headers.
46082         * modules/fcntl-h (Depends-on): Add link-warning.
46083         (Files): Add openat.m4.
46084         (Makefile.am): Substitute witnesses.
46085         * modules/sys_stat (Files, Makefile.am): Likewise.
46086         * modules/unistd (Files, Makefile.am): Likewise.
46087         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46088         (gl_OPENAT_DEFAULTS): New macro.
46089         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46092         (SYS_STAT_H): Remove unused variable.
46093         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46094         * lib/fcntl--.h (includes): Remove unneeded header.
46095         * lib/openat-safer.c (includes): Likewise.
46096         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46097         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46098         appropriate headers.
46099         (__OPENAT_PREFIX): Delete.
46100         * lib/fcntl.in.h (openat): Provide declaration.
46101         (AT_FDCWD): Fix Solaris bug.
46102         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46103         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46104         * lib/fchmodat.c (includes):  Adjust to find declaration.
46105         * lib/fchownat.c (includes): Likewise.
46106         * lib/mkdirat.c (includes): Likewise.
46107         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46108         still visible.
46109
46110 2009-09-02  Eric Blake  <ebb9@byu.net>
46111
46112         errno: use consistently
46113         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46114         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46115         * lib/canonicalize.c (ELOOP): Likewise.
46116         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46117         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46118         * lib/lchown.c (EOPNOTSUPP): Likewise.
46119         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46120         * lib/savewd.c (ESTALE): Likewise.
46121         * lib/settime.c (ENOSYS): Likewise.
46122         * lib/utimens.c (ENOSYS): Likewise.
46123         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46124         * lib/chdir-safer.c (ELOOP): Likewise.
46125         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46126         * modules/c-stack (Depends-on): Add errno.
46127         * modules/canonicalize (Depends-on): Likewise.
46128         * modules/chdir-safer (Depends-on): Likewise.
46129         * modules/fdopendir (Depends-on): Likewise.
46130         * modules/inet_ntop (Depends-on): Likewise.
46131         * modules/inet_pton (Depends-on): Likewise.
46132         * modules/lchown (Depends-on): Likewise.
46133         * modules/openat (Depends-on): Likewise.
46134         * modules/savewd (Depends-on): Likewise.
46135         * modules/settime (Depends-on): Likewise.
46136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46137
46138         fts: avoid leaking fds
46139         * modules/fts (Depends-on): Add cloexec.
46140         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46141         flag.
46142
46143         fts: make directory fds more robust
46144         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46145         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46146
46147         backupfile, chdir-long, fts, savedir: make safer
46148         * lib/backupfile.c (includes): Use "dirent--.h", since
46149         numbered_backup can write to stderr during readdir.
46150         * lib/savedir.c (includes): Likewise.
46151         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46152         emulation can write to stderr on failure.
46153         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46154         * lib/getcwd.c: Document why opendir_safer is unused.
46155         * lib/glob.c: Likewise.
46156         * lib/scandir.c: Likewise.
46157         * lib/openat-proc.c: Likewise, for open_safer.
46158         * modules/backupfile (Depends-on): Add dirent-safer.
46159         * modules/savedir (Depends-on): Likewise.
46160         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46161         * modules/chdir-long (Depends-on): Add openat-safer.
46162
46163         openat-safer: new module
46164         * modules/openat-safer: New file.
46165         * lib/openat-safer.c: Likewise.
46166         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46167         * lib/fcntl-safer.h (openat_safer): Declare.
46168         * lib/fcntl--.h (openat): Override.
46169         * MODULES.html.sh (File descriptor based I/O): Mention it.
46170         * lib/openat.h: Add double-inclusion guards.
46171         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46172         "fcntl--.h", so we can implement openat.
46173         * modules/openat-safer-tests: New test.
46174         * tests/test-openat-safer.c: New file.
46175
46176         dirent-safer: new module
46177         * modules/dirent-safer: New file.
46178         * lib/dirent--.h: Likewise.
46179         * lib/dirent-safer.h: Likewise.
46180         * lib/opendir-safer.c: Likewise.
46181         * m4/dirent-safer.m4: Likewise.
46182         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46183         * modules/dirent-safer-tests: New test.
46184         * tests/test-dirent-safer.c: New file.
46185         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46186
46187         fdopendir: optimize on mingw
46188         * lib/unistd.in.h (_gl_directory_name): New prototype.
46189         * lib/fchdir.c (_gl_directory_name): Implement it.
46190         (fchdir): Use it to simplify implementation.
46191         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46192         fchdir, when available, to avoid calling [f]chdir().
46193
46194         fdopendir: split into its own module
46195         * lib/openat.c (fdopendir): Move...
46196         * lib/fdopendir.c: ...into new file.
46197         * modules/fdopendir: New module.
46198         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46199         * modules/openat (Depends-on): Add fdopendir.
46200         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46201         fdopendir here.
46202         * modules/savedir (Depends-on): Only need fdopendir, not full
46203         openat.
46204         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46205         * lib/openat.h (fdopendir): Drop prototype.
46206         * lib/dirent.in.h (fdopendir): Provide prototype.
46207         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46208         * modules/dirent (Makefile.am): Substitute them.
46209         * MODULES.html.sh (File system functions): Mention it.
46210         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46211         * modules/fdopendir-tests: New file.
46212         * tests/test-fdopendir.c: Likewise.
46213
46214         fchdir: use more consistent macro convention
46215         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46216         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46217         REPLACE_FCHDIR, rather than relying on config.h macros.
46218         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46219         inside a single make-time REPLACE_FCHDIR block, rather than using
46220         the config.h FCHDIR_REPLACEMENT.
46221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46222         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46223         Manage fstat replacement.
46224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46225         REPLACE_FCHDIR.
46226         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46227         (Makefile.am): Substitute REPLACE_FCHDIR.
46228         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46229         FCHDIR_REPLACEMENT.
46230         * lib/dup-safer.c (dup_safer): Likewise.
46231         * lib/dup2.c (rpl_dup2): Likewise.
46232         * lib/dup3.c (rpl_dup3): Likewise.
46233         * lib/open.c (rpl_open): Likewise.
46234
46235         fchdir: simplify error handling, and support dup3
46236         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46237         stdbool, malloc-posix, realloc-posix.
46238         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46239         (ensure_dirs_slot): Return false on allocation failure.
46240         (rpl_dup2): Delete.
46241         (_gl_register_dup): New function.
46242         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46243         (_gl_register_fd): Close fd on allocation failure.
46244         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46245         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46246         prototype.
46247         (rpl_dup2_fchdir): Delete prototype.
46248         * lib/open.c (open): Update caller.
46249         * lib/dup2.c (dup2): Track fchdir metadata.
46250         * lib/dup3.c (dup3): Likewise.
46251         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46253
46254 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46255
46256         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46257         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46258         don't pass arguments to AC_OUTPUT.
46259
46260 2009-09-02  Bruno Haible  <bruno@clisp.org>
46261
46262         * modules/mkdtemp (License): Relicense under LGPLv2+.
46263         Reported by Paolo Bonzini.
46264
46265 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46266
46267         Replace uses of obsolete autoconf macros in Jim's modules.
46268         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46269         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46270         can evoke a warning from autoconf when run with -Wobsolete
46271         enabled.  They were declared obsolete for good reasons (see
46272         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46273         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46274         should not continue using the deprecated macros.
46275         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46276         obsolete Autoconf macros with modern counterparts.
46277         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46278         * m4/dos.m4 (gl_AC_DOS): Likewise.
46279         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46280         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46281         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46282         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46283         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46284         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46286         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46287         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46288         Likewise.
46289         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46290         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46291         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46292         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46293         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46294         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46295
46296 2009-09-01  Eric Blake  <ebb9@byu.net>
46297
46298         fchdir: fix off-by-one bug in previous patch
46299         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46300         (_gl_unregister_fd): Delete useless if.
46301
46302 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46303
46304         maint.mk: sort the list of syntax-check rules
46305         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46306         easier to get a sense of progress when the rules are run sequentially
46307         and take a long time.
46308
46309 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46310
46311         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46312         * modules/netinet_in: Likewise.
46313         * modules/sys_file: Likewise.
46314         * modules/sys_ioctl: Likewise.
46315         * modules/sys_select: Likewise.
46316         * modules/sys_socket: Likewise.
46317         * modules/sys_stat: Likewise.
46318         * modules/sys_time: Likewise.
46319         * modules/sys_times: Likewise.
46320         * modules/sys_utsname: Likewise.
46321         * modules/sys_wait: Likewise.
46322
46323 2009-09-01  Jim Meyering  <meyering@redhat.com>
46324
46325         fts: help ensure that return values are not ignored
46326         * lib/fts_.h (__GNUC_PREREQ): Define.
46327         (__attribute_warn_unused_result__): Define.
46328         (fts_children, fts_close, fts_open, fts_read): Declare with
46329         __attribute_warn_unused_result__.
46330
46331         fts: fts_close now fails also when closing a dir file descriptor fails
46332         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46333         and propagate to caller, along with errno.
46334
46335         announce-gen: correct formatting in --help output
46336         * build-aux/announce-gen (usage): Move the one-line description in
46337         --help output "up", to where it belongs, just after Usage:.
46338
46339 2009-08-31  Eric Blake  <ebb9@byu.net>
46340
46341         fchdir: port to mingw
46342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46343         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46344         opened, then use a substitute.
46345         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46346         replacement.
46347         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46348         (_gl_register_fd): No need to check stat if open already filters
46349         all directories.
46350         (fchdir): Fix error condition to match POSIX.
46351         * modules/fchdir (Depends-on): Add sys_stat.
46352         * doc/posix-functions/open.texi (open): Document the limitation.
46353         * modules/fchdir-tests: New file.
46354         * tests/test-fchdir.c: Likewise.
46355
46356         canonicalize: allow cross-testing from cygwin to mingw
46357         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46358         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46359         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46360         Likewise.
46361         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46362         target does not support symlinks.
46363         * tests/test-canonicalize-lgpl.sh: Likewise.
46364
46365         chown: avoid compilation warning on mingw
46366         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46367         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46368         mingw.
46369         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46370         * modules/chown (Depends-on): Add errno.
46371
46372 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46373
46374         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46375         command.
46376
46377 2009-08-31  Jim Meyering  <meyering@redhat.com>
46378
46379         canonicalize: remove useless initialization
46380         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46381         initialization of local, "end".
46382
46383 2009-08-30  Bruno Haible  <bruno@clisp.org>
46384
46385         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46386         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46387         ENOSYS.
46388
46389 2009-08-30  Bruno Haible  <bruno@clisp.org>
46390
46391         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46392         /usr/xpg4/bin/tr when it exists.
46393         * tests/test-pipe-filter-gi1.sh: Likewise.
46394
46395 2009-08-30  Bruno Haible  <bruno@clisp.org>
46396
46397         Work around deficient /usr/bin/id program on Solaris.
46398         * tests/test-file-has-acl.sh (ID): New variable.
46399         * tests/test-set-mode-acl.sh (ID): Likewise.
46400         * tests/test-copy-acl.sh (ID): Likewise.
46401         * tests/test-copy-file.sh (ID): Likewise.
46402
46403 2009-08-30  Bruno Haible  <bruno@clisp.org>
46404
46405         New module 'xstriconveh'.
46406         * lib/xstriconveh.h: New file.
46407         * lib/xstriconveh.c: New file.
46408         * modules/xstriconveh: New file.
46409
46410 2009-08-30  Bruno Haible  <bruno@clisp.org>
46411
46412         Make it easier to use mem_cd_iconveh.
46413         * lib/striconveh.h (iconveh_t): New type.
46414         (iconveh_open, iconveh_close): New declarations.
46415         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46416         with a single 'const iconveh_t *' argument.
46417         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46418         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46419         with a single 'const iconveh_t *' argument.
46420         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46421         * tests/test-striconveh.c (main): Update.
46422         * NEWS: Mention the change.
46423
46424 2009-08-30  Bruno Haible  <bruno@clisp.org>
46425
46426         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46427         problem.
46428
46429 2009-08-30  Bruno Haible  <bruno@clisp.org>
46430
46431         Work around iconv_open problem on Solaris.
46432         * lib/iconv_open-solaris.gperf: New file.
46433         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46434         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46435         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46436         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46437         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46438         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46439
46440 2009-08-29  Jim Meyering  <meyering@redhat.com>
46441
46442         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46443         * top/maint.mk (cvs-check): Remove target; it was just an alias
46444         to the better-named vc-diff-check.
46445         (maintainer-distcheck): Remove rule.  It was used only from
46446         the (alpha/beta/major) target, and all of its commands but one
46447         were coreutils-specific.
46448         (vc-dist): Remove rule.
46449         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46450         Run vc-diff-check, not vc-dist.
46451         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46452
46453 2009-08-27  Bruno Haible  <bruno@clisp.org>
46454
46455         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46456         of 0.
46457
46458 2009-08-27  Bruno Haible  <bruno@clisp.org>
46459
46460         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46461         compilers.
46462         * doc/func.texi: Document the SunPRO C bug.
46463
46464 2009-08-27  Bruno Haible  <bruno@clisp.org>
46465
46466         Fix link error on Solaris.
46467         * tests/test-parse-duration.c (xstrdup): Remove function.
46468
46469 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46470
46471         ignore-value: handle pointer types, too
46472         * lib/ignore-value.h (__attribute__): Remove definition.
46473         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46474         of a more concise and more-often effective "(void) i" statement.
46475         (ignore_ptr): New function to suppress warnings from functions that
46476         return pointers, and to make it explicit that one function doesn't
46477         handle all cases.
46478
46479 2009-08-25  Bruno Haible  <bruno@clisp.org>
46480
46481         dup2: work around a Linux bug.
46482         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46483         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46484         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46485         Reported by Simon Josefsson.
46486
46487 2009-08-25  Jim Meyering  <meyering@redhat.com>
46488
46489         libguestfs uses gnulib
46490         * users.txt: Add libguestfs.
46491
46492 2009-08-24  Eric Blake  <ebb9@byu.net>
46493
46494         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46495         * lib/pipe2.c (includes): Add binary-io.h.
46496         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46497
46498 2009-08-24  Bruno Haible  <bruno@clisp.org>
46499
46500         Tolerate declared but missing accept4 syscall.
46501         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46502         available.
46503         * lib/sys_socket.in.h (accept4): If the function is already present,
46504         override it.
46505         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46506         * modules/accept4 (Makefile.am): Compile accept4.c always.
46507         Reported by Paolo Bonzini and Eric Blake.
46508
46509 2009-08-23  Bruno Haible  <bruno@clisp.org>
46510
46511         New module 'accept4'.
46512         * lib/sys_socket.in.h (accept4): New declaration.
46513         * lib/accept4.c: New file.
46514         * m4/accept4.m4: New file.
46515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46516         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46517         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46518         HAVE_ACCEPT4.
46519         * modules/accept4: New file.
46520         * doc/glibc-functions/accept4.texi: Mention the new module.
46521
46522 2009-08-24  Jim Meyering  <meyering@redhat.com>
46523
46524         progname: also set global program_invocation_name, when possible
46525         Before this change, a libtool-enabled program that calls glibc's
46526         error function would report the program name as
46527         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46528         * modules/progname (configure.ac): Check for a declaration of
46529         program_invocation_name.
46530         * lib/progname.c:  Include <errno.h>.
46531         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46532         Set program_invocation_name.
46533
46534 2009-08-23  Bruno Haible  <bruno@clisp.org>
46535
46536         * lib/dup3.c: Include <string.h>.
46537
46538 2009-08-23  Bruno Haible  <bruno@clisp.org>
46539
46540         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46541         * lib/pipe2.c (pipe2): Likewise.
46542         Suggested by Eric Blake.
46543
46544 2009-08-23  Bruno Haible  <bruno@clisp.org>
46545
46546         Tolerate declared but missing dup3 syscall.
46547         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46548         * lib/unistd.in.h (dup3): If the function is already present,
46549         override it.
46550         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46551         * modules/dup3 (Makefile.am): Compile dup3.c always.
46552         Reported by Paolo Bonzini.
46553
46554 2009-08-23  Bruno Haible  <bruno@clisp.org>
46555
46556         Tolerate declared but missing pipe2 syscall.
46557         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46558         available.
46559         * lib/unistd.in.h (pipe2): If the function is already present,
46560         override it.
46561         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46562         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46563         Reported by Paolo Bonzini.
46564
46565 2009-08-23  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/pipe2.c (pipe2): Move #ifs inside function.
46568
46569 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46570
46571         quotearg: document limitations of quote_these_too
46572         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46573         those limitations are created.
46574         * lib/quotearg.h (set_char_quoting): Document that digits and
46575         letters that are special after backslash are not permitted.
46576         (quotearg_char): Cross-reference set_char_quoting documentation.
46577
46578 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46579
46580         quotearg: implement custom_quoting_style
46581         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46582         right_quote fields.
46583         (set_custom_quoting): New public function.
46584         (quotearg_buffer_restyled): Add left_quote and right_quote
46585         arguments, handle them very much like locale quoting, and update
46586         all uses.
46587         (quotearg_n_custom): New public function.
46588         (quotearg_n_custom_mem): New public function.
46589         (quotearg_custom): New public function.
46590         (quotearg_custom_mem): New public function.
46591         * lib/quotearg.h: Prototype and document new public functions.
46592         (enum quoting_style): For escape_quoting_style and
46593         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46594         ignored even though they're otherwise like c_quoting_style.
46595         Add custom_quoting_style member and document with comparison to
46596         clocale_quoting_style.
46597         * tests/test-quotearg.c (custom_quotes): New array.
46598         (custom_results): New array.
46599         (main): Extend to test custom quoting.
46600
46601 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46602
46603         quotearg: fix right quote escaping when it's in quote_these_too
46604         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46605         quote, be sure to prepend only one backslash.
46606         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46607         (main): Test it.
46608
46609 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46610
46611         quotearg-tests: test escaping of embedded locale quotes
46612         * tests/test-quotearg.c (struct result_strings): Add member for
46613         new input.
46614         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46615         (inputs): Add new input.
46616         (results_g): Add expected results.
46617         (flag_results): Likewise.
46618         (locale_results): Likewise.
46619         (compare_strings): Check those.
46620
46621 2009-08-23  Bruno Haible  <bruno@clisp.org>
46622
46623         Tests for module 'dup3'.
46624         * modules/dup3-tests: New file.
46625         * tests/test-dup3.c: New file.
46626
46627         New module 'dup3'.
46628         * lib/unistd.in.h (dup3): New declaration.
46629         * lib/dup3.c: New file.
46630         * m4/dup3.m4: New file.
46631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46632         HAVE_DUP3.
46633         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46634         * modules/dup3: New file.
46635         * doc/glibc-functions/dup3.texi: Mention the new module.
46636
46637 2009-08-23  Bruno Haible  <bruno@clisp.org>
46638
46639         Tweak the dup2 test.
46640         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46641         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46642         the test file is still empty. Fix argument order of lseek.
46643
46644 2009-08-23  Bruno Haible  <bruno@clisp.org>
46645
46646         Avoid test link errors when the modules getopt-gnu, gettext are used.
46647         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46649
46650 2009-08-23  Bruno Haible  <bruno@clisp.org>
46651
46652         Fix getdtablesize() on mingw.
46653         * lib/getdtablesize.c (getdtablesize): Implement differently.
46654         * lib/unistd.in.h (getdtablesize): Improve comment.
46655
46656 2009-08-23  Bruno Haible  <bruno@clisp.org>
46657
46658         New module 'mkostemp'.
46659         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46660         * lib/stdlib.in.h (mksotemp): New declaration.
46661         * lib/mkostemp.c: New file, from glibc with modifications.
46662         * lib/tempname.h (GT_FILE): Remove outdated comment.
46663         (gen_tempname): Add flags argument.
46664         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46665         (__GT_FILE): Map to 1.
46666         (small_open, large_open): Remove macros.
46667         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46668         * lib/mkstemp.c (mkstemp): Update.
46669         * lib/mkdtemp.c (mkdtemp): Likewise.
46670         * m4/mkostemp.m4: New file.
46671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46672         HAVE_MKOSTEMP.
46673         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46674         HAVE_MKOSTEMP.
46675         * modules/mkostemp: New file, based on modules/mkstemp.
46676         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46677         * NEWS: Mention the change.
46678
46679 2009-08-23  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46682         Reported by Eric Blake.
46683
46684 2009-08-23  Bruno Haible  <bruno@clisp.org>
46685
46686         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46687         Reported by Eric Blake.
46688
46689 2009-08-23  Bruno Haible  <bruno@clisp.org>
46690
46691         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46692         * modules/pipe2 (Depends-on): Likewise.
46693
46694 2009-08-23  Eric Blake  <ebb9@byu.net>
46695
46696         fcntl-h: add O_TTY_INIT support
46697         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46698         * tests/test-fcntl-h.c (o): Test it.
46699         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46700
46701         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46702         * modules/fcntl: Move <fcntl.h> header replacement...
46703         * modules/fcntl-h: ...to new name, so as not to collide with
46704         like-named function.
46705         * tests/test-fcntl.c: Rename...
46706         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46707         * modules/fcntl-tests: Rename...
46708         * modules/fcntl-h-tests: ...to this.  Update test file name.
46709         * modules/chdir-long (Depends-on): Update clients.
46710         * modules/chdir-safer (Depends-on): Likewise.
46711         * modules/fcntl-safer (Depends-on): Likewise.
46712         * modules/fts (Depends-on): Likewise.
46713         * modules/mkancesdirs (Depends-on): Likewise.
46714         * modules/mkdir-p (Depends-on): Likewise.
46715         * modules/open (Depends-on): Likewise.
46716         * modules/savewd (Depends-on): Likewise.
46717         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46718         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46719
46720 2009-08-22  Bruno Haible  <bruno@clisp.org>
46721
46722         * modules/binary-io (License): Relicense under LGPL.
46723         * modules/pipe2 (License): Likewise.
46724
46725 2009-08-22  Bruno Haible  <bruno@clisp.org>
46726
46727         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46728         return value.
46729         * lib/pipe-filter-gi.c (filter_init): Likewise.
46730         Reported by Eric Blake.
46731
46732 2009-08-22  Bruno Haible  <bruno@clisp.org>
46733
46734         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46735         * modules/pipe (Depends-on): Add pipe2.
46736
46737 2009-08-22  Bruno Haible  <bruno@clisp.org>
46738
46739         Tests for module 'pipe2'.
46740         * modules/pipe2-tests: New file.
46741         * tests/test-pipe2.c: New file.
46742
46743         New module 'pipe2'.
46744         * lib/unistd.in.h (pipe2): New declaration.
46745         * lib/pipe2.c: New file.
46746         * m4/pipe2.m4: New file.
46747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46748         HAVE_PIPE2.
46749         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46750         * modules/pipe2: New file.
46751         * doc/glibc-functions/pipe2.texi: Mention the new module.
46752
46753 2009-08-22  Bruno Haible  <bruno@clisp.org>
46754
46755         Reference some new glibc functions.
46756         * doc/glibc-functions/accept4.texi: New file.
46757         * doc/glibc-functions/dup3.texi: New file.
46758         * doc/glibc-functions/mkostemp.texi: New file.
46759         * doc/glibc-functions/pipe2.texi: New file.
46760         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46761         (Glibc sys/socket.h): Refer to accept4.
46762         (Glibc unistd.h): Refer to dup3, pipe2.
46763         Reported by Eric Blake.
46764
46765 2009-08-22  Jim Meyering  <meyering@redhat.com>
46766             Bruno Haible  <bruno@clisp.org>
46767
46768         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46769         This makes it so packages using automake-1.11's silent-rules option
46770         can print e.g., a single "GEN    configmake.h" line, rather than
46771         the 30+ statements that perform the job.  If you want to see the
46772         actual commands, you can still run "make V=1".
46773         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46774         so that make output is abbreviated when those variables are defined
46775         appropriately.
46776         * modules/argz: Likewise.
46777         * modules/arpa_inet: Likewise.
46778         * modules/byteswap: Likewise.
46779         * modules/configmake: Likewise.
46780         * modules/dirent: Likewise.
46781         * modules/errno: Likewise.
46782         * modules/fcntl: Likewise.
46783         * modules/float: Likewise.
46784         * modules/fnmatch: Likewise.
46785         * modules/getopt-posix: Likewise.
46786         * modules/glob: Likewise.
46787         * modules/iconv_open: Likewise.
46788         * modules/inttypes: Likewise.
46789         * modules/localcharset: Likewise.
46790         * modules/locale: Likewise.
46791         * modules/math: Likewise.
46792         * modules/netdb: Likewise.
46793         * modules/netinet_in: Likewise.
46794         * modules/poll: Likewise.
46795         * modules/posix_spawnp-tests: Likewise.
46796         * modules/sched: Likewise.
46797         * modules/search: Likewise.
46798         * modules/selinux-h: Likewise.
46799         * modules/signal: Likewise.
46800         * modules/spawn: Likewise.
46801         * modules/stdarg: Likewise.
46802         * modules/stdbool: Likewise.
46803         * modules/stddef: Likewise.
46804         * modules/stdint: Likewise.
46805         * modules/stdio: Likewise.
46806         * modules/stdlib: Likewise.
46807         * modules/string: Likewise.
46808         * modules/strings: Likewise.
46809         * modules/sys_file: Likewise.
46810         * modules/sys_ioctl: Likewise.
46811         * modules/sys_select: Likewise.
46812         * modules/sys_socket: Likewise.
46813         * modules/sys_stat: Likewise.
46814         * modules/sys_time: Likewise.
46815         * modules/sys_times: Likewise.
46816         * modules/sys_utsname: Likewise.
46817         * modules/sys_wait: Likewise.
46818         * modules/sysexits: Likewise.
46819         * modules/time: Likewise.
46820         * modules/unistd: Likewise.
46821         * modules/wchar: Likewise.
46822         * modules/wctype: Likewise.
46823
46824 2009-08-22  Jim Meyering  <meyering@redhat.com>
46825
46826         announce-gen: detect write failure
46827         * build-aux/announce-gen: Add Coda at end.
46828         Remove equivalent-but-more-verbose block at top.
46829
46830 2009-08-19  Akim Demaille  <demaille@gostai.com>
46831
46832         bootstrap: --help to stdout.
46833         * bootstrap (usage): Don't send --help to stderr.
46834         Use a here doc instead of a long string.
46835
46836 2009-08-21  Eric Blake  <ebb9@byu.net>
46837
46838         test-popen-safer: split from test-popen
46839         * tests/test-popen.c (main): Move...
46840         * tests/test-popen.h: ...into new file.
46841         * tests/test-popen-safer2.c: New file.
46842         * modules/popen-tests (Files): Add test-popen.h.
46843         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46844         Suggested by Bruno Haible.
46845
46846         test-fcntl-safer: split from test-open
46847         * tests/test-open.c (main): Move...
46848         * tests/test-open.h: ...into new file.
46849         * tests/test-fcntl-safer.c: New file.
46850         * modules/open-tests (Files): Add test-open.h.
46851         * modules/fcntl-safer-tests: New file.
46852         Suggested by Bruno Haible.
46853
46854         test-fopen-safer: split from test-fopen
46855         * tests/test-fopen.c (main): Move...
46856         * tests/test-fopen.h: ...into new file.
46857         * tests/test-fopen-safer.c: New file.
46858         * modules/fopen-tests (Files): Add test-fopen.h.
46859         * modules/fopen-safer-tests: New file.
46860         Suggested by Bruno Haible.
46861
46862 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46863
46864         popen-safer: test O_CLOEXEC at run-time.
46865         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46866
46867 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46868
46869         fcntl: move more flags to the header
46870         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46871         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46872         * lib/fcntl.in.h: Do both things here.
46873
46874 2009-08-21  Jim Meyering  <meyering@redhat.com>
46875
46876         consistently remove $@-t before redirecting to it
46877         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46878         * modules/alloca-opt: Likewise.
46879         * modules/byteswap: Likewise.
46880         * modules/fnmatch: Likewise.
46881         * modules/getopt-posix: Likewise.
46882         * modules/glob: Likewise.
46883         * modules/poll: Likewise.
46884         * modules/posix_spawnp-tests: Likewise.
46885         * modules/sys_socket: Likewise.
46886         * modules/sysexits: Likewise.
46887
46888 2009-08-21  Eric Blake  <ebb9@byu.net>
46889
46890         popen: simplify access to original popen
46891         * lib/popen.c (rpl_popen): No need to worry about popen being a
46892         macro.
46893         Reported by Bruno Haible.
46894
46895 2009-08-20  Eric Blake  <ebb9@byu.net>
46896
46897         build: avoid some compiler warnings
46898         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46899         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46900         type.
46901         (new_exclude_segment, excluded_file_pattern_p)
46902         (excluded_file_name_p): Reduce scope.
46903         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46904         old-style declaration.
46905
46906 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46907
46908         * tests/test-exclude1.sh: Handle Windows EOL.
46909         * tests/test-exclude2.sh: Likewise.
46910         * tests/test-exclude3.sh: Likewise.
46911         * tests/test-exclude4.sh: Likewise.
46912         * tests/test-exclude5.sh: Likewise.
46913         * tests/test-exclude6.sh: Likewise.
46914         * tests/test-exclude7.sh: Likewise.
46915
46916 2009-08-19  Akim Demaille  <demaille@gostai.com>
46917
46918         bootstrap: find sha1sum when named gsha1sum.
46919         * bootstrap (find_tool): New.
46920         ($SHA1SUM): New.
46921         Use it.
46922
46923 2009-08-20  Jim Meyering  <meyering@redhat.com>
46924
46925         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46926         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46927         expression that converts "." in a file name to "\." in the resulting
46928         regexp.  Start with a dummy statement, so that prior shell variable
46929         definitions are expanded portably.  Reported by Simon Josefsson.
46930
46931 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46932
46933         Fix polling for writeability of a screen buffer.
46934         * lib/poll.c: Distinguish input and screen buffers for the
46935         Win32 implementation.
46936         * lib/select.c: Likewise.
46937
46938 2009-08-19  Eric Blake  <ebb9@byu.net>
46939
46940         popen-safer: prevent popen from clobbering std descriptors
46941         * modules/popen-safer: New file.
46942         * lib/popen-safer.c: Likewise.
46943         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46944         * lib/stdio--.h (popen): Provide override.
46945         * lib/stdio-safer.h (popen_safer): Provide declaration.
46946         * tests/test-popen.c (includes): Partially test this.
46947         * modules/popen-safer-tests: New file, for more tests.
46948         * tests/test-popen-safer.c: Likewise.
46949         * MODULES.html.sh (file stream based Input/Output): Mention it.
46950
46951         tests: test some of the *-safer modules
46952         * modules/fopen-safer (Depends-on): Add fopen.
46953         * modules/fcntl-safer (Depends-on): Add fcntl.
46954         * modules/stdlib-safer (Depends-on): Add stdlib.
46955         (configure.ac): Set indicator.
46956         * modules/unistd-safer (configure.ac): Likewise.
46957         * modules/tmpfile-safer (configure.ac): Likewise.
46958         (Depends-on): Add tmpfile.
46959         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46960         active.
46961         * tests/test-fopen.c (includes): Test safer versions when they are
46962         in use.
46963         * tests/test-open.c (includes): Likewise.
46964
46965         popen: fix cygwin 1.5 bug when stdin closed
46966         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46967         * modules/popen: New file.
46968         * modules/popen-tests: Likewise.
46969         * tests/test-popen.c: Likewise.
46970         * m4/popen.m4: Likewise.
46971         * lib/popen.c: Likewise.
46972         * lib/stdio.in.h (popen): New declaration.
46973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46974         * modules/stdio (Makefile.am): Likewise.
46975         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46976
46977 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46978
46979         maint.mk: give full control over update-copyright exclusions
46980         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46981         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46982         (update-copyright): Don't force inclusion of top-level
46983         ChangeLog.  Don't force exclusion of all COPYING files, but make
46984         them the default exclusion instead.
46985
46986 2009-08-16  Bruno Haible  <bruno@clisp.org>
46987
46988         Fix test failures on Solaris 10.
46989         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46990         tests when Solaris iconv() is used.
46991         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46992         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46993         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46994         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46995         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46996
46997 2009-08-16  Bruno Haible  <bruno@clisp.org>
46998
46999         Fix test failures on Solaris 10.
47000         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47001         'tr' program and pass it as first argument.
47002         * tests/test-pipe-filter-gi1.sh: Likewise.
47003         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47004         program as first argument.
47005         * tests/test-pipe-filter-gi1.c (main): Likewise.
47006
47007 2009-08-16  Eric Blake  <ebb9@byu.net>
47008
47009         fpurge: fix previous commits
47010         * modules/fpurge (Makefile.am): Make replacement conditional,
47011         partially reverting 2007-04-29 change; missed in previous
47012         attempt.
47013         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47014         is missing.
47015
47016 2009-08-16  Bruno Haible  <bruno@clisp.org>
47017
47018         Clarify fpurge's effect on the file position.
47019         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47020         * tests/test-fpurge.c (main): Make a second pass for checking the file
47021         position.
47022
47023 2009-08-16  Bruno Haible  <bruno@clisp.org>
47024
47025         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47026         declaration of fpurge is missing.
47027         * tests/test-fpurge.c (main): Check that the file has not more contents
47028         than expected. Close the file before removing it.
47029
47030 2009-08-15  Eric Blake  <ebb9@byu.net>
47031
47032         fpurge: don't wrap working cygwin implementation
47033         * lib/fpurge.c (fpurge): Fix comment typo.
47034         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47035         1.7 to avoid replacement.
47036         * tests/test-fpurge.c (main): Enhance test.
47037
47038 2009-08-15  Eric Blake  <ebb9@byu.net>
47039         and Jim Meyering  <meyering@redhat.com>
47040
47041         test-update-copyright: skip if perl is insufficient
47042         * tests/test-update-copyright.sh: Failure to run maintainer tool
47043         should not cause testsuite failure on cygwin 1.5.
47044
47045 2009-08-14  Eric Blake  <ebb9@byu.net>
47046
47047         doc: mention more functions added in cygwin 1.7.0
47048         * doc/posix-headers/limits.texi (limits.h): Update for recent
47049         cygwin additions.
47050         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47051         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47052         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47053         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47054         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47055
47056 2009-08-14  Eric Blake  <ebb9@byu.net>
47057
47058         maint.mk: simplify update-copyright rule
47059         * top/maint.mk (update-copyright-local): Delete, and document how
47060         to do it in cfg.mk instead.
47061         (update-copyright-exclude-regexp): Delete, and document how to do
47062         it in .x-update-copyright instead.
47063         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47064         exclude ChangeLog.
47065
47066 2009-08-14  Bruno Haible  <bruno@clisp.org>
47067
47068         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47069
47070 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47071
47072         maint.mk: support update-copyright-env
47073         * top/maint.mk (update-copyright-env): Define place-holder.
47074         (update-copyright): Expand $(update-copyright-env) before
47075         invoking update-copyright.
47076
47077 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47078
47079         update-copyright: implement forced reformatting
47080         * build-aux/update-copyright: Implement and document
47081         UPDATE_COPYRIGHT_FORCE.
47082         * tests/test-update-copyright.sh: Test it.
47083
47084 2009-08-14  Eric Blake  <ebb9@byu.net>
47085         and Bruno Haible  <bruno@clisp.org>
47086
47087         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47088         * tests/test-locale.c: Revert previous patch related to NULL.
47089         * tests/test-stdio.c: Likewise.
47090         * tests/test-stdlib.c: Likewise.
47091         * tests/test-string.c: Likewise.
47092         * tests/test-unistd.c: Likewise.
47093         * modules/time-tests (Depends-on): Add verify.
47094         * modules/wchar-tests (Depends-on): Likewise.
47095         * tests/test-time.c: Test for NULL compliance.
47096         * tests/test-wchar.c: Likewise.
47097         * modules/locale (Depends-on): Add stddef.
47098         * modules/stdio (Depends-on): Likewise.
47099         * modules/stdlib (Depends-on): Likewise.
47100         * modules/string (Depends-on): Likewise.
47101         * modules/time (Depends-on): Likewise.
47102         * modules/unistd (Depends-on): Likewise.
47103         * modules/wchar (Depends-on): Likewise.
47104         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47105         * lib/stdlib.in.h (includes): Likewise.
47106         * lib/string.in.h (includes): Likewise.
47107         * lib/time.in.h (includes): Likewise.
47108         * lib/unistd.in.h (includes): Likewise.
47109         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47110         replaced.
47111         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47112         * m4/stddef_h.m4: New file.
47113         * modules/stddef: Likewise.
47114         * lib/stddef.in.h: Likewise.
47115         * modules/stddef-tests: Likewise.
47116         * tests/test-stddef.c: Likewise.
47117         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47118         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47119         * doc/posix-headers/locale.texi (locale.h): Likewise.
47120         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47121         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47122         * doc/posix-headers/string.texi (string.h): Likewise.
47123         * doc/posix-headers/time.texi (time.h): Likewise.
47124         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47125         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47126
47127 2009-08-14  Eric Blake  <ebb9@byu.net>
47128
47129         doc: improve git diff of texinfo files
47130         * .gitattributes: Add rule for *.texi files, with hint on how to
47131         use it.
47132         Copied from m4, and based on a report by Bruno Haible.
47133
47134 2009-08-14  Bruno Haible  <bruno@clisp.org>
47135
47136         Disable multithread support by default on Cygwin 1.5.x for real.
47137         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47138
47139 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47140
47141         update-copyright: much ado about intervals
47142         * build-aux/update-copyright: Implement and document
47143         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47144         of copyright year intervals.
47145         Also, document UPDATE_COPYRIGHT_YEAR.
47146         * tests/test-update-copyright.sh: Test it.
47147
47148         update-copyright: convert 2-digit to 4-digit years
47149         * build-aux/update-copyright: Implement and document.
47150         * tests/test-update-copyright.sh: Update.
47151
47152 2009-08-14  Jim Meyering  <meyering@redhat.com>
47153
47154         test-exclude: avoid coreutils "make check" failure
47155         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47156         just as in test-argmatch.c.
47157
47158 2009-08-13  Eric Blake  <ebb9@byu.net>
47159
47160         test-dup2: fix bad assumption
47161         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47162         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47163
47164         test-version-etc: fix CRLF portability issue
47165         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47166         recognize \r.
47167         * tests/test-argp-version-etc-1.sh: Likewise.
47168
47169         getopt: update client modules
47170         * modules/argp (Depends-on): Use getopt-gnu.
47171         * modules/git-merge-changelog (Depends-on): Likewise.
47172         * modules/long-options (Depends-on): Likewise.
47173         * modules/xstrtol (Depends-on): Likewise.
47174
47175 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47176
47177         * tests/test-version-etc.sh: Don't fail on different
47178         project/version.  Don't fail on CRLF differences.  Rewrite to use
47179         multiple -e instead of multiple sed forks, suggested by Eric Blake
47180         <ebb9@byu.net>.
47181         * tests/test-argp-version-etc-1.sh: Likewise.
47182
47183 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47184
47185         * tests/test-version-etc.sh: Don't fail on different
47186         project/version.
47187
47188 2009-08-12  Bruno Haible  <bruno@clisp.org>
47189
47190         Tests for modules 'getopt-posix', 'getopt-gnu'.
47191         * modules/getopt-posix-tests: New file.
47192         * tests/test-getopt.c: New file.
47193         * tests/test-getopt.h: New file.
47194         * tests/test-getopt_long.h: New file.
47195
47196         New modules 'getopt-posix', 'getopt-gnu'.
47197         * modules/getopt-gnu: New file, renamed from modules/getopt.
47198         * modules/getopt-posix: New file.
47199         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47200         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47201         (gl_GETOPT): Remove macro.
47202         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47203         Disable the test against BSD systems that declare optreset. Test
47204         against mingw bug. Test against lack of support of optional arguments
47205         on many platforms.
47206         * doc/glibc-headers/getopt.texi: Update module name and list of
47207         relevant platforms.
47208         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47209         'getopt-gnu' and more portability problems.
47210         * NEWS: Mention the changes.
47211
47212 2009-08-12  Bruno Haible  <bruno@clisp.org>
47213
47214         Ensure that optarg etc. get declared by <unistd.h>.
47215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47216         AC_USE_SYSTEM_EXTENSIONS.
47217         * modules/getopt (Depends-on): Add 'extensions'.
47218
47219 2009-08-12  Bruno Haible  <bruno@clisp.org>
47220
47221         Avoid test link errors.
47222         * modules/pipe-filter-ii-tests (Makefile.am): Define
47223         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47224         * modules/pipe-filter-gi-tests (Makefile.am): Define
47225         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47227
47228 2009-08-12  Bruno Haible  <bruno@clisp.org>
47229
47230         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47231         gl_GETOPT_SUBSTITUTE before.
47232         (gl_GETOPT): Use it.
47233         * m4/argp.m4 (gl_ARGP): Update.
47234         Reported by Sergey Poznyakoff.
47235
47236         * m4/getopt.m4: Reorder macros.
47237         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47238         (gl_GETOPT_SUBSTITUTE): Remove macro.
47239
47240 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47241
47242         Minor improvement in gitlog-to-changelog
47243
47244         * build-aux/gitlog-to-changelog: New option `--format' makes
47245         output format string configurable.
47246
47247 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47248
47249         Optimize exclude: use hash tables for non-wildcard patterns.
47250
47251         * lib/exclude.c: Include hash.h and mbuiter.h
47252         (struct exclude_pattern, exclude_segment): New data types.
47253         (struct exclude): Rewrite.
47254         (fnmatch_pattern_has_wildcards): New function.
47255         (new_exclude_segment, free_exclude_segment): New functions.
47256         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47257         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47258         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47259         * modules/exclude: Depend on hash and mbuiter.
47260
47261         * modules/exclude-tests: New file.
47262         * tests/test-exclude.c: New file.
47263         * tests/test-exclude1.sh: New file.
47264         * tests/test-exclude2.sh: New file.
47265         * tests/test-exclude3.sh: New file.
47266         * tests/test-exclude4.sh: New file.
47267         * tests/test-exclude5.sh: New file.
47268         * tests/test-exclude6.sh: New file.
47269         * tests/test-exclude7.sh: New file.
47270
47271 2009-08-12  Bruno Haible  <bruno@clisp.org>
47272
47273         Ensure that getopt() gets declared by <unistd.h>.
47274         * lib/unistd.in.h: Conditionally include getopt.h.
47275         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47276         Set GNULIB_UNISTD_H_GETOPT.
47277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47278         GNULIB_UNISTD_H_GETOPT.
47279         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47280
47281 2009-08-12  Bruno Haible  <bruno@clisp.org>
47282
47283         Clarify logic.
47284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47285         gl_replace_getopt instead of GETOPT_H.
47286
47287 2009-08-12  Bruno Haible  <bruno@clisp.org>
47288
47289         * m4/getopt.m4: Add comments.
47290
47291 2009-08-12  Bruno Haible  <bruno@clisp.org>
47292
47293         Disable multithread support by default on Cygwin 1.5.x.
47294         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47295         set gl_use_threads=no if not specified otherwise.
47296
47297 2009-08-11  Bruno Haible  <bruno@clisp.org>
47298
47299         Avoid compilation error on NetBSD 5.0.
47300         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47301         * tests/test-stdio.c: Likewise.
47302         * tests/test-stdlib.c: Likewise.
47303         * tests/test-string.c: Likewise.
47304         * tests/test-unistd.c: Likewise.
47305         Reported by Greg Troxel <gdt@ir.bbn.com>
47306         at <https://savannah.gnu.org/support/?106973>.
47307
47308 2009-08-11  Bruno Haible  <bruno@clisp.org>
47309
47310         * modules/dup2-tests (Depends-on): Remove close.
47311
47312         Undo 2009-07-19 commit.
47313         * modules/acl-tests (Depends-on): Remove close.
47314         * modules/binary-io-tests (Depends-on): Likewise.
47315         * modules/closein-tests (Depends-on): Likewise.
47316         * modules/flock-tests (Depends-on): Likewise.
47317         * modules/fsync-tests (Depends-on): Likewise.
47318         * modules/lseek-tests (Depends-on): Likewise.
47319         * modules/pipe-tests (Depends-on): Likewise.
47320         * modules/posix_spawn-tests (Depends-on): Likewise.
47321         * modules/posix_spawnp-tests (Depends-on): Likewise.
47322         * modules/stat-time-tests (Depends-on): Likewise.
47323         * modules/yesno-tests (Depends-on): Likewise.
47324
47325 2009-08-10  Bruno Haible  <bruno@clisp.org>
47326
47327         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47328
47329 2009-08-10  Bruno Haible  <bruno@clisp.org>
47330
47331         Fix a gcc warning.
47332         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47333
47334 2009-08-10  Bruno Haible  <bruno@clisp.org>
47335
47336         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47337         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47338         not only the first time.
47339         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47340         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47341         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47342         is 1, not only the the first time.
47343
47344 2009-08-10  Bruno Haible  <bruno@clisp.org>
47345
47346         Make it possible to use module 'gethostname' without module 'close'.
47347         * lib/unistd.in.h (close): Evoke a link error only if
47348         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47350         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47351         * modules/unistd (Makefile.am): Substitute
47352         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47353         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47354         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47355         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47356         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47357         * modules/sys_ioctl (Makefile.am): Substitute
47358         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47359         * modules/socket (configure.ac): On native Windows, set
47360         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47361         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47362         Reported by Sam Steingold <sds@gnu.org>.
47363
47364 2009-08-10  Bruno Haible  <bruno@clisp.org>
47365
47366         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47367         * modules/ioctl (configure.ac): Likewise.
47368
47369 2009-08-10  Bruno Haible  <bruno@clisp.org>
47370
47371         Avoid collision between gnulib wrapper and libintl wrapper.
47372         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47373         already defined in intl/printf.c.
47374         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47375         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47376
47377 2009-08-09  Bruno Haible  <bruno@clisp.org>
47378
47379         Make <sys/select.h> really self-contained, also on Solaris 10.
47380         * lib/sys_select.in.h: Include <string.h>.
47381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47382         Solaris 10 problem.
47383         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47384         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47385         Reported by Jim Meyering.
47386
47387 2009-08-09  Bruno Haible  <bruno@clisp.org>
47388
47389         Avoid warnings from 'aclocal' that are due to a use of macro name
47390         AM_XGETTEXT_OPTION that is not defined in automake.
47391         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47392         automake.
47393         * modules/error (configure.ac): Likewise.
47394         * modules/propername (configure.ac): Likewise.
47395         * modules/vasprintf (configure.ac): Likewise.
47396         * modules/verror (configure.ac): Likewise.
47397         * modules/xprintf (configure.ac): Likewise.
47398         * modules/xvasprintf (configure.ac): Likewise.
47399
47400 2009-08-08  Bruno Haible  <bruno@clisp.org>
47401
47402         Avoid compilation error in C++ mode.
47403         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47404         Reported by Sam Steingold <sds@gnu.org>.
47405
47406 2009-08-08  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47409         for the various Unix platforms.
47410         * doc/posix-headers/limits.texi: Update platforms list regarding
47411         HOST_NAME_MAX.
47412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47413
47414 2009-08-07  Jim Meyering  <meyering@redhat.com>
47415
47416         selinux-at: fix typo in a comment
47417         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47418         Spotted by Paolo Bonzini.
47419
47420         selinux-at: remove redundant m4 code, add documentation
47421         * modules/selinux-at (configure.ac): Remove redundant code.
47422         LIB_SELINUX is already set via the dependent module, selinux-h.
47423         (Include): Add quotes around selinux-at.h.
47424         * lib/selinux-at.h: Add documentation.
47425         Reported by Bruno Haible in
47426         http://marc.info/?l=gnulib-bug&m=124958988300749
47427
47428 2009-08-07  Bruno Haible  <bruno@clisp.org>
47429
47430         Avoid link error on MacOS X 10.3 and 10.4.
47431         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47432         on non-ELF systems.
47433         * lib/argp-pv.c (argp_program_version): Likewise.
47434         Reported by Simon Josefsson.
47435
47436 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47437
47438         * tests/test-version-etc.sh: Use $EXEEXT.
47439
47440 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47441
47442         update-copyright: update documentation to point to maint.mk
47443         * build-aux/update-copyright: Here.
47444
47445 2009-08-06  Jim Meyering  <meyering@redhat.com>
47446
47447         maint.mk: support update-copyright-local
47448         * top/maint.mk (update-copyright-local): Define place-holder.
47449         (update-copyright): Depend on $(update-copyright-local).
47450
47451 2009-08-06  Jim Meyering  <meyering@redhat.com>
47452
47453         selinux-at: new module
47454         Initially written for coreutils, this module will soon be
47455         used by findutils, too.
47456         * MODULES.html.sh [Misc]: Add selinux-at.
47457         * lib/selinux-at.h: New file, from coreutils.
47458         * lib/selinux-at.c: Likewise.
47459         * modules/selinux-at: Likewise.
47460         (License): Change from LGPL to GPL, since it depends
47461         on the GPL'd openat module.
47462
47463         doc: update README
47464         * README: Remove references to cogito.
47465         Remove cvs-repo-updating instructions from 2007.
47466         Don't imply that CVS is better if you have limited disk space.
47467
47468 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47469
47470         update-copyright: support C-style comments
47471         * build-aux/update-copyright: Implement and document.
47472         * tests/test-update-copyright.sh: Test.
47473
47474 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47475
47476         update-copyright: support omitted "(C)"
47477         * build-aux/update-copyright: Implement and document.  Also,
47478         allow variable whitespace before "(C)".
47479         * tests/test-update-copyright.sh: Test.
47480
47481 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47482
47483         update-copyright: don't trip on non-FSF copyright statements
47484         * build-aux/update-copyright: Fix so that the first correctly
47485         formatted FSF copyright statement is recognized no matter what
47486         appears before it.  Update documentation.
47487         * tests/test-update-copyright.sh: Test that.
47488
47489 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47490
47491         update-copyright: clean up code a little
47492         * build-aux/update-copyright: Append "_re" to the name of any
47493         variable holding a regular expression.
47494         Replace "old" and "new" with "stmt" in variable names.
47495         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47496         handled correctly.
47497         Format code more consistently.
47498
47499 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47500
47501         update-copyright-tests: improve portability
47502         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47503         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47504
47505 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47506
47507         update-copyright: support @copyright{} and &copy;
47508         * build-aux/update-copyright: Implement and document.
47509         * tests/test-update-copyright.sh: Test.
47510
47511 2009-08-04  Jim Meyering  <meyering@redhat.com>
47512
47513         update-copyright-tests: correctly test EOL=\r\n handling
47514         * tests/test-update-copyright.sh: Put \r at the end of some lines
47515         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47516
47517         maint.mk: make update-copyright exclusion list more configurable
47518         * top/maint.mk (update-copyright): Default to excluding COPYING,
47519         but allow an override, in case someone does want to update that file.
47520
47521         maint.mk: don't update copyright date in COPYING
47522         * top/maint.mk (update-copyright): Exclude COPYING.
47523
47524         maint.mk: add a copyright-updating rule
47525         * top/maint.mk (update-copyright): New rule.
47526         Derived from coreutils/Makefile.am.
47527
47528         update-copyright: rename some variables
47529         * build-aux/update-copyright: Rename a few variables for clarity.
47530         Tweak syntax.  List Joel E. Denny as coauthor.
47531
47532 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47533
47534         update-copyright: fix bug for 2-digit last year and add tests
47535         * build-aux/update-copyright: Fix bug.
47536         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47537         specified.
47538         * modules/update-copyright-tests: New
47539         * tests/test-update-copyright.sh: New.
47540
47541 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47542
47543         update-copyright: handle leading tabs in line prefix
47544         * build-aux/update-copyright: Count leading tabs as 8 spaces
47545         when computing margin.  This helps with the formatting of
47546         ChangeLogs, for example.
47547         Fix documentation a little.
47548
47549 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47550
47551         update-copyright: support EOL=\r\n
47552         * build-aux/update-copyright: Implement that.
47553
47554 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47555
47556         update-copyright: automatically format copyright statements
47557         * build-aux/update-copyright: Implement that.
47558         Also, be a little more predictable and safer by always failing
47559         when the full copyright format is not perfectly recognized as an
47560         unbroken whole.  Discussed at
47561         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47562         Rewrite documentation.
47563
47564 2009-08-03  Bruno Haible  <bruno@clisp.org>
47565
47566         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47567
47568 2009-08-02  Bruno Haible  <bruno@clisp.org>
47569
47570         Tests for module 'uname'.
47571         * modules/uname-tests: New file.
47572         * tests/test-uname.c: New file.
47573
47574         New module 'uname'.
47575         * lib/uname.c: New file.
47576         * m4/uname.m4: New file.
47577         * modules/uname: New file.
47578         * doc/posix-functions/uname.texi: Mention the new module.
47579
47580 2009-08-02  Bruno Haible  <bruno@clisp.org>
47581
47582         Tests for module 'sys_utsname'.
47583         * modules/sys_utsname-tests: New file.
47584         * tests/test-sys_utsname.c: New file.
47585
47586         New module 'sys_utsname'.
47587         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47588         * m4/sys_utsname_h.m4: New file.
47589         * modules/sys_utsname: New file.
47590         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47591
47592 2009-08-02  Bruno Haible  <bruno@clisp.org>
47593
47594         Implicitly initialize the sockets library.
47595         * lib/gethostname.c: Include sockets.h.
47596         (rpl_gethostname): Invoke gl_sockets_startup.
47597         * lib/socket.c: Include sockets.h.
47598         (rpl_socket): Invoke gl_sockets_startup.
47599         * modules/gethostname (Depends-on): Add sockets.
47600         * modules/socket (Depends-on): Likewise.
47601         * tests/test-poll.c: Don't include sockets.h.
47602         (main): Don't invoke gl_sockets_startup.
47603         * tests/test-select.c: Don't include sockets.h.
47604         (main): Don't invoke gl_sockets_startup.
47605
47606 2009-08-02  Bruno Haible  <bruno@clisp.org>
47607
47608         Allow multiple calls to gl_sockets_startup.
47609         * lib/sockets.c (initialized_sockets_version): New variable.
47610         (gl_sockets_startup): Do nothing if already called for this or a higher
47611         version.
47612         (gl_sockets_cleanup): Reset initialized_sockets_version.
47613
47614 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47615
47616         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47617         different project/version.
47618
47619 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47620             Bruno Haible  <bruno@clisp.org>
47621
47622         Tests for module 'pipe-filter-gi'.
47623         * modules/pipe-filter-gi-tests: New file.
47624         * tests/test-pipe-filter-gi1.sh: New file.
47625         * tests/test-pipe-filter-gi1.c: New file.
47626         * tests/test-pipe-filter-gi2.sh: New file.
47627         * tests/test-pipe-filter-gi2-main.c: New file.
47628         * tests/test-pipe-filter-gi2-child.c: New file.
47629
47630         New module 'pipe-filter-gi'.
47631         * lib/pipe-filter-gi.c: New file.
47632         * modules/pipe-filter-gi: New file.
47633
47634 2009-08-02  Bruno Haible  <bruno@clisp.org>
47635             Paolo Bonzini  <bonzini@gnu.org>
47636
47637         Tests for module 'pipe-filter-ii'.
47638         * modules/pipe-filter-ii-tests: New file.
47639         * tests/test-pipe-filter-ii1.sh: New file.
47640         * tests/test-pipe-filter-ii1.c: New file.
47641         * tests/test-pipe-filter-ii2.sh: New file.
47642         * tests/test-pipe-filter-ii2-main.c: New file.
47643         * tests/test-pipe-filter-ii2-child.c: New file.
47644
47645         New module 'pipe-filter-ii'.
47646         * lib/pipe-filter.h: New file.
47647         * lib/pipe-filter-ii.c: New file.
47648         * lib/pipe-filter-aux.h: New file.
47649         * modules/pipe-filter-ii: New file.
47650
47651 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47652
47653         * lib/gc-libgcrypt.c: Change copyright to FSF.
47654         * lib/gc-gnulib.c: Likewise.
47655
47656 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47657
47658         * lib/gethostname.c: Include limits.h.
47659
47660 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47661             Bruno Haible  <bruno@clisp.org>
47662
47663         Ensure HOST_NAME_MAX as part of the gethostname module.
47664         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47665         define also HOST_NAME_MAX.
47666         * tests/test-gethostname.c: Include <limits.h>.
47667         (main): Check also HOST_NAME_MAX.
47668         * doc/posix-headers/limits.texi: Document the mingw problem.
47669
47670 2009-08-02  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47673         Add comments.
47674
47675 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47676
47677         * lib/gethostname.c: Add Windows wrapper.
47678         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47679         * modules/gethostname: Depend on sys_socket & errno, for also
47680         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47681         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47682
47683 2009-07-31  Jim Meyering  <meyering@redhat.com>
47684
47685         getloadavg: fix symbol name in comment
47686         * lib/getloadavg.c: Correct a typo I introduced when adding
47687         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47688         Matt Kraai spotted the problem.
47689
47690 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47691
47692         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47693         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47694         code also if ! defined N_NAME_POINTER.
47695         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47696         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47697         but the n_name member is a 12-byte array.
47698
47699 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47700
47701         update-copyright: generalize comment handling
47702         * build-aux/update-copyright: Handle copyright statements
47703         within more comment styles.
47704         Document usage.
47705         Report any file with an external copyright holder or parse failure.
47706
47707 2009-07-29  Jim Meyering  <meyering@redhat.com>
47708
47709         mktime: correct setting of REPLACE_MKTIME
47710         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47711
47712         update-copyright: new module
47713         * modules/update-copyright: New file.
47714         * build-aux/update-copyright: New file.
47715         * MODULES.html.sh (maint+release support): Add update-copyright.
47716
47717 2009-07-27  Bruno Haible  <bruno@clisp.org>
47718
47719         Fix compilation error when <ctime> is used and mktime is replaced.
47720         * lib/time.in.h (mktime): New declaration.
47721         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47722         REPLACE_MKTIME instead of defining mktime in config.h.
47723         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47724         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47725         Reported by Ross McFarland <rwmcfa1@neces.com>.
47726
47727 2009-07-27  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47730         Reported by Matt Kraai <mkraai@beckman.com>.
47731
47732 2009-07-25  Jim Meyering  <meyering@redhat.com>
47733
47734         maint.mk: avoid warnings about missing files
47735         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47736         diagnostic when .prev-version does not exist.
47737         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47738         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47739         nonexistent cfg.mk.
47740         Suggestions from Simon Josefsson.
47741
47742 2009-07-25  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47745         defined as macros. Needed on QNX 6.4.1.
47746         Reported by Matt Kraai <mkraai@beckman.com>.
47747
47748 2009-07-23  Jim Meyering  <meyering@redhat.com>
47749
47750         maint.mk: invoke "make dist" with a working value of XZ_OPT
47751         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47752
47753 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47754
47755         Make fseeko.c compile on QNX.
47756         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47757
47758 2009-07-22  Peter Simons  <simons@cryp.to>
47759
47760         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47761         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47762         * lib/md4.h: Likewise.
47763         * lib/md5.h: Likewise.
47764         * lib/sha1.h: Likewise.
47765         * lib/sha256.h: Likewise.
47766         * lib/sha512.h: Likewise.
47767
47768         tests-sha1: don't assign literal string to 'char *' variable
47769         * tests/test-sha1.c (main): Declare locals with "const" to match
47770         attributes of the right hand side.
47771
47772 2009-07-21  Eric Blake  <ebb9@byu.net>
47773
47774         dup2: fix more mingw problems
47775         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47776         fd to itself.
47777         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47778         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47779         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47780         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47781         care of mingw bugs.
47782
47783 2009-07-21  Jim Meyering  <meyering@redhat.com>
47784
47785         vc-list-files: avoid failure when /bin/sh is dash
47786         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47787         On some Debian based systems, /bin/sh is a symlink to dash, and running
47788         this command would omit the "/" following each 'tests' prefix:
47789           dash -x build-aux/vc-list-files -C . tests
47790         That is because bash and dash work differently:
47791           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47792           bash ok
47793           dash odd
47794
47795 2009-07-21  Eric Blake  <ebb9@byu.net>
47796
47797         dup2-tests: test previous patch
47798         * modules/dup2-tests: New file.
47799         * tests/test-dup2.c: Likewise.
47800         * tests/test-open.c (main): Avoid unspecified behavior.
47801         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47802         test.
47803
47804         dup2: work around mingw and cygwin 1.5 bug
47805         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47807         * modules/unistd (Makefile.am): Substitute it.
47808         * lib/unistd.in.h (dup2): Declare the replacement.
47809         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47810         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47811         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47812         * modules/execute (Depends-on): Add dup2.
47813         * modules/fseterr (Depends-on): Likewise.
47814         * modules/pipe (Depends-on): Likewise.
47815         * modules/posix_spawn-internal (Depends-on): Likewise.
47816
47817 2009-07-21  Bruno Haible  <bruno@clisp.org>
47818
47819         * modules/.gitattributes: New file.
47820
47821 2009-07-20  Bruno Haible  <bruno@clisp.org>
47822
47823         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47824         (main): Use it.
47825
47826 2009-07-20  Eric Blake  <ebb9@byu.net>
47827
47828         test-pipe: make a bit more robust.
47829         * tests/test-pipe.c (myerr): Allow error messages regardless of
47830         what we do to stderr.
47831         (test_pipe): Rearrange to avoid deadlock.
47832         (child_main): Try a larger read, to ensure we avoided deadlock.
47833         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47834         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47835         if misused.
47836
47837 2009-07-19  Jim Meyering  <meyering@redhat.com>
47838
47839         fts: avoid false-positive cycle-detection
47840         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47841         for each new command line argument.
47842
47843 2009-07-19  Bruno Haible  <bruno@clisp.org>
47844
47845         Fix build error on mingw with the modules sys_select and unistd.
47846         * modules/acl-tests (Depends-on): Add close.
47847         * modules/binary-io-tests (Depends-on): Likewise.
47848         * modules/closein-tests (Depends-on): Likewise.
47849         * modules/flock-tests (Depends-on): Likewise.
47850         * modules/fsync-tests (Depends-on): Likewise.
47851         * modules/lseek-tests (Depends-on): Likewise.
47852         * modules/pipe-tests (Depends-on): Likewise.
47853         * modules/posix_spawn-tests (Depends-on): Likewise.
47854         * modules/posix_spawnp-tests (Depends-on): Likewise.
47855         * modules/stat-time-tests (Depends-on): Likewise.
47856         * modules/yesno-tests (Depends-on): Likewise.
47857
47858 2009-07-19  Bruno Haible  <bruno@clisp.org>
47859
47860         Unify conditionals.
47861         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47862         macros, not at the compiler macros.
47863         * lib/pipe.c: Likewise.
47864         * lib/execute.c: Likewise.
47865         * lib/spawni.c: Likewise.
47866
47867 2009-07-19  Bruno Haible  <bruno@clisp.org>
47868
47869         Fix handling of closed stdin/stdout/stderr on mingw.
47870         * lib/w32spawn.h: Include unistd.h.
47871         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47872         file descriptor with O_NOINHERIT flag.
47873         (fd_safer_noinherit): New function, based on fd-safer.c.
47874         (dup_safer_noinherit): New function, based on dup-safer.c.
47875         (undup_safer_noinherit): New function.
47876         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47877         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47878         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47879         instead of fd_safer.
47880         * tests/test-pipe.c: Include <windows.h>.
47881         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47882         result.
47883
47884         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47885         from main.
47886         (test_pipe): Pass an extra argument for disambiguation.
47887         (main): Invoke parent_main or child_main.
47888
47889         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47890         consistently.
47891
47892 2009-07-18  Eric Blake  <ebb9@byu.net>
47893
47894         test-pipe: fix mingw build
47895         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47896
47897 2009-07-18  Bruno Haible  <bruno@clisp.org>
47898
47899         * modules/pipe-tests (Makefile.am): Fix typo.
47900
47901 2009-07-18  Eric Blake  <ebb9@byu.net>
47902
47903         error: fix mingw build
47904         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47905         Reported by Bruno Haible.
47906
47907         error: avoid undefined use of stdout
47908         * lib/error.c (error, error_at_line): Check that fd 1 is open
47909         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47910         is handling faults and the close_stdout module wants to report the
47911         detection of closed stdout as an error.
47912
47913 2009-07-17  Eric Blake  <ebb9@byu.net>
47914
47915         pipe: be robust in face of closed fds
47916         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47917         should cause child to misbehave.
47918         * modules/pipe-tests: New module.
47919         * tests/test-pipe.c: New file.
47920         * tests/test-pipe.sh: New file.
47921         Reported by Akim Demaille.
47922
47923 2009-07-14  Bruno Haible  <bruno@clisp.org>
47924
47925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47926         Reported by anonymous kc.
47927
47928 2009-07-07  Jim Meyering  <meyering@redhat.com>
47929
47930         maint.mk: don't look for translatable strings in *.m4 or *.mk
47931         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47932         when searching for translatable strings.
47933
47934 2009-07-05  Jim Meyering  <meyering@redhat.com>
47935
47936         remove superfluous parentheses in STREQ definition
47937         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47938         * lib/getugroups.c (STREQ): Likewise.
47939         * lib/fnmatch.c (STREQ): Likewise.
47940         Spotted by Bruno Haible.
47941
47942 2009-07-04  Jim Meyering  <meyering@redhat.com>
47943
47944         argv-iter: new module
47945         * MODULES.html.sh: Add argv-iter.
47946         * lib/argv-iter.c, lib/argv-iter.h: New files.
47947         * modules/argv-iter: New file.
47948         * modules/argv-iter-tests: New file.
47949         * tests/test-argv-iter.c: Test it.
47950
47951 2009-07-04  Bruno Haible  <bruno@clisp.org>
47952
47953         Fix assertion.
47954         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47955         contains more exact copies of a given entry than file2, leave the extra
47956         copies unpaired rather than aborting.
47957         Reported by Eric Blake.
47958
47959 2009-07-02  Bruno Haible  <bruno@clisp.org>
47960
47961         Speedup git-merge-changelog for git cherry-pick.
47962         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47963         (entries_mapping_get): New function, extracted from compute_mapping.
47964         (entries_mapping_reverse_get): New function.
47965         (compute_mapping): Add a 'full' argument. Return the result in a
47966         'struct entries_mapping'.
47967         (main): Update. Access the mappings through entries_mapping_get.
47968         Reported by Eric Blake.
47969
47970 2009-07-02  Bruno Haible  <bruno@clisp.org>
47971
47972         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47973         best_i.
47974
47975 2009-07-02  Bruno Haible  <bruno@clisp.org>
47976
47977         Speed up approximate search for matching ChangeLog entries.
47978         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47979         argument. Call fstrcmp_bounded instead of fstrcmp.
47980         (compute_mapping, try_split_merged_entry, main): Update callers.
47981
47982 2009-07-02  Bruno Haible  <bruno@clisp.org>
47983
47984         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47985
47986 2009-06-30  Bruno Haible  <bruno@clisp.org>
47987
47988         Reduce the number of uc_is_cased calls.
47989         * lib/unicase.h (casing_suffix_context_t): Add
47990         'first_char_except_ignorable' field.
47991         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47992         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47993         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47994         Update initializer.
47995         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47996         case-ignorable characters.
47997         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47998         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47999         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48000         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48001         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48002
48003 2009-06-30  Bruno Haible  <bruno@clisp.org>
48004
48005         Tests for module 'unicase/ignorable'.
48006         * modules/unicase/ignorable-tests: New file.
48007         * tests/unicase/test-ignorable.c: New file, generated by
48008         gen-uni-tables.
48009
48010         Tests for module 'unicase/cased'.
48011         * modules/unicase/cased-tests: New file.
48012         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48013         * tests/unicase/test-predicate-part1.h: New file, derived from
48014         tests/unictype/test-predicate-part1.h.
48015         * tests/unicase/test-predicate-part2.h: New file, same as
48016         tests/unictype/test-predicate-part2.h.
48017
48018         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48019         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48020         (output_casing_properties): New function.
48021         (main): Call it.
48022         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48023         * lib/unicase/cased.c: Include unictype/bitmap.h.
48024         (uc_is_cased): Define through a bitmap lookup.
48025         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48026         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48027         (uc_is_case_ignorable): Define through a bitmap lookup.
48028         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48029         lib/unictype/bitmap.h.
48030         (Depends-on): Add inline. Clean up.
48031         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48032         lib/unictype/bitmap.h.
48033         (Depends-on): Add inline. Clean up.
48034         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48035         recognition.
48036         * tests/unicase/test-u16-tolower.c (main): Likewise.
48037         * tests/unicase/test-u32-tolower.c (main): Likewise.
48038
48039 2009-06-30  Bruno Haible  <bruno@clisp.org>
48040
48041         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48042         * lib/unicase/u16-casemap.c: Likewise.
48043         * lib/unicase/u32-casemap.c: Likewise.
48044
48045 2009-06-29  Bruno Haible  <bruno@clisp.org>
48046
48047         Define u32_casefold as a wrapper around u32_ct_casefold.
48048         * lib/unicase/u32-casefold.c: Update.
48049         * modules/unicase/u32-casefold (Depends-on): Add
48050         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48051         unicase/empty-suffix-context. Clean up.
48052
48053         Define u16_casefold as a wrapper around u16_ct_casefold.
48054         * lib/unicase/u16-casefold.c: Update.
48055         * modules/unicase/u16-casefold (Depends-on): Add
48056         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48057         unicase/empty-suffix-context. Clean up.
48058
48059         Define u8_casefold as a wrapper around u8_ct_casefold.
48060         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48061         * lib/unicase/u8-casefold.c: Update.
48062         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48063         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48064
48065         Define u32_totitle as a wrapper around u32_ct_totitle.
48066         * lib/unicase/u32-totitle.c: Update.
48067         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48068         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48069
48070         Define u16_totitle as a wrapper around u16_ct_totitle.
48071         * lib/unicase/u16-totitle.c: Update.
48072         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48073         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48074
48075         Define u8_totitle as a wrapper around u8_ct_totitle.
48076         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48077         functions.
48078         (FUNC): Delegate to U_CT_TOTITLE.
48079         * lib/unicase/u8-totitle.c: Update.
48080         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48081         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48082
48083         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48084         invocation.
48085         * modules/unicase/u32-tolower (Depends-on): Add
48086         unicase/empty-prefix-context, unicase/empty-suffix-context.
48087
48088         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48089         invocation.
48090         * modules/unicase/u16-tolower (Depends-on): Add
48091         unicase/empty-prefix-context, unicase/empty-suffix-context.
48092
48093         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48094         * modules/unicase/u8-tolower (Depends-on): Add
48095         unicase/empty-prefix-context, unicase/empty-suffix-context.
48096
48097         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48098         invocation.
48099         * modules/unicase/u32-toupper (Depends-on): Add
48100         unicase/empty-prefix-context, unicase/empty-suffix-context.
48101
48102         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48103         invocation.
48104         * modules/unicase/u16-toupper (Depends-on): Add
48105         unicase/empty-prefix-context, unicase/empty-suffix-context.
48106
48107         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48108         * modules/unicase/u8-toupper (Depends-on): Add
48109         unicase/empty-prefix-context, unicase/empty-suffix-context.
48110
48111         New module 'unicase/u32-ct-casefold'.
48112         * lib/unicase/u32-ct-casefold.c: New file.
48113         * modules/unicase/u32-ct-casefold: New file.
48114
48115         New module 'unicase/u16-ct-casefold'.
48116         * lib/unicase/u16-ct-casefold.c: New file.
48117         * modules/unicase/u16-ct-casefold: New file.
48118
48119         New module 'unicase/u8-ct-casefold'.
48120         * lib/unicase/u8-ct-casefold.c: New file.
48121         * lib/unicase/u-ct-casefold.h: New file, derived from
48122         lib/unicase/u-casefold.h.
48123         * modules/unicase/u8-ct-casefold: New file.
48124
48125         New module 'unicase/u32-ct-totitle'.
48126         * lib/unicase/u32-ct-totitle.c: New file.
48127         * modules/unicase/u32-ct-totitle: New file.
48128
48129         New module 'unicase/u16-ct-totitle'.
48130         * lib/unicase/u16-ct-totitle.c: New file.
48131         * modules/unicase/u16-ct-totitle: New file.
48132
48133         New module 'unicase/u8-ct-totitle'.
48134         * lib/unicase/u8-ct-totitle.c: New file.
48135         * lib/unicase/u-ct-totitle.h: New file, derived from
48136         lib/unicase/u-totitle.h.
48137         * modules/unicase/u8-ct-totitle: New file.
48138
48139         New module 'unicase/u32-ct-tolower'.
48140         * lib/unicase/u32-ct-tolower.c: New file.
48141         * modules/unicase/u32-ct-tolower: New file.
48142
48143         New module 'unicase/u16-ct-tolower'.
48144         * lib/unicase/u16-ct-tolower.c: New file.
48145         * modules/unicase/u16-ct-tolower: New file.
48146
48147         New module 'unicase/u8-ct-tolower'.
48148         * lib/unicase/u8-ct-tolower.c: New file.
48149         * modules/unicase/u8-ct-tolower: New file.
48150
48151         New module 'unicase/u32-ct-toupper'.
48152         * lib/unicase/u32-ct-toupper.c: New file.
48153         * modules/unicase/u32-ct-toupper: New file.
48154
48155         New module 'unicase/u16-ct-toupper'.
48156         * lib/unicase/u16-ct-toupper.c: New file.
48157         * modules/unicase/u16-ct-toupper: New file.
48158
48159         New module 'unicase/u8-ct-toupper'.
48160         * lib/unicase/u8-ct-toupper.c: New file.
48161         * modules/unicase/u8-ct-toupper: New file.
48162
48163         Add context arguments to u*_casemap functions.
48164         * lib/unicase/unicasemap.h: Include unicase.h.
48165         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48166         suffix_context arguments.
48167         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48168         functions.
48169         (FUNC): Add prefix_context and suffix_context arguments. Use
48170         uc_is_cased and uc_is_case_ignorable.
48171         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48172         * lib/unicase/u16-casemap.c: Likewise.
48173         * lib/unicase/u32-casemap.c: Likewise.
48174         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48175         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48176         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48177         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48178         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48179         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48180
48181         New module 'unicase/u32-suffix-context'.
48182         * lib/unicase/u32-suffix-context.c: New file.
48183         * modules/unicase/u32-suffix-context: New file.
48184
48185         New module 'unicase/u16-suffix-context'.
48186         * lib/unicase/u16-suffix-context.c: New file.
48187         * modules/unicase/u16-suffix-context: New file.
48188
48189         New module 'unicase/u8-suffix-context'.
48190         * lib/unicase/u8-suffix-context.c: New file.
48191         * lib/unicase/u-suffix-context.h: New file.
48192         * modules/unicase/u8-suffix-context: New file.
48193
48194         New module 'unicase/empty-suffix-context'.
48195         * lib/unicase/empty-suffix-context.c: New file.
48196         * modules/unicase/empty-suffix-context: New file.
48197
48198         New module 'unicase/u32-prefix-context'.
48199         * lib/unicase/u32-prefix-context.c: New file.
48200         * modules/unicase/u32-prefix-context: New file.
48201
48202         New module 'unicase/u16-prefix-context'.
48203         * lib/unicase/u16-prefix-context.c: New file.
48204         * modules/unicase/u16-prefix-context: New file.
48205
48206         New module 'unicase/u8-prefix-context'.
48207         * lib/unicase/u8-prefix-context.c: New file.
48208         * lib/unicase/u-prefix-context.h: New file.
48209         * lib/unicase/context.h: New file.
48210         * modules/unicase/u8-prefix-context: New file.
48211
48212         New module 'unicase/empty-prefix-context'.
48213         * lib/unicase/empty-prefix-context.c: New file.
48214         * modules/unicase/empty-prefix-context: New file.
48215
48216         New module 'unicase/ignorable'.
48217         * lib/unicase/ignorable.c: New file.
48218         * modules/unicase/ignorable: New file.
48219
48220         New module 'unicase/cased'.
48221         * lib/unicase/caseprop.h: New file.
48222         * lib/unicase/cased.c: New file.
48223         * modules/unicase/cased: New file.
48224
48225         New functions for case mapping of substrings.
48226         * lib/unicase.h (casing_prefix_context_t): New type.
48227         (unicase_empty_prefix_context): New variable.
48228         (u8_casing_prefix_context, u16_casing_prefix_context,
48229         u32_casing_prefix_context, u8_casing_prefixes_context,
48230         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48231         declarations.
48232         (casing_suffix_context_t): New type.
48233         (unicase_empty_suffix_context): New variable.
48234         (u8_casing_suffix_context, u16_casing_suffix_context,
48235         u32_casing_suffix_context, u8_casing_suffixes_context,
48236         u16_casing_suffixes_context, u32_casing_suffixes_context,
48237         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48238         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48239         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48240         declarations.
48241
48242 2009-06-28  Jim Meyering  <meyering@redhat.com>
48243
48244         boostrap: indent only with spaces
48245         * build-aux/bootstrap: Indent only with spaces, never TABs.
48246
48247         bootstrap: split long lines
48248         * build-aux/bootstrap: Keep line length < 80.
48249
48250         bootstrap: sync from coreutils
48251         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48252         just as autoreconf does.  Verify a list of prerequisite
48253         package-name,version-number pairs if defined in bootstrap.conf.
48254         Refer to README-prereq, if prerequisites are not satisfied.
48255
48256 2009-06-27  Eric Blake  <ebb9@byu.net>
48257
48258         tests: add test for bogus NULL definition
48259         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48260         * tests/test-stdlib.c: Likewise.
48261         * tests/test-string.c: Likewise.
48262         * tests/test-locale.c: Likewise.
48263         * tests/test-unistd.c: Likewise.
48264         * modules/stdio-tests (Depends-on): Add verify.
48265         * modules/stdlib-tests (Depends-on): Likewise.
48266         * modules/string-tests (Depends-on): Likewise.
48267         * modules/locale-tests (Depends-on): Likewise.
48268         * modules/unistd-tests (Depends-on): Likewise.
48269
48270 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48271
48272         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48273         self-explaining comment.
48274         * m4/selinux-selinux-h: Update serial.
48275         (gl_LIBSELINUX): New macro, adding a warning for missing development
48276         packages to code extracted from...
48277         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48278         Add warning for missing development packages here, too.
48279
48280 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48281
48282         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48283
48284 2009-06-25  Eric Blake  <ebb9@byu.net>
48285
48286         version-etc: fix regression
48287         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48288         gcc.
48289         (version_etc): Use it, to catch bugs with trailing NULL.
48290         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48291         (version_etc_va): Fix logic bug.
48292         * modules/version-etc-tests: Add test.
48293         * tests/test-version-etc.c: New file.
48294         * tests/test-version-etc.sh: Likewise.
48295
48296 2009-06-25  Sam Steingold  <sds@gnu.org>
48297
48298         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48299         mbtowc declaration.
48300
48301 2009-06-25  Eric Blake  <ebb9@byu.net>
48302
48303         fpurge: migrate into <stdio.h>
48304         * lib/fpurge.h: Delete...
48305         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48306         * lib/fpurge.c (fpurge): Change declaring header.
48307         * modules/fpurge (Files): Drop deleted file.
48308         (Depends-on): Add stdio.
48309         (configure.ac): Set witness.
48310         * modules/stdio (Makefile.am): Support fpurge macros.
48311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48312         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48313         * lib/fflush.c: Update client.
48314         * tests/test-fpurge.c: Likewise.
48315         * NEWS: Mention the change.
48316
48317 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48318
48319         * lib/argp-version-etc.c (program_authors): Add const
48320         qualifier.
48321         * lib/version-etc.c: Fix typos in the comments.
48322         * modules/argp-version-etc: Depends on version-etc.
48323
48324 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48325
48326         argp-version-etc: new module.
48327
48328         * lib/argp-version-etc.c: New file.
48329         * lib/argp-version-etc.h: New file.
48330         * modules/argp-version-etc: New file.
48331         * modules/argp-version-etc-tests: New file.
48332         * tests/test-argp-version-etc.c: New test.
48333         * tests/test-argp-version-etc-1.sh: New test.
48334
48335 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48336
48337         Provide additional interfaces and documentation for version-etc
48338         module.
48339
48340         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48341         interfaces.
48342         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48343         prototypes.
48344
48345 2009-06-24  Bruno Haible  <bruno@clisp.org>
48346
48347         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48348         HAVE_LIB${NAME} macro.
48349         Reported by Sam Steingold <sds@gnu.org>.
48350
48351 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48352
48353         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48354         needed.
48355
48356 2009-06-21  Bruno Haible  <bruno@clisp.org>
48357
48358         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48359         work.
48360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48361         together with LIB${NAME}, LTLIB${NAME}.
48362         Reported by Sam Steingold <sds@gnu.org>.
48363
48364 2009-06-20  Jim Meyering  <meyering@redhat.com>
48365
48366         tests: make sc_require_test_exit_idiom more generic
48367         * top/maint.mk (Exit_witness_file): New overridable variable.
48368         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48369         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48370
48371 2009-06-19  Jim Meyering  <meyering@redhat.com>
48372
48373         hash: reverse order of src/dst parameters in an internal interface
48374         * lib/hash.c (transfer_entries): Reverse order of parameters to
48375         put DST before SRC.  Adjust callers.
48376
48377         tests: test-hash: avoid wholesale duplication
48378         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48379         Instead, use a loop and add a single conditional.
48380
48381         tests: test-hash: allow seed selection via a command line argument
48382         * tests/test-hash.c (get_seed): New function.
48383         (main): Use it.
48384
48385 2009-06-19  Eric Blake  <ebb9@byu.net>
48386
48387         hash: avoid memory leak on allocation failure
48388         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48389         failure.  Factor repeated algorithm...
48390         (transfer_entries): ...into new helper routine.
48391         (hash_delete): React to hash_rehash return value.
48392
48393         hash: reduce memory pressure in hash_rehash no-op case
48394         * lib/hash.c (next_prime): Avoid overflow.
48395         (hash_initialize): Factor bucket size computation...
48396         (compute_bucket_size): ...into new helper function.
48397         (hash_rehash): Use new function and open coding to reduce memory
48398         pressure, and avoid a memory leak in USE_OBSTACK code.
48399         Reported by Jim Meyering.
48400
48401 2009-06-18  Eric Blake  <ebb9@byu.net>
48402
48403         hash: make rotation more obvious
48404         * modules/hash (Depends-on): Add bitrotate and stdint.
48405         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48406         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48407         (SIZE_MAX): Rely on headers for definition.
48408         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48409         (raw_hasher): Use rotr_sz.
48410         Suggested by Jim Meyering.
48411
48412         hash: fix memory leak in last patch
48413         * lib/hash.c (hash_rehash): Avoid memory leak.
48414
48415         hash: avoid no-op rehashing
48416         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48417
48418         hash: provide default callback functions
48419         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48420         (hash_initialize): Use them as defaults.
48421         * tests/test-hash.c (main): Test this.
48422
48423         hash: minor optimization
48424         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48425         when possible.
48426         (hash_initialize): Document this promise.
48427         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48428         * tests/test-hash.c (hash_compare_strings): Test this.
48429
48430 2009-06-18  Bruno Haible  <bruno@clisp.org>
48431
48432         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48433         going to be replaced anyway.
48434
48435 2009-06-18  Bruno Haible  <bruno@clisp.org>
48436
48437         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48438         in one place.
48439         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48440         be replaced anyway.
48441
48442 2009-06-18  Eric Blake  <ebb9@byu.net>
48443
48444         hash: check for resize before insertion
48445         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48446         threshold before insertion, so that a pathological hash_rehash
48447         that fills every bucket can still trigger another rehash.
48448
48449 2009-06-18  Jim Meyering  <meyering@redhat.com>
48450
48451         hash-tests: add a loop around the small tests
48452         * tests/test-hash.c (main): Repeat small tests with selected
48453         small initial table sizes.
48454
48455 2009-06-17  Eric Blake  <ebb9@byu.net>
48456
48457         hash: minor cleanups
48458         * lib/hash.h (hash_entry): Make opaque, by moving...
48459         * lib/hash.c (hash_entry): ...here.
48460         (hash_insert): Clarify restrictions on what can be inserted.
48461         (hash_get_next): Clarify when it is safe to remove an element
48462         during traversal.
48463         (check_tuning): Skip verification when tuning is known safe.
48464         (hash_initialize): Clarify restrictions on tuning.
48465
48466 2009-06-17  Jim Meyering  <jim@meyering.net>
48467         and Eric Blake  <ebb9@byu.net>
48468
48469         hash-tests: new module
48470         * modules/hash-tests: New file.
48471         * tests/test-hash.c: New file.
48472
48473 2009-06-17  Eric Blake  <ebb9@byu.net>
48474
48475         strstr-simple: document new module
48476         * MODULES.html.sh: Document new module.
48477
48478         strstr, strcasestr: replace on platforms with broken memchr
48479         * modules/strstr: Split into...
48480         * modules/strstr-simple: ...new module that does not care about
48481         performance, but does care about glibc bug.
48482         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48483         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48484         if platform memchr is broken, per Debian bug 521737.
48485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48486         memchr.
48487         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48488         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48489         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48490         * modules/mountlist (Depends-on): Add strstr-simple.
48491         * modules/gen-uni-tables (Depends-on): Likewise.
48492         * modules/argz (Depends-on): Add strstr.
48493
48494 2009-06-17  Bruno Haible  <bruno@clisp.org>
48495
48496         * modules/posix_spawn-internal (Depends-on): Add errno.
48497
48498 2009-06-17  Bruno Haible  <bruno@clisp.org>
48499
48500         Define missing ESTALE on Interix 3.5.
48501         * lib/errno.in.h (ESTALE): Assign a value if missing.
48502         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48504         missing.
48505         * doc/posix-headers/errno.texi: Mention the Interix bug.
48506         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48507
48508 2009-06-15  Eric Blake  <ebb9@byu.net>
48509
48510         memchr, memchr2: add valgrind exception
48511         * lib/memchr.valgrind: New file.
48512         * lib/memchr2.valgrind: New file.
48513         * modules/memchr (Files): Distribute valgrind file.
48514         * modules/memchr2 (Files): Likewise.
48515
48516         docs: memchr is no longer obsolete
48517         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48518         * lib/string.in.h (memchr): Simplify logic.
48519
48520 2009-06-14  Jim Meyering  <meyering@redhat.com>
48521
48522         link-follow: fix the "checking..." message to not mention trailing slash
48523         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48524         never considered trailing slashes.
48525
48526 2009-06-14  Bruno Haible  <bruno@clisp.org>
48527
48528         * m4/memchr.m4: Mention also the bug on IA-64.
48529         * doc/posix-functions/memchr.texi: Likewise.
48530
48531 2009-06-12  Eric Blake  <ebb9@byu.net>
48532
48533         memchr: detect broken x86_64 and alpha implementations
48534         * modules/memchr-tests (Depends-on): Move mmap detection...
48535         * modules/memchr (Depends-on): ...here.
48536         (configure.ac): Set indicator.
48537         * lib/string.in.h (memchr): Declare replacement.
48538         * modules/string (Makefile.am): Trigger replacement.
48539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48540         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48541         bugs.
48542         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48543         * modules/getpagesize (License): Relax license.
48544
48545 2009-06-11  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/idpriv.h: Add more references.
48548
48549 2009-06-08  Bruno Haible  <bruno@clisp.org>
48550
48551         Tests for module 'idpriv-droptemp'.
48552         * modules/idpriv-droptemp-tests: New file.
48553         * tests/test-idpriv-droptemp.sh: New file.
48554         * tests/test-idpriv-droptemp.su.sh: New file.
48555         * tests/test-idpriv-droptemp.c: New file.
48556
48557         New module 'idpriv-droptemp'.
48558         * lib/idpriv-droptemp.c: New file.
48559         * modules/idpriv-droptemp: New file.
48560
48561 2009-06-08  Bruno Haible  <bruno@clisp.org>
48562
48563         Tests for module 'idpriv-drop'.
48564         * modules/idpriv-drop-tests: New file.
48565         * tests/test-idpriv-drop.sh: New file.
48566         * tests/test-idpriv-drop.su.sh: New file.
48567         * tests/test-idpriv-drop.c: New file.
48568
48569         New module 'idpriv-drop'.
48570         * lib/idpriv.h: New file.
48571         * lib-idpriv-drop.c: New file.
48572         * m4/idpriv.m4: New file.
48573         * modules/idpriv-drop: New file.
48574
48575 2009-06-08  Bruno Haible  <bruno@clisp.org>
48576
48577         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48578         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48579         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48580         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48581         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48582         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48583         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48584
48585 2009-06-08  Eric Blake  <ebb9@byu.net>
48586
48587         test-strstr: use memory fence, when possible
48588         * tests/test-strstr.c (main): Use memory fence, in order to be
48589         more likely to trigger Debian bug 521737.
48590         * modules/strstr-tests (Files): Pull in additional files.
48591
48592         memchr: no longer obsolete, for wider field testing
48593         * modules/memchr (Status, Notice): Delete, this module is no
48594         longer obsolete.
48595         * modules/vasnprintf (Depends-on): Add memchr.
48596
48597 2009-06-07  Jim Meyering  <meyering@redhat.com>
48598
48599         hash: declare some functions with the warn_unused_result attribute
48600         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48601
48602 2009-06-07  Bruno Haible  <bruno@clisp.org>
48603
48604         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48605         Reported by Eric Blake.
48606
48607 2009-06-06  Eric Blake  <ebb9@byu.net>
48608
48609         test-alignof: fix typo with long double
48610         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48611         compiler error.
48612
48613 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48614
48615         Escape non-texinfo { and }s.
48616         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48617         markup error.
48618
48619 2009-06-04  Jim Meyering  <meyering@redhat.com>
48620
48621         gitlog-to-changelog: don't infloop on an empty commit log
48622         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48623         Reported by Boris Petersen <transacid@centerim.org>.
48624
48625 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48626
48627         version-etc: extend for packagers
48628         Add three new configure options, intended for packagers:
48629           --with-packager="packager name"
48630           --with-packager-version="packager-specific version"
48631           --with-packager-bug-reports="packager bug reporting"
48632         An example with coreutils:
48633           $ ./configure \
48634             --with-packager=Gentoo \
48635             --with-packager-bug-report=http://bugs.gentoo.org/ \
48636             --with-packager-version="patchset 1.6"
48637           $ ./src/ls --version | head -n2
48638           ls (GNU coreutils) 7.1-dirty
48639           Packaged by Gentoo (patchset 1.6)
48640         Note that the bug reporting info via --help doesn't show up because
48641         coreutils uses its own custom emit_bug_reporting_address() implementation
48642         in src/system.h.  If it didn't, it'd look like:
48643           $ ./src/ls --help | tail -n4
48644           Report bugs to <bug-coreutils@gnu.org>.
48645           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48646           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48647           General help using GNU software: <http://www.gnu.org/gethelp/>.
48648         * lib/version-etc.c: Print new information, if provided.
48649         * m4/version-etc.m4: New file.
48650         * modules/version-etc (Files): Add m4/version-etc.m4.
48651         (configure.ac): Add gl_VERSION_ETC.
48652
48653 2009-05-31  Bruno Haible  <bruno@clisp.org>
48654
48655         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48656         and 'int64_t'.
48657         * modules/alignof-tests (Dependencies): Add stdint.
48658         Reported by Eric Blake.
48659
48660 2009-05-31  Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48663         restriction due to compiler bugs.
48664         Reported by Eric Blake.
48665
48666 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48667             Bruno Haible  <bruno@clisp.org>
48668
48669         Fix test-alignof failure.
48670         * lib/alignof.h (alignof_slot): New macro.
48671         (alignof_type): New macro, with the same semantics as the previous
48672         'alignof'.
48673         (alignof): Alias to alignof_slot.
48674         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48675         check that the results are usable as constant expressions.
48676
48677 2009-05-31  Bruno Haible  <bruno@clisp.org>
48678
48679         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48680         * tests/test-memchr.c (main): Check that memchr does not read past the
48681         first occurrence of the byte.
48682         * tests/test-strstr.c (main): Update comment.
48683         Suggested by Eric Blake.
48684
48685 2009-05-30  Bruno Haible  <bruno@clisp.org>
48686
48687         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48688         detail how to use dumpbin.
48689         Reported by David Byron <dbyron@dbyron.com>.
48690
48691 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48692
48693         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48694
48695 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48696
48697         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48698
48699 2009-05-28  Bruno Haible  <bruno@clisp.org>
48700
48701         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48702         build-aux/ files.
48703
48704 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48705
48706         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48707
48708 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48709
48710         * gnulib-tool (sed_transform_main_lib_file)
48711         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48712         regexps.
48713
48714 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48715
48716         * tests/test-strstr.c: Add another self-test.
48717         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48718         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48719
48720 2009-05-23  Bruno Haible  <bruno@clisp.org>
48721
48722         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48723         change.
48724
48725 2009-05-21  Bruno Haible  <bruno@clisp.org>
48726
48727         Simplify use of mode_t varargs.
48728         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48729         uses 'mode_t' or 'int'.
48730         * lib/openat.c (openat): Likewise.
48731         * lib/open-safer.c (open_safer): Likewise.
48732         * m4/mode_t.m4: New file.
48733         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48734         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48735         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48736         * modules/open (Files): Add m4/mode_t.m4.
48737         * modules/openat (Files): Likewise.
48738         * modules/fcntl-safer (Files): Likewise.
48739         Suggested by Eric Blake.
48740
48741 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48742
48743         * doc/glibc-functions/fallocate.texi: New file.
48744         * doc/gnulib.texi: Include it.
48745
48746 2009-05-21  Eric Blake  <ebb9@byu.net>
48747             Bruno Haible  <bruno@clisp.org>
48748
48749         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48750         invocations.
48751         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48752
48753 2009-05-21  Eric Blake  <ebb9@byu.net>
48754             Bruno Haible  <bruno@clisp.org>
48755
48756         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48757         include_next. Fix of 2008-11-20 commit.
48758         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48759         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48760         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48761         NEXT_MATH_H.
48762         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48763         instead of NEXT_MATH_H.
48764
48765 2009-05-21  Bruno Haible  <bruno@clisp.org>
48766
48767         Avoid redefinition warnings for SIZE_MAX.
48768         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48769         Reported by Simon Josefsson.
48770
48771 2009-05-21  Bruno Haible  <bruno@clisp.org>
48772
48773         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48774         AC_CACHE_VAL.
48775
48776 2009-05-20  Bruno Haible  <bruno@clisp.org>
48777
48778         Make zeroptr.h work on mingw.
48779         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48780         mprotect.
48781         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48782         * modules/memchr2-tests (configure.ac): Likewise.
48783         * modules/memcmp-tests (configure.ac): Likewise.
48784         * modules/memmem-tests (configure.ac): Likewise.
48785         * modules/memrchr-tests (configure.ac): Likewise.
48786         Reported by Simon Josefsson.
48787
48788 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48789
48790         * tests/test-glob.c: Include string.h for strcmp prototype.
48791
48792 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48793
48794         * modules/getdelim (Depends-on): Add explicit stdint, although it
48795         was implicitly already pulled in via realloc-posix.
48796         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48797
48798 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48799
48800         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48801         G. Christensen" <tgc@jupiterrise.com>.
48802         * m4/sys_socket_h.m4: Check for sa_family_t.
48803         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48804         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48805         * tests/test-sys_socket.c: Check that sa_family_t works.
48806
48807 2009-05-18  Eric Blake  <ebb9@byu.net>
48808
48809         maint.mk: allow gnulib_dir in VPATH build
48810         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48811
48812 2009-05-15  Jim Meyering  <meyering@redhat.com>
48813
48814         maint.mk: Give gnulib_dir a default definition.
48815         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48816         Thus, most packages no longer need to specify this variable in cfg.mk
48817
48818 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48819
48820         rename.m4: fix typos that would make non-mingw cross-configure fail
48821         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48822
48823 2009-05-13  Eric Blake  <ebb9@byu.net>
48824
48825         mmap-anon: avoid out-of-order autoconf expansion
48826         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48827         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48828         * modules/memchr-tests (Depends-on): Add extensions.
48829         * modules/memchr2-tests (Depends-on): Add extensions.
48830         * modules/memcmp-tests (Depends-on): Add extensions.
48831         * modules/memmem-tests (Depends-on): Add extensions.
48832         * modules/memrchr-tests (Depends-on): Add extensions.
48833
48834 2009-05-13  Bruno Haible  <bruno@clisp.org>
48835
48836         Make some tests ISO C 99 compliant.
48837         * tests/zerosize-ptr.h: New file.
48838         * tests/test-memchr.c: Include zerosize-ptr.h.
48839         (main): Use a zero-size object pointer instead of NULL.
48840         * tests/test-memchr2.c: Include zerosize-ptr.h.
48841         (main): Use a zero-size object pointer instead of NULL.
48842         * tests/test-memcmp.c: Include zerosize-ptr.h.
48843         (main): Use a zero-size object pointer instead of NULL.
48844         * tests/test-memmem.c: Include zerosize-ptr.h.
48845         (main): Use a zero-size object pointer instead of NULL.
48846         * tests/test-memrchr.c: Include zerosize-ptr.h.
48847         (main): Use a zero-size object pointer instead of NULL.
48848         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48849         m4/mmap-anon.m4.
48850         (Depends-on): Add getpagesize.
48851         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48852         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48853         m4/mmap-anon.m4.
48854         (Depends-on): Add getpagesize.
48855         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48856         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48857         m4/mmap-anon.m4.
48858         (Depends-on): Add getpagesize.
48859         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48860         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48861         m4/mmap-anon.m4.
48862         (Depends-on): Add getpagesize.
48863         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48864         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48865         m4/mmap-anon.m4.
48866         (Depends-on): Add getpagesize.
48867         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48868
48869 2009-05-12  Bruno Haible  <bruno@clisp.org>
48870
48871         Tests for module 'alignof'.
48872         * modules/alignof-tests: New file.
48873         * tests/test-alignof.c: New file.
48874
48875 2009-05-12  Bruno Haible  <bruno@clisp.org>
48876
48877         Fix alignof macro.
48878         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48879         vendor compilers that are always correct.
48880
48881 2009-05-12  Bruno Haible  <bruno@clisp.org>
48882
48883         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48884         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48885         not whether its fully works.
48886
48887 2009-05-12  Bruno Haible  <bruno@clisp.org>
48888
48889         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48890
48891 2009-05-12  Jim Meyering  <meyering@redhat.com>
48892
48893         * top/maint.mk: Adjust backslash alignment.
48894
48895 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48896
48897         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48898
48899 2009-05-11  Eric Blake  <ebb9@byu.net>
48900
48901         argp: avoid undefined behavior
48902         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48903         macros.
48904
48905 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48906
48907         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48908         user.name to prevent git commit from complaining.
48909
48910 2009-05-10  Bruno Haible  <bruno@clisp.org>
48911
48912         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48913         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48914         it rewrites every file name only once.
48915         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48916
48917 2009-05-08  Bruno Haible  <bruno@clisp.org>
48918
48919         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48920         instead of 'max'.
48921
48922 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48923
48924         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48925         sockaddr_storage test.
48926
48927 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48928
48929         * modules/sys_socket (Makefile.am): Substitute
48930         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48931         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48932         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48933         * tests/test-sys_socket.c: Check sockaddr_storage.
48934
48935 2009-05-08  Bruno Haible  <bruno@clisp.org>
48936
48937         New module 'alignof'.
48938         * lib/alignof.h: New file.
48939         * modules/alignof: New file.
48940
48941 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48942             Bruno Haible  <bruno@clisp.org>
48943
48944         Fix test-file-has-acl on FreeBSD.
48945         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48946         mask is implicitly added.
48947         * tests/test-file-has-acl.c: Include <signal.h>.
48948         (main): Terminate the test after 5 seconds.
48949         * modules/acl-tests (configure.ac): Check for alarm function.
48950
48951 2009-05-04  Bruno Haible  <bruno@clisp.org>
48952
48953         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48955         * modules/errno (configure.ac): Drop AC_REQUIRE.
48956         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48957         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48958
48959 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48960
48961         * modules/glob-tests: New module.
48962         * tests/test-glob.c: Add.
48963
48964 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48965
48966         * modules/fnmatch-tests: New module.
48967         * tests/test-fnmatch.c: Add.
48968
48969 2009-05-04  Eric Blake  <ebb9@byu.net>
48970
48971         maint: make the new no-submodule-changes rule VPATH-safe
48972         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48973
48974 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48975             Bruno Haible  <bruno@clisp.org>
48976
48977         acl: Fix infinite loop on FreeBSD.
48978         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48979         of return value from acl_get_entry.
48980         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48981         Likewise.
48982
48983 2009-05-03  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/acl-internal.h (acl_entries): Clarify return value.
48986         * lib/acl_entries.c (acl_entries): Likewise.
48987
48988 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48989
48990         Bug fix in acl module.
48991         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48992
48993 2009-05-03  Bruno Haible  <bruno@clisp.org>
48994
48995         Create gperf-generated file in the source dir, not in the build dir.
48996         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48997         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48998         * modules/unicase/locale-language (unicase/locale-languages.h):
48999         Likewise.
49000         * modules/unicase/special-casing (unicase/special-casing-table.h):
49001         Likewise.
49002         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49003         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49004         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49005         Reported by Ralf Wildenhues.
49006
49007 2009-05-03  Bruno Haible  <bruno@clisp.org>
49008
49009         * modules/fnmatch (Description, configure.ac): Taken from
49010         fnmatch-posix.
49011         * modules/fnmatch-posix: Turn into a symbolic reference to the
49012         'fnmatch' module, and deprecate.
49013         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49014
49015 2009-05-03  Bruno Haible  <bruno@clisp.org>
49016
49017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49018         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49019         Reported by Ralf Wildenhues.
49020
49021 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49022
49023         * m4/fnmatch.m4: Fix fnmatch re-define.
49024
49025 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49026
49027         priv-set: new module and tests; adapt write-any-file
49028         * lib/priv-set.c: New file.
49029         * lib/priv-set.h: New file.
49030         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49031         * lib/write-any-file.c: Simplify by using priv-set module.
49032         * m4/priv-set.m4: New file.
49033         * modules/priv-set: New file.
49034         * modules/unlinkdir: Add dependency on priv-set module.
49035         * modules/write-any-file: Likewise.
49036
49037         Tests for module 'priv-set'.
49038         * modules/priv-set-tests: New file.
49039         * tests/test-priv-set.c: New file.
49040
49041 2009-05-03  Jim Meyering  <meyering@redhat.com>
49042             Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49045         use the converted UTF-8 variant of the name instead.
49046
49047 2009-05-03  Jim Meyering  <meyering@redhat.com>
49048
49049         tests: tighten some getdate tests
49050         * tests/test-getdate.c (main): Tighten tests: require equality,
49051         not just greater than.  Set TZ envvar to UTC0.
49052
49053 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49054
49055         getdate: correctly interpret "next monday" when run on a Monday
49056         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49057         that e.g., "next tues" (when run on a tuesday) results in a date
49058         that is one week in the future, and not today's date.
49059         I.e., add a week when the wday is the same as the current one.
49060         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49061         and earlier by Martin Bernreuther and Jan Minář.
49062         * tests/test-getdate.c (main): Check that "next DAY" is always in
49063         the future and that "last DAY" is always in the past.
49064
49065 2009-05-02  Jim Meyering  <meyering@redhat.com>
49066
49067         build: ensure that a release build fails when a submodule is unclean
49068         * top/maint.mk (no-submodule-changes): New rule.
49069         (alpha beta major): Depend on it.
49070
49071 2009-05-02  Bruno Haible  <bruno@clisp.org>
49072
49073         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49074         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49075         shell variable gl_fnmatch_required to detect which variant is
49076         requested.
49077         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49078         gl_FUNC_FNMATCH_POSIX.
49079         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49080         exclude fnmatch-posix.
49081
49082 2009-05-02  Bruno Haible  <bruno@clisp.org>
49083
49084         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49085         * modules/mbsrtowcs (License): Change to LGPLv2+.
49086         * modules/strnlen1 (License): Likewise.
49087         Reported by Simon Josefsson.
49088
49089 2009-05-02  Bruno Haible  <bruno@clisp.org>
49090
49091         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49092         "cross".
49093         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49094         gnulib-tool was called with option --source-base=lib.
49095
49096 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49097
49098         Use automake *-local hooks without commands, for extensibility.
49099         * modules/localcharset (Makefile.am): Rename install-exec-local
49100         rule to install-exec-localcharset, and make it a prerequisite of
49101         install-exec-local.  Likewise, rename the uninstall-local rule to
49102         uninstall-localcharset, and make it a prerequisite of the former.
49103
49104 2009-05-01  Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49107         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49108         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49109         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49110         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49111         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49112         m4/locale-zh.m4, m4/codeset.m4.
49113
49114         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49115         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49116         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49117         m4/locale-zh.m4.
49118
49119         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49120         REPLACE_WCRTOMB if mbstate_t must be replaced.
49121         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49122         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49123
49124 2009-05-01  Bruno Haible  <bruno@clisp.org>
49125
49126         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49127         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49128         dngettext, dcngettext, textdomain, bindtextdomain,
49129         bind_textdomain_codeset): Undefine before redefining.
49130
49131 2009-04-30  Bruno Haible  <bruno@clisp.org>
49132
49133         Fix bug introduced on 2009-04-25.
49134         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49135         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49136         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49137         is defined.
49138         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49139         is defined.
49140         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49141         is defined.
49142         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49143
49144 2009-04-28  Bruno Haible  <bruno@clisp.org>
49145
49146         Comment tweaks.
49147         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49148         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49149         * lib/unicase.h (u*_casexfrm): Likewise.
49150         Reported by Paolo Bonzini.
49151
49152 2009-04-28  Bruno Haible  <bruno@clisp.org>
49153
49154         Fix a compilation error.
49155         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49156         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49157         Reported by Jim Meyering.
49158
49159 2009-04-27  Bruno Haible  <bruno@clisp.org>
49160
49161         New module 'libunistring'.
49162         * modules/libunistring: New file.
49163         * m4/libunistring.m4: New file.
49164         * MODULES.html.sh (Unicode string functions): Add it.
49165
49166 2009-04-27  Eric Blake  <ebb9@byu.net>
49167
49168         maint.mk: allow package-specific header to provide <config.h>
49169         * top/maint.mk (sc_require_config_h): New variable.
49170         (sc_require_config_h, sc_require_config_h_first): Use it.
49171
49172 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49173
49174         * top/maint.mk (sc_avoid_if_before_free): Except
49175         useless-if-before-free script.
49176
49177 2009-04-27  Eric Blake  <ebb9@byu.net>
49178
49179         maintainer-makefile: depend on all required helper scripts
49180         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49181         useless-if-before-free.
49182         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49183         version, rather than assuming gnulib checkout is available.
49184         Reported by Simen Josefsson.
49185
49186 2009-04-26  Bruno Haible  <bruno@clisp.org>
49187
49188         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49189         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49190         "../" or "..".
49191
49192 2009-04-26  Bruno Haible  <bruno@clisp.org>
49193
49194         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49195         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49196         AC_LIB_HAVE_LINKFLAGS.
49197
49198 2009-04-26  Bruno Haible  <bruno@clisp.org>
49199
49200         Simplify calling convention of u*_conv_from_encoding.
49201         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49202         u32_conv_from_encoding): Expect a resultbuf argument and return the
49203         result directly as a pointer.
49204         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49205         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49206         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49207         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49208         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49209         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49210         Update.
49211         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49212         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49213         * lib/vasnprintf.c (VASNPRINTF): Update.
49214         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49215         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49216         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49217         * NEWS: Mention the change.
49218
49219 2009-04-26  Bruno Haible  <bruno@clisp.org>
49220
49221         Simplify calling convention of u*_conv_to_encoding.
49222         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49223         u32_conv_to_encoding): Expect a resultbuf argument and return the
49224         result directly as a pointer.
49225         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49226         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49227         freeing scaled_offsets if mem_iconveha failed.
49228         * lib/unicase/u-casexfrm.h (FUNC): Update.
49229         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49230         * lib/vasnprintf.c (VASNPRINTF): Update.
49231         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49232         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49233         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49234         * NEWS: Mention the change.
49235
49236 2009-04-26  Bruno Haible  <bruno@clisp.org>
49237
49238         Avoid test failures on AIX and OSF/1.
49239         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49240         malloc(0).
49241         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49242         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49243         Likewise.
49244         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49245         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49246         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49247         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49248         * doc/posix-functions/malloc.texi: Document the portability problem
49249         related to malloc(0).
49250
49251 2009-04-26  Bruno Haible  <bruno@clisp.org>
49252
49253         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49254         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49255         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49256
49257 2009-04-25  Bruno Haible  <bruno@clisp.org>
49258
49259         Avoid link error when creating a namespace clean library.
49260         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49261         as macro with arguments if already defined as an alias.
49262         * lib/signbitf.c (gl_signbitf): Don't undefine.
49263         * lib/signbitd.c (gl_signbitd): Don't undefine.
49264         * lib/signbitl.c (gl_signbitl): Don't undefine.
49265
49266 2009-04-25  Jim Meyering  <meyering@redhat.com>
49267
49268         vc-list-files: fix another quoting bug
49269         * build-aux/vc-list-files: Avoid sed backslash expansion
49270         of pathological directory names.
49271
49272 2009-04-25  Eric Blake  <ebb9@byu.net>
49273
49274         vc-list-files: fix shell quoting error
49275         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49276         timestamp.
49277
49278 2009-04-25  Jim Meyering  <meyering@redhat.com>
49279
49280         vc-list-files: restore lost functionality with subdir argument
49281         * build-aux/vc-list-files: When given a non-"." sub-directory
49282         argument, substitute the $dir/ prefix back onto each resulting name.
49283         Otherwise, coreutils' root_tests check would fail.
49284
49285 2009-04-24  Eric Blake  <ebb9@byu.net>
49286
49287         vc-list-files: ignore git symlinks
49288         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49289         than ls-files, to ignore git symlinks.
49290
49291         maint.mk: import improvements from m4
49292         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49293         (move_if_change): Delete unused macro.
49294         (news-date-check, vc-diff-check): Support VPATH builds.
49295         (announcement): Likewise.  Split --bootstrap-tools list...
49296         (boostrap-tools): ...into separate list, which can be overridden
49297         in cfg.mk.
49298         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49299         requiring dependency on useless-if-before-free module.
49300         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49301         Support VPATH builds.
49302
49303 2009-04-24  Jim Meyering  <meyering@redhat.com>
49304
49305         maint.mk: remove coreutils-specific rules and variables
49306         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49307         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49308         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49309
49310         maint.mk: remove obsolete rule
49311         * top/maint.mk (rel-check): Remove rule.
49312         (WGET, WGETFLAGS): Remove now-unused variables.
49313
49314 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49315
49316         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49317         consistency.
49318
49319         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49320         '$(PATH_SEPARATOR)' instead of ':'.
49321
49322 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49323
49324         * lib/getopt1.c (main): Use 'const' for static array.
49325
49326 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49327
49328         * top/maint.mk: Sync with coreutils.
49329         * NEWS: Explain incompatibilities.
49330
49331 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49332             Bruno Haible  <bruno@clisp.org>
49333
49334         Fix cross-compilation results.
49335         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49336         statement, as third argument of AC_TRY_RUN.
49337         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49338         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49339         Likewise.
49340         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49341         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49342         Likewise.
49343         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49344         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49345         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49346
49347 2009-04-20  Bruno Haible  <bruno@clisp.org>
49348
49349         Avoid test failure on mingw.
49350         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49351
49352 2009-04-20  Bruno Haible  <bruno@clisp.org>
49353
49354         Avoid compilation error on mingw.
49355         * modules/localename-tests (Depends-on): Add locale.
49356
49357 2009-04-19  Bruno Haible  <bruno@clisp.org>
49358
49359         Support for building a shared library on Windows platforms.
49360         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49361         (main): Test the presence of UNINORM_NFC here.
49362         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49363         (main): Test the presence of UNINORM_NFD here.
49364         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49365         (main): Test the presence of UNINORM_NFKC here.
49366         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49367         (main): Test the presence of UNINORM_NFKD here.
49368
49369 2009-04-19  Bruno Haible  <bruno@clisp.org>
49370
49371         Avoid a compiler warning.
49372         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49373         Change type of variable 'sequence'.
49374
49375 2009-04-19  Bruno Haible  <bruno@clisp.org>
49376
49377         * modules/configmake (Makefile.am): When the contents of configmake.h
49378         does not change, arrange to preserve its modification time.
49379
49380 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49381
49382         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49383         gettext domain.
49384
49385 2009-04-16  Jim Meyering  <meyering@redhat.com>
49386
49387         useless-if-before-free: improve conversion code
49388         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49389         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49390
49391 2009-04-14  Bruno Haible  <bruno@clisp.org>
49392
49393         * modules/fcntl (Depends-on): Add extensions.
49394         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49395
49396 2009-04-12  Ben Pfaff  <blp@gnu.org>
49397
49398         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49399         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49400
49401 2009-03-20  Ben Pfaff  <blp@gnu.org>
49402
49403         Make rename replace existing destinations on Windows.
49404         * m4/rename.m4: Add test for Mingw.
49405         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49406         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49407         * doc/posix-functions/rename.texi: Document.
49408
49409 2009-04-10  Bruno Haible  <bruno@clisp.org>
49410
49411         New include file "iconveh.h".
49412         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49413         * lib/striconveh.h: Include it.
49414         (enum iconv_ilseq_handler): Remove definition.
49415         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49416         striconveh.h.
49417         * lib/striconveha.c: Include striconveh.h.
49418         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49419         * modules/striconveh (Files): Add lib/iconveh.h.
49420         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49421         lib/striconveh.h.
49422
49423 2009-04-10  Bruno Haible  <bruno@clisp.org>
49424
49425         * lib/uniconv.h: Update comment.
49426
49427 2009-04-10  Bruno Haible  <bruno@clisp.org>
49428
49429         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49430         always.
49431         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49432         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49433         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49434         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49435         "unistring-notinline.h", so that the function gets defined always.
49436         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49437         * lib/unistr/u8-uctomb.c: Likewise.
49438         * lib/unistr/u16-mbtouc.c: Likewise.
49439         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49440         * lib/unistr/u16-uctomb.c: Likewise.
49441         * lib/unistr/u32-mbtouc.c: Likewise.
49442         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49443         * lib/unistr/u32-uctomb.c: Likewise.
49444
49445 2009-04-10  Bruno Haible  <bruno@clisp.org>
49446
49447         Mark 'utime' obsolete.
49448         * modules/utime (Status, Notice): New sections.
49449         Suggested by Jim Meyering.
49450
49451         Fix cross-compile guess for utime test.
49452         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49453         autoconf.
49454         * doc/posix-functions/utime.texi: Give more precisions.
49455         Reported by Jan <ipif@ymail.com>.
49456
49457 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49458
49459         filevercmp: correct today's change
49460         * lib/filevercmp.c: Also handle coreutils' test inputs.
49461         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49462
49463         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49464         for reporting it.
49465         * lib/filevercmp.c: Special handle for "", "." and "..".
49466         * tests/test-filevercmp.c: Enlarge the set suite.
49467
49468 2009-04-07  Jim Meyering  <meyering@redhat.com>
49469
49470         useless-if-before-free: show how to remove braced useless free, too
49471         * build-aux/useless-if-before-free: still only in a comment, though.
49472
49473 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49474
49475         maint.mk: import changes to syntax-check macros from coreutils
49476         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49477         Use them in the relevant macros.
49478
49479 2009-04-06  Bruno Haible  <bruno@clisp.org>
49480
49481         Fix unportable use of bit-fields.
49482         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49483         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49484         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49485
49486 2009-04-06  Bruno Haible  <bruno@clisp.org>
49487
49488         Avoid test failures on AIX and OSF/1.
49489         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49490         that malloc(0) = NULL.
49491         * tests/unicase/test-u8-tolower.c (check): Likewise.
49492         * tests/unicase/test-u8-totitle.c (check): Likewise.
49493         * tests/unicase/test-u8-toupper.c (check): Likewise.
49494         * tests/unicase/test-u16-casefold.c (check): Likewise.
49495         * tests/unicase/test-u16-tolower.c (check): Likewise.
49496         * tests/unicase/test-u16-totitle.c (check): Likewise.
49497         * tests/unicase/test-u16-toupper.c (check): Likewise.
49498         * tests/unicase/test-u32-casefold.c (check): Likewise.
49499         * tests/unicase/test-u32-tolower.c (check): Likewise.
49500         * tests/unicase/test-u32-totitle.c (check): Likewise.
49501         * tests/unicase/test-u32-toupper.c (check): Likewise.
49502         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49503         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49504         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49505         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49506         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49507         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49508         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49509         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49510         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49511         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49512         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49513         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49514
49515 2009-04-05  Bruno Haible  <bruno@clisp.org>
49516
49517         Work around an autoconf limitation.
49518         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49519         comment line if it would be longer than 3 KB.
49520
49521 2009-04-05  Bruno Haible  <bruno@clisp.org>
49522
49523         Avoid test failure with libiconv-1.13.
49524         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49525         of the expected test results.
49526
49527 2009-04-05  Bruno Haible  <bruno@clisp.org>
49528
49529         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49530         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49531         that it should be installed.
49532
49533 2009-04-05  Bruno Haible  <bruno@clisp.org>
49534
49535         * gnulib-tool: New option --copy-file.
49536         (func_usage): Document it.
49537         (func_dest_tmpfilename): Moved out of func_import.
49538         (func_add_file, func_update_file): New functions, extracted from
49539         func_import.
49540         (func_import): Update.
49541
49542 2009-04-05  Karl Berry  <karl@gnu.org>
49543
49544         * README: prominently mention gnulib-tool.
49545         Rearrange sections so getting the code is near the top.
49546
49547 2009-04-05  Bruno Haible  <bruno@clisp.org>
49548
49549         * lib/unicase.h: Mention u*_cmp2.
49550         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49551         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49552         * lib/unicase/ulc-casecmp.c: Likewise.
49553         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49554         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49555         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49556         unistr/u8-cmp.
49557         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49558         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49559         unistr/u16-cmp.
49560         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49561         unistr/u32-cmp.
49562
49563         * lib/uninorm.h: Mention u*_cmp2.
49564         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49565         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49566         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49567         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49568         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49569         unistr/u8-cmp.
49570         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49571         unistr/u16-cmp.
49572         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49573         unistr/u32-cmp.
49574
49575         New module 'unistr/u32-cmp2'.
49576         * lib/unistr/u32-cmp2.c: New file.
49577         * modules/unistr/u32-cmp2: New file.
49578
49579         New module 'unistr/u16-cmp2'.
49580         * lib/unistr/u16-cmp2.c: New file.
49581         * modules/unistr/u16-cmp2: New file.
49582
49583         New module 'unistr/u8-cmp2'.
49584         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49585         * lib/unistr/u8-cmp2.c: New file.
49586         * lib/unistr/u-cmp2.h: New file.
49587         * modules/unistr/u8-cmp2: New file.
49588
49589 2009-04-05  Bruno Haible  <bruno@clisp.org>
49590
49591         * lib/unictype.h (uc_property_is_valid): New macro.
49592         * tests/unictype/test-pr_byname.c (main): Use it.
49593
49594         * lib/unistr.h: Doc fixes.
49595         * lib/uniconv.h: Doc fixes.
49596         * lib/unictype.h: Doc fixes.
49597
49598 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49599
49600         Port coreutils 7.2 to Solaris 8.
49601
49602         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49603         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49604         for Solaris 8.  This is a bit of a hack, as it means it's the
49605         caller's responsibility to add -lnsl if needed, but most likely it
49606         won't be needed since only getaddrinfo uses this and getaddrinfo
49607         isn't needed on Solaris 8.
49608
49609         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49610         problem to Solaris 8 encountered with coreutils 7.2, which
49611         resulted in a message "fnmatch.c:292: warning: passing argument 4
49612         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49613         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49614
49615 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49616
49617         * m4/ld-version-script.m4: Add FIXME comment.
49618
49619 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49620
49621         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49622         SOVERSION variable.
49623
49624 2009-04-02  Bruno Haible  <bruno@clisp.org>
49625
49626         * Makefile (info, html, dvi, pdf): Combine the rules.
49627         Suggested by Jim Meyering.
49628
49629 2009-04-01  Bruno Haible  <bruno@clisp.org>
49630
49631         * Makefile (info, html, dvi, pdf): New targets.
49632         Reported by Reuben Thomas <rrt@sc3d.org>.
49633
49634 2009-04-01  Bruno Haible  <bruno@clisp.org>
49635
49636         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49637         can be put into PATH.
49638         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49639
49640 2009-04-01  Bruno Haible  <bruno@clisp.org>
49641
49642         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49643
49644 2009-04-01  Bruno Haible  <bruno@clisp.org>
49645
49646         Rename module 'visibility'.
49647         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49648         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49649         * doc/gnulib.texi: Update.
49650         * MODULES.html.sh (Misc): Update.
49651         * NEWS: Mention the change.
49652
49653 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49654
49655         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49656         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49657         Eric Blake <ebb9@byu.net> for review.
49658         * MODULES.html.sh: Add lib-msvc-compat.
49659         * doc/gnulib.texi: Link to new section.
49660         * m4/ld-output-def.m4: New file.
49661         * doc/ld-output-def.texi: New file.
49662
49663 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49664
49665         Rename ld-version-script to lib-symbol-versions.  Suggested by
49666         Bruno Haible <bruno@clisp.org>.
49667         * modules/ld-version-script: Renamed to lib-symbol-versions.
49668         * doc/ld-version-script.texi: Fix module name.
49669         * MODULES.html.sh: Add lib-symbol-versions.
49670
49671 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49672
49673         * modules/u64-tests: New file.
49674         * tests/test-u64.c: New file.
49675
49676 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49677
49678         * MODULES.html.sh: Mention u64.
49679         * modules/u64: New module.
49680         * modules/crypto/sha512: Depend on u64 module instead of providing
49681         u64.h.
49682
49683 2009-03-27  Eric Blake  <ebb9@byu.net>
49684
49685         test-strerror: make debugging EAI_SYSTEM easier
49686         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49687         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49688         failure was EAI_SYSTEM.
49689
49690 2009-03-25  Bruno Haible  <bruno@clisp.org>
49691
49692         Fix a problem with --enable-relocatable on Solaris 7.
49693         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49694         since 2008-02-24.
49695
49696 2009-03-25  Eric Blake  <ebb9@byu.net>
49697
49698         test-sockets: avoid gcc warning
49699         * tests/test-sockets.c (main): Silence compiler warning.
49700
49701 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         New modules nproc, pthread, contributed by Glen Lenker.
49704
49705         * MODULES.html.sh: Add pthread, nproc.
49706         * lib/nproc.c: New file.
49707         * lib/nproc.h: New file.
49708         * lib/pthread.in.h: New file.
49709         * m4/pthread.m4: New file.
49710         * modules/nproc: New file.
49711         * modules/pthread: New file.
49712
49713 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49714
49715         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49716         New variable.
49717
49718 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49719
49720         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49721         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49722         * tests/test-filevercmp.c: Add tests for backup suffixes.
49723
49724 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49725
49726         * modules/stdlib (Depends-on): Add stdint, needed when defining
49727         struct random_data on, for example, HP-UX 10.20.  Reported by
49728         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49729
49730 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49731
49732         * lib/readline.c (readline): Call fflush on stdout after printing
49733         prompt.
49734
49735 2009-03-20  Bruno Haible  <bruno@clisp.org>
49736
49737         Remove dependency from 'close' module to -lws2_32 on native Windows.
49738         * lib/close-hook.h: New file.
49739         * lib/close-hook.c: New file.
49740         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49741         w32sock.h.
49742         (_gl_close_fd_maybe_socket): Remove function.
49743         (rpl_close): Invoke execute_all_close_hooks instead of
49744         _gl_close_fd_maybe_socket.
49745         * lib/sockets.c: Include close-hook.h, w32sock.h.
49746         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49747         (close_sockets_hook): New variable.
49748         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49749         (gl_sockets_cleanup): Unregister it.
49750         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49751         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49752         * modules/close-hook: New file.
49753         * modules/close (Files): Remove lib/w32sock.h.
49754         (Depends-on): Add close-hook.
49755         (Link): Remove section.
49756         * modules/sockets (Files): Add lib/w32sock.h.
49757         (Depends-on): Add close-hook.
49758         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49759         invocation.
49760         * NEWS: Mention that LIB_CLOSE is gone.
49761
49762 2009-03-23  Eric Blake  <ebb9@byu.net>
49763
49764         signal-tests: test previous patch
49765         * tests/test-signal.c: New file.
49766         * modules/signal-tests: Likewise.
49767
49768         signal.h: always support 'volatile sig_atomic_t'
49769         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49770         (gl_SIGNAL_H_DEFAULTS): Add a default.
49771         * modules/signal (Makefile.am): Substitute if needed.
49772         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49773         users can blindly add volatile.
49774         * doc/posix-headers/signal.texi (signal.h): Document it.
49775         Reported by Matthew Woehlke.
49776
49777 2009-03-23  Jim Meyering  <meyering@redhat.com>
49778
49779         pathmax: PATH_MAX: use pathconf only when available
49780         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49781         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49782         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49783         This avoids a link failure in a PSP cross-compilation environment
49784         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49785
49786         * lib/vasnprintf.c (divide): Fix typo in comment.
49787
49788 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49789
49790         * gnulib-tool (func_filter_filelist): Fix comment.
49791
49792 2009-03-20  Bruno Haible  <bruno@clisp.org>
49793
49794         Make sockets.h self-contained.
49795         * lib/sockets.c: Include sockets.h first.
49796         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49797
49798 2009-03-19  Eric Blake  <ebb9@byu.net>
49799
49800         doc: mention more functions added in cygwin 1.7.0
49801         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49802         addition.
49803         * doc/posix-functions/log2f.texi: Likewise.
49804
49805 2009-03-19  Jim Meyering  <meyering@redhat.com>
49806
49807         fsusage: avoid syntax error due to statement-before-declaration
49808         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49809         after all declarations.  Reported by Matthew Woehlke in
49810         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49811
49812 2009-03-18  Eric Blake  <ebb9@byu.net>
49813
49814         build-aux/compile: sync from automake
49815         * build-aux/compile: New file, from automake.
49816         * config/srclist.txt: Mention build-aux/compile.
49817
49818 2009-03-17  Bruno Haible  <bruno@clisp.org>
49819
49820         * lib/git-merge-changelog.c: Fix typo in comment.
49821         Reported by Reuben Thomas <rrt@sc3d.org>.
49822
49823 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49824
49825         * m4/regex.m4: update and improve help for
49826         --without-included-regex.
49827
49828 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49829
49830         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49831         failure on missing include files.
49832
49833 2009-03-17  Eric Blake  <ebb9@byu.net>
49834
49835         doc: mention more functions added in cygwin 1.7.0
49836         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49837         addition.
49838         * doc/posix-functions/fwscanf.texi: Likewise.
49839         * doc/posix-functions/swprintf.texi: Likewise.
49840         * doc/posix-functions/swscanf.texi: Likewise.
49841         * doc/posix-functions/vfwprintf.texi: Likewise.
49842         * doc/posix-functions/vfwscanf.texi: Likewise.
49843         * doc/posix-functions/vswprintf.texi: Likewise.
49844         * doc/posix-functions/vswscanf.texi: Likewise.
49845         * doc/posix-functions/vwprintf.texi: Likewise.
49846         * doc/posix-functions/vwscanf.texi: Likewise.
49847         * doc/posix-functions/wcscasecmp.texi: Likewise.
49848         * doc/posix-functions/wcsdup.texi: Likewise.
49849         * doc/posix-functions/wcsftime.texi: Likewise.
49850         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49851         * doc/posix-functions/wprintf.texi: Likewise.
49852         * doc/posix-functions/wscanf.texi: Likewise.
49853         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49854
49855 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49856
49857         maint.mk: really add $(AM_MAKEFLAGS)
49858         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49859         was inadvertently omitted in the last commit.
49860         Spotted by Bruno Haible.
49861
49862         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49863         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49864         $(AM_MAKEFLAGS)' rather than plain `make'.
49865
49866         gnulib-tool: execute $MAKE not make
49867         * gnulib-tool: Default $MAKE to 'make'.
49868         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49869         than make.  Initialize $MAKE in the do-autobuild script.
49870
49871         gnulib-tool: use $MAKE not make in generated files
49872         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49873         make, in generated files.  Initialize $MAKE in the do-autobuild
49874         script.
49875
49876         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49877
49878         GNUmakefile: disable parallelism only for multiple, recursive targets
49879         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49880         additions in the Makefile.
49881         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49882         by Automake.
49883         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49884         are listed on the command line and at least one of them is
49885         listed in $(ALL_RECURSIVE_TARGETS).
49886
49887 2009-03-14  Bruno Haible  <bruno@clisp.org>
49888
49889         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49890         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49891         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49892         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49893         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49894         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49895         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49896         unistr/u8-uctomb.
49897         * modules/unistr/u8-strchr (Depends-on): Likewise.
49898         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49899         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49900         unistr/u16-uctomb.
49901         * modules/unistr/u16-strchr (Depends-on): Likewise.
49902         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49903
49904 2009-03-12  Bruno Haible  <bruno@clisp.org>
49905
49906         Work around select() bug on Interix 3.5.
49907         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49908         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49909         * m4/select.m4: New file.
49910         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49911         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49912         * modules/select (Files): Add m4/select.m4.
49913         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49914         * modules/nanosleep (Depends-on): Add select.
49915         * modules/poll (Depends-on): Likewise.
49916         * doc/posix-functions/select.texi: Mention the Interix bug.
49917         Reported by Markus Duft <mduft@gentoo.org>.
49918
49919         * lib/select.c: Renamed from lib/winsock-select.c.
49920         * modules/select (Files): Add lib/select.c, remove
49921         lib/winsock-select.c.
49922         (configure.ac): Update.
49923
49924 2009-03-12  Jim Meyering  <meyering@redhat.com>
49925
49926         avoid gcc warnings about unused macro definitions
49927         * lib/readtokens.c (STREQ): Remove unused definition.
49928         * lib/xmalloc.c (SIZE_MAX): Likewise.
49929         * lib/openat-die.c (N_): Likewise.
49930         * lib/mountlist.c (SIZE_MAX): Remove definition.
49931         Instead, include <stdint.h>.
49932         * lib/readutmp.c: Likewise.
49933         * modules/readutmp (Depends-on): Add stdint.
49934         * modules/mountlist (Depends-on): Add stdint.
49935         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49936
49937 2009-03-10  Bruno Haible  <bruno@clisp.org>
49938
49939         Tests for module 'mbmemcasecoll'.
49940         * modules/mbmemcasecoll-tests: New file.
49941         * tests/test-mbmemcasecoll1.sh: New file.
49942         * tests/test-mbmemcasecoll2.sh: New file.
49943         * tests/test-mbmemcasecoll3.sh: New file.
49944         * tests/test-mbmemcasecoll.c: New file.
49945
49946         New module 'mbmemcasecoll'.
49947         * lib/mbmemcasecoll.h: New file.
49948         * lib/mbmemcasecoll.c: New file.
49949         * modules/mbmemcasecoll: New file.
49950
49951         * tests/test-mbmemcasecmp.h: New file, extracted from
49952         tests/test-mbmemcasecmp.c.
49953         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49954         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49955         (main): Update.
49956         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49957
49958 2009-03-09  Bruno Haible  <bruno@clisp.org>
49959
49960         Tests for module 'mbmemcasecmp'.
49961         * modules/mbmemcasecmp-tests: New file.
49962         * tests/test-mbmemcasecmp1.sh: New file.
49963         * tests/test-mbmemcasecmp2.sh: New file.
49964         * tests/test-mbmemcasecmp3.sh: New file.
49965         * tests/test-mbmemcasecmp.c: New file.
49966
49967         New module 'mbmemcasecmp'.
49968         * lib/mbmemcasecmp.h: New file.
49969         * lib/mbmemcasecmp.c: New file.
49970         * modules/mbmemcasecmp: New file.
49971
49972 2009-03-09  Bruno Haible  <bruno@clisp.org>
49973
49974         Tests for module 'unicase/ulc-casecoll'.
49975         * modules/unicase/ulc-casecoll-tests: New file.
49976         * tests/unicase/test-ulc-casecoll1.sh: New file.
49977         * tests/unicase/test-ulc-casecoll2.sh: New file.
49978         * tests/unicase/test-ulc-casecoll.c: New file.
49979
49980         New module 'unicase/ulc-casecoll'.
49981         * lib/unicase.h (ulc_casecoll): New declaration.
49982         * lib/unicase/ulc-casecoll.c: New file.
49983         * modules/unicase/ulc-casecoll: New file.
49984
49985         New module 'unicase/ulc-casexfrm'.
49986         * lib/unicase.h (ulc_casexfrm): New declaration.
49987         * lib/unicase/ulc-casexfrm.c: New file.
49988         * modules/unicase/ulc-casexfrm: New file.
49989
49990 2009-03-09  Bruno Haible  <bruno@clisp.org>
49991
49992         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49993         invocations.
49994
49995         * m4/mbscasecmp.m4: Remove file.
49996         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49997         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49998
49999         * m4/mbscasestr.m4: Remove file.
50000         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50001         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50002
50003         * m4/mbschr.m4: Remove file.
50004         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50005         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50006
50007         * m4/mbscspn.m4: Remove file.
50008         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50009         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50010
50011         * m4/mbslen.m4: Remove file.
50012         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50013         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50014
50015         * m4/mbsncasecmp.m4: Remove file.
50016         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50017         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50018
50019         * m4/mbsnlen.m4: Remove file.
50020         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50021         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50022
50023         * m4/mbspbrk.m4: Remove file.
50024         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50025         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50026
50027         * m4/mbspcasecmp.m4: Remove file.
50028         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50029         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50030
50031         * m4/mbsrchr.m4: Remove file.
50032         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50033         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50034
50035         * m4/mbssep.m4: Remove file.
50036         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50037         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50038
50039         * m4/mbsspn.m4: Remove file.
50040         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50041         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50042
50043         * m4/mbsstr.m4: Remove file.
50044         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50045         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50046
50047         * m4/mbstok_r.m4: Remove file.
50048         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50049         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50050
50051         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50052
50053         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50054         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50055
50056         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50057
50058 2009-03-08  Bruno Haible  <bruno@clisp.org>
50059
50060         Tests for module 'unicase/ulc-casecmp'.
50061         * modules/unicase/ulc-casecmp-tests: New file.
50062         * tests/unicase/test-ulc-casecmp1.sh: New file.
50063         * tests/unicase/test-ulc-casecmp2.sh: New file.
50064         * tests/unicase/test-ulc-casecmp.c: New file.
50065
50066         New module 'unicase/ulc-casecmp'.
50067         * lib/unicase.h (ulc_casecmp): New declaration.
50068         * lib/unicase/ulc-casecmp.c: New file.
50069         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50070         'const SRC_UNIT *'.
50071         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50072         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50073         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50074         * modules/unicase/ulc-casecmp: New file.
50075
50076         Tests for module 'unicase/u32-is-cased'.
50077         * modules/unicase/u32-is-cased-tests: New file.
50078         * tests/unicase/test-u32-is-cased.c: New file.
50079
50080         Tests for module 'unicase/u16-is-cased'.
50081         * modules/unicase/u16-is-cased-tests: New file.
50082         * tests/unicase/test-u16-is-cased.c: New file.
50083
50084         Tests for module 'unicase/u8-is-cased'.
50085         * modules/unicase/u8-is-cased-tests: New file.
50086         * tests/unicase/test-u8-is-cased.c: New file.
50087         * tests/unicase/test-is-cased.h: New file.
50088
50089         New module 'unicase/u32-is-cased'.
50090         * lib/unicase/u32-is-cased.c: New file.
50091         * modules/unicase/u32-is-cased: New file.
50092
50093         New module 'unicase/u16-is-cased'.
50094         * lib/unicase/u16-is-cased.c: New file.
50095         * modules/unicase/u16-is-cased: New file.
50096
50097         New module 'unicase/u8-is-cased'.
50098         * lib/unicase/u8-is-cased.c: New file.
50099         * lib/unicase/u-is-cased.h: New file.
50100         * modules/unicase/u8-is-cased: New file.
50101
50102         Tests for module 'unicase/u32-is-casefolded'.
50103         * modules/unicase/u32-is-casefolded-tests: New file.
50104         * tests/unicase/test-u32-is-casefolded.c: New file.
50105
50106         Tests for module 'unicase/u16-is-casefolded'.
50107         * modules/unicase/u16-is-casefolded-tests: New file.
50108         * tests/unicase/test-u16-is-casefolded.c: New file.
50109
50110         Tests for module 'unicase/u8-is-casefolded'.
50111         * modules/unicase/u8-is-casefolded-tests: New file.
50112         * tests/unicase/test-u8-is-casefolded.c: New file.
50113         * tests/unicase/test-is-casefolded.h: New file.
50114
50115         New module 'unicase/u32-is-casefolded'.
50116         * lib/unicase/u32-is-casefolded.c: New file.
50117         * modules/unicase/u32-is-casefolded: New file.
50118
50119         New module 'unicase/u16-is-casefolded'.
50120         * lib/unicase/u16-is-casefolded.c: New file.
50121         * modules/unicase/u16-is-casefolded: New file.
50122
50123         New module 'unicase/u8-is-casefolded'.
50124         * lib/unicase/u8-is-casefolded.c: New file.
50125         * modules/unicase/u8-is-casefolded: New file.
50126
50127         Tests for module 'unicase/u32-is-titlecase'.
50128         * modules/unicase/u32-is-titlecase-tests: New file.
50129         * tests/unicase/test-u32-is-titlecase.c: New file.
50130
50131         Tests for module 'unicase/u16-is-titlecase'.
50132         * modules/unicase/u16-is-titlecase-tests: New file.
50133         * tests/unicase/test-u16-is-titlecase.c: New file.
50134
50135         Tests for module 'unicase/u8-is-titlecase'.
50136         * modules/unicase/u8-is-titlecase-tests: New file.
50137         * tests/unicase/test-u8-is-titlecase.c: New file.
50138         * tests/unicase/test-is-titlecase.h: New file.
50139
50140         New module 'unicase/u32-is-titlecase'.
50141         * lib/unicase/u32-is-titlecase.c: New file.
50142         * modules/unicase/u32-is-titlecase: New file.
50143
50144         New module 'unicase/u16-is-titlecase'.
50145         * lib/unicase/u16-is-titlecase.c: New file.
50146         * modules/unicase/u16-is-titlecase: New file.
50147
50148         New module 'unicase/u8-is-titlecase'.
50149         * lib/unicase/u8-is-titlecase.c: New file.
50150         * modules/unicase/u8-is-titlecase: New file.
50151
50152         Tests for module 'unicase/u32-is-lowercase'.
50153         * modules/unicase/u32-is-lowercase-tests: New file.
50154         * tests/unicase/test-u32-is-lowercase.c: New file.
50155
50156         Tests for module 'unicase/u16-is-lowercase'.
50157         * modules/unicase/u16-is-lowercase-tests: New file.
50158         * tests/unicase/test-u16-is-lowercase.c: New file.
50159
50160         Tests for module 'unicase/u8-is-lowercase'.
50161         * modules/unicase/u8-is-lowercase-tests: New file.
50162         * tests/unicase/test-u8-is-lowercase.c: New file.
50163         * tests/unicase/test-is-lowercase.h: New file.
50164
50165         New module 'unicase/u32-is-lowercase'.
50166         * lib/unicase/u32-is-lowercase.c: New file.
50167         * modules/unicase/u32-is-lowercase: New file.
50168
50169         New module 'unicase/u16-is-lowercase'.
50170         * lib/unicase/u16-is-lowercase.c: New file.
50171         * modules/unicase/u16-is-lowercase: New file.
50172
50173         New module 'unicase/u8-is-lowercase'.
50174         * lib/unicase/u8-is-lowercase.c: New file.
50175         * modules/unicase/u8-is-lowercase: New file.
50176
50177         Tests for module 'unicase/u32-is-uppercase'.
50178         * modules/unicase/u32-is-uppercase-tests: New file.
50179         * tests/unicase/test-u32-is-uppercase.c: New file.
50180
50181         Tests for module 'unicase/u16-is-uppercase'.
50182         * modules/unicase/u16-is-uppercase-tests: New file.
50183         * tests/unicase/test-u16-is-uppercase.c: New file.
50184
50185         Tests for module 'unicase/u8-is-uppercase'.
50186         * modules/unicase/u8-is-uppercase-tests: New file.
50187         * tests/unicase/test-u8-is-uppercase.c: New file.
50188         * tests/unicase/test-is-uppercase.h: New file.
50189
50190         New module 'unicase/u32-is-uppercase'.
50191         * lib/unicase/u32-is-uppercase.c: New file.
50192         * modules/unicase/u32-is-uppercase: New file.
50193
50194         New module 'unicase/u16-is-uppercase'.
50195         * lib/unicase/u16-is-uppercase.c: New file.
50196         * modules/unicase/u16-is-uppercase: New file.
50197
50198         New module 'unicase/u8-is-uppercase'.
50199         * lib/unicase/u8-is-uppercase.c: New file.
50200         * modules/unicase/u8-is-uppercase: New file.
50201
50202         New module 'unicase/u32-is-invariant'.
50203         * lib/unicase/u32-is-invariant.c: New file.
50204         * modules/unicase/u32-is-invariant: New file.
50205
50206         New module 'unicase/u16-is-invariant'.
50207         * lib/unicase/u16-is-invariant.c: New file.
50208         * modules/unicase/u16-is-invariant: New file.
50209
50210         New module 'unicase/u8-is-invariant'.
50211         * lib/unicase/u8-is-invariant.c: New file.
50212         * lib/unicase/invariant.h: New file.
50213         * lib/unicase/u-is-invariant.h: New file.
50214         * modules/unicase/u8-is-invariant: New file.
50215
50216         Tests for module 'unicase/u32-casecoll'.
50217         * modules/unicase/u32-casecoll-tests: New file.
50218         * tests/unicase/test-u32-casecoll.c: New file.
50219
50220         Tests for module 'unicase/u16-casecoll'.
50221         * modules/unicase/u16-casecoll-tests: New file.
50222         * tests/unicase/test-u16-casecoll.c: New file.
50223
50224         Tests for module 'unicase/u8-casecoll'.
50225         * modules/unicase/u8-casecoll-tests: New file.
50226         * tests/unicase/test-u8-casecoll.c: New file.
50227
50228         New module 'unicase/u32-casecoll'.
50229         * lib/unicase/u32-casecoll.c: New file.
50230         * modules/unicase/u32-casecoll: New file.
50231
50232         New module 'unicase/u16-casecoll'.
50233         * lib/unicase/u16-casecoll.c: New file.
50234         * modules/unicase/u16-casecoll: New file.
50235
50236         New module 'unicase/u8-casecoll'.
50237         * lib/unicase/u8-casecoll.c: New file.
50238         * lib/unicase/u-casecoll.h: New file.
50239         * modules/unicase/u8-casecoll: New file.
50240
50241         New module 'unicase/u32-casexfrm'.
50242         * lib/unicase/u32-casexfrm.c: New file.
50243         * modules/unicase/u32-casexfrm: New file.
50244
50245         New module 'unicase/u16-casexfrm'.
50246         * lib/unicase/u16-casexfrm.c: New file.
50247         * modules/unicase/u16-casexfrm: New file.
50248
50249         New module 'unicase/u8-casexfrm'.
50250         * lib/unicase/u8-casexfrm.c: New file.
50251         * lib/unicase/u-casexfrm.h: New file.
50252         * modules/unicase/u8-casexfrm: New file.
50253
50254         Tests for module 'unicase/u32-casecmp'.
50255         * modules/unicase/u32-casecmp-tests: New file.
50256         * tests/unicase/test-u32-casecmp.c: New file.
50257
50258         Tests for module 'unicase/u16-casecmp'.
50259         * modules/unicase/u16-casecmp-tests: New file.
50260         * tests/unicase/test-u16-casecmp.c: New file.
50261
50262         Tests for module 'unicase/u8-casecmp'.
50263         * modules/unicase/u8-casecmp-tests: New file.
50264         * tests/unicase/test-u8-casecmp.c: New file.
50265         * tests/unicase/test-casecmp.h: New file.
50266
50267         New module 'unicase/u32-casecmp'.
50268         * lib/unicase/u32-casecmp.c: New file.
50269         * modules/unicase/u32-casecmp: New file.
50270
50271         New module 'unicase/u16-casecmp'.
50272         * lib/unicase/u16-casecmp.c: New file.
50273         * modules/unicase/u16-casecmp: New file.
50274
50275         New module 'unicase/u8-casecmp'.
50276         * lib/unicase/u8-casecmp.c: New file.
50277         * lib/unicase/u-casecmp.h: New file.
50278         * modules/unicase/u8-casecmp: New file.
50279
50280         Tests for module 'unicase/u32-casefold'.
50281         * modules/unicase/u32-casefold-tests: New file.
50282         * tests/unicase/test-u32-casefold.c: New file.
50283
50284         Tests for module 'unicase/u16-casefold'.
50285         * modules/unicase/u16-casefold-tests: New file.
50286         * tests/unicase/test-u16-casefold.c: New file.
50287
50288         Tests for module 'unicase/u8-casefold'.
50289         * modules/unicase/u8-casefold-tests: New file.
50290         * tests/unicase/test-u8-casefold.c: New file.
50291
50292         New module 'unicase/u32-casefold'.
50293         * lib/unicase/u32-casefold.c: New file.
50294         * modules/unicase/u32-casefold: New file.
50295
50296         New module 'unicase/u16-casefold'.
50297         * lib/unicase/u16-casefold.c: New file.
50298         * modules/unicase/u16-casefold: New file.
50299
50300         New module 'unicase/u8-casefold'.
50301         * lib/unicase/u8-casefold.c: New file.
50302         * lib/unicase/u-casefold.h: New file.
50303         * modules/unicase/u8-casefold: New file.
50304
50305         New module 'unicase/tocasefold'.
50306         * lib/unicase/casefold.h: New file.
50307         * lib/unicase/tocasefold.c: New file.
50308         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50309         * modules/unicase/tocasefold: New file.
50310
50311         Tests for module 'unicase/u32-totitle'.
50312         * modules/unicase/u32-totitle-tests: New file.
50313         * tests/unicase/test-u32-totitle.c: New file.
50314
50315         Tests for module 'unicase/u16-totitle'.
50316         * modules/unicase/u16-totitle-tests: New file.
50317         * tests/unicase/test-u16-totitle.c: New file.
50318
50319         Tests for module 'unicase/u8-totitle'.
50320         * modules/unicase/u8-totitle-tests: New file.
50321         * tests/unicase/test-u8-totitle.c: New file.
50322
50323         New module 'unicase/u32-totitle'.
50324         * lib/unicase/u32-totitle.c: New file.
50325         * modules/unicase/u32-totitle: New file.
50326
50327         New module 'unicase/u16-totitle'.
50328         * lib/unicase/u16-totitle.c: New file.
50329         * modules/unicase/u16-totitle: New file.
50330
50331         New module 'unicase/u8-totitle'.
50332         * lib/unicase/u8-totitle.c: New file.
50333         * lib/unicase/u-totitle.h: New file.
50334         * modules/unicase/u8-totitle: New file.
50335
50336         Tests for module 'unicase/u32-tolower'.
50337         * modules/unicase/u32-tolower-tests: New file.
50338         * tests/unicase/test-u32-tolower.c: New file.
50339
50340         Tests for module 'unicase/u16-tolower'.
50341         * modules/unicase/u16-tolower-tests: New file.
50342         * tests/unicase/test-u16-tolower.c: New file.
50343
50344         Tests for module 'unicase/u8-tolower'.
50345         * modules/unicase/u8-tolower-tests: New file.
50346         * tests/unicase/test-u8-tolower.c: New file.
50347
50348         New module 'unicase/u32-tolower'.
50349         * lib/unicase/u32-tolower.c: New file.
50350         * modules/unicase/u32-tolower: New file.
50351
50352         New module 'unicase/u16-tolower'.
50353         * lib/unicase/u16-tolower.c: New file.
50354         * modules/unicase/u16-tolower: New file.
50355
50356         New module 'unicase/u8-tolower'.
50357         * lib/unicase/u8-tolower.c: New file.
50358         * modules/unicase/u8-tolower: New file.
50359
50360         Tests for module 'unicase/u32-toupper'.
50361         * modules/unicase/u32-toupper-tests: New file.
50362         * tests/unicase/test-u32-toupper.c: New file.
50363
50364         Tests for module 'unicase/u16-toupper'.
50365         * modules/unicase/u16-toupper-tests: New file.
50366         * tests/unicase/test-u16-toupper.c: New file.
50367
50368         Tests for module 'unicase/u8-toupper'.
50369         * modules/unicase/u8-toupper-tests: New file.
50370         * tests/unicase/test-u8-toupper.c: New file.
50371
50372         New module 'unicase/u32-toupper'.
50373         * lib/unicase/u32-toupper.c: New file.
50374         * modules/unicase/u32-toupper: New file.
50375
50376         New module 'unicase/u16-toupper'.
50377         * lib/unicase/u16-toupper.c: New file.
50378         * modules/unicase/u16-toupper: New file.
50379
50380         New module 'unicase/u8-toupper'.
50381         * lib/unicase/u8-toupper.c: New file.
50382         * modules/unicase/u8-toupper: New file.
50383
50384         New module 'unicase/u32-casemap'.
50385         * lib/unicase/u32-casemap.c: New file.
50386         * modules/unicase/u32-casemap: New file.
50387
50388         New module 'unicase/u16-casemap'.
50389         * lib/unicase/u16-casemap.c: New file.
50390         * modules/unicase/u16-casemap: New file.
50391
50392         New module 'unicase/u8-casemap'.
50393         * lib/unicase/unicasemap.h: New file.
50394         * lib/unicase/u8-casemap.c: New file.
50395         * lib/unicase/u-casemap.h: New file.
50396         * modules/unicase/u8-casemap: New file.
50397
50398         New module 'unicase/special-casing'.
50399         * lib/unicase/special-casing.h: New file.
50400         * lib/unicase/special-casing.c: New file.
50401         * lib/unicase/special-casing-table.gperf: New file, generated by
50402         gen-uni-tables.c.
50403         * modules/unicase/special-casing: New file.
50404
50405         Tests for module 'unicase/locale-language'.
50406         * modules/unicase/locale-language-tests: New file.
50407         * tests/unicase/test-locale-language.sh: New file.
50408         * tests/unicase/test-locale-language.c: New file.
50409
50410         New module 'unicase/locale-language'.
50411         * lib/unicase/locale-language.c: New file.
50412         * lib/unicase/locale-languages.gperf: New file.
50413         * modules/unicase/locale-language: New file.
50414
50415         Generate more tables for case conversion and case folding.
50416         * lib/gen-uni-tables.c (SCC_*): New enum items.
50417         (struct special_casing_rule): New type.
50418         (casing_rules, num_casing_rules, allocated_casing_rules): New
50419         variables.
50420         (add_casing_rule, fill_casing_rules): New functions.
50421         (struct casefold_rule): New type.
50422         (casefolding_rules, num_casefolding_rules,
50423         allocated_casefolding_rules): New variables.
50424         (fill_casefolding_rules): New function.
50425         (unicode_casefold): New variable.
50426         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50427         sort_casing_rules, output_casing_rules): New functions.
50428         (main): Accept to more arguments: SpecialCasing.txt and
50429         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50430         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50431         Output mapping for casefolding.
50432
50433         * lib/unicase.h: Include stdbool.h, uninorm.h.
50434         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50435         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50436         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50437         arguments.
50438         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50439         resultp arguments.
50440         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50441         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50442         resultp arguments.
50443         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50444         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50445         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50446         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50447         declarations.
50448         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50449
50450 2009-03-08  Bruno Haible  <bruno@clisp.org>
50451
50452         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50453         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50454         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50455         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50456
50457 2009-03-07  Bruno Haible  <bruno@clisp.org>
50458
50459         Adjust u*_normcmp, u*_normcoll API.
50460         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50461         u16_normcoll, u32_normcoll): Change failure conventions.
50462         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50463         errno and return -1.
50464         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50465
50466 2009-03-07  Bruno Haible  <bruno@clisp.org>
50467
50468         Tests for module 'uninorm/u32-normcoll'.
50469         * modules/uninorm/u32-normcoll-tests: New file.
50470         * tests/uninorm/test-u32-normcoll.c: New file.
50471
50472         Tests for module 'uninorm/u16-normcoll'.
50473         * modules/uninorm/u16-normcoll-tests: New file.
50474         * tests/uninorm/test-u16-normcoll.c: New file.
50475
50476         Tests for module 'uninorm/u8-normcoll'.
50477         * modules/uninorm/u8-normcoll-tests: New file.
50478         * tests/uninorm/test-u8-normcoll.c: New file.
50479
50480 2009-03-07  Bruno Haible  <bruno@clisp.org>
50481
50482         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50483         tests/uninorm/test-u32-normcmp.c.
50484         * tests/uninorm/test-u32-normcmp.c: Include it.
50485         (test_nonascii): New function, extracted from main. Add some more
50486         tests.
50487         (main): Invoke test_ascii and test_nonascii.
50488         * modules/uninorm/u32-normcmp-tests (Files): Add
50489         tests/uninorm/test-u32-normcmp.h.
50490         (Depends-on): Remove uninorm/u32-normcmp.
50491
50492         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50493         tests/uninorm/test-u16-normcmp.c.
50494         * tests/uninorm/test-u16-normcmp.c: Include it.
50495         (test_nonascii): New function, extracted from main. Add some more
50496         tests.
50497         (main): Invoke test_ascii and test_nonascii.
50498         * modules/uninorm/u16-normcmp-tests (Files): Add
50499         tests/uninorm/test-u16-normcmp.h.
50500         (Depends-on): Remove uninorm/u16-normcmp.
50501
50502         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50503         tests/uninorm/test-u8-normcmp.c.
50504         * tests/uninorm/test-u8-normcmp.c: Include it.
50505         (test_nonascii): New function, extracted from main. Add some more
50506         tests.
50507         (main): Invoke test_ascii and test_nonascii.
50508         * modules/uninorm/u8-normcmp-tests (Files): Add
50509         tests/uninorm/test-u8-normcmp.h.
50510         (Depends-on): Remove uninorm/u8-normcmp.
50511
50512 2009-03-07  Bruno Haible  <bruno@clisp.org>
50513
50514         New module 'uninorm/u32-normcoll'.
50515         * lib/uninorm/u32-normcoll.c: New file.
50516         * modules/uninorm/u32-normcoll: New file.
50517
50518         New module 'uninorm/u16-normcoll'.
50519         * lib/uninorm/u16-normcoll.c: New file.
50520         * modules/uninorm/u16-normcoll: New file.
50521
50522         New module 'uninorm/u8-normcoll'.
50523         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50524         declarations.
50525         * lib/uninorm/u8-normcoll.c: New file.
50526         * lib/uninorm/u-normcoll.h: New file.
50527         * modules/uninorm/u8-normcoll: New file.
50528
50529         New module 'uninorm/u32-normxfrm'.
50530         * lib/uninorm/u32-normxfrm.c: New file.
50531         * modules/uninorm/u32-normxfrm: New file.
50532
50533         New module 'uninorm/u16-normxfrm'.
50534         * lib/uninorm/u16-normxfrm.c: New file.
50535         * modules/uninorm/u16-normxfrm: New file.
50536
50537         New module 'uninorm/u8-normxfrm'.
50538         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50539         declarations.
50540         * lib/uninorm/u8-normxfrm.c: New file.
50541         * lib/uninorm/u-normxfrm.h: New file.
50542         * modules/uninorm/u8-normxfrm: New file.
50543
50544 2009-03-07  Bruno Haible  <bruno@clisp.org>
50545
50546         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50547         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50548         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50549
50550 2009-03-07  Bruno Haible  <bruno@clisp.org>
50551
50552         New module 'memxfrm'.
50553         * lib/memxfrm.h: New file.
50554         * lib/memxfrm.c: New file.
50555         * modules/memxfrm: New file.
50556
50557 2009-03-07  Bruno Haible  <bruno@clisp.org>
50558
50559         New module 'memcmp2'.
50560         * lib/memcmp2.h: New file.
50561         * lib/memcmp2.c: New file.
50562         * modules/memcmp2: New file.
50563
50564 2009-03-07  Bruno Haible  <bruno@clisp.org>
50565
50566         Tests for module 'uninorm/decomposing-form'.
50567         * modules/uninorm/decomposing-form-tests: New file.
50568         * tests/uninorm/test-decomposing-form.c: New file.
50569
50570         New module 'uninorm/decomposing-form'.
50571         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50572         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50573         Add 'decomposing_variant' field.
50574         * lib/uninorm/decomposing-form.c: New file.
50575         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50576         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50577         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50578         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50579         * modules/uninorm/decomposing-form: New file.
50580         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50581         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50582
50583 2009-03-07  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50586         strings.
50587
50588 2009-03-06  Bruno Haible  <bruno@clisp.org>
50589
50590         Tests for module 'uninorm/u32-normcmp'.
50591         * tests/uninorm/test-u32-normcmp.c: New file.
50592         * modules/uninorm/u32-normcmp-tests: New file.
50593
50594         Tests for module 'uninorm/u16-normcmp'.
50595         * tests/uninorm/test-u16-normcmp.c: New file.
50596         * modules/uninorm/u16-normcmp-tests: New file.
50597
50598         Tests for module 'uninorm/u8-normcmp'.
50599         * tests/uninorm/test-u8-normcmp.c: New file.
50600         * modules/uninorm/u8-normcmp-tests: New file.
50601
50602         New module 'uninorm/u32-normcmp'.
50603         * lib/uninorm/u32-normcmp.c: New file.
50604         * modules/uninorm/u32-normcmp: New file.
50605
50606         New module 'uninorm/u16-normcmp'.
50607         * lib/uninorm/u16-normcmp.c: New file.
50608         * modules/uninorm/u16-normcmp: New file.
50609
50610         New module 'uninorm/u8-normcmp'.
50611         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50612         declarations.
50613         * lib/uninorm/u8-normcmp.c: New file.
50614         * lib/uninorm/u-normcmp.h: New file.
50615         * modules/uninorm/u8-normcmp: New file.
50616
50617 2009-03-06  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50620         Reported by Eric Blake.
50621
50622 2009-03-06  Eric Blake  <ebb9@byu.net>
50623             Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50626         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50627         condition.
50628         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50629         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50630         condition.
50631         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50632
50633 2009-03-06  Eric Blake  <ebb9@byu.net>
50634
50635         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50636         to avoid compiler warnings.
50637         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50638
50639 2009-03-05  Bruno Haible  <bruno@clisp.org>
50640
50641         * tests/test-ftell.c (main): Disable test beyond end of file on
50642         FreeMiNT.
50643         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50644
50645 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50646
50647         * lib/filevercmp.c: Move hidden files up in ordering.
50648         * tests/test-filevercmp.c: Add tests for hidden files.
50649
50650 2009-03-04  Bruno Haible  <bruno@clisp.org>
50651
50652         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50653         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50654         AM_CFLAGS.
50655         Reported by Simon Josefsson.
50656
50657 2009-03-03  Bruno Haible  <bruno@clisp.org>
50658
50659         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50660         Reported by Simon Josefsson.
50661
50662         * doc/ld-version-script.texi: Update node reference.
50663
50664 2009-03-03  Bruno Haible  <bruno@clisp.org>
50665
50666         * modules/visibility (License): Change to 'unlimited'.
50667         Suggested by Simon Josefsson.
50668
50669 2009-03-03  Jim Meyering  <meyering@redhat.com>
50670
50671         unlinkdir: cannot_unlink_dir may modify process state
50672         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50673         it's neither thread-safe nor appropriate for use in a library.
50674
50675 2009-03-03  Eric Blake  <ebb9@byu.net>
50676
50677         test-closein: silence test under Darwin
50678         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50679         care if it dies from EPIPE or EBADF.
50680
50681 2009-03-03  Bruno Haible  <bruno@clisp.org>
50682
50683         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50684         earlier.
50685         * doc/visibility.texi: Fix @node and @section.
50686
50687 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50688
50689         * doc/gnulib.texi: Link to sections for ld version script and
50690         visibility.
50691         * doc/visibility.texi: Add @node and @section.
50692         * modules/ld-version-script: New module.
50693         * m4/ld-version-script.m4: New file.
50694         * doc/ld-version-script.texi: New file.
50695
50696 2009-03-02  David Lutterkort  <lutter@redhat.com>
50697
50698         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50700
50701 2009-03-02  Bruno Haible  <bruno@clisp.org>
50702
50703         * doc/visibility.texi: Mention libtool's -export-symbols option.
50704
50705 2009-03-02  Jim Meyering  <meyering@redhat.com>
50706
50707         announce-gen: new option: --no-print-checksums
50708         * build-aux/announce-gen (usage): Describe it.
50709         (print_checksums): Print a newline here, not in the [*] footnote.
50710         (main): Honor it.
50711
50712 2009-03-01  Bruno Haible  <bruno@clisp.org>
50713
50714         Use socklen_t in the native Windows replacements prototypes.
50715         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50716         instead of 'int'.
50717         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50718         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50719         * modules/getsockopt (Depends-on): Add socklen.
50720         * modules/setsockopt (Depends-on): Add socklen.
50721
50722 2009-03-01  Bruno Haible  <bruno@clisp.org>
50723
50724         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50725         least 4.2.
50726
50727 2009-03-01  Eric Blake  <ebb9@byu.net>
50728             Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50731         error messages.
50732         * lib/wait-process.c (wait_subprocess): Omit error message about
50733         deadly signal sent to the child of termsigp != NULL.
50734
50735 2009-03-01  Eric Blake  <ebb9@byu.net>
50736
50737         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50738
50739 2009-03-01  Bruno Haible  <bruno@clisp.org>
50740
50741         Avoid a gcc warning.
50742         * tests/test-sched.c (b): Make global.
50743         Reported by Eric Blake.
50744
50745 2009-01-19  Martin Lambers  <marlam@marlam.de>
50746
50747         Provide POSIX semantics for socket timeout options on W32.
50748         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50749         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50750         * modules/setsockopt: Depend on sys_time module for struct timeval.
50751         * modules/getsockopt: Depend on sys_time module for struct timeval.
50752
50753 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50754
50755         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50756         __USE_GNU, for consistency with netdb.in.h.
50757         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50758
50759 2009-03-01  Bruno Haible  <bruno@clisp.org>
50760
50761         More support for FreeMiNT.
50762         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50763         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50764
50765 2009-03-01  Bruno Haible  <bruno@clisp.org>
50766
50767         More support for FreeMiNT.
50768         * lib/fpurge.c (fpurge): Correct last commit.
50769         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50770
50771 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50772
50773         Fix unportable awk script in vc-list-files.
50774         * build-aux/vc-list-files: In the replacement awk script, use
50775         substr with a second argument of 1, not zero.
50776         Report by Simon Josefsson.
50777
50778 2009-02-28  Bruno Haible  <bruno@clisp.org>
50779
50780         More support for FreeMiNT.
50781         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50782         to FreeMiNT today.
50783         * lib/fwriting.c (fwriting): Likewise.
50784         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50785
50786 2009-02-28  Bruno Haible  <bruno@clisp.org>
50787
50788         * tests/test-freadseek.c (main): Disable test beyond end of file on
50789         FreeMiNT.
50790         * tests/test-ftello.c (main): Likewise.
50791         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50792
50793 2009-02-28  Bruno Haible  <bruno@clisp.org>
50794
50795         Add tentative support for FreeMiNT.
50796         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50797         * lib/fpurge.c (fpurge): Likewise.
50798         * lib/freadable.c (freadable): Likewise.
50799         * lib/freading.c (freading): Likewise.
50800         * lib/freadptr.c (freadptr): Likewise.
50801         * lib/freadseek.c (freadptrinc): Likewise.
50802         * lib/fseeko.c (rpl_fseeko): Likewise.
50803         * lib/fseterr.c (fseterr): Likewise.
50804         * lib/fwritable.c (fwritable): Likewise.
50805         * lib/fwriting.c (fwriting): Likewise.
50806         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50807         Hourihane.
50808         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50809
50810 2009-02-28  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50813         SIGCHLD.
50814         Reported by Jim Meyering.
50815
50816 2009-02-28  Bruno Haible  <bruno@clisp.org>
50817
50818         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50819         Mention the results of these tests on various platforms.
50820         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50821         order.
50822         * doc/posix-functions/printf.texi: Likewise.
50823         * doc/posix-functions/snprintf.texi: Likewise.
50824         * doc/posix-functions/sprintf.texi: Likewise.
50825         * doc/posix-functions/vfprintf.texi: Likewise.
50826         * doc/posix-functions/vprintf.texi: Likewise.
50827         * doc/posix-functions/vsnprintf.texi: Likewise.
50828         * doc/posix-functions/vsprintf.texi: Likewise.
50829         * doc/glibc-functions/obstack_printf.texi: Likewise.
50830         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50831
50832 2009-02-28  Bruno Haible  <bruno@clisp.org>
50833
50834         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50835         Reported by Loïc Minier <lool@dooz.org>.
50836
50837 2009-02-27  Bruno Haible  <bruno@clisp.org>
50838
50839         * gnulib-tool (func_import): Make the sed expression used to create the
50840         sed script for updating the .gitignore file POSIX compliant.
50841         Reported by Eric Blake.
50842
50843 2009-02-27  Bruno Haible  <bruno@clisp.org>
50844
50845         * gnulib-tool (sed): Don't alias as "sed --posix".
50846         Reported by Eric Blake.
50847
50848 2009-02-27  Bruno Haible  <bruno@clisp.org>
50849
50850         Avoid test link errors.
50851         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50852         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50853         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50854         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50856
50857 2009-02-27  Bruno Haible  <bruno@clisp.org>
50858
50859         Avoid spurious "(cached)" in configure output.
50860         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50861         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50862         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50863         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50864         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50865         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50866         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50867         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50868         Reported by Eric Blake.
50869
50870 2009-02-27  Eric Blake  <ebb9@byu.net>
50871
50872         printf: fix regression in previous patch
50873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50874
50875 2009-02-27  Bruno Haible  <bruno@clisp.org>
50876
50877         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50878         value.
50879         * lib/stdint.in.h: Likewise.
50880         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50881
50882 2009-02-27  Eric Blake  <ebb9@byu.net>
50883
50884         doc: mention more functions added in cygwin 1.7.0
50885         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50886         addition.
50887         * doc/posix-functions/open_wmemstream.texi: Likewise.
50888         * doc/posix-functions/wcsnlen.texi: Likewise.
50889         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50890         * doc/posix-functions/wcstod.texi: Likewise.
50891         * doc/posix-functions/wcstof.texi: Likewise.
50892         * doc/posix-functions/wcstoimax.texi: Likewise.
50893         * doc/posix-functions/wcstok.texi: Likewise.
50894         * doc/posix-functions/wcstoumax.texi: Likewise.
50895
50896         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50898         * doc/posix-functions/fprintf.texi: Update.
50899         * doc/posix-functions/printf.texi: Update.
50900         * doc/posix-functions/snprintf.texi: Update.
50901         * doc/posix-functions/sprintf.texi: Update.
50902         * doc/posix-functions/vfprintf.texi: Update.
50903         * doc/posix-functions/vprintf.texi: Update.
50904         * doc/posix-functions/vsnprintf.texi: Update.
50905         * doc/posix-functions/vsprintf.texi: Update.
50906         * doc/glibc-functions/obstack_printf.texi: Update.
50907         * doc/glibc-functions/obstack_vprintf.texi: Update.
50908
50909 2009-02-26  Eric Blake  <ebb9@byu.net>
50910
50911         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50912         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50913         compilation bug by using runtime conversion.
50914         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50915         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50916         * modules/ceill-tests (Files): Use nan.h.
50917         * modules/floorl-tests (Files): Likewise.
50918         * modules/frexpl-tests (Files): Likewise.
50919         * modules/isnanl-tests (Files): Likewise.
50920         * modules/ldexpl-tests (Files): Likewise.
50921         * modules/roundl-tests (Files): Likewise.
50922         * modules/truncl-tests (Files): Likewise.
50923         * tests/test-ceill.c (main): Use a working NaN.
50924         * tests/test-floorl.c (main): Likewise.
50925         * tests/test-frexpl.c (main): Likewise.
50926         * tests/test-isnan.c (test_long_double): Likewise.
50927         * tests/test-isnanl.h (main): Likewise.
50928         * tests/test-ldexpl.h (main): Likewise.
50929         * tests/test-roundl.h (main): Likewise.
50930         * tests/test-truncl.h (main): Likewise.
50931         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50932
50933 2009-02-26  Eric Blake  <ebb9@byu.net>
50934             Bruno Haible  <bruno@clisp.org>
50935
50936         Work around a *printf bug with %ls on Solaris.
50937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50938         precision is specified, sprintf stops converting the wide string
50939         argument when the number of bytes that have been produced by this
50940         conversion equals or exceeds the precision.
50941         * doc/posix-functions/fprintf.texi: Update.
50942         * doc/posix-functions/printf.texi: Update.
50943         * doc/posix-functions/snprintf.texi: Update.
50944         * doc/posix-functions/sprintf.texi: Update.
50945         * doc/posix-functions/vfprintf.texi: Update.
50946         * doc/posix-functions/vprintf.texi: Update.
50947         * doc/posix-functions/vsnprintf.texi: Update.
50948         * doc/posix-functions/vsprintf.texi: Update.
50949         * doc/glibc-functions/obstack_printf.texi: Update.
50950         * doc/glibc-functions/obstack_vprintf.texi: Update.
50951
50952 2009-02-26  Eric Blake  <ebb9@byu.net>
50953
50954         stdlib: favor compiler check of random.h
50955         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50956         to avoid an ObjC random.h installed by Swarm.
50957
50958 2009-02-26  Bruno Haible  <bruno@clisp.org>
50959
50960         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50961         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50962         Reported by Gary V. Vaughan <gary@gnu.org>.
50963
50964 2009-02-26  Bruno Haible  <bruno@clisp.org>
50965
50966         Fix *printf behaviour regarding the %ls directive.
50967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50968         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50969         NEED_PRINTF_DIRECTIVE_LS.
50970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50971         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50972         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50973         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50974         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50975         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50976         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50977         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50979         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50980         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50981         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50985         * doc/posix-functions/fprintf.texi: Update.
50986         * doc/posix-functions/printf.texi: Update.
50987         * doc/posix-functions/snprintf.texi: Update.
50988         * doc/posix-functions/sprintf.texi: Update.
50989         * doc/posix-functions/vfprintf.texi: Update.
50990         * doc/posix-functions/vprintf.texi: Update.
50991         * doc/posix-functions/vsnprintf.texi: Update.
50992         * doc/posix-functions/vsprintf.texi: Update.
50993         * doc/glibc-functions/obstack_printf.texi: Update.
50994         * doc/glibc-functions/obstack_vprintf.texi: Update.
50995         Reported by Eric Blake.
50996
50997 2009-02-25  Bruno Haible  <bruno@clisp.org>
50998
50999         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51000         with known value.
51001         Reported by Gary V. Vaughan <gary@gnu.org>.
51002
51003 2009-02-25  Bruno Haible  <bruno@clisp.org>
51004
51005         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51006         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51007         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51008         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51009         Reported by Gary V. Vaughan <gary@gnu.org>.
51010
51011 2009-02-25  Bruno Haible  <bruno@clisp.org>
51012
51013         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51014         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51015         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51016         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51017         Reported by Gary V. Vaughan <gary@gnu.org>.
51018
51019 2009-02-25  Eric Blake  <ebb9@byu.net>
51020
51021         tests: skip fseek/ftell tests if ungetc is broken
51022         * m4/ungetc.m4: New file.
51023         * modules/fseek-tests: Split test, so ungetc dependency is
51024         separate from rest of test.
51025         * modules/fseeko-tests: Likewise.
51026         * modules/ftell-tests: Likewise.
51027         * modules/ftello-tests: Likewise.
51028         * tests/test-fseek.c (main): Isolate ungetc dependency.
51029         * tests/test-fseeko.c (main): Likewise.
51030         * tests/test-ftell.c (main): Likewise.
51031         * tests/test-ftello.c (main): Likewise.
51032         * tests/test-fseek2.sh: New file.
51033         * tests/test-fseeko2.sh: Likewise.
51034         * tests/test-ftell2.sh: Likewise.
51035         * tests/test-ftello2.sh: Likewise.
51036
51037 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51038
51039         test-getaddrinfo: fix usage of skip return code 77
51040         * tests/test-gettaddrinfo.c: Return skip code 77 only
51041         for first occurrence of skip (4x77 is not 77)
51042
51043 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51044
51045         strtod: avoid C99 decl-after-statement
51046         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51047
51048 2009-02-24  Eric Blake  <ebb9@byu.net>
51049
51050         strtod: detect HP-UX 11.31 bug
51051         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51052         Reported by Gary V. Vaughan.
51053
51054 2009-02-23  Bruno Haible  <bruno@clisp.org>
51055
51056         Fix invalid read past end of memory block.
51057         * lib/vasnprintf.c (DCHAR_SET): Define.
51058         (local_wcslen): Define only when needed.
51059         (local_strnlen, local_wcsnlen): New functions.
51060         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51061         directives that involve a conversion ourselves.
51062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51063         wcsnlen, mbrtowc, wcrtomb.
51064         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51065         * tests/test-vasprintf-posix.c (test_function): Likewise.
51066         * tests/test-snprintf-posix.h (test_function): Likewise.
51067         * tests/test-sprintf-posix.h (test_function): Likewise.
51068         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51069
51070 2009-02-22  Bruno Haible  <bruno@clisp.org>
51071
51072         Implement new clarified decomposition of Hangul syllables.
51073         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51074         of type LTV, return only a pairwise decomposition.
51075         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51076         Likewise.
51077         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51078         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51079         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51080
51081 2009-02-22  Bruno Haible  <bruno@clisp.org>
51082
51083         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51084         zero-length results and shrink excess allocated memory.
51085         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51086         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51087         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51088         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51089         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51090         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51091         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51092         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51093         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51094         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51095         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51096         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51097
51098 2009-02-21  Bruno Haible  <bruno@clisp.org>
51099
51100         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51101         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51102         spaces after a period. Put a space between a macro name and its
51103         argument list. Trivial rewordings.
51104         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51105         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51106         (main): Return 0 explicitly.
51107
51108 2009-02-21  Bruno Haible  <bruno@clisp.org>
51109
51110         Tests for module 'uninorm/filter'.
51111         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51112         * modules/uninorm/filter-tests: New file.
51113
51114         New module 'uninorm/filter'.
51115         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51116         uninorm_filter_flush, uninorm_filter_free): New declarations.
51117         * lib/uninorm/uninorm-filter.c: New file.
51118         * modules/uninorm/filter: New file.
51119
51120 2009-02-21  Bruno Haible  <bruno@clisp.org>
51121
51122         Tests for module 'uninorm/nfkc'.
51123         * tests/uninorm/test-nfkc.c: New file.
51124         * tests/uninorm/test-u8-nfkc.c: New file.
51125         * tests/uninorm/test-u16-nfkc.c: New file.
51126         * tests/uninorm/test-u32-nfkc.c: New file.
51127         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51128         * tests/uninorm/test-u32-nfkc-big.c: New file.
51129         * modules/uninorm/nfkc-tests: New file.
51130
51131         New module 'uninorm/nfkc'.
51132         * lib/uninorm/nfkc.c: New file.
51133         * modules/uninorm/nfkc: New file.
51134
51135         Tests for module 'uninorm/nfkd'.
51136         * tests/uninorm/test-nfkd.c: New file.
51137         * tests/uninorm/test-u8-nfkd.c: New file.
51138         * tests/uninorm/test-u16-nfkd.c: New file.
51139         * tests/uninorm/test-u32-nfkd.c: New file.
51140         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51141         * tests/uninorm/test-u32-nfkd-big.c: New file.
51142         * modules/uninorm/nfkd-tests: New file.
51143
51144         New module 'uninorm/nfkd'.
51145         * lib/uninorm/nfkd.c: New file.
51146         * modules/uninorm/nfkd: New file.
51147
51148         Tests for module 'uninorm/nfc'.
51149         * tests/uninorm/test-nfc.c: New file.
51150         * tests/uninorm/test-u8-nfc.c: New file.
51151         * tests/uninorm/test-u16-nfc.c: New file.
51152         * tests/uninorm/test-u32-nfc.c: New file.
51153         * tests/uninorm/test-u32-nfc-big.sh: New file.
51154         * tests/uninorm/test-u32-nfc-big.c: New file.
51155         * modules/uninorm/nfc-tests: New file.
51156
51157         New module 'uninorm/nfc'.
51158         * lib/uninorm/nfc.c: New file.
51159         * modules/uninorm/nfc: New file.
51160
51161         Tests for module 'uninorm/nfd'.
51162         * tests/uninorm/test-nfd.c: New file.
51163         * tests/uninorm/test-u8-nfd.c: New file.
51164         * tests/uninorm/test-u16-nfd.c: New file.
51165         * tests/uninorm/test-u32-nfd.c: New file.
51166         * tests/uninorm/test-u32-nfd-big.sh: New file.
51167         * tests/uninorm/test-u32-nfd-big.c: New file.
51168         * tests/uninorm/test-u32-normalize-big.h: New file.
51169         * tests/uninorm/test-u32-normalize-big.c: New file.
51170         * tests/uninorm/NormalizationTest.txt: New file, created from
51171         Unicode 5.1.0 NormalizationTest.txt.
51172         * modules/uninorm/nfd-tests: New file.
51173
51174         New module 'uninorm/nfd'.
51175         * lib/uninorm/nfd.c: New file.
51176         * modules/uninorm/nfd: New file.
51177
51178         New module 'uninorm/u32-normalize'.
51179         * lib/uninorm/u32-normalize.c: New file.
51180         * modules/uninorm/u32-normalize: New file.
51181
51182         New module 'uninorm/u16-normalize'.
51183         * lib/uninorm/u16-normalize.c: New file.
51184         * modules/uninorm/u16-normalize: New file.
51185
51186         New module 'uninorm/u8-normalize'.
51187         * lib/uninorm/u8-normalize.c: New file.
51188         * lib/uninorm/normalize-internal.h: New file.
51189         * lib/uninorm/u-normalize-internal.h: New file.
51190         * modules/uninorm/u8-normalize: New file.
51191
51192         New module 'uninorm/decompose-internal'.
51193         * lib/uninorm/decompose-internal.c: New file.
51194         * modules/uninorm/decompose-internal: New file.
51195
51196         Tests for module 'uninorm/composition'.
51197         * tests/uninorm/test-composition.c: New file.
51198         * modules/uninorm/composition-tests: New file.
51199
51200         New module 'uninorm/composition'.
51201         * lib/uninorm/composition.c: New file.
51202         * lib/uninorm/composition-table.gperf: New file, generated by
51203         gen-uni-tables.
51204         * modules/uninorm/composition: New file.
51205
51206         Tests for module 'uninorm/compat-decomposition'.
51207         * tests/uninorm/test-compat-decomposition.c: New file.
51208         * modules/uninorm/compat-decomposition-tests: New file.
51209
51210         New module 'uninorm/compat-decomposition'.
51211         * lib/uninorm/decompose-internal.h: New file.
51212         * lib/uninorm/compat-decomposition.c: New file.
51213         * modules/uninorm/compat-decomposition: New file.
51214
51215         Tests for module 'uninorm/canonical-decomposition'.
51216         * tests/uninorm/test-canonical-decomposition.c: New file.
51217         * modules/uninorm/canonical-decomposition-tests: New file.
51218
51219         New module 'uninorm/canonical-decomposition'.
51220         * lib/uninorm/canonical-decomposition.c: New file.
51221         * modules/uninorm/canonical-decomposition: New file.
51222
51223         Tests for module 'uninorm/decomposition'.
51224         * tests/uninorm/test-decomposition.c: New file.
51225         * modules/uninorm/decomposition-tests: New file.
51226
51227         New module 'uninorm/decomposition'.
51228         * lib/uninorm/decomposition.c: New file.
51229         * modules/uninorm/decomposition: New file.
51230
51231         New module 'uninorm/decomposition-table'.
51232         * lib/uninorm/decomposition-table.h: New file.
51233         * lib/uninorm/decomposition-table.c: New file.
51234         * lib/uninorm/decomposition-table1.h: New file, generated by
51235         gen-uni-tables.
51236         * lib/uninorm/decomposition-table2.h: New file, generated by
51237         gen-uni-tables.
51238         * modules/uninorm/decomposition-table: New file.
51239
51240         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51241         (UC_DECOMP_*): New enumeration items.
51242         (get_decomposition): New function.
51243         (struct decomp_table): New type.
51244         (output_decomposition, output_decomposition_tables): New functions.
51245         (unicode_composition_exclusions): New variable.
51246         (fill_composition_exclusions, debug_output_composition_tables): New
51247         functions.
51248         (main): Accept one more argument. Invoke fill_composition_exclusions.
51249         Output decomposition and composition tables.
51250
51251         New module 'uninorm/base'.
51252         * lib/uninorm.h: New file.
51253         * lib/unictype.h: Update comment.
51254         * modules/uninorm/base: New file.
51255
51256 2009-02-21  David Lutterkort  <lutter@redhat.com>
51257
51258         Tests for module 'safe-alloc'.
51259         * tests/test-safe-alloc.c: New file.
51260         * modules/safe-alloc-tests: New file.
51261
51262         New module 'safe-alloc'.
51263         * lib/safe-alloc.h: New file.
51264         * lib/safe-alloc.c: New file.
51265         * m4/safe-alloc.m4: New file.
51266         * modules/safe-alloc: New file.
51267         * doc/safe-alloc.texi: New file.
51268         * doc/gnulib.texi: Include it.
51269         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51270         safe-alloc.
51271
51272 2009-02-18  Bruno Haible  <bruno@clisp.org>
51273
51274         Fix link error on non-glibc systems.
51275         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51276         variable.
51277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51278
51279 2009-02-18  Jim Meyering  <meyering@redhat.com>
51280
51281         fts: avoid used-uninitialized error due to recent change
51282         * lib/fts.c (fts_read): Guard uses of the new member,
51283         parent->fts_n_dirs_remaining, since it's not relevant for
51284         the parent of a directory specified on the command-line.
51285
51286 2009-02-17  James Youngman  <jay@gnu.org>
51287             Bruno Haible  <bruno@clisp.org>
51288
51289         * m4/include_next.m4: Reformulate comment.
51290
51291 2009-02-16  Jim Meyering  <meyering@redhat.com>
51292
51293         fts: add #if guards so that the fts_lgpl module still builds
51294         * lib/fts.c: Guard just-added hash-table-using parts with
51295         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51296         Reported by Simon Josefsson.
51297
51298 2009-02-15  Bruno Haible  <bruno@clisp.org>
51299
51300         * modules/array-mergesort-tests: New file.
51301         * tests/test-array-mergesort.c: New file.
51302
51303         New module 'array-mergesort'.
51304         * modules/array-mergesort: New file.
51305         * lib/array-mergesort.h: New file.
51306
51307 2009-02-15  Bruno Haible  <bruno@clisp.org>
51308
51309         Fix 2009-02-07 commit.
51310         * lib/gen-uni-tables.c (output_predicate, output_category,
51311         output_combclass, output_bidi_category, output_decimal_digit,
51312         output_digit, output_numeric, output_mirror, output_scripts,
51313         output_ident_category, output_simple_mapping): Fix format directives.
51314         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51315
51316 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51317
51318         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51319         fixes are available from IBM.
51320
51321 2009-02-13  Jim Meyering  <meyering@redhat.com>
51322
51323         fts: arrange not to stat non-directories in more cases
51324         This makes GNU find (when it doesn't need to stat each file)
51325         *much* more efficient at traversing reiserfs file systems.
51326         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51327         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51328         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51329         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51330         (leaf_optimization_applies): New function.
51331         (LCO_hash, LCO_compare): New helper functions.
51332         (link_count_optimize_ok): New function.
51333         (fts_stat): Initialize new member (if dir).
51334         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51335         we've just stat'ed a directory.  Skip the stat call when possible.
51336         ---
51337         Note this AFS-related exchange:
51338         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51339         and note find's pioctl call in find/fstype.c.
51340         But that is necessary only if you want to enable the
51341         optimization for AFS, and for now, I don't.
51342
51343         fts: move a function definition "up" (no semantic change)
51344         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51345         "up" to precede upcoming use of a related function.
51346
51347 2009-02-11  Jim Meyering  <meyering@redhat.com>
51348
51349         fts: correct internal computation of nlinks (optimization-related)
51350         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51351         whether the current entry is a directory, so don't test it.
51352
51353 2009-02-10  Bruno Haible  <bruno@clisp.org>
51354
51355         Tests for module 'uniwbrk/ulc-wordbreaks'.
51356         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51357         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51358         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51359
51360         Tests for module 'uniwbrk/u32-wordbreaks'.
51361         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51362         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51363
51364         Tests for module 'uniwbrk/u16-wordbreaks'.
51365         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51366         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51367
51368         Tests for module 'uniwbrk/u8-wordbreaks'.
51369         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51370         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51371
51372 2009-02-10  Bruno Haible  <bruno@clisp.org>
51373
51374         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51375         property.
51376         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51377         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51378         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51379
51380 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51381
51382         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51383         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51384
51385 2009-02-10  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51388         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51389         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51390         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51391         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51392         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51393
51394 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51395
51396         * lib/sockets.h (gl_fd_to_handle): New function.
51397
51398         * tests/test-sockets.c: Call gl_fd_to_handle.
51399
51400 2009-02-09  Bruno Haible  <bruno@clisp.org>
51401
51402         * doc/havelib.texi: Document the conventions on bi-arch systems.
51403
51404 2009-02-08  Bruno Haible  <bruno@clisp.org>
51405
51406         Document the AC_LIB_LINKFLAGS macro.
51407         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51408         * doc/gnulib.texi: Include it.
51409
51410 2009-02-08  Bruno Haible  <bruno@clisp.org>
51411
51412         Fix wrong order of sections, compared to TOC.
51413         * doc/gnulib.texi: Include relocatable-maint.texi after the
51414         "Regular expressions" node, not before.
51415
51416 2009-02-08  Bruno Haible  <bruno@clisp.org>
51417
51418         Tests for module 'unicase/totitle'.
51419         * modules/unicase/totitle-tests: New file.
51420
51421         Tests for module 'unicase/tolower'.
51422         * modules/unicase/tolower-tests: New file.
51423
51424         Tests for module 'unicase/toupper'.
51425         * modules/unicase/toupper-tests: New file.
51426         * tests/unicase/test-mapping-part1.h: New file.
51427         * tests/unicase/test-mapping-part2.h: New file.
51428
51429         New module 'unicase/totitle'.
51430         * modules/unicase/totitle: New file.
51431         * lib/unicase/totitle.c: New file.
51432
51433         New module 'unicase/tolower'.
51434         * modules/unicase/tolower: New file.
51435         * lib/unicase/tolower.c: New file.
51436
51437         New module 'unicase/toupper'.
51438         * modules/unicase/toupper: New file.
51439         * lib/unicase/toupper.c: New file.
51440         * lib/unicase/simple-mapping.h: New file.
51441
51442         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51443         (mapping_table): New structure.
51444         (output_simple_mapping): New function.
51445         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51446         * modules/gen-uni-tables (Description): Update.
51447         * lib/unicase/toupper.h: New file, automatically generated by
51448         gen-uni-tables.
51449         * lib/unicase/tolower.h: New file, automatically generated by
51450         gen-uni-tables.
51451         * lib/unicase/totitle.h: New file, automatically generated by
51452         gen-uni-tables.
51453         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51454         gen-uni-tables.
51455         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51456         gen-uni-tables.
51457         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51458         gen-uni-tables.
51459
51460         New module 'unicase/base'.
51461         * modules/unicase/base: New file.
51462         * lib/unicase.h: New file.
51463
51464 2009-02-08  Bruno Haible  <bruno@clisp.org>
51465
51466         New module 'uniwbrk/ulc-wordbreaks'.
51467         * modules/uniwbrk/ulc-wordbreaks: New file.
51468         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51469
51470         New module 'uniwbrk/u32-wordbreaks'.
51471         * modules/uniwbrk/u32-wordbreaks: New file.
51472         * lib/uniwbrk/u32-wordbreaks.c: New file.
51473
51474         New module 'uniwbrk/u16-wordbreaks'.
51475         * modules/uniwbrk/u16-wordbreaks: New file.
51476         * lib/uniwbrk/u16-wordbreaks.c: New file.
51477
51478         New module 'uniwbrk/u8-wordbreaks'.
51479         * modules/uniwbrk/u8-wordbreaks: New file.
51480         * lib/uniwbrk/u8-wordbreaks.c: New file.
51481         * lib/uniwbrk/u-wordbreaks.h: New file.
51482
51483         New module 'uniwbrk/table'.
51484         * modules/uniwbrk/table: New file.
51485         * lib/uniwbrk/wbrktable.h: New file.
51486         * lib/uniwbrk/wbrktable.c: New file.
51487
51488         New module 'uniwbrk/wordbreak-property'.
51489         * modules/uniwbrk/wordbreak-property: New file.
51490         * lib/uniwbrk/wordbreak-property.c: New file.
51491
51492         * lib/gen-uni-tables.c (WBP_*): New enum items.
51493         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51494         (unicode_org_wbp): New variable.
51495         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51496         New functions.
51497         (wbp_table): New structure.
51498         (output_wbp, output_wbrk_tables): New functions.
51499         (main): Accept additional argument. Invoke fill_org_wbp,
51500         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51501         output_wbrk_tables.
51502         * modules/gen-uni-tables (Description): Update.
51503         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51504         gen-uni-tables.
51505
51506         New module 'uniwbrk/base'.
51507         * modules/uniwbrk/base: New file.
51508         * lib/uniwbrk.h: New file.
51509
51510 2009-02-08  Bruno Haible  <bruno@clisp.org>
51511
51512         Update to Unicode 5.1.0.
51513         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51514         U+2185..U+2188.
51515         (is_property_default_ignorable_code_point): Don't include characters
51516         of category Cc or Cs and not-a-characters.
51517         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51518         U+0D79, U+109E, U+109F, U+A60C.
51519         * lib/unictype/bidi_of.h: Regenerated.
51520         * lib/unictype/blocks.h: Regenerated.
51521         * lib/unictype/categ_C.h: Regenerated.
51522         * lib/unictype/categ_Cf.h: Regenerated.
51523         * lib/unictype/categ_Cn.h: Regenerated.
51524         * lib/unictype/categ_L.h: Regenerated.
51525         * lib/unictype/categ_Ll.h: Regenerated.
51526         * lib/unictype/categ_Lm.h: Regenerated.
51527         * lib/unictype/categ_Lo.h: Regenerated.
51528         * lib/unictype/categ_Lu.h: Regenerated.
51529         * lib/unictype/categ_M.h: Regenerated.
51530         * lib/unictype/categ_Mc.h: Regenerated.
51531         * lib/unictype/categ_Me.h: Regenerated.
51532         * lib/unictype/categ_Mn.h: Regenerated.
51533         * lib/unictype/categ_N.h: Regenerated.
51534         * lib/unictype/categ_Nd.h: Regenerated.
51535         * lib/unictype/categ_Nl.h: Regenerated.
51536         * lib/unictype/categ_No.h: Regenerated.
51537         * lib/unictype/categ_P.h: Regenerated.
51538         * lib/unictype/categ_Pd.h: Regenerated.
51539         * lib/unictype/categ_Pe.h: Regenerated.
51540         * lib/unictype/categ_Pf.h: Regenerated.
51541         * lib/unictype/categ_Pi.h: Regenerated.
51542         * lib/unictype/categ_Po.h: Regenerated.
51543         * lib/unictype/categ_Ps.h: Regenerated.
51544         * lib/unictype/categ_S.h: Regenerated.
51545         * lib/unictype/categ_Sk.h: Regenerated.
51546         * lib/unictype/categ_Sm.h: Regenerated.
51547         * lib/unictype/categ_So.h: Regenerated.
51548         * lib/unictype/categ_of.h: Regenerated.
51549         * lib/unictype/combining.h: Regenerated.
51550         * lib/unictype/ctype_alnum.h: Regenerated.
51551         * lib/unictype/ctype_alpha.h: Regenerated.
51552         * lib/unictype/ctype_graph.h: Regenerated.
51553         * lib/unictype/ctype_lower.h: Regenerated.
51554         * lib/unictype/ctype_print.h: Regenerated.
51555         * lib/unictype/ctype_punct.h: Regenerated.
51556         * lib/unictype/ctype_upper.h: Regenerated.
51557         * lib/unictype/decdigit.h: Regenerated.
51558         * lib/unictype/digit.h: Regenerated.
51559         * lib/unictype/mirror.h: Regenerated.
51560         * lib/unictype/numeric.h: Regenerated.
51561         * lib/unictype/pr_alphabetic.h: Regenerated.
51562         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51563         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51564         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51565         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51566         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51567         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51568         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51569         * lib/unictype/pr_combining.h: Regenerated.
51570         * lib/unictype/pr_dash.h: Regenerated.
51571         * lib/unictype/pr_decimal_digit.h: Regenerated.
51572         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51573         * lib/unictype/pr_deprecated.h: Regenerated.
51574         * lib/unictype/pr_diacritic.h: Regenerated.
51575         * lib/unictype/pr_extender.h: Regenerated.
51576         * lib/unictype/pr_format_control.h: Regenerated.
51577         * lib/unictype/pr_grapheme_base.h: Regenerated.
51578         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51579         * lib/unictype/pr_grapheme_link.h: Regenerated.
51580         * lib/unictype/pr_id_continue.h: Regenerated.
51581         * lib/unictype/pr_id_start.h: Regenerated.
51582         * lib/unictype/pr_ideographic.h: Regenerated.
51583         * lib/unictype/pr_ignorable_control.h: Regenerated.
51584         * lib/unictype/pr_lowercase.h: Regenerated.
51585         * lib/unictype/pr_math.h: Regenerated.
51586         * lib/unictype/pr_numeric.h: Regenerated.
51587         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51588         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51589         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51590         * lib/unictype/pr_other_id_continue.h: Regenerated.
51591         * lib/unictype/pr_other_lowercase.h: Regenerated.
51592         * lib/unictype/pr_other_math.h: Regenerated.
51593         * lib/unictype/pr_punctuation.h: Regenerated.
51594         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51595         * lib/unictype/pr_soft_dotted.h: Regenerated.
51596         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51597         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51598         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51599         * lib/unictype/pr_uppercase.h: Regenerated.
51600         * lib/unictype/pr_xid_continue.h: Regenerated.
51601         * lib/unictype/pr_xid_start.h: Regenerated.
51602         * lib/unictype/pr_zero_width.h: Regenerated.
51603         * lib/unictype/scripts.h: Regenerated.
51604         * lib/unictype/scripts_byname.gperf: Regenerated.
51605         * lib/unictype/sy_java_ident.h: Regenerated.
51606         * lib/unilbrk/lbrkprop1.h: Regenerated.
51607         * lib/unilbrk/lbrkprop2.h: Regenerated.
51608         * tests/unictype/test-categ_C.c: Regenerated.
51609         * tests/unictype/test-categ_Cf.c: Regenerated.
51610         * tests/unictype/test-categ_Cn.c: Regenerated.
51611         * tests/unictype/test-categ_L.c: Regenerated.
51612         * tests/unictype/test-categ_Ll.c: Regenerated.
51613         * tests/unictype/test-categ_Lm.c: Regenerated.
51614         * tests/unictype/test-categ_Lo.c: Regenerated.
51615         * tests/unictype/test-categ_Lu.c: Regenerated.
51616         * tests/unictype/test-categ_M.c: Regenerated.
51617         * tests/unictype/test-categ_Mc.c: Regenerated.
51618         * tests/unictype/test-categ_Me.c: Regenerated.
51619         * tests/unictype/test-categ_Mn.c: Regenerated.
51620         * tests/unictype/test-categ_N.c: Regenerated.
51621         * tests/unictype/test-categ_Nd.c: Regenerated.
51622         * tests/unictype/test-categ_Nl.c: Regenerated.
51623         * tests/unictype/test-categ_No.c: Regenerated.
51624         * tests/unictype/test-categ_P.c: Regenerated.
51625         * tests/unictype/test-categ_Pd.c: Regenerated.
51626         * tests/unictype/test-categ_Pe.c: Regenerated.
51627         * tests/unictype/test-categ_Pf.c: Regenerated.
51628         * tests/unictype/test-categ_Pi.c: Regenerated.
51629         * tests/unictype/test-categ_Po.c: Regenerated.
51630         * tests/unictype/test-categ_Ps.c: Regenerated.
51631         * tests/unictype/test-categ_S.c: Regenerated.
51632         * tests/unictype/test-categ_Sk.c: Regenerated.
51633         * tests/unictype/test-categ_Sm.c: Regenerated.
51634         * tests/unictype/test-categ_So.c: Regenerated.
51635         * tests/unictype/test-ctype_alnum.c: Regenerated.
51636         * tests/unictype/test-ctype_alpha.c: Regenerated.
51637         * tests/unictype/test-ctype_graph.c: Regenerated.
51638         * tests/unictype/test-ctype_lower.c: Regenerated.
51639         * tests/unictype/test-ctype_print.c: Regenerated.
51640         * tests/unictype/test-ctype_punct.c: Regenerated.
51641         * tests/unictype/test-ctype_upper.c: Regenerated.
51642         * tests/unictype/test-decdigit.h: Regenerated.
51643         * tests/unictype/test-digit.h: Regenerated.
51644         * tests/unictype/test-numeric.h: Regenerated.
51645         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51646         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51647         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51648         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51649         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51650         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51651         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51652         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51653         * tests/unictype/test-pr_combining.c: Regenerated.
51654         * tests/unictype/test-pr_dash.c: Regenerated.
51655         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51656         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51657         * tests/unictype/test-pr_deprecated.c: Regenerated.
51658         * tests/unictype/test-pr_diacritic.c: Regenerated.
51659         * tests/unictype/test-pr_extender.c: Regenerated.
51660         * tests/unictype/test-pr_format_control.c: Regenerated.
51661         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51662         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51663         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51664         * tests/unictype/test-pr_id_continue.c: Regenerated.
51665         * tests/unictype/test-pr_id_start.c: Regenerated.
51666         * tests/unictype/test-pr_ideographic.c: Regenerated.
51667         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51668         * tests/unictype/test-pr_lowercase.c: Regenerated.
51669         * tests/unictype/test-pr_math.c: Regenerated.
51670         * tests/unictype/test-pr_numeric.c: Regenerated.
51671         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51672         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51673         Regenerated.
51674         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51675         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51676         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51677         * tests/unictype/test-pr_other_math.c: Regenerated.
51678         * tests/unictype/test-pr_punctuation.c: Regenerated.
51679         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51680         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51681         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51682         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51683         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51684         * tests/unictype/test-pr_uppercase.c: Regenerated.
51685         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51686         * tests/unictype/test-pr_xid_start.c: Regenerated.
51687         * tests/unictype/test-pr_zero_width.c: Regenerated.
51688
51689         Update to Unicode 5.1.0.
51690         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51691         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51692         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51693         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51694         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51695         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51696         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51697         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51698         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51699         (nonspacing_table_ind): Update.
51700         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51701
51702         Update to Unicode 5.1.0.
51703         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51704         code transform.
51705         * lib/uniname/uniname.c (unicode_character_name,
51706         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51707         * lib/uniname/uninames.h: Regenerated.
51708         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51709
51710 2009-02-07  Bruno Haible  <bruno@clisp.org>
51711
51712         Merge gen-ctype and gen-lbrk into a single program.
51713         * lib/gen-uni-tables.c: New file, incorporating
51714         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51715         Add directory prefixes to the names of the generated files.
51716         * lib/unictype/gen-ctype.c: Remove file.
51717         * lib/unilbrk/gen-lbrk.c: Remove file.
51718         * modules/gen-uni-tables: New file.
51719         * modules/unictype/gen-ctype: Remove file.
51720         * modules/unilbrk/gen-lbrk: Remove file.
51721
51722 2009-02-07  Bruno Haible  <bruno@clisp.org>
51723
51724         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51725
51726         New module 'unistr/u32-strcoll'.
51727         * modules/unistr/u32-strcoll: New file.
51728         * lib/unistr/u32-strcoll.c: New file.
51729
51730         New module 'unistr/u16-strcoll'.
51731         * modules/unistr/u16-strcoll: New file.
51732         * lib/unistr/u16-strcoll.c: New file.
51733
51734         New module 'unistr/u8-strcoll'.
51735         * modules/unistr/u8-strcoll: New file.
51736         * lib/unistr/u8-strcoll.c: New file.
51737         * lib/unistr/u-strcoll.h: New file.
51738
51739 2009-02-07  Bruno Haible  <bruno@clisp.org>
51740
51741         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51742         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51743         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51744         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51745         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51746         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51747
51748 2009-02-07  Bruno Haible  <bruno@clisp.org>
51749
51750         Make 64-bit clean.
51751         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51752         output_combclass, output_bidi_category, output_decimal_digit,
51753         output_digit, output_numeric, output_mirror, output_scripts,
51754         output_ident_category): Use proper width specifier in format strings.
51755
51756 2009-02-07  Bruno Haible  <bruno@clisp.org>
51757
51758         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51759         failure behaviour.
51760
51761 2009-02-07  Jim Meyering  <meyering@redhat.com>
51762
51763         regex: avoid compilation failure with upcoming gcc-4.4
51764         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51765         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51766         "... error: integer overflow in preprocessor expression".
51767
51768 2009-02-05  Ben Pfaff  <blp@gnu.org>
51769
51770         Fix link errors on Windows when close module is used.
51771         * modules/close: Add $(LIB_CLOSE) to Link section.
51772         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51773         $(LIB_CLOSE) on Windows.
51774
51775 2009-02-05  Jim Meyering  <meyering@redhat.com>
51776
51777         still avoid unused-parameter warnings, but do it cleanly
51778         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51779         (get_fs_usage): Cast to void instead.
51780         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51781         (dev_from_mount_options, read_file_system_list): Cast to void.
51782         Prompted by Bruno Haible.
51783
51784 2009-02-04  Jim Meyering  <meyering@redhat.com>
51785
51786         fsusage.c: correct copyright year
51787         * lib/fsusage.c: Reflect year in which the change is pushed into
51788
51789         avoid misc. warnings
51790         * lib/fsusage.c (UNUSED_PARAM): Define.
51791         (get_fs_usage): Mark parameter "disk" as unused.
51792         * lib/getugroups.c (getgrent): Use "void" in prototype.
51793         * lib/mountlist.c: Mark unused parameters.
51794         (read_file_system_list): Declare a local with "const".
51795         * lib/nanosleep.c (getnow): Declare static.
51796         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51797
51798         dirfd: set errno upon failure
51799         * lib/dirfd.c: Include <errno.h>.
51800         Set errno to ENOTSUP when returning -1.
51801         * modules/dirfd (Depends-on): Add errno.
51802         Suggested by John Kodis <kodis@comcast.net>.
51803
51804 2009-02-01  Bruno Haible  <bruno@clisp.org>
51805
51806         Don't assume sizeof (long) >= sizeof (void *).
51807         * lib/memcmp.c: Include stdint.h.
51808         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51809         srcp2 to 'const byte *'.
51810         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51811         types to uintptr_t.
51812         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51813         * modules/memcmp (Depends-on): Add stdint.
51814         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51815
51816 2009-01-30  Eric Blake  <ebb9@byu.net>
51817
51818         fix more require-before-expand issues
51819         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51820         expand, AC_PROG_AWK.
51821         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51822
51823 2009-01-28  Eric Blake  <ebb9@byu.net>
51824
51825         version-etc: use consistent URL formatting
51826         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51827         Improve formatting.  Use fputs for string without %.
51828
51829 2009-01-28  Jim Meyering  <meyering@redhat.com>
51830
51831         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51832         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51833         "underquoted definition of NAME" from autoconf-2.59.
51834
51835 2009-01-28  Bruno Haible  <bruno@clisp.org>
51836
51837         * doc/gnulib.texi: Add "Obsolete modules" to index.
51838
51839 2009-01-28  Jim Meyering  <meyering@redhat.com>
51840
51841         useless-if-before-free: recognize more variants
51842         * build-aux/useless-if-before-free: Also recognize e.g.,
51843         if (NULL != p) free (p);
51844
51845 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51846
51847         test-getaddrinfo: skip (don't fail) this test when there's no network
51848         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51849         on the presumption that it means you lack network access.
51850
51851 2009-01-26  Jim Meyering  <meyering@redhat.com>
51852
51853         fflush: avoid warnings on modern systems
51854         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51855         pos and result, into scopes where they're used.
51856
51857 2009-01-26  Eric Blake  <ebb9@byu.net>
51858
51859         Silence warning reintroduced by recent extensions patch.
51860         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51861         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51862         autoconf.
51863
51864         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51865         * m4/00gnulib.m4: New file.
51866         * gnulib-tool (func_get_filelist): Always use it.
51867         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51868         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51869
51870 2009-01-25  Bruno Haible  <bruno@clisp.org>
51871
51872         Make test-quotearg work on MacOS X and AIX.
51873         * tests/test-quotearg.sh: New file.
51874         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51875         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51876         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51877         include <libintl.h>.
51878         (fake_locale): Remove variable.
51879         (gettext, dgettext, dcgettext): Remove functions.
51880         (main): Instead of setting a fake locale, set a real locale. Call
51881         textdomain and bindtextdomain.
51882         * modules/quotearg-tests (Files): Add the new files.
51883         (Depends-on): Add gettext, setenv, unsetenv.
51884         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51885         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51886         Augment TESTS_ENVIRONMENT.
51887
51888 2009-01-25  Bruno Haible  <bruno@clisp.org>
51889
51890         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51891         fr_FR.ISO8859-1 locale on MacOS X.
51892         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51893         ja_JP.eucJP locale on MacOS X.
51894         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51895         zh_CN.GB18030 locale on MacOS X.
51896
51897 2009-01-25  Bruno Haible  <bruno@clisp.org>
51898
51899         Avoid link errors on MacOS X 10.3.
51900         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51901         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51902
51903 2009-01-25  Bruno Haible  <bruno@clisp.org>
51904
51905         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51906         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51907         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51908         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51909         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51910         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51911         posix_spawnattr_init, posix_spawnattr_setsigmask,
51912         posix_spawnattr_setflags, posix_spawnattr_destroy.
51913
51914         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51915         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51916         * modules/execute (Files): Remove m4/posix_spawn.m4.
51917         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51918         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51919         posix_spawnattr_init, posix_spawnattr_setsigmask,
51920         posix_spawnattr_setflags, posix_spawnattr_destroy.
51921
51922 2009-01-25  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/glthread/threadlib.c: Include <stdlib.h>.
51925
51926 2009-01-25  Bruno Haible  <bruno@clisp.org>
51927
51928         * lib/glthread/threadlib.c (dummy): New declaration.
51929
51930 2009-01-25  Bruno Haible  <bruno@clisp.org>
51931
51932         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51933         multibyte characters also for the GB18030 encoding. Don't crash when
51934         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51935
51936 2009-01-25  Bruno Haible  <bruno@clisp.org>
51937
51938         Avoid redefining 'struct random_data' on OSF/1 5.1.
51939         * lib/stdlib.in.h: Include <random.h> if it exists.
51940         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51941         HAVE_RANDOM_H. Include <random.h> when testing whether
51942         'struct random_data' exists.
51943         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51944
51945 2009-01-25  Bruno Haible  <bruno@clisp.org>
51946
51947         Don't install charset.alias on MacOS X >= 10.3.
51948         * lib/localcharset.c (DARWIN7): New macro.
51949         (get_charset_aliases): Hardcode the result for Darwin7.
51950         * modules/localcharset (install-exec-local): Don't install
51951         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51952
51953 2009-01-25  Bruno Haible  <bruno@clisp.org>
51954
51955         Don't install charset.alias on mingw and Cygwin.
51956         * modules/localcharset (install-exec-local): Don't install
51957         charset.alias on mingw and Cygwin, if the file does not yet exist.
51958         The result for these platforms is hardcoded in localcharset.c.
51959
51960 2009-01-25  Bruno Haible  <bruno@clisp.org>
51961
51962         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51964         before requiring AC_USE_SYSTEM_EXTENSIONS.
51965
51966 2009-01-25  Jim Meyering  <meyering@redhat.com>
51967
51968         c-strtod: avoid warnings
51969         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51970         "assignment discards qualifiers from pointer target type" warnings.
51971
51972 2009-01-24  Bruno Haible  <bruno@clisp.org>
51973
51974         Add support for non-UTF-8 locales on MacOS X.
51975         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51976         canonical encodings. For Darwin 7 and newer, don't map traditional
51977         encodings to UTF-8.
51978         Reported by Vincent Lefevre <vincent@vinc17.org>
51979         at <http://savannah.gnu.org/bugs/?25235>.
51980
51981 2009-01-24  Bruno Haible  <bruno@clisp.org>
51982
51983         * doc/gnulib.texi (Obsolete modules): New section.
51984         Reported by Mike Frysinger <vapier@gentoo.org>.
51985
51986 2009-01-24  Bruno Haible  <bruno@clisp.org>
51987
51988         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51989         (%.dvi): New rule.
51990
51991 2009-01-24  Bruno Haible  <bruno@clisp.org>
51992
51993         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51994         Reported by Eric Blake.
51995
51996 2009-01-24  Bruno Haible  <bruno@clisp.org>
51997
51998         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51999         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52000         Reported by Gary V. Vaughan <gary@gnu.org>.
52001
52002 2009-01-24  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52005
52006 2009-01-23  Bruno Haible  <bruno@clisp.org>
52007
52008         Make c-strtod, c-strtold usable in libraries.
52009         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52010         (C_STRTOD): Call strdup instead of xstrdup.
52011         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52012         * modules/c-strtold (Depends-on): Likewise.
52013         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52014         * NEWS: Mention the change.
52015         Reported by Michael Gold <mgold@ncf.ca>.
52016
52017 2009-01-23  Jim Meyering  <meyering@redhat.com>
52018
52019         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52020         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52021         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52022
52023 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52024
52025         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52026         GNU CoreUtils.
52027         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52028         * modules/version-etc (Description): Update.
52029
52030 2009-01-22  Bruno Haible  <bruno@clisp.org>
52031
52032         Cache the C locale object.
52033         * lib/c-strtod.c (c_locale_cache): New variable.
52034         (c_locale): New function.
52035         (C_STRTOD): Use it, and don't call freelocale.
52036         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52037         Suggested by Paolo Bonzini.
52038
52039 2009-01-21  Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52042         conditions other than overflow.
52043
52044 2009-01-21  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/c-strtod.c: Include errno.h.
52047         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52048         value from STRTOD_L and STRTOD.
52049
52050 2009-01-21  Bruno Haible  <bruno@clisp.org>
52051         and Jim Meyering  <meyering@redhat.com>
52052
52053         nanosleep: skip configure test (fail it) for apple universal builds
52054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52055         universal builds, assume that nanosleep does not work.
52056         * modules/nanosleep (Depends-on): Add multiarch.
52057
52058         mktime: skip configure test (fail it) for apple universal builds
52059         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52060         universal builds, assume that mktime does not work.
52061         * modules/mktime (Depends-on): Add multiarch.
52062
52063 2009-01-21  Eric Blake  <ebb9@byu.net>
52064
52065         multiarch: avoid expand-before-require warning
52066         * modules/multiarch (configure.ac): Require, rather than expand,
52067         gl_MULTIARCH.
52068         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52069         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52070         enforce that all clients require it.  Partial reversion of
52071         2008-12-29 patch.
52072
52073         error: avoid expand-before-require warning
52074         * modules/errno (configure.ac): Require, rather than expand,
52075         gl_HEADER_ERRNO_H.
52076         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52077         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52078         enforce that all clients require it.
52079
52080         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52081         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52082         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52083         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52084
52085 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52086
52087         Revert:
52088         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52089
52090         regex: do not depend on obsolete modules.
52091         * modules/regex: Remove memcmp and memmove.
52092
52093 2009-01-20  Bruno Haible  <bruno@clisp.org>
52094
52095         Make the 'link' module link on Windows NT 4.
52096         * lib/link.c (_WIN32_WINNT): Don't define.
52097         (CreateHardLinkFuncType): New type.
52098         (CreateHardLinkFunc, initialized): New variables.
52099         (initialize): New function.
52100         (link): Invoke CreateHardLink indirectly through the function pointer.
52101
52102 2009-01-20  Bruno Haible  <bruno@clisp.org>
52103
52104         Fix compilation failure on mingw.
52105         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52106
52107 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52108
52109         * doc/c-strtod.texi: Mention a couple of restrictions.
52110
52111 2009-01-20  Jim Meyering  <meyering@redhat.com>
52112
52113         gettimeofday: move more declarations out of functions
52114         * lib/gettimeofday.c: Move extern declarations of tzset and
52115         gmtime out of containing functions.  Prompted by Bruno Haible.
52116
52117 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52118
52119         regex: do not depend on obsolete modules.
52120         * modules/regex: Remove memcmp and memmove.
52121
52122 2009-01-19  Bruno Haible  <bruno@clisp.org>
52123
52124         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52125         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52126         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52127         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52128         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52129
52130 2009-01-19  Bruno Haible  <bruno@clisp.org>
52131
52132         * tests/test-link.c: Include <errno.h>.
52133         (main): Exit with code 77 when a hard link cannot be created due to
52134         the file system.
52135         * tests/test-link.sh: Skip test when a hard link cannot be created due
52136         to the file system.
52137         Suggested by Eric Blake.
52138
52139 2009-01-19  Martin Lambers  <marlam@marlam.de>
52140
52141         * modules/link-tests: New file.
52142         * tests/test-link.sh: New file.
52143         * tests/test-link.c: New file.
52144
52145 2009-01-19  Eric Blake  <ebb9@byu.net>
52146
52147         doc: mention another function added in cygwin 1.7.0
52148         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52149         Another new function in cygwin 1.7.
52150
52151 2009-01-19  Bruno Haible  <bruno@clisp.org>
52152
52153         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52154         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52155         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52156         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52157         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52158         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52159         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52160         * m4/md4.m4 (gl_MD4): Likewise.
52161         * m4/md5.m4 (gl_MD5): Likewise.
52162         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52163         * m4/sha1.m4 (gl_SHA1): Likewise.
52164         * m4/sha256.m4 (gl_SHA256): Likewise.
52165         * m4/sha512.m4 (gl_SHA512): Likewise.
52166
52167 2009-01-19  Bruno Haible  <bruno@clisp.org>
52168
52169         * modules/uniname/uniname-tests (Depends-on): Add progname.
52170         * tests/uniname/test-uninames.c: Include progname.h.
52171         (main): Call set_program_name.
52172
52173         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52174         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52175         (main): Call set_program_name.
52176
52177         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52178         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52179         (main): Call set_program_name.
52180
52181         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52182         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52183         (main): Call set_program_name.
52184
52185         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52186         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52187         (main): Call set_program_name.
52188
52189         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52190         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52191         (main): Call set_program_name.
52192
52193         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52194         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52195         (main): Call set_program_name.
52196
52197         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52198         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52199         (main): Call set_program_name.
52200
52201         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52202         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52203         (main): Call set_program_name.
52204
52205 2009-01-19  Eric Blake  <ebb9@byu.net>
52206
52207         test-unistd: test previous patch
52208         * tests/test-unistd.c: Test *_FILENO macros.
52209
52210         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52211         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52212         Guarantee a definition.
52213         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52214         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52215         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52216         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52217         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52218         Likewise.
52219         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52220         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52221         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52222         Likewise.
52223         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52224         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52225         (STDERR_FILENO): Likewise.
52226         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52227         (STDERR_FILENO): Likewise.
52228         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52229         (STDERR_FILENO): Likewise.
52230         Reported by Elbert Pol.
52231
52232 2009-01-19  Eric Blake  <ebb9@byu.net>
52233
52234         doc: mention more functions added in cygwin 1.7.0
52235         * doc/posix-functions/abort.texi (abort): Update wording related
52236         to cygwin.
52237         * doc/posix-functions/daylight.texi (daylight): Likewise.
52238         * doc/posix-functions/optarg.texi (optarg): Likewise.
52239         * doc/posix-functions/optarg.texi (opterr): Likewise.
52240         * doc/posix-functions/optarg.texi (optind): Likewise.
52241         * doc/posix-functions/optarg.texi (optopt): Likewise.
52242         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52243         worked in 1.5.x, and was withdrawn in 1.7.
52244         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52245         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52246         cygwin versions.
52247         * doc/posix-functions/perror.texi (perror): Likewise.
52248         * doc/posix-functions/printf.texi (printf): Likewise.
52249         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52250         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52251         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52252         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52253         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52254         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52255         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52256         Likewise.
52257         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52258         Likewise.
52259         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52260         this function.
52261         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52262         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52263         Likewise.
52264         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52265         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52266         * doc/posix-functions/confstr.texi (confstr): Likewise.
52267         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52268         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52269         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52270         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52271         * doc/posix-functions/fputws.texi (fputws): Likewise.
52272         * doc/posix-functions/fwide.texi (fwide): Likewise.
52273         * doc/posix-functions/getwc.texi (getwc): Likewise.
52274         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52275         * doc/posix-functions/putwc.texi (putwc): Likewise.
52276         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52277         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52278         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52279         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52280         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52281         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52282         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52283         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52284         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52285         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52286         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52287
52288 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52289
52290         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52291         * lib/ioctl.c: Include <sys/ioctl.h>.
52292
52293 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52294
52295         * modules/getdate-tests (Depends-on): Add progname.
52296         * tests/test-getdate.c: Use progname module, to avoid link errors
52297         on non-glibc systems.
52298
52299 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52300
52301         * modules/filenamecat-tests (Depends-on): Add progname.
52302         * modules/fstrcmp-tests (Depends-on): Likewise.
52303
52304         * tests/test-filenamecat.c: Use progname module, to avoid link
52305         errors on non-glibc systems.
52306         * tests/test-fstrcmp.c: Likewise.
52307
52308 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52309
52310         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52311         * lib/gettimeofday.c: Move extern declaration out of function.
52312
52313 2009-01-18  Bruno Haible  <bruno@clisp.org>
52314
52315         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52316         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52317         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52318
52319 2009-01-18  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/strftime.c (MEMPCPY): Remove unused macro.
52322         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52323
52324 2009-01-18  Martin Lambers  <marlam@marlam.de>
52325
52326         New module 'link'.
52327         * lib/unistd.in.h (link): New declaration.
52328         * lib/link.c: New file.
52329         * m4/link.m4: New file.
52330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52331         HAVE_LINK.
52332         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52333         * modules/link: New file.
52334         * doc/posix-functions/link.texi: Mention the new module.
52335
52336 2009-01-18  Bruno Haible  <bruno@clisp.org>
52337
52338         * tests/test-avltree_list.c (main): Call set_program_name.
52339         * tests/test-avltree_oset.c (main): Likewise.
52340         * tests/test-obstack-printf.c: Include progname.h.
52341         (main): Call set_program_name.
52342         * tests/test-quotearg.c: Include progname.h.
52343         (main): Call set_program_name.
52344         * tests/test-xmemdup0.c: Include progname.h.
52345         (main): Call set_program_name.
52346
52347 2009-01-18  Bruno Haible  <bruno@clisp.org>
52348
52349         New module 'alphasort'.
52350         * lib/dirent.in.h (alphasort): New declaration.
52351         * lib/alphasort.c: New file, from glibc with modifications.
52352         * m4/alphasort.m4: New file.
52353         * modules/alphasort: New file.
52354         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52355         HAVE_ALPHASORT.
52356         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52357         HAVE_ALPHASORT.
52358         * doc/posix-functions/alphasort.texi: Mention the new module and the
52359         portability problems.
52360
52361 2009-01-18  Bruno Haible  <bruno@clisp.org>
52362
52363         New module 'scandir'.
52364         * lib/dirent.in.h (scandir): New declaration.
52365         * lib/scandir.c: New file, from glibc with modifications.
52366         * m4/scandir.m4: New file.
52367         * modules/scandir: New file.
52368         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52369         HAVE_SCANDIR.
52370         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52371         HAVE_SCANDIR.
52372         * doc/posix-functions/scandir.texi: Mention the new module and the
52373         portability problems.
52374
52375 2009-01-17  Bruno Haible  <bruno@clisp.org>
52376
52377         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52378         Update documentation.
52379         (func_remove_suffix): Escape all dots in the suffix. Update
52380         documentation.
52381         (func_filter_filelist): Update documentation.
52382         Reported by Ralf Wildenhues.
52383
52384 2009-01-17  Bruno Haible  <bruno@clisp.org>
52385
52386         * modules/dprintf-posix-tests: New file.
52387         * tests/test-dprintf-posix.sh: New file.
52388         * tests/test-dprintf-posix.c: New file.
52389
52390         New modules 'dprintf', 'dprintf-posix'.
52391         * lib/stdio.in.h (dprintf): New declaration.
52392         * lib/dprintf.c: New file.
52393         * m4/dprintf.m4: New file.
52394         * m4/dprintf-posix.m4: New file.
52395         * modules/dprintf: New file.
52396         * modules/dprintf-posix: New file.
52397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52398         HAVE_DPRINTF, REPLACE_DPRINTF.
52399         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52400         HAVE_DPRINTF, REPLACE_DPRINTF.
52401         * doc/posix-functions/dprintf.texi: Mention the new modules.
52402
52403 2009-01-17  Bruno Haible  <bruno@clisp.org>
52404
52405         * modules/vdprintf-posix-tests: New file.
52406         * tests/test-vdprintf-posix.sh: New file.
52407         * tests/test-vdprintf-posix.c: New file.
52408
52409         New modules 'vdprintf', 'vdprintf-posix'.
52410         * lib/stdio.in.h (vdprintf): New declaration.
52411         * lib/vdprintf.c: New file.
52412         * m4/vdprintf.m4: New file.
52413         * m4/vdprintf-posix.m4: New file.
52414         * modules/vdprintf: New file.
52415         * modules/vdprintf-posix: New file.
52416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52417         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52418         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52419         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52420         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52421
52422 2009-01-17  Bruno Haible  <bruno@clisp.org>
52423
52424         Fix replacement of fopen on mingw.
52425         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52426         mingw.
52427
52428 2009-01-17  Bruno Haible  <bruno@clisp.org>
52429
52430         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52431         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52432
52433 2009-01-17  Bruno Haible  <bruno@clisp.org>
52434
52435         Avoid test-fflush2.sh failure on mingw.
52436         * tests/test-fflush2.c: Include binary-io.h.
52437         (main): Put standard input into binary mode.
52438         * modules/fflush-tests (Depends-on): Add binary-io.
52439
52440 2009-01-17  Bruno Haible  <bruno@clisp.org>
52441
52442         * lib/wchar.in.h: In another particular situation, include only the
52443         system's <wchar.h> file.
52444         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52445         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52446         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52447
52448 2009-01-17  Bruno Haible  <bruno@clisp.org>
52449
52450         Support for stripping executables in --enable-relocatable.
52451         * build-aux/install-reloc: Expect one more argument, or an environment
52452         variable RELOC_STRIP_PROG. If set, strip the destination program and
52453         its wrapper.
52454         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52455         RELOC_STRIP_PROG.
52456         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52457         to set RELOCATABLE_STRIP.
52458         * NEWS: Mention the new Makefile requirement.
52459
52460 2009-01-17  Bruno Haible  <bruno@clisp.org>
52461
52462         * build-aux/install-reloc: Remove debugging information left over by
52463         C compiler on MacOS X.
52464
52465 2009-01-17  Bruno Haible  <bruno@clisp.org>
52466
52467         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52468         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52469         _NSGetExecutablePath.
52470
52471 2009-01-16  Jim Meyering  <meyering@redhat.com>
52472
52473         strerror: avoid warnings about discarding "const"
52474         * lib/strerror.c (rpl_strerror): Instead of returning a const
52475         string from each and every "case", use a variable, and add a single
52476         cast after the switch.
52477
52478 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52479
52480         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52481
52482 2009-01-16  Bruno Haible  <bruno@clisp.org>
52483
52484         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52485         array initializer syntax that also works in C++ mode.
52486         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52487
52488 2009-01-16  Jim Meyering  <meyering@redhat.com>
52489
52490         poll: suppress a warning
52491         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52492         to ignore "...unsigned expression < 0 is always false" warnings.
52493
52494 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52495
52496         poll: remove declarations of unused variables
52497         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52498         sockbuf and optlen.
52499
52500 2009-01-15  Bruno Haible  <bruno@clisp.org>
52501
52502         Make fflush-after-ungetc POSIX compliant on BSD systems.
52503         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52504         (clear_ungetc_buffer): Implement also for other systems.
52505         (rpl_fflush): On glibc systems, invoke
52506         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52507         clear_ungetc_buffer after fetching the stream's position, not before.
52508
52509 2009-01-15  Bruno Haible  <bruno@clisp.org>
52510
52511         Make fflush-after-ungetc POSIX compliant on glibc systems.
52512         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52513         after ungetc.
52514         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52515         (rpl_fflush): On glibc systems, simply call the system's fflush
52516         function after clearing the ungetc buffer.
52517         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52518         Instead, lseek only to the end of file, then use the system's fseeko
52519         for the rest. On glibc systems, reset the EOF indicator bit.
52520
52521 2009-01-15  Jim Meyering  <meyering@redhat.com>
52522
52523         openmp.m4: revert quote-adding change, for portability to older autoconf
52524         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52525         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52526         Simon Josefsson noticed the problem when using autoconf-2.61.
52527
52528 2009-01-15  Bruno Haible  <bruno@clisp.org>
52529
52530         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52531         * tests/test-fflush2.c (ASSERT): Always fail.
52532         (main): Add two tests for fflush() after ungetc(), taking into account
52533         the Austin Group's clarification.
52534         Suggested by Eric Blake.
52535
52536 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52537
52538         mktime.m4: remove K&R-style function prototypes
52539         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52540         for the Sun C++ compiler.
52541
52542 2009-01-14  Bruno Haible  <bruno@clisp.org>
52543
52544         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52545         while including <wchar.h>.
52546         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52547         the system's <wchar.h> file.
52548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52549
52550 2009-01-14  Bruno Haible  <bruno@clisp.org>
52551
52552         * m4/csharp.m4: Don't mention gettext on the serial number line.
52553         * m4/csharpexec.m4: Likewise.
52554         * m4/eaccess.m4: Likewise.
52555         * m4/javaexec.m4: Likewise.
52556         * m4/sig_atomic_t.m4: Likewise.
52557         * m4/tmpdir.m4: Likewise.
52558         * m4/intldir.m4: Bump gettext version.
52559         * m4/lib-ld.m4: Likewise.
52560
52561 2009-01-14  Bruno Haible  <bruno@clisp.org>
52562
52563         * lib/progname.c (set_program_name): Add more comments.
52564         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52565
52566 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52567
52568         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52569         were sys/stat.h does not define it.
52570
52571 2009-01-14  Jim Meyering  <meyering@redhat.com>
52572
52573         many *.m4 files: improve m4 quoting
52574         99% of this change was performed by running the following commands:
52575         git ls-files | grep '\.m4$' | xargs perl -pi \
52576           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52577           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52578           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52579           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52580         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52581         The remainder were to add Copyright dates, increment serial numbers,
52582         undo some changes in comments, exclude m4/intl.m4, and add quotes
52583         around the "1" in ",1" where the unusual spacing prohibited the
52584         above regexps from doing the job.  For more details, see
52585         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52586         * m4/acl.m4: Modified.
52587         * m4/afs.m4: Likewise.
52588         * m4/alloca.m4: Likewise.
52589         * m4/argp.m4: Likewise.
52590         * m4/argz.m4: Likewise.
52591         * m4/atexit.m4: Likewise.
52592         * m4/bison-i18n.m4: Likewise.
52593         * m4/bison.m4: Likewise.
52594         * m4/byteswap.m4: Likewise.
52595         * m4/c-stack.m4: Likewise.
52596         * m4/c-strtod.m4: Likewise.
52597         * m4/calloc.m4: Likewise.
52598         * m4/canonicalize-lgpl.m4: Likewise.
52599         * m4/chown.m4: Likewise.
52600         * m4/clock_time.m4: Likewise.
52601         * m4/codeset.m4: Likewise.
52602         * m4/copy-file.m4: Likewise.
52603         * m4/csharp.m4: Likewise.
52604         * m4/csharpcomp.m4: Likewise.
52605         * m4/csharpexec.m4: Likewise.
52606         * m4/d-ino.m4: Likewise.
52607         * m4/d-type.m4: Likewise.
52608         * m4/dirfd.m4: Likewise.
52609         * m4/double-slash-root.m4: Likewise.
52610         * m4/eaccess.m4: Likewise.
52611         * m4/eealloc.m4: Likewise.
52612         * m4/environ.m4: Likewise.
52613         * m4/errno_h.m4: Likewise.
52614         * m4/euidaccess.m4: Likewise.
52615         * m4/execute.m4: Likewise.
52616         * m4/fatal-signal.m4: Likewise.
52617         * m4/fchdir.m4: Likewise.
52618         * m4/fcntl_h.m4: Likewise.
52619         * m4/fileblocks.m4: Likewise.
52620         * m4/filenamecat.m4: Likewise.
52621         * m4/findprog.m4: Likewise.
52622         * m4/flexmember.m4: Likewise.
52623         * m4/fnmatch.m4: Likewise.
52624         * m4/fopen.m4: Likewise.
52625         * m4/fpending.m4: Likewise.
52626         * m4/fprintf-posix.m4: Likewise.
52627         * m4/free.m4: Likewise.
52628         * m4/frexp.m4: Likewise.
52629         * m4/frexpl.m4: Likewise.
52630         * m4/fsusage.m4: Likewise.
52631         * m4/ftruncate.m4: Likewise.
52632         * m4/gc-camellia.m4: Likewise.
52633         * m4/gc-random.m4: Likewise.
52634         * m4/gc.m4: Likewise.
52635         * m4/getaddrinfo.m4: Likewise.
52636         * m4/getcwd-abort-bug.m4: Likewise.
52637         * m4/getcwd-path-max.m4: Likewise.
52638         * m4/getdate.m4: Likewise.
52639         * m4/getdomainname.m4: Likewise.
52640         * m4/getgroups.m4: Likewise.
52641         * m4/gethostname.m4: Likewise.
52642         * m4/gethrxtime.m4: Likewise.
52643         * m4/getline.m4: Likewise.
52644         * m4/getloadavg.m4: Likewise.
52645         * m4/getndelim2.m4: Likewise.
52646         * m4/getpass.m4: Likewise.
52647         * m4/gettext.m4: Likewise.
52648         * m4/gettime.m4: Likewise.
52649         * m4/gettimeofday.m4: Likewise.
52650         * m4/gnulib-common.m4: Likewise.
52651         * m4/group-member.m4: Likewise.
52652         * m4/host-os.m4: Likewise.
52653         * m4/iconv.m4: Likewise.
52654         * m4/iconv_open.m4: Likewise.
52655         * m4/inet_ntop.m4: Likewise.
52656         * m4/inet_pton.m4: Likewise.
52657         * m4/inline.m4: Likewise.
52658         * m4/intldir.m4: Likewise.
52659         * m4/intlmacosx.m4: Likewise.
52660         * m4/intmax.m4: Likewise.
52661         * m4/intmax_t.m4: Likewise.
52662         * m4/inttypes.m4: Likewise.
52663         * m4/inttypes_h.m4: Likewise.
52664         * m4/inttypes-pri.m4: Likewise.
52665         * m4/isapipe.m4: Likewise.
52666         * m4/isnand.m4: Likewise.
52667         * m4/isnanf.m4: Likewise.
52668         * m4/isnanl.m4: Likewise.
52669         * m4/javacomp.m4: Likewise.
52670         * m4/javaexec.m4: Likewise.
52671         * m4/jm-winsz1.m4: Likewise.
52672         * m4/jm-winsz2.m4: Likewise.
52673         * m4/lchown.m4: Likewise.
52674         * m4/lcmessage.m4: Likewise.
52675         * m4/ldexpl.m4: Likewise.
52676         * m4/lib-ld.m4: Likewise.
52677         * m4/lib-link.m4: Likewise.
52678         * m4/libsigsegv.m4: Likewise.
52679         * m4/link-follow.m4: Likewise.
52680         * m4/localcharset.m4: Likewise.
52681         * m4/locale-fr.m4: Likewise.
52682         * m4/locale-ja.m4: Likewise.
52683         * m4/locale-tr.m4: Likewise.
52684         * m4/locale-zh.m4: Likewise.
52685         * m4/lock.m4: Likewise.
52686         * m4/longlong.m4: Likewise.
52687         * m4/ls-mntd-fs.m4: Likewise.
52688         * m4/lstat.m4: Likewise.
52689         * m4/malloc.m4: Likewise.
52690         * m4/mathl.m4: Likewise.
52691         * m4/mbrtowc.m4: Likewise.
52692         * m4/mbstate_t.m4: Likewise.
52693         * m4/mbswidth.m4: Likewise.
52694         * m4/memchr.m4: Likewise.
52695         * m4/memcmp.m4: Likewise.
52696         * m4/memcpy.m4: Likewise.
52697         * m4/memmem.m4: Likewise.
52698         * m4/memmove.m4: Likewise.
52699         * m4/mempcpy.m4: Likewise.
52700         * m4/memrchr.m4: Likewise.
52701         * m4/memset.m4: Likewise.
52702         * m4/minmax.m4: Likewise.
52703         * m4/mkdir-slash.m4: Likewise.
52704         * m4/mkdtemp.m4: Likewise.
52705         * m4/mktime.m4: Likewise.
52706         * m4/mmap-anon.m4: Likewise.
52707         * m4/mountlist.m4: Likewise.
52708         * m4/nanosleep.m4: Likewise.
52709         * m4/nls.m4: Likewise.
52710         * m4/nocrash.m4: Likewise.
52711         * m4/open.m4: Likewise.
52712         * m4/openat.m4: Likewise.
52713         * m4/openmp.m4: Likewise.
52714         * m4/pathmax.m4: Likewise.
52715         * m4/perl.m4: Likewise.
52716         * m4/physmem.m4: Likewise.
52717         * m4/pipe.m4: Likewise.
52718         * m4/po.m4: Likewise.
52719         * m4/poll.m4: Likewise.
52720         * m4/posixtm.m4: Likewise.
52721         * m4/posixver.m4: Likewise.
52722         * m4/printf-frexp.m4: Likewise.
52723         * m4/printf-frexpl.m4: Likewise.
52724         * m4/printf-posix.m4: Likewise.
52725         * m4/printf-posix-rpl.m4: Likewise.
52726         * m4/printf.m4: Likewise.
52727         * m4/progtest.m4: Likewise.
52728         * m4/putenv.m4: Likewise.
52729         * m4/readline.m4: Likewise.
52730         * m4/readlink.m4: Likewise.
52731         * m4/readutmp.m4: Likewise.
52732         * m4/realloc.m4: Likewise.
52733         * m4/regex.m4: Likewise.
52734         * m4/relocatable.m4: Likewise.
52735         * m4/relocatable-lib.m4: Likewise.
52736         * m4/rename-dest-slash.m4: Likewise.
52737         * m4/rename.m4: Likewise.
52738         * m4/rmdir-errno.m4: Likewise.
52739         * m4/rmdir.m4: Likewise.
52740         * m4/roundf.m4: Likewise.
52741         * m4/roundl.m4: Likewise.
52742         * m4/rpmatch.m4: Likewise.
52743         * m4/save-cwd.m4: Likewise.
52744         * m4/selinux-selinux-h.m4: Likewise.
52745         * m4/setenv.m4: Likewise.
52746         * m4/settime.m4: Likewise.
52747         * m4/sig2str.m4: Likewise.
52748         * m4/sig_atomic_t.m4: Likewise.
52749         * m4/signalblocking.m4: Likewise.
52750         * m4/signbit.m4: Likewise.
52751         * m4/sigpipe.m4: Likewise.
52752         * m4/sockets.m4: Likewise.
52753         * m4/sockpfaf.m4: Likewise.
52754         * m4/st_dm_mode.m4: Likewise.
52755         * m4/stat-time.m4: Likewise.
52756         * m4/stdbool.m4: Likewise.
52757         * m4/stdint.m4: Likewise.
52758         * m4/stdint_h.m4: Likewise.
52759         * m4/stpcpy.m4: Likewise.
52760         * m4/stpncpy.m4: Likewise.
52761         * m4/strcase.m4: Likewise.
52762         * m4/strchrnul.m4: Likewise.
52763         * m4/strcspn.m4: Likewise.
52764         * m4/strdup.m4: Likewise.
52765         * m4/strftime.m4: Likewise.
52766         * m4/strndup.m4: Likewise.
52767         * m4/strnlen.m4: Likewise.
52768         * m4/strpbrk.m4: Likewise.
52769         * m4/strptime.m4: Likewise.
52770         * m4/strsep.m4: Likewise.
52771         * m4/strtod.m4: Likewise.
52772         * m4/strtoimax.m4: Likewise.
52773         * m4/strtok_r.m4: Likewise.
52774         * m4/strtol.m4: Likewise.
52775         * m4/strtoll.m4: Likewise.
52776         * m4/strtoul.m4: Likewise.
52777         * m4/strtoull.m4: Likewise.
52778         * m4/strtoumax.m4: Likewise.
52779         * m4/strverscmp.m4: Likewise.
52780         * m4/threadlib.m4: Likewise.
52781         * m4/timegm.m4: Likewise.
52782         * m4/tm_gmtoff.m4: Likewise.
52783         * m4/tmpdir.m4: Likewise.
52784         * m4/tmpfile.m4: Likewise.
52785         * m4/tzset.m4: Likewise.
52786         * m4/uintmax_t.m4: Likewise.
52787         * m4/unlinkdir.m4: Likewise.
52788         * m4/unlocked-io.m4: Likewise.
52789         * m4/uptime.m4: Likewise.
52790         * m4/userspec.m4: Likewise.
52791         * m4/utimbuf.m4: Likewise.
52792         * m4/utime.m4: Likewise.
52793         * m4/utimes-null.m4: Likewise.
52794         * m4/utimes.m4: Likewise.
52795         * m4/vararrays.m4: Likewise.
52796         * m4/vasnprintf.m4: Likewise.
52797         * m4/vfprintf-posix.m4: Likewise.
52798         * m4/vprintf-posix.m4: Likewise.
52799         * m4/wait-process.m4: Likewise.
52800         * m4/wchar_t.m4: Likewise.
52801         * m4/wint_t.m4: Likewise.
52802         * m4/write-any-file.m4: Likewise.
52803         * m4/yield.m4: Likewise.
52804
52805 2009-01-13  Bruno Haible  <bruno@clisp.org>
52806
52807         Avoid test-copy-file.sh failures when ACL support insufficient.
52808         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52809         TESTS_ENVIRONMENT.
52810         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52811         Reported by Jim Meyering.
52812
52813 2009-01-13  Bruno Haible  <bruno@clisp.org>
52814
52815         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52816         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52817         * modules/unistdio/u8-printf-parse (Files): Likewise.
52818         * modules/unistdio/u32-printf-parse (Files): Likewise.
52819         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52820
52821 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52822
52823         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52824         and m4/inttypes_h.m4 too.
52825
52826 2009-01-12  Eric Blake  <ebb9@byu.net>
52827
52828         tests: IRIX 6.2 cc can't compile -0.0 into .data
52829         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52830         rather than at compile-time.
52831         * tests/test-floorl.c (minus_zero): Likewise.
52832         * tests/test-frexpl.c (minus_zero): Likewise.
52833         * tests/test-isnan.c (minus_zerol): Likewise.
52834         * tests/test-isnanl.h (minus_zero): Likewise.
52835         * tests/test-ldexpl.c (minus_zero): Likewise.
52836         * tests/test-roundl.c (minus_zero): Likewise.
52837         * tests/test-signbit.c (minus_zerol): Likewise.
52838         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52839         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52840         * tests/test-truncl.c (minus_zero): Likewise.
52841         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52842         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52843         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52844
52845 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52846
52847         regex: fix glibc bug 9697
52848         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52849         handling.
52850
52851 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52852
52853         regex: fix glibc bug 697
52854         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52855         being NULL also if there are no backreferences.
52856
52857 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52858
52859         regex: merge glibc changes
52860         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52861         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52862         re_string_skip_chars, re_string_reconstruct): Likewise.
52863         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52864
52865 2009-01-07  Jim Meyering  <meyering@redhat.com>
52866
52867         poll: filter through cppi
52868         * lib/poll.c: Indent cpp directives to reflect nesting.
52869
52870 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52871
52872         poll: don't return uninitialized
52873         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52874
52875 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52876
52877         avoid compile failure on AIX 6.1
52878         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52879         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52880
52881 2009-01-04  Jim Meyering  <meyering@redhat.com>
52882
52883         remove duplicate inclusion of <stdio.h>
52884         * tests/test-fprintf-posix.c: Likewise.
52885         * tests/test-printf-posix.c: Likewise.
52886         * tests/test-snprintf-posix.c: Likewise.
52887         * tests/test-sprintf-posix.c: Likewise.
52888         * tests/test-vasprintf-posix.c: Likewise.
52889         * tests/test-vfprintf-posix.c: Likewise.
52890         * tests/test-vprintf-posix.c: Likewise.
52891         * tests/test-vsnprintf-posix.c: Likewise.
52892         * tests/test-vsprintf-posix.c: Likewise.
52893
52894 2009-01-03  Jim Meyering  <meyering@redhat.com>
52895
52896         gnulib-tool: fix sed-based filtering
52897         * gnulib-tool (func_filter_filelist): Remove extra backslash
52898         in sed_fff_filter definition.
52899
52900 2009-01-02  Jim Meyering  <meyering@redhat.com>
52901
52902         strftime: avoid compilation failure on Solaris 2.6
52903         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52904         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52905         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52906         be available.  Reported by Tom G. Christensen.  Details in
52907         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52908
52909 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52910             Bruno Haible  <bruno@clisp.org>
52911
52912         Speed up gnulib-tool by doing more string processing through shell
52913         built-ins.
52914         * gnulib-tool (fast_func_append): New variable.
52915         (func_remove_prefix, func_remove_suffix): New functions.
52916         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52917         (func_filter_filelist): New function.
52918         (func_get_dependencies): Use func_remove_suffix instead of sed.
52919         (func_get_automake_snippet): Use func_filter_filelist instead of a
52920         subshell and sed invocation.
52921
52922 2009-01-01  Bruno Haible  <bruno@clisp.org>
52923
52924         Fix a security bug.
52925         * gnulib-tool (func_import, import, update): Don't allow the characters
52926         '"', '$', '`', '\' in macro arguments that become part of commands that
52927         are evaluated.
52928
52929 2009-01-01  Bruno Haible  <bruno@clisp.org>
52930
52931         * gnulib-tool (func_reset_sigpipe): Add more comments.
52932
52933 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52934
52935         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52936         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52937         already know the answer.
52938
52939 2009-01-01  Jim Meyering  <meyering@redhat.com>
52940
52941         * lib/version-etc.c (version_etc_va): Update copyright year.
52942
52943 2008-12-30  Bruno Haible  <bruno@clisp.org>
52944
52945         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52946         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52947         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52948
52949 2008-12-29  Eric Blake  <ebb9@byu.net>
52950
52951         multiarch: avoid autoconf AC_REQUIRE bug
52952         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52953         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52954         2.63 and older.
52955         Reported by Bruno Haible, and analyzed in
52956         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52957
52958 2008-12-29  Bruno Haible  <bruno@clisp.org>
52959
52960         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52961         files in subdirectories correctly.
52962         Reported by Ralf Wildenhues.
52963
52964 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52965
52966         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52967         rather than 'join FILE -', for Solaris join.
52968
52969 2008-12-29  Bruno Haible  <bruno@clisp.org>
52970
52971         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52972         quoting.
52973         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52974         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52975         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52976         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52977         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52978         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52979         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52980         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52981         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52982         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52983         * m4/nls.m4 (AM_NLS): Likewise.
52984         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52985         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52986         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52987         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52988         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52989         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52990         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52991         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52992         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52993         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52994         * m4/xsize.m4 (gl_XSIZE): Likewise.
52995         Suggested by Jim Meyering.
52996
52997 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52998
52999         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53000         * lib/parse-duration.c: use a switch instead of cascading if's.
53001
53002 2008-12-29  Eric Blake  <ebb9@byu.net>
53003
53004         wchar.h: supply WEOF on Irix 5.3
53005         * lib/wchar.in.h (wint_t): Also supply WEOF.
53006         * lib/wctype.in.h (wint_t): Likewise.
53007         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53008         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53009         Reported by Tom G. Christensen.
53010
53011 2008-12-26  Bruno Haible  <bruno@clisp.org>
53012
53013         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53014         i486, i586, i686.
53015
53016 2008-12-26  Bruno Haible  <bruno@clisp.org>
53017
53018         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53019
53020 2008-12-26  Bruno Haible  <bruno@clisp.org>
53021
53022         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53023         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53024         not __STDC_CONSTANT_MACROS.
53025         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53026
53027 2008-12-25  Bruno Haible  <bruno@clisp.org>
53028
53029         Add support for universal builds to vasnprintf.
53030         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53031         universal builds, guess no.
53032         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53033         * modules/vasprintf-posix (Depends-on): Likewise.
53034         * modules/fprintf-posix (Depends-on): Likewise.
53035         * modules/vfprintf-posix (Depends-on): Likewise.
53036         * modules/snprintf-posix (Depends-on): Likewise.
53037         * modules/vsnprintf-posix (Depends-on): Likewise.
53038         * modules/sprintf-posix (Depends-on): Likewise.
53039         * modules/vsprintf-posix (Depends-on): Likewise.
53040         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53041         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53042         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53043         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53044         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53045         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53046         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53047
53048         Add support for universal builds to <inttypes.h>.
53049         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53050         _SCNu64_PREFIX): In Apple
53051         universal builds, define directly, using _LP64.
53052         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53053         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53054         * modules/inttypes (Depends-on): Add multiarch.
53055         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53056
53057         Add support for universal builds to <stdint.h>.
53058         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53059         universal builds, define directly, using _LP64.
53060         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53061         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53062         and size_t.
53063         * modules/stdint (Depends-on): Add multiarch.
53064         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53065
53066         New module 'multiarch'.
53067         * modules/multiarch: New file.
53068         * m4/multiarch.m4: New file.
53069
53070 2008-12-25  Bruno Haible  <bruno@clisp.org>
53071
53072         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53073
53074 2008-12-25  Bruno Haible  <bruno@clisp.org>
53075
53076         * modules/btowc (License): Relicense under LGPLv2+.
53077         * modules/mbsinit (License): Likewise.
53078         * modules/mbrtowc (License): Likewise.
53079         * modules/wcrtomb (License): Likewise.
53080         * modules/streq (License): Likewise.
53081         Reported by David Lutterkort <lutter@redhat.com>.
53082
53083 2008-12-23  Bruno Haible  <bruno@clisp.org>
53084
53085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53086
53087 2008-12-23  Bruno Haible  <bruno@clisp.org>
53088
53089         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53091         GETADDRINFO_LIB, not in LIBS.
53092         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53093         * modules/canon-host (Link): Likewise.
53094         * NEWS: Mention the change.
53095         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53096         GETADDRINFO_LIB.
53097
53098 2008-12-22  Bruno Haible  <bruno@clisp.org>
53099
53100         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53101         * doc/posix-functions/iswalpha_l.texi: Likewise.
53102         * doc/posix-functions/iswblank_l.texi: Likewise.
53103         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53104         * doc/posix-functions/iswctype_l.texi: Likewise.
53105         * doc/posix-functions/iswdigit_l.texi: Likewise.
53106         * doc/posix-functions/iswgraph_l.texi: Likewise.
53107         * doc/posix-functions/iswlower_l.texi: Likewise.
53108         * doc/posix-functions/iswprint_l.texi: Likewise.
53109         * doc/posix-functions/iswpunct_l.texi: Likewise.
53110         * doc/posix-functions/iswspace_l.texi: Likewise.
53111         * doc/posix-functions/iswupper_l.texi: Likewise.
53112         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53113         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53114         * doc/posix-functions/open_wmemstream.texi: Likewise.
53115         * doc/posix-functions/swscanf.texi: Likewise.
53116         * doc/posix-functions/towctrans_l.texi: Likewise.
53117         * doc/posix-functions/towlower.texi: Likewise.
53118         * doc/posix-functions/towlower_l.texi: Likewise.
53119         * doc/posix-functions/towupper.texi: Likewise.
53120         * doc/posix-functions/towupper_l.texi: Likewise.
53121         * doc/posix-functions/vfwprintf.texi: Likewise.
53122         * doc/posix-functions/vfwscanf.texi: Likewise.
53123         * doc/posix-functions/vswscanf.texi: Likewise.
53124         * doc/posix-functions/vwprintf.texi: Likewise.
53125         * doc/posix-functions/vwscanf.texi: Likewise.
53126         * doc/posix-functions/wcpcpy.texi: Likewise.
53127         * doc/posix-functions/wcpncpy.texi: Likewise.
53128         * doc/posix-functions/wcscasecmp.texi: Likewise.
53129         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53130         * doc/posix-functions/wcscoll_l.texi: Likewise.
53131         * doc/posix-functions/wcsdup.texi: Likewise.
53132         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53133         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53134         * doc/posix-functions/wcsnlen.texi: Likewise.
53135         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53136         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53137         * doc/posix-functions/wctrans_l.texi: Likewise.
53138         * doc/posix-functions/wctype_l.texi: Likewise.
53139         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53140         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53141         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53142         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53143         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53144         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53145         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53146         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53147         * doc/glibc-functions/wcschrnul.texi: Likewise.
53148         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53149         * doc/glibc-functions/wcstod_l.texi: Likewise.
53150         * doc/glibc-functions/wcstof_l.texi: Likewise.
53151         * doc/glibc-functions/wcstol_l.texi: Likewise.
53152         * doc/glibc-functions/wcstold_l.texi: Likewise.
53153         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53154         * doc/glibc-functions/wcstoq.texi: Likewise.
53155         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53156         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53157         * doc/glibc-functions/wcstouq.texi: Likewise.
53158         * doc/glibc-functions/wmempcpy.texi: Likewise.
53159
53160 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53161             Eric Blake  <ebb9@byu.net>
53162             Paolo Bonzini  <bonzini@gnu.org>
53163             Bruno Haible  <bruno@clisp.org>
53164
53165         Make c-stack work on Haiku.
53166         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53167         (c_stack_action): Use SA_ONSTACK flag.
53168
53169 2008-12-22  Bruno Haible  <bruno@clisp.org>
53170
53171         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53172
53173 2008-12-22  Bruno Haible  <bruno@clisp.org>
53174
53175         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53176         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53177         being overridden.
53178         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53179         New macros.
53180         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53182         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53183         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53184
53185 2008-12-22  Bruno Haible  <bruno@clisp.org>
53186
53187         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53188         from test code.
53189
53190 2008-12-22  Eric Blake  <ebb9@byu.net>
53191
53192         Avoid gcc warnings on cygwin.
53193         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53194         Avoid unused variable.
53195         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53196         Likewise.
53197
53198 2008-12-22  Bruno Haible  <bruno@clisp.org>
53199
53200         Remove HAVE_MBRTOWC conditionals.
53201         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53202         (mbscasecmp): Assume mbrtowc function.
53203         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53204         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53205         * lib/mbschr.c: Include mbuiter.h unconditionally.
53206         (mbschr): Assume mbrtowc function.
53207         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53208         (mbscspn): Assume mbrtowc function.
53209         * lib/mbslen.c: Include mbuiter.h unconditionally.
53210         (mbslen): Assume mbrtowc function.
53211         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53212         (mbsncasecmp): Assume mbrtowc function.
53213         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53214         (mbsnlen): Assume mbrtowc function.
53215         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53216         (mbspbrk): Assume mbrtowc function.
53217         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53218         (mbspcasecmp): Assume mbrtowc function.
53219         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53220         (mbsrchr): Assume mbrtowc function.
53221         * lib/mbssep.c: Include mbuiter.h unconditionally.
53222         (mbssep): Assume mbrtowc function.
53223         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53224         (mbsspn): Assume mbrtowc function.
53225         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53226         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53227         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53228         (mbstok_r): Assume mbrtowc function.
53229         * lib/propername.c: Include mbuiter.h unconditionally.
53230         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53231         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53232         (trim2): Assume mbrtowc function.
53233         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53234         (mbsnwidth): Assume mbrtowc function.
53235         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53236         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53237         fallback definitions.
53238         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53239
53240 2008-12-22  Bruno Haible  <bruno@clisp.org>
53241
53242         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53243
53244 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53245
53246         * modules/regex: Request emulations for the mb*/wc* functions we need.
53247         * m4/regex.m4: Don't look for those functions here.
53248         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53249
53250 2008-12-22  Bruno Haible  <bruno@clisp.org>
53251
53252         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53253
53254 2008-12-21  Bruno Haible  <bruno@clisp.org>
53255
53256         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53257         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53258         (Include): Remove conditionalization.
53259         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53260         (Include): Remove conditionalization.
53261         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53262         (Include): Remove conditionalization.
53263         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53264         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53265         * NEWS: Mention the change.
53266         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53267         via Sergey Poznyakoff <gray@gnu.org.ua>.
53268
53269 2008-12-21  Bruno Haible  <bruno@clisp.org>
53270
53271         * MODULES.html.sh (Extended multibyte and wide character utilities
53272         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53273         wcrtomb, wcsrtombs.
53274         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53275         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53276         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53277         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53278
53279 2008-12-21  Bruno Haible  <bruno@clisp.org>
53280
53281         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53282
53283 2008-12-21  Bruno Haible  <bruno@clisp.org>
53284
53285         * modules/wcsnrtombs-tests: New file.
53286         * tests/test-wcsnrtombs1.sh: New file.
53287         * tests/test-wcsnrtombs2.sh: New file.
53288         * tests/test-wcsnrtombs3.sh: New file.
53289         * tests/test-wcsnrtombs4.sh: New file.
53290         * tests/test-wcsnrtombs.c: New file.
53291
53292         New module 'wcsnrtombs'.
53293         * lib/wchar.in.h (wcsnrtombs): New declaration.
53294         * lib/wcsnrtombs.c: New file.
53295         * lib/wcsrtombs-state.c: New file.
53296         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53297         (internal_state): Remove variable.
53298         * m4/wcsnrtombs.m4: New file.
53299         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53300         compilation units.
53301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53302         HAVE_WCSNRTOMBS.
53303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53304         HAVE_WCSNRTOMBS.
53305         * modules/wcsnrtombs: New file.
53306         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53307         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53308
53309 2008-12-21  Bruno Haible  <bruno@clisp.org>
53310
53311         * modules/wcsrtombs-tests: New file.
53312         * tests/test-wcsrtombs1.sh: New file.
53313         * tests/test-wcsrtombs2.sh: New file.
53314         * tests/test-wcsrtombs3.sh: New file.
53315         * tests/test-wcsrtombs4.sh: New file.
53316         * tests/test-wcsrtombs.c: New file.
53317
53318         New module 'wcsrtombs'.
53319         * lib/wchar.in.h (wcsrtombs): New declaration.
53320         * lib/wcsrtombs.c: New file.
53321         * m4/wcsrtombs.m4: New file.
53322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53323         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53325         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53326         * modules/wcsrtombs: New file.
53327         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53328         bugs.
53329
53330 2008-12-21  Bruno Haible  <bruno@clisp.org>
53331
53332         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53333         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53334         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53335         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53336         if not correct.
53337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53338         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53339         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53340         m4/locale-zh.m4, m4/codeset.m4.
53341         * doc/posix-functions/wcrtomb.texi: Document the bug.
53342
53343 2008-12-21  Bruno Haible  <bruno@clisp.org>
53344
53345         Work around a btowc() bug on IRIX 6.5.
53346         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53347         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53348         REPLACE_WTOBC if not.
53349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53350         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53351         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53352
53353 2008-12-21  Bruno Haible  <bruno@clisp.org>
53354
53355         * modules/wcrtomb-tests: New file.
53356         * tests/test-wcrtomb.sh: New file.
53357         * tests/test-wcrtomb.c: New file.
53358
53359         New module 'wcrtomb'.
53360         * lib/wchar.in.h (wcrtomb): New declaration.
53361         * lib/wcrtomb.c: New file.
53362         * m4/wcrtomb.m4: New file.
53363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53364         HAVE_WCRTOMB.
53365         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53366         HAVE_WCRTOMB.
53367         * modules/wcrtomb: New file.
53368         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53369
53370 2008-12-21  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53373         * modules/mbsrtowcs (Files): Likewise.
53374         * modules/wctob (Files): Likewise.
53375         * modules/c-strcase-tests (Files): Likewise.
53376         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53377         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53378         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53379         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53380         * modules/vasnprintf-posix-tests (Files): Likewise.
53381
53382 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53383
53384         gitlog-to-changelog: pass all command-line arguments to git-log
53385         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53386         it is sometimes convenient to filter the commits in various ways.
53387         gitlog-to-changelog only allows --since to specify a start date,
53388         but git-log itself supports many other filtering mechanisms.
53389         At the moment, I want to filter by branch name.  Rather than
53390         adding a --branch option to gitlog-to-changelog, it seems more
53391         flexible to simply pass all options directly to git-log and let
53392         git do the work.  Notice that this effectively makes --since a
53393         redundant option for gitlog-to-changelog, but removing it would
53394         require current usage to change since calls would then require
53395         an additional '--'.
53396
53397 2008-12-21  Bruno Haible  <bruno@clisp.org>
53398
53399         * modules/mbsnrtowcs-tests: New file.
53400         * tests/test-mbsnrtowcs1.sh: New file.
53401         * tests/test-mbsnrtowcs2.sh: New file.
53402         * tests/test-mbsnrtowcs3.sh: New file.
53403         * tests/test-mbsnrtowcs4.sh: New file.
53404         * tests/test-mbsnrtowcs.c: New file.
53405
53406         New module 'mbsnrtowcs'.
53407         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53408         * lib/mbsnrtowcs.c: New file.
53409         * lib/mbsrtowcs-state.c: New file.
53410         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53411         (internal_state): Remove variable.
53412         * m4/mbsnrtowcs.m4: New file.
53413         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53414         compilation units.
53415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53416         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53417         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53418         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53419         * modules/mbsnrtowcs: New file.
53420         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53421         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53422         portability problem.
53423
53424 2008-12-21  Bruno Haible  <bruno@clisp.org>
53425
53426         Work around mbsrtowcs bug.
53427         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53428         (gl_FUNC_MBSRTOWCS): Invoke it.
53429         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53430         m4/locale-zh.m4.
53431         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53432
53433 2008-12-21  Bruno Haible  <bruno@clisp.org>
53434
53435         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53436
53437 2008-12-21  Bruno Haible  <bruno@clisp.org>
53438
53439         Update doc for AIX.
53440         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53441         16-bit wchar_t type.
53442         * doc/posix-functions/btowc.texi: Likewise.
53443         * doc/posix-functions/fgetwc.texi: Likewise.
53444         * doc/posix-functions/fgetws.texi: Likewise.
53445         * doc/posix-functions/fputwc.texi: Likewise.
53446         * doc/posix-functions/fputws.texi: Likewise.
53447         * doc/posix-functions/fwide.texi: Likewise.
53448         * doc/posix-functions/fwprintf.texi: Likewise.
53449         * doc/posix-functions/fwscanf.texi: Likewise.
53450         * doc/posix-functions/getwchar.texi: Likewise.
53451         * doc/posix-functions/getwc.texi: Likewise.
53452         * doc/posix-functions/iswalnum.texi: Likewise.
53453         * doc/posix-functions/iswalpha.texi: Likewise.
53454         * doc/posix-functions/iswblank.texi: Likewise.
53455         * doc/posix-functions/iswcntrl.texi: Likewise.
53456         * doc/posix-functions/iswctype.texi: Likewise.
53457         * doc/posix-functions/iswdigit.texi: Likewise.
53458         * doc/posix-functions/iswgraph.texi: Likewise.
53459         * doc/posix-functions/iswlower.texi: Likewise.
53460         * doc/posix-functions/iswprint.texi: Likewise.
53461         * doc/posix-functions/iswpunct.texi: Likewise.
53462         * doc/posix-functions/iswspace.texi: Likewise.
53463         * doc/posix-functions/iswupper.texi: Likewise.
53464         * doc/posix-functions/iswxdigit.texi: Likewise.
53465         * doc/posix-functions/mbrtowc.texi: Likewise.
53466         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53467         * doc/posix-functions/mbstowcs.texi: Likewise.
53468         * doc/posix-functions/mbtowc.texi: Likewise.
53469         * doc/posix-functions/putwchar.texi: Likewise.
53470         * doc/posix-functions/putwc.texi: Likewise.
53471         * doc/posix-functions/swprintf.texi: Likewise.
53472         * doc/posix-functions/tolower.texi: Likewise.
53473         * doc/posix-functions/toupper.texi: Likewise.
53474         * doc/posix-functions/towctrans.texi: Likewise.
53475         * doc/posix-functions/ungetwc.texi: Likewise.
53476         * doc/posix-functions/vswprintf.texi: Likewise.
53477         * doc/posix-functions/wcrtomb.texi: Likewise.
53478         * doc/posix-functions/wcscat.texi: Likewise.
53479         * doc/posix-functions/wcschr.texi: Likewise.
53480         * doc/posix-functions/wcscmp.texi: Likewise.
53481         * doc/posix-functions/wcscoll.texi: Likewise.
53482         * doc/posix-functions/wcscpy.texi: Likewise.
53483         * doc/posix-functions/wcscspn.texi: Likewise.
53484         * doc/posix-functions/wcsftime.texi: Likewise.
53485         * doc/posix-functions/wcslen.texi: Likewise.
53486         * doc/posix-functions/wcsncat.texi: Likewise.
53487         * doc/posix-functions/wcsncmp.texi: Likewise.
53488         * doc/posix-functions/wcsncpy.texi: Likewise.
53489         * doc/posix-functions/wcspbrk.texi: Likewise.
53490         * doc/posix-functions/wcsrchr.texi: Likewise.
53491         * doc/posix-functions/wcsrtombs.texi: Likewise.
53492         * doc/posix-functions/wcsspn.texi: Likewise.
53493         * doc/posix-functions/wcsstr.texi: Likewise.
53494         * doc/posix-functions/wcstod.texi: Likewise.
53495         * doc/posix-functions/wcstof.texi: Likewise.
53496         * doc/posix-functions/wcstoimax.texi: Likewise.
53497         * doc/posix-functions/wcstok.texi: Likewise.
53498         * doc/posix-functions/wcstold.texi: Likewise.
53499         * doc/posix-functions/wcstoll.texi: Likewise.
53500         * doc/posix-functions/wcstol.texi: Likewise.
53501         * doc/posix-functions/wcstombs.texi: Likewise.
53502         * doc/posix-functions/wcstoull.texi: Likewise.
53503         * doc/posix-functions/wcstoul.texi: Likewise.
53504         * doc/posix-functions/wcstoumax.texi: Likewise.
53505         * doc/posix-functions/wcswidth.texi: Likewise.
53506         * doc/posix-functions/wcsxfrm.texi: Likewise.
53507         * doc/posix-functions/wctob.texi: Likewise.
53508         * doc/posix-functions/wctomb.texi: Likewise.
53509         * doc/posix-functions/wctrans.texi: Likewise.
53510         * doc/posix-functions/wctype.texi: Likewise.
53511         * doc/posix-functions/wcwidth.texi: Likewise.
53512         * doc/posix-functions/wmemchr.texi: Likewise.
53513         * doc/posix-functions/wmemcmp.texi: Likewise.
53514         * doc/posix-functions/wmemcpy.texi: Likewise.
53515         * doc/posix-functions/wmemmove.texi: Likewise.
53516         * doc/posix-functions/wmemset.texi: Likewise.
53517         * doc/posix-functions/wprintf.texi: Likewise.
53518         * doc/posix-functions/wscanf.texi: Likewise.
53519
53520 2008-12-21  Bruno Haible  <bruno@clisp.org>
53521
53522         Update doc for HP-UX 11.11.
53523         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53524         in HP-UX version 11.00, not in all versions of HP-UX 11.
53525         * doc/posix-functions/fwide.texi: Likewise.
53526         * doc/posix-functions/fwprintf.texi: Likewise.
53527         * doc/posix-functions/fwscanf.texi: Likewise.
53528         * doc/posix-functions/inet_ntop.texi: Likewise.
53529         * doc/posix-functions/inet_pton.texi: Likewise.
53530         * doc/posix-functions/mbrlen.texi: Likewise.
53531         * doc/posix-functions/mbrtowc.texi: Likewise.
53532         * doc/posix-functions/mbsinit.texi: Likewise.
53533         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53534         * doc/posix-functions/swprintf.texi: Likewise.
53535         * doc/posix-functions/swscanf.texi: Likewise.
53536         * doc/posix-functions/towctrans.texi: Likewise.
53537         * doc/posix-functions/vfwprintf.texi: Likewise.
53538         * doc/posix-functions/vswprintf.texi: Likewise.
53539         * doc/posix-functions/vwprintf.texi: Likewise.
53540         * doc/posix-functions/wcrtomb.texi: Likewise.
53541         * doc/posix-functions/wcsrtombs.texi: Likewise.
53542         * doc/posix-functions/wcsstr.texi: Likewise.
53543         * doc/posix-functions/wctob.texi: Likewise.
53544         * doc/posix-functions/wctrans.texi: Likewise.
53545         * doc/posix-functions/wmemchr.texi: Likewise.
53546         * doc/posix-functions/wmemcmp.texi: Likewise.
53547         * doc/posix-functions/wmemcpy.texi: Likewise.
53548         * doc/posix-functions/wmemmove.texi: Likewise.
53549         * doc/posix-functions/wmemset.texi: Likewise.
53550         * doc/posix-functions/wprintf.texi: Likewise.
53551         * doc/posix-functions/wscanf.texi: Likewise.
53552
53553 2008-12-21  Bruno Haible  <bruno@clisp.org>
53554
53555         Work around a portability problem.
53556         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53557         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53558
53559 2008-12-20  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53562         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53563         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53565         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53566
53567         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53568         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53569         set.
53570         (GNULIB_defined_mbstate_t): New macro.
53571         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53572         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53573         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53574         reuses the system's mbrtowc function but works around the bugs.
53575         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53576         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53577         macros.
53578         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53579         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53580         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53581         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53582         REPLACE_MBSINIT if mbsinit needs to be overridden.
53583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53584         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53585         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53586         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53587         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53588         m4/locale-zh.m4.
53589         (Depends): Add mbsinit.
53590         * modules/mbsinit (Depends): Add mbrtowc.
53591         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53592
53593 2008-12-20  Bruno Haible  <bruno@clisp.org>
53594
53595         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53596         so that there are no conversion errors on AIX.
53597         * tests/test-mbsrtowcs.c (main): LIkewise.
53598
53599 2008-12-20  Bruno Haible  <bruno@clisp.org>
53600
53601         Work around wctob bug on Solaris <= 9.
53602         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53603         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53605         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53606         * modules/wctob (Files): Add m4/locale-fr.m4.
53607         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53608
53609 2008-12-20  Bruno Haible  <bruno@clisp.org>
53610
53611         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53612         /dev/null.
53613         * tests/test-select-in.sh: Likewise.
53614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53615
53616 2008-12-20  Bruno Haible  <bruno@clisp.org>
53617
53618         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53619         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53620         Cygwin 1.5.x.
53621
53622 2008-12-20  Bruno Haible  <bruno@clisp.org>
53623
53624         Ensure mbstate_t is defined on HP-UX 11.11.
53625         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53626         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53627         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53628         AC_USE_SYSTEM_EXTENSIONS.
53629         * modules/fnmatch (Depends-on): Add extensions.
53630         * modules/mbrlen (Depends-on): Likewise.
53631         * modules/mbrtowc (Depends-on): Likewise.
53632         * modules/mbsinit (Depends-on): Likewise.
53633         * modules/mbsrtowcs (Depends-on): Likewise.
53634         * modules/mbswidth (Depends-on): Likewise.
53635         * modules/quotearg (Depends-on): Likewise.
53636         * modules/strftime (Depends-on): Likewise.
53637
53638 2008-12-20  Bruno Haible  <bruno@clisp.org>
53639
53640         Ensure wctob is declared on IRIX 6.5.
53641         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53642         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53643         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53645         of HAVE_WCTOB.
53646         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53647         HAVE_WCTOB.
53648         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53649
53650 2008-12-19  Bruno Haible  <bruno@clisp.org>
53651
53652         * modules/mbsrtowcs-tests: New file.
53653         * tests/test-mbsrtowcs1.sh: New file.
53654         * tests/test-mbsrtowcs2.sh: New file.
53655         * tests/test-mbsrtowcs3.sh: New file.
53656         * tests/test-mbsrtowcs4.sh: New file.
53657         * tests/test-mbsrtowcs.c: New file.
53658
53659         New module 'mbsrtowcs'.
53660         * lib/wchar.in.h (mbsrtowcs): New declaration.
53661         * lib/mbsrtowcs.c: New file.
53662         * m4/mbsrtowcs.m4: New file.
53663         * modules/mbsrtowcs: New file.
53664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53665         HAVE_MBSRTOWCS.
53666         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53667         HAVE_MBSRTOWCS.
53668         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53669
53670 2008-12-19  Bruno Haible  <bruno@clisp.org>
53671
53672         New module 'mbrlen'.
53673         * lib/wchar.in.h (mbrlen): New declaration.
53674         * lib/mbrlen.c: New file.
53675         * m4/mbrlen.m4: New file.
53676         * modules/mbrlen: New file.
53677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53678         HAVE_MBRLEN.
53679         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53680         HAVE_MBRLEN.
53681         * doc/posix-functions/mbrlen.texi: Document the new module.
53682
53683 2008-12-19  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53686         * modules/mbrtowc (Depends-on): Add verify.
53687         Suggested by Paul Eggert.
53688
53689 2008-12-18  Bruno Haible  <bruno@clisp.org>
53690
53691         * modules/mbsinit-tests: New file.
53692         * tests/test-mbsinit.sh: New file.
53693         * tests/test-mbsinit.c: New file.
53694
53695 2008-12-18  Bruno Haible  <bruno@clisp.org>
53696
53697         * modules/mbrtowc-tests: New file.
53698         * tests/test-mbrtowc1.sh: New file.
53699         * tests/test-mbrtowc2.sh: New file.
53700         * tests/test-mbrtowc3.sh: New file.
53701         * tests/test-mbrtowc4.sh: New file.
53702         * tests/test-mbrtowc.c: New file.
53703
53704         New module 'mbrtowc'.
53705         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53706         mbsinit and mbrtowc.
53707         (mbrtowc): New declaration.
53708         * lib/mbrtowc.c: New file.
53709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53710         * modules/mbrtowc: New file.
53711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53712         HAVE_MBRTOWC.
53713         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53714         HAVE_MBRTOWC.
53715         * doc/posix-functions/mbrtowc.texi: Document the new module.
53716
53717 2008-12-18  Bruno Haible  <bruno@clisp.org>
53718
53719         New module 'wctob'.
53720         * lib/wchar.in.h (wctob): New declaration.
53721         * lib/wctob.c: New file.
53722         * m4/wctob.m4: New file.
53723         * modules/wctob: New file.
53724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53725         HAVE_WCTOB.
53726         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53727         * doc/posix-functions/wctob.texi: Document the new module.
53728
53729 2008-12-18  Bruno Haible  <bruno@clisp.org>
53730
53731         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53732         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53733
53734 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53735
53736         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53737         G. Christensen" <tgc@jupiterrise.com>.
53738
53739         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53740         G. Christensen" <tgc@jupiterrise.com>.
53741
53742         * lib/flock.c: Need to include string.h.  Reported by "Tom
53743         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53744         <ebb9@byu.net>.
53745
53746 2008-12-18  Bruno Haible  <bruno@clisp.org>
53747
53748         * m4/locale-ja.m4: New file, from GNU gettext.
53749
53750 2008-12-17  Bruno Haible  <bruno@clisp.org>
53751
53752         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53753         Suggested by Eric Blake.
53754
53755 2008-12-17  Bruno Haible  <bruno@clisp.org>
53756
53757         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53758
53759 2008-12-17  Bruno Haible  <bruno@clisp.org>
53760
53761         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53762         * modules/mbsinit (Depends-on): Add verify.
53763         Suggested by Paul Eggert.
53764
53765 2008-12-17  Bruno Haible  <bruno@clisp.org>
53766
53767         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53768         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53769         gl_FUNC_MBRTOWC.
53770         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53771         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53772         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53773         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53774         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53775         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53776         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53777         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53778         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53779         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53780         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53781         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53782         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53783         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53784         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53785         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53786         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53787         * modules/trim (configure.ac): Likewise.
53788
53789 2008-12-17  Bruno Haible  <bruno@clisp.org>
53790
53791         * modules/btowc-tests: New file.
53792         * tests/test-btowc1.sh: New file.
53793         * tests/test-btowc2.sh: New file.
53794         * tests/test-btowc.c: New file.
53795
53796         New module 'btowc'.
53797         * lib/wchar.in.h (btowc): New declaration.
53798         * lib/btowc.c: New file.
53799         * m4/btowc.m4: New file.
53800         * modules/btowc: New file.
53801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53802         HAVE_BTOWC.
53803         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53804         * doc/posix-functions/btowc.texi: Document the new module.
53805
53806 2008-12-17  Bruno Haible  <bruno@clisp.org>
53807
53808         New module 'mbsinit'.
53809         * lib/wchar.in.h (mbsinit): New declaration.
53810         * lib/mbsinit.c: New file.
53811         * m4/mbsinit.m4: New file.
53812         * modules/mbsinit: New file.
53813         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53814         HAVE_MBSINIT.
53815         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53816         HAVE_MBSINIT.
53817         * doc/posix-functions/mbsinit.texi: Document the new module.
53818
53819 2008-12-16  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/unistd.in.h: Add comment.
53822         * tests/test-environ.c: Don't include <stdlib.h>.
53823
53824 2008-12-16  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/parse-duration.h (parse_duration): Document return value
53827         convention.
53828         * lib/parse-duration.c: Include specification header first. Add
53829         comments.
53830         (_): Remove macro.
53831         (parse_year_month_day, parse_hour_minute_second): Move side effects
53832         outside of strchr call.
53833         (parse_non_iso8601): Move side effects outside of isspace call.
53834         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53835         call.
53836
53837 2008-12-16  Bruno Haible  <bruno@clisp.org>
53838
53839         * tests/test-parse-duration.sh: Produce no output when the test
53840         succeeds.
53841
53842 2008-12-16  Bruno Haible  <bruno@clisp.org>
53843
53844         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53845         expressions.
53846
53847 2008-12-15  Bruno Haible  <bruno@clisp.org>
53848
53849         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53850         * doc/glibc-functions/flistxattr.texi: Likewise.
53851         * doc/glibc-functions/fopencookie.texi: Likewise.
53852         * doc/glibc-functions/fremovexattr.texi: Likewise.
53853         * doc/glibc-functions/fsetxattr.texi: Likewise.
53854         * doc/glibc-functions/getxattr.texi: Likewise.
53855         * doc/glibc-functions/lgetxattr.texi: Likewise.
53856         * doc/glibc-functions/listxattr.texi: Likewise.
53857         * doc/glibc-functions/llistxattr.texi: Likewise.
53858         * doc/glibc-functions/lremovexattr.texi: Likewise.
53859         * doc/glibc-functions/lsetxattr.texi: Likewise.
53860         * doc/glibc-functions/removexattr.texi: Likewise.
53861         * doc/glibc-functions/setxattr.texi: Likewise.
53862         * doc/posix-functions/open_memstream.texi: Likewise.
53863
53864 2008-12-15  Eric Blake  <ebb9@byu.net>
53865
53866         Update doc for cygwin 1.7.
53867         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53868         functions.
53869         * doc/posix-functions/fchmodat.texi: Likewise.
53870         * doc/posix-functions/fchownat.texi: Likewise.
53871         * doc/posix-functions/fdopendir.texi: Likewise.
53872         * doc/posix-functions/fmemopen.texi: Likewise.
53873         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53874         * doc/posix-functions/fstatat.texi: Likewise.
53875         * doc/posix-functions/futimens.texi: Likewise.
53876         * doc/posix-functions/gai_strerror.texi: Likewise.
53877         * doc/posix-functions/getaddrinfo.texi: Likewise.
53878         * doc/posix-functions/getnameinfo.texi: Likewise.
53879         * doc/posix-functions/if_freenameindex.texi: Likewise.
53880         * doc/posix-functions/if_indextoname.texi: Likewise.
53881         * doc/posix-functions/if_nameindex.texi: Likewise.
53882         * doc/posix-functions/if_nametoindex.texi: Likewise.
53883         * doc/posix-functions/insque.texi: Likewise.
53884         * doc/posix-functions/linkat.texi: Likewise.
53885         * doc/posix-functions/llrint.texi: Likewise.
53886         * doc/posix-functions/llrintf.texi: Likewise.
53887         * doc/posix-functions/llrintl.texi: Likewise.
53888         * doc/posix-functions/lockf.texi: Likewise.
53889         * doc/posix-functions/lrintl.texi: Likewise.
53890         * doc/posix-functions/mkdirat.texi: Likewise.
53891         * doc/posix-functions/mkfifoat.texi: Likewise.
53892         * doc/posix-functions/mknodat.texi: Likewise.
53893         * doc/posix-functions/mq_close.texi: Likewise.
53894         * doc/posix-functions/mq_getattr.texi: Likewise.
53895         * doc/posix-functions/mq_notify.texi: Likewise.
53896         * doc/posix-functions/mq_open.texi: Likewise.
53897         * doc/posix-functions/mq_receive.texi: Likewise.
53898         * doc/posix-functions/mq_send.texi: Likewise.
53899         * doc/posix-functions/mq_setattr.texi: Likewise.
53900         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53901         * doc/posix-functions/mq_timedsend.texi: Likewise.
53902         * doc/posix-functions/mq_unlink.texi: Likewise.
53903         * doc/posix-functions/open_memstream.texi: Likewise.
53904         * doc/posix-functions/openat.texi: Likewise.
53905         * doc/posix-functions/posix_fadvise.texi: Likewise.
53906         * doc/posix-functions/posix_fallocate.texi: Likewise.
53907         * doc/posix-functions/posix_madvise.texi: Likewise.
53908         * doc/posix-functions/posix_memalign.texi: Likewise.
53909         * doc/posix-functions/posix_openpt.texi: Likewise.
53910         * doc/posix-functions/readlinkat.texi: Likewise.
53911         * doc/posix-functions/remque.texi: Likewise.
53912         * doc/posix-functions/renameat.texi: Likewise.
53913         * doc/posix-functions/rintl.texi: Likewise.
53914         * doc/posix-functions/sem_unlink.texi: Likewise.
53915         * doc/posix-functions/shm_open.texi: Likewise.
53916         * doc/posix-functions/shm_unlink.texi: Likewise.
53917         * doc/posix-functions/signgam.texi: Likewise.
53918         * doc/posix-functions/sigset.texi: Likewise.
53919         * doc/posix-functions/stpcpy.texi: Likewise.
53920         * doc/posix-functions/stpncpy.texi: Likewise.
53921         * doc/posix-functions/strerror.texi: Likewise.
53922         * doc/posix-functions/strtod.texi: Likewise.
53923         * doc/posix-functions/symlinkat.texi: Likewise.
53924         * doc/posix-functions/unlinkat.texi: Likewise.
53925         * doc/posix-functions/utimensat.texi: Likewise.
53926         * doc/glibc-functions/bindresvport.texi: Likewise.
53927         * doc/glibc-functions/dn_expand.texi: Likewise.
53928         * doc/glibc-functions/exp10.texi: Likewise.
53929         * doc/glibc-functions/exp10f.texi: Likewise.
53930         * doc/glibc-functions/fgetxattr.texi: Likewise.
53931         * doc/glibc-functions/flistxattr.texi: Likewise.
53932         * doc/glibc-functions/fopencookie.texi: Likewise.
53933         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53934         * doc/glibc-functions/fremovexattr.texi: Likewise.
53935         * doc/glibc-functions/fsetxattr.texi: Likewise.
53936         * doc/glibc-functions/getifaddrs.texi: Likewise.
53937         * doc/glibc-functions/getxattr.texi: Likewise.
53938         * doc/glibc-functions/lgetxattr.texi: Likewise.
53939         * doc/glibc-functions/listxattr.texi: Likewise.
53940         * doc/glibc-functions/llistxattr.texi: Likewise.
53941         * doc/glibc-functions/lremovexattr.texi: Likewise.
53942         * doc/glibc-functions/lsetxattr.texi: Likewise.
53943         * doc/glibc-functions/pow10.texi: Likewise.
53944         * doc/glibc-functions/pow10f.texi: Likewise.
53945         * doc/glibc-functions/rcmd_af.texi: Likewise.
53946         * doc/glibc-functions/removexattr.texi: Likewise.
53947         * doc/glibc-functions/res_init.texi: Likewise.
53948         * doc/glibc-functions/res_mkquery.texi: Likewise.
53949         * doc/glibc-functions/res_query.texi: Likewise.
53950         * doc/glibc-functions/res_querydomain.texi: Likewise.
53951         * doc/glibc-functions/res_send.texi: Likewise.
53952         * doc/glibc-functions/rresvport_af.texi: Likewise.
53953         * doc/glibc-functions/setxattr.texi: Likewise.
53954         * doc/glibc-functions/strcasestr.texi: Likewise.
53955
53956 2008-12-15  Bruno Haible  <bruno@clisp.org>
53957
53958         Fix compilation error on OSF/1 4.0.
53959         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53960         <sys/time.h>, simply delegate to the system header.
53961         Reported by Daniel Richard G. <oss@teragram.com>.
53962
53963 2008-12-15  Bruno Haible  <bruno@clisp.org>
53964
53965         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53966         * doc/posix-functions/fchmodat.texi: Likewise.
53967         * doc/posix-functions/fchownat.texi: Likewise.
53968         * doc/posix-functions/fdopendir.texi: Likewise.
53969         * doc/posix-functions/fstatat.texi: Likewise.
53970         * doc/posix-functions/mkdirat.texi: Likewise.
53971         * doc/posix-functions/unlinkat.texi: Likewise.
53972
53973 2008-12-14  Bruno Haible  <bruno@clisp.org>
53974
53975         Update doc for POSIX:2008.
53976         * doc/posix-functions/faccessat.texi: New file.
53977         * doc/posix-functions/fchmodat.texi: New file.
53978         * doc/posix-functions/fchownat.texi: New file.
53979         * doc/posix-functions/fdopendir.texi: New file.
53980         * doc/posix-functions/fstatat.texi: New file.
53981         * doc/posix-functions/futimens.texi: New file.
53982         * doc/posix-functions/linkat.texi: New file.
53983         * doc/posix-functions/mkdirat.texi: New file.
53984         * doc/posix-functions/mkfifoat.texi: New file.
53985         * doc/posix-functions/mknodat.texi: New file.
53986         * doc/posix-functions/open_wmemstream.texi: New file.
53987         * doc/posix-functions/openat.texi: New file.
53988         * doc/posix-functions/psiginfo.texi: New file.
53989         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53990         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53991         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53992         * doc/posix-functions/readlinkat.texi: New file.
53993         * doc/posix-functions/renameat.texi: New file.
53994         * doc/posix-functions/strerror_l.texi: New file.
53995         * doc/posix-functions/symlinkat.texi: New file.
53996         * doc/posix-functions/unlinkat.texi: New file.
53997         * doc/posix-functions/utimensat.texi: New file.
53998         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53999
54000 2008-12-14  Bruno Haible  <bruno@clisp.org>
54001
54002         Update doc for POSIX:2008.
54003         * doc/posix-functions/alphasort.texi: Renamed from
54004         doc/glibc-functions/alphasort.texi.
54005         * doc/posix-functions/dirfd.texi: Renamed from
54006         doc/glibc-functions/dirfd.texi.
54007         * doc/posix-functions/dprintf.texi: Renamed from
54008         doc/glibc-functions/dprintf.texi.
54009         * doc/posix-functions/duplocale.texi: Renamed from
54010         doc/glibc-functions/duplocale.texi.
54011         * doc/posix-functions/fexecve.texi: Renamed from
54012         doc/glibc-functions/fexecve.texi.
54013         * doc/posix-functions/fmemopen.texi: Renamed from
54014         doc/glibc-functions/fmemopen.texi.
54015         * doc/posix-functions/freelocale.texi: Renamed from
54016         doc/glibc-functions/freelocale.texi.
54017         * doc/posix-functions/getdate_err.texi: Renamed from
54018         doc/glibc-functions/getdate_err.texi.
54019         * doc/posix-functions/isalnum_l.texi: Renamed from
54020         doc/glibc-functions/isalnum_l.texi.
54021         * doc/posix-functions/isalpha_l.texi: Renamed from
54022         doc/glibc-functions/isalpha_l.texi.
54023         * doc/posix-functions/isblank_l.texi: Renamed from
54024         doc/glibc-functions/isblank_l.texi.
54025         * doc/posix-functions/iscntrl_l.texi: Renamed from
54026         doc/glibc-functions/iscntrl_l.texi.
54027         * doc/posix-functions/isdigit_l.texi: Renamed from
54028         doc/glibc-functions/isdigit_l.texi.
54029         * doc/posix-functions/isgraph_l.texi: Renamed from
54030         doc/glibc-functions/isgraph_l.texi.
54031         * doc/posix-functions/islower_l.texi: Renamed from
54032         doc/glibc-functions/islower_l.texi.
54033         * doc/posix-functions/isprint_l.texi: Renamed from
54034         doc/glibc-functions/isprint_l.texi.
54035         * doc/posix-functions/ispunct_l.texi: Renamed from
54036         doc/glibc-functions/ispunct_l.texi.
54037         * doc/posix-functions/isspace_l.texi: Renamed from
54038         doc/glibc-functions/isspace_l.texi.
54039         * doc/posix-functions/isupper_l.texi: Renamed from
54040         doc/glibc-functions/isupper_l.texi.
54041         * doc/posix-functions/iswalnum_l.texi: Renamed from
54042         doc/glibc-functions/iswalnum_l.texi.
54043         * doc/posix-functions/iswalpha_l.texi: Renamed from
54044         doc/glibc-functions/iswalpha_l.texi.
54045         * doc/posix-functions/iswblank_l.texi: Renamed from
54046         doc/glibc-functions/iswblank_l.texi.
54047         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54048         doc/glibc-functions/iswcntrl_l.texi.
54049         * doc/posix-functions/iswctype_l.texi: Renamed from
54050         doc/glibc-functions/iswctype_l.texi.
54051         * doc/posix-functions/iswdigit_l.texi: Renamed from
54052         doc/glibc-functions/iswdigit_l.texi.
54053         * doc/posix-functions/iswgraph_l.texi: Renamed from
54054         doc/glibc-functions/iswgraph_l.texi.
54055         * doc/posix-functions/iswlower_l.texi: Renamed from
54056         doc/glibc-functions/iswlower_l.texi.
54057         * doc/posix-functions/iswprint_l.texi: Renamed from
54058         doc/glibc-functions/iswprint_l.texi.
54059         * doc/posix-functions/iswpunct_l.texi: Renamed from
54060         doc/glibc-functions/iswpunct_l.texi.
54061         * doc/posix-functions/iswspace_l.texi: Renamed from
54062         doc/glibc-functions/iswspace_l.texi.
54063         * doc/posix-functions/iswupper_l.texi: Renamed from
54064         doc/glibc-functions/iswupper_l.texi.
54065         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54066         doc/glibc-functions/iswxdigit_l.texi.
54067         * doc/posix-functions/isxdigit_l.texi: Renamed from
54068         doc/glibc-functions/isxdigit_l.texi.
54069         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54070         doc/glibc-functions/mbsnrtowcs.texi.
54071         * doc/posix-functions/mkdtemp.texi: Renamed from
54072         doc/glibc-functions/mkdtemp.texi.
54073         * doc/posix-functions/newlocale.texi: Renamed from
54074         doc/glibc-functions/newlocale.texi.
54075         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54076         doc/glibc-functions/nl_langinfo_l.texi.
54077         * doc/posix-functions/open_memstream.texi: Renamed from
54078         doc/glibc-functions/open_memstream.texi.
54079         * doc/posix-functions/opterr.texi: Renamed from
54080         doc/glibc-functions/opterr.texi.
54081         * doc/posix-functions/optind.texi: Renamed from
54082         doc/glibc-functions/optind.texi.
54083         * doc/posix-functions/optopt.texi: Renamed from
54084         doc/glibc-functions/optopt.texi.
54085         * doc/posix-functions/psignal.texi: Renamed from
54086         doc/glibc-functions/psignal.texi.
54087         * doc/posix-functions/scandir.texi: Renamed from
54088         doc/glibc-functions/scandir.texi.
54089         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54090         doc/glibc-functions/sched_get_priority_min.texi.
54091         * doc/posix-functions/signgam.texi: Renamed from
54092         doc/glibc-functions/signgam.texi.
54093         * doc/posix-functions/stpcpy.texi: Renamed from
54094         doc/glibc-functions/stpcpy.texi.
54095         * doc/posix-functions/stpncpy.texi: Renamed from
54096         doc/glibc-functions/stpncpy.texi.
54097         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54098         doc/glibc-functions/strcasecmp_l.texi.
54099         * doc/posix-functions/strcoll_l.texi: Renamed from
54100         doc/glibc-functions/strcoll_l.texi.
54101         * doc/posix-functions/strfmon_l.texi: Renamed from
54102         doc/glibc-functions/strfmon_l.texi.
54103         * doc/posix-functions/strftime_l.texi: Renamed from
54104         doc/glibc-functions/strftime_l.texi.
54105         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54106         doc/glibc-functions/strncasecmp_l.texi.
54107         * doc/posix-functions/strndup.texi: Renamed from
54108         doc/glibc-functions/strndup.texi.
54109         * doc/posix-functions/strnlen.texi: Renamed from
54110         doc/glibc-functions/strnlen.texi.
54111         * doc/posix-functions/strsignal.texi: Renamed from
54112         doc/glibc-functions/strsignal.texi.
54113         * doc/posix-functions/strxfrm_l.texi: Renamed from
54114         doc/glibc-functions/strxfrm_l.texi.
54115         * doc/posix-functions/timer_gettime.texi: Renamed from
54116         doc/glibc-functions/timer_gettime.texi.
54117         * doc/posix-functions/tolower_l.texi: Renamed from
54118         doc/glibc-functions/tolower_l.texi.
54119         * doc/posix-functions/toupper_l.texi: Renamed from
54120         doc/glibc-functions/toupper_l.texi.
54121         * doc/posix-functions/towctrans_l.texi: Renamed from
54122         doc/glibc-functions/towctrans_l.texi.
54123         * doc/posix-functions/towlower_l.texi: Renamed from
54124         doc/glibc-functions/towlower_l.texi.
54125         * doc/posix-functions/towupper_l.texi: Renamed from
54126         doc/glibc-functions/towupper_l.texi.
54127         * doc/posix-functions/uselocale.texi: Renamed from
54128         doc/glibc-functions/uselocale.texi.
54129         * doc/posix-functions/vdprintf.texi: Renamed from
54130         doc/glibc-functions/vdprintf.texi.
54131         * doc/posix-functions/wcpcpy.texi:
54132         Renamed from doc/glibc-functions/wcpcpy.texi.
54133         * doc/posix-functions/wcpncpy.texi: Renamed from
54134         doc/glibc-functions/wcpncpy.texi.
54135         * doc/posix-functions/wcscasecmp.texi: Renamed from
54136         doc/glibc-functions/wcscasecmp.texi.
54137         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54138         doc/glibc-functions/wcscasecmp_l.texi.
54139         * doc/posix-functions/wcscoll_l.texi: Renamed from
54140         doc/glibc-functions/wcscoll_l.texi.
54141         * doc/posix-functions/wcsdup.texi: Renamed from
54142         doc/glibc-functions/wcsdup.texi.
54143         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54144         doc/glibc-functions/wcsncasecmp.texi.
54145         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54146         doc/glibc-functions/wcsncasecmp_l.texi.
54147         * doc/posix-functions/wcsnlen.texi: Renamed from
54148         doc/glibc-functions/wcsnlen.texi.
54149         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54150         doc/glibc-functions/wcsnrtombs.texi.
54151         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54152         doc/glibc-functions/wcsxfrm_l.texi.
54153         * doc/posix-functions/wctrans_l.texi: Renamed from
54154         doc/glibc-functions/wctrans_l.texi.
54155         * doc/posix-functions/wctype_l.texi: Renamed from
54156         doc/glibc-functions/wctype_l.texi.
54157         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54158         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54159         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54160         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54161         these subsections.
54162         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54163         Remove sections.
54164
54165 2008-12-14  Bruno Haible  <bruno@clisp.org>
54166
54167         Update doc for POSIX:2008.
54168         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54169
54170 2008-12-14  Bruno Haible  <bruno@clisp.org>
54171
54172         Update doc for POSIX:2008.
54173         * doc/pastposix-functions/bcmp.texi: Renamed from
54174         doc/posix-functions/bcmp.texi.
54175         * doc/pastposix-functions/bcopy.texi: Renamed from
54176         doc/posix-functions/bcopy.texi.
54177         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54178         doc/posix-functions/bsd_signal.texi.
54179         * doc/pastposix-functions/bzero.texi: Renamed from
54180         doc/posix-functions/bzero.texi.
54181         * doc/pastposix-functions/ecvt.texi: Renamed from
54182         doc/posix-functions/ecvt.texi.
54183         * doc/pastposix-functions/fcvt.texi: Renamed from
54184         doc/posix-functions/fcvt.texi.
54185         * doc/pastposix-functions/ftime.texi: Renamed from
54186         doc/posix-functions/ftime.texi.
54187         * doc/pastposix-functions/gcvt.texi: Renamed from
54188         doc/posix-functions/gcvt.texi.
54189         * doc/pastposix-functions/getcontext.texi: Renamed from
54190         doc/posix-functions/getcontext.texi.
54191         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54192         doc/posix-functions/gethostbyaddr.texi.
54193         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54194         doc/posix-functions/gethostbyname.texi.
54195         * doc/pastposix-functions/getwd.texi: Renamed from
54196         doc/posix-functions/getwd.texi.
54197         * doc/pastposix-functions/h_errno.texi: Renamed from
54198         doc/posix-functions/h_errno.texi.
54199         * doc/pastposix-functions/index.texi: Renamed from
54200         doc/posix-functions/index.texi.
54201         * doc/pastposix-functions/makecontext.texi: Renamed from
54202         doc/posix-functions/makecontext.texi.
54203         * doc/pastposix-functions/mktemp.texi: Renamed from
54204         doc/posix-functions/mktemp.texi.
54205         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54206         doc/posix-functions/pthread_attr_getstackaddr.texi.
54207         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54208         doc/posix-functions/pthread_attr_setstackaddr.texi.
54209         * doc/pastposix-functions/rindex.texi: Renamed from
54210         doc/posix-functions/rindex.texi.
54211         * doc/pastposix-functions/scalb.texi: Renamed from
54212         doc/posix-functions/scalb.texi.
54213         * doc/pastposix-functions/setcontext.texi: Renamed from
54214         doc/posix-functions/setcontext.texi.
54215         * doc/pastposix-functions/swapcontext.texi: Renamed from
54216         doc/posix-functions/swapcontext.texi.
54217         * doc/pastposix-functions/ualarm.texi: Renamed from
54218         doc/posix-functions/ualarm.texi.
54219         * doc/pastposix-functions/usleep.texi: Renamed from
54220         doc/posix-functions/usleep.texi.
54221         * doc/pastposix-functions/vfork.texi: Renamed from
54222         doc/posix-functions/vfork.texi.
54223         * doc/pastposix-functions/wcswcs.texi: Renamed from
54224         doc/posix-functions/wcswcs.texi.
54225         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54226         (Function Substitutes): Update.
54227
54228 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54229
54230         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54231         m4/strerror.m4.
54232
54233 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54234             Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54237
54238 2008-12-13  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/strtoull (Depends-on): Remove unistd.
54241
54242 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54243
54244         * modules/strtoull (Depends-on): Add stdlib.
54245
54246 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54247
54248         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54249
54250 2008-12-10  Jim Meyering  <meyering@redhat.com>
54251
54252         gl_ASSERT: don't say assertions are disabled when they're not
54253         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54254         "checking whether to enable assertions... no", when they are in
54255         fact enabled.  This is solely a bug in the output of configure.
54256         In spite of saying "no", NDEBUG was not defined in that case.
54257         Also, as noted by Eric Blake, leave assertions enabled upon
54258         --enable-assert=INVALID.
54259
54260 2008-12-10  Bruno Haible  <bruno@clisp.org>
54261
54262         Change MODULES.html to refer to POSIX:2008 where possible.
54263         * MODULES.html.sh (POSIX2008_URL): New variable.
54264         (posix_headers): Remove sys/timeb, ucontext.
54265         (posix2001_headers): New variable.
54266         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54267         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54268         index, makecontext, mktemp, pthread_attr_getstackaddr,
54269         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54270         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54271         (posix2001_functions): New variable.
54272         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54273         otherwise.
54274
54275 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54276
54277         add missing include to parse-duration.c
54278         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54279         * modules/parse-duration (Depends-on): Add xalloc.
54280
54281         fix sed script reading maint.mk
54282         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54283         (syntax-check-rules): Use it.
54284
54285 2008-12-09  Bruno Haible  <bruno@clisp.org>
54286
54287         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54288         MacOS X 10.4/PowerPC.
54289         Reported by Simon Josefsson.
54290
54291 2008-12-08  Jim Meyering  <meyering@redhat.com>
54292
54293         work around mingw's lack of some S_IF definitions
54294         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54295         Reported by Simon Josefsson.
54296
54297 2008-12-08  Bruno Haible  <bruno@clisp.org>
54298
54299         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54300         applied to variables. Needed on MacOS X 10.4/PowerPC.
54301         Reported by Simon Josefsson.
54302
54303 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54304         and Eric Blake  <ebb9@byu.net>
54305
54306         assert: honor --enable-assert
54307         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54308         order to honor --enable-assert, rather than treating it as a
54309         synonym for --disable-assert.
54310
54311 2008-12-08  Jim Meyering  <meyering@redhat.com>
54312
54313         * lib/posixtm.c: Remove now-useless declaration of mktime.
54314
54315         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54316
54317 2008-12-07  Bruno Haible  <bruno@clisp.org>
54318
54319         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54320         test_once): Mark functions as static.
54321         * tests/test-tls.c (test_tls): Likewise.
54322
54323 2008-12-07  Bruno Haible  <bruno@clisp.org>
54324
54325         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54326         iconv_register_autodetect.
54327
54328 2008-12-07  Jim Meyering  <meyering@redhat.com>
54329
54330         posixtm.c: avoid a warning
54331         * lib/posixtm.c (posixtime): Don't initialize tm0.
54332         It's no longer needed to placate gcc4's -Wuninitialized,
54333         and the attempt to placate would elicit a new warning.
54334
54335         unicodeio.c: mark unused parameters
54336         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54337         (fallback_failure_callback): Likewise.
54338
54339 2008-12-07  Bruno Haible  <bruno@clisp.org>
54340
54341         * gnulib-tool (func_create_testdir): When building the tests
54342         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54343         Reported by Simon Josefsson.
54344
54345 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54346
54347         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54348
54349 2008-12-06  Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54352         Suggested by Eric Blake.
54353
54354 2008-12-06  Bruno Haible  <bruno@clisp.org>
54355
54356         Fix a c-stack test failure on MacOS X.
54357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54358         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54359         handler for SIGBUS as well.
54360         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54361         install a signal handler for SIGBUS as well.
54362         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54363
54364 2008-12-06  Bruno Haible  <bruno@clisp.org>
54365
54366         Advocacy documentation.
54367         * doc/gnulib-intro.texi (Benefits): New section.
54368         * doc/gnulib.texi: Update.
54369
54370 2008-12-06  Bruno Haible  <bruno@clisp.org>
54371
54372         Document the 'manywarnings' module.
54373         * doc/manywarnings.texi: New file.
54374         * doc/gnulib.texi: Include it.
54375
54376 2008-12-05  Eric Blake  <ebb9@byu.net>
54377
54378         tests: silence some gcc warnings
54379         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54380         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54381         type mismatches.
54382
54383 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54384             Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54387
54388 2008-11-29  Jim Meyering  <meyering@redhat.com>
54389
54390         unicodeio.c: mark unused parameters
54391         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54392         (fallback_failure_callback): Likewise.
54393
54394         fts: fix a thinko
54395         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54396         (set_stat_type): Return S_IF*-valued "type" directly.
54397         Prompted by James Youngman's spotting a related bug.
54398         Confirmed by further testing through find.
54399
54400         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54401         * lib/fts.c (D_TYPE): Define.
54402         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54403         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54404         (s_ifmt_shift_bits): New function.
54405         (set_stat_type): New function.
54406         (fts_build): When not calling fts_stat, call set_stat_type
54407         to propagate dirent.d_type info to fts_read caller.
54408         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54409         fts_statp->st_mode type information may be valid.
54410
54411 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54412
54413         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54414         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54415         <sds@gnu.org>.
54416
54417 2008-11-20  Bruno Haible  <bruno@clisp.org>
54418
54419         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54420         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54421         INCLUDE_NEXT.
54422         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54423         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54424         * modules/math (Makefile.am): Substitute
54425         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54427
54428 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54429             Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/stdint.in.h: Define all type macros so that their expansion is
54432         a single typedef'ed token. Fixes a compilation failure in Boost which
54433         does "using ::int8_t;".
54434
54435 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54436
54437         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54438         gl_MANYWARN_ALL_GCC.
54439         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54440         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54441         * modules/manywarnings: New file.
54442         * MODULES.html.sh: Mention manywarnings module.
54443
54444 2008-11-18  Bruno Haible  <bruno@clisp.org>
54445
54446         * doc/gnulib-tool.texi (Unit tests): New section.
54447
54448 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54449
54450         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54451         paths like 'lib/po/foo.po'.
54452
54453 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54454
54455         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54456         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54457
54458 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54459
54460         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54461         parameter works.
54462
54463 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54464
54465         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54466
54467 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54468
54469         * modules/parse-duration-tests: New file.
54470         * tests/test-parse-duration.sh: New file.
54471         * tests/test-parse-duration.c: New file.
54472
54473         New module 'parse-duration'.
54474         * lib/parse-duration.h: New file.
54475         * lib/parse-duration.c: New file.
54476         * modules/parse-duration: New file.
54477
54478 2008-11-17  Bruno Haible  <bruno@clisp.org>
54479
54480         * tests/test-select-out.sh: Comment out the first pipe test.
54481         Reported by Simon Josefsson.
54482
54483 2008-11-17  Bruno Haible  <bruno@clisp.org>
54484
54485         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54486         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54487         gl_HOSTENT.
54488
54489 2008-11-17  Bruno Haible  <bruno@clisp.org>
54490
54491         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54492         -lnetwork and -lnet. Needed for Haiku and BeOS.
54493
54494 2008-11-16  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54497
54498 2008-11-16  Bruno Haible  <bruno@clisp.org>
54499
54500         Avoid test failure on Haiku.
54501         * tests/test-fsync.c: Include <errno.h>.
54502         (main): Don't require that fsync (0) fails.
54503
54504 2008-11-15  Bruno Haible  <bruno@clisp.org>
54505
54506         New module 'hostent'.
54507         * modules/hostent: New file.
54508         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54509
54510 2008-11-15  Bruno Haible  <bruno@clisp.org>
54511
54512         New module 'servent'.
54513         * modules/servent: New file.
54514         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54515
54516 2008-11-15  Bruno Haible  <bruno@clisp.org>
54517
54518         Avoid generating same test program with two different rules.
54519         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54520         test-frexp to test-frexp-nolibm.
54521         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54522         test-frexpl to test-frexpl-nolibm.
54523
54524 2008-11-15  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54527         $(FREXPL_LIBM).
54528
54529 2008-11-15  Bruno Haible  <bruno@clisp.org>
54530
54531         * lib/netdb.in.h: Activate the definitions also when the system's
54532         <netdb.h> has 'struct addrinfo'.
54533         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54534         EAI_OVERFLOW or AI_NUMERICSERV.
54535         * doc/posix-headers/netdb.texi: Document the problem.
54536
54537 2008-11-15  Bruno Haible  <bruno@clisp.org>
54538
54539         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54540
54541         Make the 'sched' module work on platforms where <sched.h> exists but
54542         is incomplete (such as Haiku).
54543         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54544         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54545         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54546         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54547         HAVE_STRUCT_SCHED_PARAM.
54548         * modules/sched (Depends-on): Add include_next.
54549         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54550         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54551         * doc/posix-headers/sched.texi: Document the issue.
54552
54553 2008-11-13  Jim Meyering  <meyering@redhat.com>
54554
54555         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54556         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54557         test would fail due to the difference in the Report bugs to ...
54558         line.  The expected address is empty, "<>", while the actual
54559         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54560
54561 2008-11-12  Bruno Haible  <bruno@clisp.org>
54562
54563         lstat: don't compile lstat.c on systems lacking lstat
54564         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54565         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54566         Reported by Daniel P. Berrange via Jim Meyering.
54567
54568 2008-11-12  Jim Meyering  <meyering@redhat.com>
54569
54570         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54571
54572 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54573
54574         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54575         instead.
54576
54577 2008-11-12  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/unicodeio.c: Include unistr.h.
54580         (utf8_wctomb): Remove function.
54581         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54582
54583 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54584
54585         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54586         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54587         <bruno@clisp.org>.
54588         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54589
54590 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54591
54592         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54593         * doc/gnulib.texi: Add section for warnings.
54594
54595 2008-11-11  Bruno Haible  <bruno@clisp.org>
54596
54597         * lib/sockets.h: Add a comment.
54598
54599 2008-11-11  Karl Berry  <karl@gnu.org>
54600
54601         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54602
54603 2008-11-11  Eric Blake  <ebb9@byu.net>
54604
54605         fdl.texi: avoid git symlinks
54606         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54607
54608 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54609
54610         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54611
54612 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54613
54614         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54615         (gl_WARN_ADD): Substitute $2 if literal.
54616
54617 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54618
54619         * m4/warning.m4: Remove.
54620
54621 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54622
54623         * m4/warnings.m4: Almost complete rewrite. :-)
54624
54625 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54626
54627         * modules/warnings: New module.
54628         * m4/warnings.m4: New file.
54629         * MODULES.html.sh: Mention warnings module.
54630         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54631         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54632
54633 2008-11-10  Eric Blake  <ebb9@byu.net>
54634
54635         fdl.texi: make a symlink to the latest version
54636         * doc/standards.texi: Revert today's earlier change.
54637         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54638         * doc/fdl.texi: ...and replace this with a symlink to the newer
54639         fdl-1.3.texi.
54640
54641 2008-11-10  Bruno Haible  <bruno@clisp.org>
54642
54643         * tests/test-select-fd.c (main): Accept the result file name as fourth
54644         argument.
54645         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54646         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54647
54648 2008-11-10  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54651         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54652         as autoconf-substituted macros.
54653         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54655         gl_NETDB_H_DEFAULTS. Set these variables.
54656         * modules/netdb (Makefile.am): Substitute these variables.
54657
54658 2008-11-10  Eric Blake  <ebb9@byu.net>
54659
54660         standards.texi: include correct file for FDL 1.3
54661         * doc/standards.texi (GNU Free Documentation License): Change
54662         include file to pull in FDL 1.3, not 1.2.
54663
54664         fdl.texi: revert accidental change to license
54665         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54666
54667 2008-11-10  Bruno Haible  <bruno@clisp.org>
54668
54669         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54670         cross-compiling guesses also when the native compile gives no result.
54671
54672 2008-11-10  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/spawni.c (__spawni): Force variable into the stack.
54675
54676 2008-11-10  Bruno Haible  <bruno@clisp.org>
54677
54678         Add support for Haiku.
54679         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54680         glibc and BeOS, but also on Haiku.
54681         * lib/fpurge.c (fpurge): Likewise.
54682         * lib/freadable.c (freadable): Likewise.
54683         * lib/freadahead.c (freadahead): Likewise.
54684         * lib/freading.c (freading): Likewise.
54685         * lib/freadptr.c (freadptr): Likewise.
54686         * lib/freadseek.c (freadptrinc): Likewise.
54687         * lib/fseeko.c (rpl_fseeko): Likewise.
54688         * lib/fseterr.c (fseterr): Likewise.
54689         * lib/fwritable.c (fwritable): Likewise.
54690         * lib/fwriting.c (fwriting): Likewise.
54691         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54692
54693 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54694
54695         * lib/config.charset: Treat Haiku like BeOS.
54696
54697 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54698
54699         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54700         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54701
54702 2008-11-08  Bruno Haible  <bruno@clisp.org>
54703
54704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54705         AC_CACHE_CHECK.
54706
54707 2008-11-08  Bruno Haible  <bruno@clisp.org>
54708
54709         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54710
54711 2008-11-08  Bruno Haible  <bruno@clisp.org>
54712
54713         * tests/test-select-fd.c: New file.
54714         * tests/test-select-in.sh: New file.
54715         * tests/test-select-out.sh: New file.
54716         * tests/test-select-stdin.c: New file.
54717         * modules/select-tests (Files): Add the new files.
54718         (Depends-on): Add gettimeofday.
54719         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54720         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54721         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54722
54723 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54724             Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54727
54728 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54729
54730         * build-aux/pmccabe2html: Added support for C++ source files.
54731
54732 2008-11-05  Ben Pfaff  <blp@gnu.org>
54733
54734         Fix lib/close.c build on Windows.
54735         * modules/close (Files): Add lib/w32sock.h.
54736
54737 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54738
54739         Accept Bison's NEWS format.
54740         * build-aux/announce-gen (print_news_deltas): Tweak
54741         $re_prefix.
54742
54743 2008-11-04  Bruno Haible  <bruno@clisp.org>
54744
54745         * modules/random_r (Maintainer): Add glibc.
54746
54747 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54748
54749         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54750         by karl@freefriends.org (Karl Berry).
54751         * doc/alloca.texi: Likewise.
54752         * doc/c-ctype.texi: Likewise.
54753         * doc/c-strcase.texi: Likewise.
54754         * doc/c-strcaseeq.texi: Likewise.
54755         * doc/c-strcasestr.texi: Likewise.
54756         * doc/c-strstr.texi: Likewise.
54757         * doc/c-strtod.texi: Likewise.
54758         * doc/c-strtold.texi: Likewise.
54759         * doc/ctime.texi: Likewise.
54760         * doc/error.texi: Likewise.
54761         * doc/fdl.texi: Likewise.
54762         * doc/gcd.texi: Likewise.
54763         * doc/getdate.texi: Likewise.
54764         * doc/gnulib-intro.texi: Likewise.
54765         * doc/gnulib-tool.texi: Likewise.
54766         * doc/gnulib.texi: Likewise.
54767         * doc/inet_ntoa.texi: Likewise.
54768         * doc/maintain.texi: Likewise.
54769         * doc/make-stds.texi: Likewise.
54770         * doc/quote.texi: Likewise.
54771         * doc/regexprops-generic.texi: Likewise.
54772         * doc/standards.texi: Likewise.
54773         * doc/verify.texi: Likewise.
54774         * doc/visibility.texi: Likewise.
54775         * doc/gnulib.texi (GNU Free Documentation License): Include
54776         fdl-1.3.texi instead of fdl.texi.
54777
54778 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54779
54780         * doc/fdl-1.3.texi: New file, from
54781         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54782         * modules/fdl-1.3: Add.
54783         * MODULES.html.sh: Add fdl-1.3.
54784
54785 2008-11-03  Bruno Haible  <bruno@clisp.org>
54786
54787         Make determination of absolute name of header file work with AIX xlc.
54788         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54789         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54790         preprocessing.
54791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54792         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54793
54794 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54795
54796         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54797         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54798         <ludo@gnu.org>.
54799
54800 2008-11-02  Bruno Haible  <bruno@clisp.org>
54801
54802         Mark 'strpbrk' obsolete.
54803         * modules/strpbrk (Status, Notice): New sections.
54804         * modules/strtok_r (Depends-on): Add strpbrk.
54805
54806 2008-11-02  Bruno Haible  <bruno@clisp.org>
54807
54808         Mark 'strdup' obsolete.
54809         * modules/strdup (Status, Notice): New sections.
54810         * modules/findprog (Depends-on): Add strdup.
54811         * modules/getaddrinfo (Depends-on): Likewise.
54812         * modules/localename (Depends-on): Likewise.
54813         * modules/relocatable-lib (Depends-on): Likewise.
54814         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54815         * modules/relocatable-prog (Depends-on): Likewise.
54816         * modules/trim (Depends-on): Likewise.
54817         * modules/unictype/gen-ctype (Depends-on): Likewise.
54818         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54819
54820 2008-11-02  Bruno Haible  <bruno@clisp.org>
54821
54822         Mark 'strcspn' obsolete.
54823         * modules/strcspn (Status, Notice): New sections.
54824
54825 2008-11-02  Bruno Haible  <bruno@clisp.org>
54826
54827         Mark 'rmdir' obsolete.
54828         * modules/rmdir (Status, Notice): New sections.
54829         * modules/clean-temp (Depends-on): Add rmdir.
54830         * modules/openat (Depends-on): Likewise.
54831
54832 2008-11-02  Bruno Haible  <bruno@clisp.org>
54833
54834         Mark 'raise' obsolete.
54835         * modules/raise (Status, Notice): New sections.
54836         (Include): Specify <signal.h>.
54837         * modules/stdio (Depends-on): Add raise.
54838         * modules/write (Depends-on): Likewise.
54839
54840 2008-11-02  Bruno Haible  <bruno@clisp.org>
54841
54842         Mark 'memset' obsolete.
54843         * modules/memset (Status, Notice): New sections.
54844
54845 2008-11-02  Bruno Haible  <bruno@clisp.org>
54846
54847         Mark 'memmove' obsolete.
54848         * modules/memmove (Status, Notice): New sections.
54849         * modules/argp (Depends-on): Add memmove.
54850         * modules/argz (Depends-on): Likewise.
54851         * modules/canonicalize (Depends-on): Likewise.
54852         * modules/canonicalize-lgpl (Depends-on): Likewise.
54853         * modules/fts (Depends-on): Likewise.
54854         * modules/getcwd (Depends-on): Likewise.
54855         * modules/human (Depends-on): Likewise.
54856         * modules/regex (Depends-on): Likewise.
54857         * modules/striconveh (Depends-on): Likewise.
54858         * modules/trim (Depends-on): Likewise.
54859         * modules/unistr/u8-move (Depends-on): Likewise.
54860         * modules/unistr/u16-move (Depends-on): Likewise.
54861         * modules/unistr/u32-move (Depends-on): Likewise.
54862
54863 2008-11-02  Bruno Haible  <bruno@clisp.org>
54864
54865         Mark 'memcpy' obsolete.
54866         * modules/memcpy (Status, Notice): New sections.
54867
54868 2008-11-02  Bruno Haible  <bruno@clisp.org>
54869
54870         Mark 'memcmp' obsolete.
54871         * modules/memcmp (Status, Notice): New sections.
54872         * modules/argmatch (Depends-on): Add memchr.
54873         * modules/backupfile (Depends-on): Likewise.
54874         * modules/c-strcasestr (Depends-on): Likewise.
54875         * modules/crypto/des (Depends-on): Likewise.
54876         * modules/csharpcomp (Depends-on): Likewise.
54877         * modules/fnmatch (Depends-on): Likewise.
54878         * modules/git-merge-changelog (Depends-on): Likewise.
54879         * modules/isnand (Depends-on): Likewise.
54880         * modules/isnand-nolibm (Depends-on): Likewise.
54881         * modules/isnanf (Depends-on): Likewise.
54882         * modules/isnanf-nolibm (Depends-on): Likewise.
54883         * modules/isnanl (Depends-on): Likewise.
54884         * modules/isnanl-nolibm (Depends-on): Likewise.
54885         * modules/mbchar (Depends-on): Likewise.
54886         * modules/memcoll (Depends-on): Likewise.
54887         * modules/quotearg (Depends-on): Likewise.
54888         * modules/regex (Depends-on): Likewise.
54889         * modules/relocatable-prog (Depends-on): Likewise.
54890         * modules/same (Depends-on): Likewise.
54891         * modules/signbit (Depends-on): Likewise.
54892         * modules/strcasestr-simple (Depends-on): Likewise.
54893         * modules/unictype/gen-ctype (Depends-on): Likewise.
54894         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54895         * modules/uniname/uniname (Depends-on): Likewise.
54896         * modules/unistr/u8-cmp (Depends-on): Likewise.
54897
54898 2008-11-02  Bruno Haible  <bruno@clisp.org>
54899
54900         Mark 'memchr' obsolete.
54901         * modules/memchr (Status, Notice): New sections.
54902         * modules/argp (Depends-on): Add memchr.
54903         * modules/base64 (Depends-on): Likewise.
54904         * modules/c-strcasestr (Depends-on): Likewise.
54905         * modules/chdir-long (Depends-on): Likewise.
54906         * modules/fnmatch (Depends-on): Likewise.
54907         * modules/getsubopt (Depends-on): Likewise.
54908         * modules/git-merge-changelog (Depends-on): Likewise.
54909         * modules/glob (Depends-on): Likewise.
54910         * modules/strcasestr-simple (Depends-on): Likewise.
54911         * modules/strnlen (Depends-on): Likewise.
54912
54913 2008-11-02  Bruno Haible  <bruno@clisp.org>
54914
54915         Mark 'atexit' obsolete.
54916         * modules/atexit (Status, Notice): New sections.
54917         * modules/chdir-long (Depends-on): Add atexit.
54918         * modules/wait-process (Depends-on): Likewise.
54919
54920 2008-11-02  Bruno Haible  <bruno@clisp.org>
54921
54922         * gnulib-tool: New option --with-obsolete.
54923         (func_usage): Document it.
54924         (func_modules_transitive_closure): Drop obsolete dependencies if
54925         incobsolete is not true.
54926         (func_import): Read and save the incobsolete variable to the cache.
54927
54928 2008-11-02  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54931         * gnulib-tool: New option --extract-status.
54932         (func_usage): Document it.
54933         (sed_extract_prog): Recognize it.
54934         (func_get_status): New function.
54935
54936 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54937
54938         * modules/sockets (License): Change from LGPL to LGPLv2+.
54939
54940 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54941
54942         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54943
54944 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54945
54946         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54947         Mention times and sys_times.
54948         * modules/sys_times, modules/sys_times-tests: New modules.
54949         * modules/times, modules/times-tests: Likewise
54950         * m4/sys_times_h.m4: New file.
54951         * lib/sys_times.in.h: Likewise
54952         * lib/times.c: Likewise.
54953         * tests/test-sys_times.c: Likewise.
54954         * tests/test-times.c: Likewise.
54955         * doc/posix-headers/sys_times.texi: Update.
54956         * doc/posix-functions/times.texi: Update.
54957
54958 2008-10-28  Jim Meyering  <meyering@redhat.com>
54959
54960         * modules/tempname (Depends-on): Add lstat.
54961
54962         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54963
54964 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54965
54966         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54967         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54968         using idiom used elsewhere in gnulib.
54969
54970 2008-10-27  Jim Meyering  <meyering@redhat.com>
54971
54972         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54973
54974 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54975
54976         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54977         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54978         programs.
54979         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54980
54981 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54982
54983         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54984
54985 2008-10-27  Bruno Haible  <bruno@clisp.org>
54986
54987         * tests/test-lstat.c: Include <stdio.h>.
54988
54989 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54990
54991         * modules/lstat-tests: New module.
54992         * tests/test-lstat.c: New file.
54993
54994 2008-10-26  Jim Meyering  <meyering@redhat.com>
54995
54996         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54997
54998 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54999             Bruno Haible  <bruno@clisp.org>
55000
55001         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55002         * modules/configmake (Include): Add a note that the include must come
55003         after all system headers.
55004         * lib/javaversion.c: Include configmake.h after all other includes.
55005
55006 2008-10-26  Bruno Haible  <bruno@clisp.org>
55007
55008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55009         HAVE_STRUCT_RANDOM_DATA to 1.
55010         (gl_STDLIB_H): Simplify.
55011
55012 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55013
55014         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55015         substitute HAVE_STRUCT_RANDOM_DATA.
55016         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55017         random_data.
55018         * modules/stdlib (Makefile.am): Substitute
55019         HAVE_STRUCT_RANDOM_DATA.
55020
55021 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55022
55023         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55024         * doc/gnulib-intro.texi (Copyright): Likewise.
55025
55026 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55027
55028         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55029         findings.
55030
55031 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55032             Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/unistd.in.h: Include <winsock2.h>.
55035         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55036         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55037         Provide dummy declarations.
55038         (gethostname): Override.
55039         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55040         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55041         gl_PREREQ_SYS_H_WINSOCK2.
55042         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55043         * doc/posix-functions/gethostname.texi: More details.
55044
55045 2008-10-25  Bruno Haible  <bruno@clisp.org>
55046
55047         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55048         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55049         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55050
55051         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55052         here ...
55053         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55054         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55055         gl_UNISTD_H_DEFAULTS.
55056
55057 2008-10-25  Eric Blake  <ebb9@byu.net>
55058
55059         signbit: avoid spurious compiler failure
55060         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55061         declarations inside function.
55062
55063 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55064             Bruno Haible  <bruno@clisp.org>
55065
55066         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55067         * modules/random_r (Depends-on): Add stdint.
55068
55069 2008-10-24  Bruno Haible  <bruno@clisp.org>
55070
55071         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55072         Eggert.
55073         * modules/strerror (License): Likewise.
55074
55075 2008-10-24  Jim Meyering  <meyering@redhat.com>
55076
55077         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55078         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55079
55080 2008-10-24  Eric Blake  <ebb9@byu.net>
55081
55082         getgroups: fix compilation when getgroups is available
55083         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55084         but with <config.h> override of getgroups disabled.
55085
55086 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55087
55088         * doc/gnulib.texi (Header files): Add note about C++ problems.
55089         Explained by Bruno Haible <bruno@clisp.org>.
55090
55091 2008-10-23  Bruno Haible  <bruno@clisp.org>
55092
55093         Define a dummy SA_NODEFER macro on Interix.
55094         * lib/signal.in.h (SA_NODEFER): Define fallback.
55095         Reported by Aleksey Cheusov <cheusov@tut.by> via
55096         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55097
55098 2008-10-23  Bruno Haible  <bruno@clisp.org>
55099
55100         * modules/freadahead (License): Change to LGPLv2+.
55101         Suggested by Simon Josefsson.
55102
55103 2008-10-23  Jim Meyering  <meyering@redhat.com>
55104
55105         random_r: new module
55106         * modules/random_r: New file.
55107         * m4/random_r.m4: New file.
55108         * lib/random_r.c: New file, from glibc.
55109         * modules/random_r-tests: New file.
55110         * tests/test-random_r.c: New file.
55111         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55112          Declare.
55113         (RAND_MAX): Define.
55114         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55115         * modules/stdlib: Substitute them, too.
55116         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55117         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55118         * doc/glibc-functions/random_r.texi: Likewise.
55119         * doc/glibc-functions/setstate_r.texi: Likewise.
55120         * doc/glibc-functions/srandom_r.texi: Likewise.
55121         * config/srclist.txt: Mention it.
55122
55123 2008-10-23  David Lutterkort  <lutter@redhat.com>
55124
55125         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55126         link requirement
55127
55128 2008-10-23  Jim Meyering  <meyering@redhat.com>
55129
55130         selinux-h: mark parameters of stub functions as intentionally unused
55131         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55132         * lib/se-context.in.h: Likewise.
55133
55134 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55135
55136         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55137
55138 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55139
55140         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55141
55142 2008-10-22  Eric Blake  <ebb9@byu.net>
55143
55144         glthread/thread: avoid compiler warning
55145         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55146         Add unreachable abort to silence compiler.
55147
55148 2008-10-22  Eric Blake  <ebb9@byu.net>
55149
55150         netdb: also supply struct addrinfo for cygwin 1.5.x
55151         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55152         older cygwin.
55153         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55154         cygwin.
55155         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55156
55157 2008-10-22  Bruno Haible  <bruno@clisp.org>
55158
55159         * users.txt: Update entry about pspp.
55160
55161 2008-10-21  Bruno Haible  <bruno@clisp.org>
55162
55163         Simplification.
55164         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55165         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55166
55167         Simplification.
55168         * lib/ioctl.c (ioctl): Don't undefine.
55169         * lib/socket.c (socket): Don't undefine.
55170
55171         Remove unused module indicator macros.
55172         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55173         GNULIB_$1 as a C macro.
55174
55175         * doc/posix-functions/close.texi: Undo last change.
55176         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55177         Windows platforms.
55178
55179 2008-10-21  Bruno Haible  <bruno@clisp.org>
55180
55181         Add gethostname() declaration to <unistd.h>.
55182         * lib/unistd.in.h (gethostname): New declaration.
55183         * lib/gethostname.c: Include <unistd.h>.
55184         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55185         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55187         and HAVE_GETHOSTNAME.
55188         * modules/gethostname (Depends-on): Add unistd.
55189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55190         (Include): Specify <unistd.h>.
55191         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55192         HAVE_GETHOSTNAME.
55193         * tests/test-gethostname.c: Include <unistd.h> first.
55194
55195 2008-10-21  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55198         * modules/select-tests (Depends-on): Likewise.
55199         Reported by Simon Josefsson.
55200
55201 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55202
55203         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55204         * lib/accept.c: New file, based on winsock.c.
55205         * lib/bind.c: New file, based on winsock.c.
55206         * lib/connect.c: New file, based on winsock.c.
55207         * lib/getpeername.c: New file, based on winsock.c.
55208         * lib/getsockname.c: New file, based on winsock.c.
55209         * lib/getsockopt.c: New file, based on winsock.c.
55210         * lib/ioctl.c: New file, based on winsock.c.
55211         * lib/listen.c: New file, based on winsock.c.
55212         * lib/recv.c: New file, based on winsock.c.
55213         * lib/recvfrom.c: New file, based on winsock.c.
55214         * lib/send.c: New file, based on winsock.c.
55215         * lib/sendto.c: New file, based on winsock.c.
55216         * lib/setsockopt.c: New file, based on winsock.c.
55217         * lib/shutdown.c: New file, based on winsock.c.
55218         * lib/socket.c: New file, based on winsock.c.
55219         * lib/w32sock.h: New file, based on winsock.c.
55220         * lib/winsock.c: Remove file.
55221         * modules/accept: Likewise.
55222         * modules/bind: Likewise.
55223         * modules/connect: Likewise.
55224         * modules/getpeername: Likewise.
55225         * modules/getsockname: Likewise.
55226         * modules/getsockopt: Likewise.
55227         * modules/ioctl: Likewise.
55228         * modules/listen: Likewise.
55229         * modules/recv: Likewise.
55230         * modules/recvfrom: Likewise.
55231         * modules/send: Likewise.
55232         * modules/sendto: Likewise.
55233         * modules/setsockopt: Likewise.
55234         * modules/shutdown: Likewise.
55235         * modules/socket: Use socket.c instead of winsock.c.
55236         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55237         * doc/posix-functions/accept.texi: Doc fix.
55238         * doc/posix-functions/bind.texi: Doc fix.
55239         * doc/posix-functions/close.texi: Doc fix.
55240         * doc/posix-functions/connect.texi: Doc fix.
55241         * doc/posix-functions/getpeername.texi: Doc fix.
55242         * doc/posix-functions/getsockname.texi: Doc fix.
55243         * doc/posix-functions/getsockopt.texi: Doc fix.
55244         * doc/posix-functions/ioctl.texi: Doc fix.
55245         * doc/posix-functions/listen.texi: Doc fix.
55246         * doc/posix-functions/recv.texi: Doc fix.
55247         * doc/posix-functions/recvfrom.texi: Doc fix.
55248         * doc/posix-functions/send.texi: Doc fix.
55249         * doc/posix-functions/sendto.texi: Doc fix.
55250         * doc/posix-functions/setsockopt.texi: Doc fix.
55251         * doc/posix-functions/shutdown.texi: Doc fix.
55252         * doc/posix-functions/socket.texi: Doc fix.
55253
55254 2008-10-20  Bruno Haible  <bruno@clisp.org>
55255
55256         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55257         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55258         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55259         as an alias for SIGABRT.
55260         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55261         (sigaction): Map it to SIGABRT.
55262         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55263
55264 2008-10-20  Bruno Haible  <bruno@clisp.org>
55265
55266         * lib/fts.c: Don't include lstat.h.
55267         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55268
55269         Move the lstat() declaration to <sys/stat.h>.
55270         * lib/lstat.h: Remove file.
55271         * lib/sys_stat.in.h: Add special invocation convention.
55272         (lstat): New declaration.
55273         * lib/lstat.c (orig_lstat): New function.
55274         (rpl_lstat): Use orig_lstat instead of lstat.
55275         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55276         AC_C_INLINE. Set REPLACE_LSTAT.
55277         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55278         and REPLACE_LSTAT.
55279         * modules/lstat (Files): Remove lib/lstat.h.
55280         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55281         (Include): Specify <sys/stat.h> instead of lstat.h.
55282         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55283         REPLACE_LSTAT.
55284         * NEWS: Mention the change.
55285
55286 2008-10-20  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/posix_spawn-tests: New file.
55289         * tests/test-posix_spawn3.c: New file.
55290
55291 2008-10-20  Bruno Haible  <bruno@clisp.org>
55292
55293         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55294         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55295         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55296         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55297         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55298
55299 2008-10-20  Bruno Haible  <bruno@clisp.org>
55300
55301         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55302         of posix_spawn on AIX 5.3.
55303
55304 2008-10-20  Bruno Haible  <bruno@clisp.org>
55305
55306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55307
55308 2008-10-20  Bruno Haible  <bruno@clisp.org>
55309
55310         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55311         of AC_LANG_PROGRAM.
55312
55313 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55314
55315         * lib/netdb.in.h: Don't define GNU specific constants until they
55316         are supported or needed.  Reported by Bruno Haible
55317         <bruno@clisp.org>.
55318
55319 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55320
55321         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55322
55323 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55324
55325         * lib/getaddrinfo.h: Remove file.
55326         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55327         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55328         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55329         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55330         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55331         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55332         * tests/test-getaddrinfo.c: Likewise.
55333         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55334         * NEWS: Mention change.
55335
55336 2008-10-19  Bruno Haible  <bruno@clisp.org>
55337
55338         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55339
55340 2008-10-19  Bruno Haible  <bruno@clisp.org>
55341
55342         * lib/wait-process.c: Include simply <sys/wait.h>.
55343         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55344         WIFSTOPPED): Remove fallback definitions.
55345         * modules/wait-process (Depends-on): Add sys_wait.
55346
55347         New module 'sys_wait'.
55348         * modules/sys_wait: New file.
55349         * lib/sys_wait.in.h: New file, partially copied from
55350         lib/wait-process.c.
55351         * m4/sys_wait_h.m4: New file.
55352         * doc/posix-headers/sys_wait.texi: Mention the new module.
55353
55354 2008-10-19  Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55357
55358 2008-10-19  Bruno Haible  <bruno@clisp.org>
55359
55360         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55361         * lib/wait-process.c (WAIT_T): Remove type.
55362         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55363         (wait_subprocess): Update.
55364
55365 2008-10-19  Bruno Haible  <bruno@clisp.org>
55366
55367         New module 'atoll'.
55368         * modules/atoll: New file.
55369         * lib/stdlib.in.h (atoll): New declaration.
55370         * lib/atoll.c: New file, from glibc with modifications.
55371         * m4/atoll.m4: New file.
55372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55373         HAVE_ATOLL.
55374         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55375         * doc/posix-functions/atoll.texi: Mention the new module.
55376
55377 2008-10-19  Bruno Haible  <bruno@clisp.org>
55378
55379         Add strtoull() declaration to <stdlib.h>.
55380         * lib/stdlib.in.h (strtoull): New declaration.
55381         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55382         Set HAVE_STRTOULL.
55383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55384         HAVE_STRTOULL.
55385         * modules/strtoull (Depends-on): Add stdlib.
55386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55387         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55388         HAVE_STRTOULL.
55389
55390 2008-10-19  Bruno Haible  <bruno@clisp.org>
55391
55392         Add strtoll() declaration to <stdlib.h>.
55393         * lib/stdlib.in.h (strtoll): New declaration.
55394         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55395         Set HAVE_STRTOLL.
55396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55397         HAVE_STRTOLL.
55398         * modules/strtoll (Depends-on): Add stdlib.
55399         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55400         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55401
55402 2008-10-19  Bruno Haible  <bruno@clisp.org>
55403
55404         * modules/bcopy (Depends-on): Add strings.
55405         (Include): Specify <strings.h>.
55406
55407 2008-10-19  Bruno Haible  <bruno@clisp.org>
55408
55409         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55410
55411 2008-10-19  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55414         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55415         mingw.
55416
55417 2008-10-19  Bruno Haible  <bruno@clisp.org>
55418
55419         * lib/atanl.c: Don't include isnanl.h.
55420         * lib/cosl.c: Likewise.
55421         * lib/ldexpl.c: Likewise.
55422         * lib/logl.c: Likewise.
55423         * lib/sinl.c: Likewise.
55424         * lib/sqrtl.c: Likewise.
55425         * lib/tanl.c: Likewise.
55426
55427         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55428         * lib/isnanf.h: Remove file.
55429         * lib/isnand.h: Remove file.
55430         * lib/isnanl.h: Remove file.
55431         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55432         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55433         macros.
55434         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55435         HAVE_ISNANF, don't define it as a C macro.
55436         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55437         HAVE_ISNAND, don't define it as a C macro.
55438         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55439         HAVE_ISNANL, don't define it as a C macro.
55440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55441         HAVE_ISNAN[FDL].
55442         * modules/isnanf (Files): Remove lib/isnanf.h.
55443         (Depends-on): Add math.
55444         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55445         (Include): Specify <math.h> instead of isnanf.h.
55446         * modules/isnand (Files): Remove lib/isnand.h.
55447         (Depends-on): Add math.
55448         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55449         (Include): Specify <math.h> instead of isnand.h.
55450         * modules/isnanl (Files): Remove lib/isnanl.h.
55451         (Depends-on): Add math.
55452         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55453         (Include): Specify <math.h> instead of isnanl.h.
55454         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55455         HAVE_ISNAN[FDL].
55456         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55457         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55458         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55459         * NEWS: Mention the change.
55460
55461 2008-10-18  Bruno Haible  <bruno@clisp.org>
55462
55463         Add getusershell(), setusershell(), endusershell() declarations to
55464         <unistd.h>.
55465         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55466         declarations.
55467         * lib/getusershell.c: Include unistd.h.
55468         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55469         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55470         HAVE_GETUSERSHELL.
55471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55472         and HAVE_GETUSERSHELL.
55473         * modules/getusershell (Depends-on): Add unistd, extensions.
55474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55475         (Include): Specify <unistd.h>.
55476         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55477         HAVE_GETUSERSHELL.
55478
55479 2008-10-18  Bruno Haible  <bruno@clisp.org>
55480
55481         Add a getloadavg() declaration to <stdlib.h>.
55482         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55483         getloadavg declaration.
55484         (getloadavg): New declaration.
55485         * lib/getloadavg.c: Include <stdlib.h> first.
55486         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55487         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55488         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55490         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55491         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55492         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55493         (Include): Specify <stdlib.h>.
55494         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55495         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55496
55497 2008-10-18  Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/dirchownmod.c: Don't include lchmod.h.
55500
55501         Move the lchmod() declaration to <sys/stat.h>.
55502         * lib/lchmod.h: Remove file.
55503         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55504         (lchmod): New declaration, moved here from lib/lchown.h.
55505         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55506         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55507         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55508         and HAVE_LCHMOD.
55509         * modules/lchmod (Files): Remove lib/lchmod.h.
55510         (Depends-on): Add sys_stat, extensions.
55511         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55512         (Include): Specify <sys/stat.h> instead of lchmod.h.
55513         * modules/sys_stat (Depends-on): Add link-warning.
55514         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55515         definition of GL_LINK_WARNING.
55516         * NEWS: Mention the change.
55517
55518 2008-10-18  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/fchdir.c: Don't include dirfd.h.
55521         * lib/fts.c: Likewise.
55522         * lib/getcwd.c: Likewise.
55523         * lib/glob.c: Likewise.
55524
55525         Move the dirfd() declaration to <dirent.h>.
55526         * lib/dirfd.h: Remove file.
55527         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55528         (dirfd): New declaration.
55529         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55530         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55531         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55532         HAVE_DECL_DIRFD.
55533         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55534         HAVE_DECL_DIRFD.
55535         * modules/dirfd (Files): Remove lib/dirfd.h.
55536         (Depends-on): Add dirent, extensions.
55537         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55538         (Include): Specify <dirent.h> instead of dirfd.h.
55539         * modules/dirent (Depends-on): Add link-warning.
55540         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55541         definition of GL_LINK_WARNING.
55542         * NEWS: Mention the change.
55543
55544 2008-10-18  Bruno Haible  <bruno@clisp.org>
55545
55546         Move the euidaccess() declaration to <unistd.h>.
55547         * lib/euidaccess.h: Remove file.
55548         * lib/unistd.in.h (euidaccess): New declaration.
55549         * lib/euidaccess.c: Don't include euidaccess.h.
55550         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55551         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55553         and HAVE_EUIDACCESS.
55554         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55555         (Depends-on): Add unistd.
55556         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55557         (Include): Specify <unistd.h> instead of euidaccess.h.
55558         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55559         HAVE_EUIDACCESS.
55560         * NEWS: Mention the change.
55561
55562 2008-10-18  Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55565
55566         Move the getdomainname() declaration to <unistd.h>.
55567         * lib/getdomainname.h: Remove file.
55568         * lib/unistd.in.h (getdomainname): New declaration.
55569         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55570         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55571         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55572         HAVE_GETDOMAINNAME.
55573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55574         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55575         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55576         (Depends-on): Add unistd, extensions.
55577         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55578         (Includes): Specify <unistd.h> instead of getdomainname.h.
55579         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55580         HAVE_GETDOMAINNAME.
55581         * NEWS: Mention the change.
55582
55583 2008-10-18  Bruno Haible  <bruno@clisp.org>
55584
55585         * modules/dirent: New file.
55586         * m4/dirent_h.m4: New file.
55587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55588         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55589         * modules/fchdir (Files): Remove lib/dirent.in.h.
55590         (Depends-on): Add dirent.
55591         (Makefile.am): Move rules to modules/dirent.
55592         * doc/posix-headers/dirent.texi: Mention the new module.
55593
55594 2008-10-18  Bruno Haible  <bruno@clisp.org>
55595
55596         Avoid -Wunused-parameter warnings in public gnulib header files.
55597         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55598         macro.
55599         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55600
55601 2008-10-18  Bruno Haible  <bruno@clisp.org>
55602
55603         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55604         * doc/glibc-functions/error.texi: Mention the module 'error'.
55605         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55606         * doc/glibc-functions/getdomainname.texi: Mention the module
55607         'getdomainname'.
55608         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55609         * doc/glibc-functions/getpagesize.texi: Mention the module
55610         'getpagesize'.
55611         * doc/glibc-functions/getusershell.texi: Mention the module
55612         'getusershell'.
55613         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55614         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55615         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55616         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55617         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55618         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55619         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55620         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55621         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55622         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55623         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55624         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55625         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55626         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55627
55628 2008-10-17  Bruno Haible  <bruno@clisp.org>
55629
55630         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55631         HP-UX and IRIX, use -0.0L.
55632         * tests/test-ceill.c (minus_zero): Likewise.
55633         * tests/test-floorl.c (minus_zero): Likewise.
55634         * tests/test-frexpl.c (minus_zero): Likewise.
55635         * tests/test-isnan.c (minus_zerol): Likewise.
55636         * tests/test-isnanl.h (minus_zero): Likewise.
55637         * tests/test-ldexpl.c (minus_zero): Likewise.
55638         * tests/test-roundl.c (minus_zero): Likewise.
55639         * tests/test-signbit.c (minus_zerol): Likewise.
55640         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55641         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55642         * tests/test-truncl.c (minus_zero): Likewise.
55643         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55644         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55645         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55646         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55647
55648 2008-10-17  Bruno Haible  <bruno@clisp.org>
55649
55650         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55651         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55652         that it gets activated only for gcc >= 3.0.
55653         * lib/dirent.in.h: Likewise.
55654         * lib/errno.in.h: Likewise.
55655         * lib/fcntl.in.h: Likewise.
55656         * lib/float.in.h: Likewise.
55657         * lib/iconv.in.h: Likewise.
55658         * lib/inttypes.in.h: Likewise.
55659         * lib/locale.in.h: Likewise.
55660         * lib/math.in.h: Likewise.
55661         * lib/netdb.in.h: Likewise.
55662         * lib/netinet_in.in.h: Likewise.
55663         * lib/search.in.h: Likewise.
55664         * lib/signal.in.h: Likewise.
55665         * lib/spawn.in.h: Likewise.
55666         * lib/stdarg.in.h: Likewise.
55667         * lib/stdint.in.h: Likewise.
55668         * lib/stdio.in.h: Likewise.
55669         * lib/stdlib.in.h: Likewise.
55670         * lib/string.in.h: Likewise.
55671         * lib/strings.in.h: Likewise.
55672         * lib/sys_file.in.h: Likewise.
55673         * lib/sys_ioctl.in.h: Likewise.
55674         * lib/sys_select.in.h: Likewise.
55675         * lib/sys_socket.in.h: Likewise.
55676         * lib/sys_stat.in.h: Likewise.
55677         * lib/sys_time.in.h: Likewise.
55678         * lib/sysexits.in.h: Likewise.
55679         * lib/time.in.h: Likewise.
55680         * lib/unistd.in.h: Likewise.
55681         * lib/wchar.in.h: Likewise.
55682         * lib/wctype.in.h: Likewise.
55683         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55684
55685 2008-10-17  Jim Meyering  <meyering@redhat.com>
55686
55687         ignore-value: don't depend on inline module
55688         * modules/ignore-value (Depends-on): Remove 'inline'.
55689         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55690         Suggestion from Bruno Haible.
55691
55692 2008-10-17  Bruno Haible  <bruno@clisp.org>
55693
55694         New implementation of condition variables for Win32.
55695         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55696         (gl_linked_waitqueue_t): New type.
55697         (gl_cond_t): Use it.
55698         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55699         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55700         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55701         (glthread_cond_init_func, glthread_cond_wait_func,
55702         glthread_cond_timedwait_func, glthread_cond_signal_func,
55703         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55704         Reimplemented on the basis of gl_linked_waitqueue_t.
55705         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55706         gl_waitqueue_t.
55707         (gl_rwlock_t): Update.
55708         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55709
55710 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55711
55712         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55713         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55714
55715 2008-10-17  Jim Meyering  <meyering@redhat.com>
55716
55717         ignore-value: new module
55718         * modules/ignore-value: New file.
55719         * lib/ignore-value.h: New file.
55720         * MODULES.html.sh (Compiler warning management): New section,
55721         just for this module.  More to come.
55722
55723 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55726         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55727         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55728
55729 2008-10-16  Jim Meyering  <meyering@redhat.com>
55730
55731         openat-die.c: avoid 'no previous prototype' warning
55732         * lib/openat-die.c: Include "openat.h".
55733         Reported by Reuben Thomas <rrt@sc3d.org>.
55734
55735 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55736
55737         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55738         * lib/netdb.in.h: Fix typo.
55739         Reported by Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/netdb.in.h: Include sys/socket.h for platforms without
55742         netdb.h, to get structures like hostent on MinGW.
55743         * modules/netdb (Depends-on): Add sys_socket.
55744
55745 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55746
55747         * modules/netdb, modules/netdb-tests: New file.
55748         * m4/netdb_h.m4: New file.
55749         * lib/netdb.in.h: Add, currently just an empty file pending
55750         definitions.
55751         * tests/test-netdb.c: New file.
55752         * doc/posix-headers/netdb.texi: Mention that we replace it if
55753         needed.
55754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55755         netdb.
55756
55757 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55758
55759         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55760         with code.
55761
55762 2008-10-13  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/glthread/cond.c (glthread_cond_wait_func,
55765         glthread_cond_timedwait_func): Add a comment.
55766
55767 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55768
55769         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55770         * tests/test-select.c: Likewise,
55771
55772 2008-10-13  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/glthread/cond.c (glthread_cond_wait_func,
55775         glthread_cond_timedwait_func): Fix variable name.
55776         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55777
55778 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55779
55780         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55782         struct sockaddr.sa_len.
55783         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55784
55785 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55786
55787         * build-aux/pmccabe2html: Add css and css_url parameters.
55788
55789 2008-10-12  Bruno Haible  <bruno@clisp.org>
55790
55791         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55792         calling aclx_get.
55793         Reported by Rainer Tammer <tammer@tammer.net>.
55794
55795 2008-10-12  Bruno Haible  <bruno@clisp.org>
55796
55797         Use msvcrt aware primitives for creation/termination of Win32 threads.
55798         * lib/glthread/thread.c: Include <process.h>.
55799         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55800         (wrapper_func): Update signature.
55801         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55802
55803 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55804             Bruno Haible  <bruno@clisp.org>
55805
55806         Provide a Win32 implementation of the 'cond' module.
55807         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55808         * lib/glthread/cond.c (glthread_cond_init_func,
55809         glthread_cond_wait_func, glthread_cond_timedwait_func,
55810         glthread_cond_signal_func, glthread_cond_broadcast_func,
55811         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55812         * modules/cond (Dependencies): Add gettimeofday.
55813
55814 2008-10-11  Bruno Haible  <bruno@clisp.org>
55815
55816         Make sleep work on older versions of mingw.
55817         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55818         only whether it exists.
55819         * doc/posix-functions/sleep.texi: Mention the problem with older
55820         versions of mingw.
55821
55822 2008-10-11  Bruno Haible  <bruno@clisp.org>
55823
55824         New module 'shutdown'.
55825         * modules/shutdown: New file.
55826         * lib/sys_socket.in.h (shutdown): New declaration.
55827         * lib/winsock.c (shutdown): New function.
55828         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55829         GNULIB_SHUTDOWN.
55830         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55831         * doc/posix-functions/shutdown.texi: Document the new module.
55832
55833 2008-10-11  Jim Meyering  <meyering@redhat.com>
55834
55835         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55836
55837 2008-10-11  Bruno Haible  <bruno@clisp.org>
55838
55839         New module 'fclose'.
55840         * modules/fclose: New file.
55841         * lib/stdio.in.h (fclose): New declaration.
55842         * lib/fclose.c: New file.
55843         * m4/fclose.m4: New file.
55844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55845         REPLACE_FCLOSE.
55846         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55847         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55848         REPLACE_FCLOSE.
55849         * modules/close (Depends-on): fclose.
55850         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55851
55852 2008-10-11  Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55855         set errno and don't call _close.
55856
55857 2008-10-10  Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55860         ACL, not afterwards. Fixes test failure on Cygwin.
55861
55862 2008-10-09  Ben Pfaff  <blp@gnu.org>
55863
55864         * build-aux/announce-gen: Fix gnulib version related part of usage
55865         message.  Die with a useful error message if no tarballs are
55866         found.
55867
55868 2008-10-10  Jim Meyering  <meyering@redhat.com>
55869
55870         bootstrap: use git's --depth=N option only if it's supported
55871         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55872         recognize the --depth option.  Reported by Pádraig Brady.
55873
55874 2008-10-09  Bruno Haible  <bruno@clisp.org>
55875
55876         New module 'ioctl'.
55877         * modules/ioctl: New file.
55878         * lib/sys_socket.in.h (ioctl): Remove declaration.
55879         * lib/winsock.c: Include <sys/ioctl.h>.
55880         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55881         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55882         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55883         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55884         * doc/posix-functions/ioctl.texi: Mention the new module.
55885
55886 2008-10-09  Bruno Haible  <bruno@clisp.org>
55887
55888         New module 'sys_ioctl'.
55889         * lib/sys_ioctl.in.h: New file.
55890         * m4/sys_ioctl_h.m4: New file.
55891         * modules/sys_ioctl: New file.
55892         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55893
55894 2008-10-09  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55897         * lib/winsock.c: Include <stdarg.h>.
55898         (rpl_ioctl): Change to second argument 'int' and then varargs.
55899
55900 2008-10-09  Bruno Haible  <bruno@clisp.org>
55901
55902         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55903         when the sys_socket module is present and the system has <winsock2.h>.
55904
55905 2008-10-09  Bruno Haible  <bruno@clisp.org>
55906
55907         * doc/posix-functions/close.texi: Mention module 'close' instead of
55908         module 'sys_socket'.
55909
55910 2008-10-09  Bruno Haible  <bruno@clisp.org>
55911
55912         * doc/glibc-headers/sys_ioctl.texi: New file.
55913         * doc/gnulib.texi: Include it.
55914
55915 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55916             Bruno Haible  <bruno@clisp.org>
55917
55918         Combine the two replacements of 'close'.
55919         * lib/sys_socket.in.h (close): Define to a reminder to include
55920         <unistd.h>.
55921         (_gl_close_fd_maybe_socket): New declaration.
55922         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55923         * lib/winsock.c (close): Remove undefinition.
55924         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55925         needed for the gnulib module 'close'.
55926         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55927         define to an error symbol or to a warning, if suitable.
55928         * lib/close.c: Include <sys/socket.h>.
55929         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55930         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55931         UNISTD_H_HAVE_WINSOCK2_H.
55932         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55934         UNISTD_H_HAVE_WINSOCK2_H.
55935         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55936         (configure.ac): Set a module indicator.
55937         (Makefile.am): Substitute GNULIB_CLOSE.
55938         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55939         * modules/poll-tests (Depends-on): Add close.
55940         * modules/select-tests (Depends-on): Likewise.
55941
55942 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55943             Bruno Haible  <bruno@clisp.org>
55944
55945         New module 'close'.
55946         * modules/close: New file.
55947         * lib/unistd.in.h (close): Move declaration out of the
55948         FCHDIR_REPLACEMENT scope.
55949         (_gl_unregister_fd): New declaration.
55950         * lib/close.c: New file.
55951         * lib/fchdir.c (rpl_close): Remove function.
55952         * m4/close.m4: New file.
55953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55954         close.
55955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55956         REPLACE_CLOSE.
55957         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55958         REPLACE_CLOSE.
55959         * modules/fchdir (Depends-on): Add close.
55960
55961 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55962             Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/fcntl.in.h (open): Simplify conditionals.
55965         (_gl_register_fd): New declaration.
55966         * lib/fchdir.c (rpl_open): Remove function.
55967         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55968         also.
55969         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55971         open.
55972
55973 2008-10-09  Jim Meyering  <meyering@redhat.com>
55974
55975         GNUmakefile: use the more name-space-friendly "_version"
55976         * top/GNUmakefile (_dummy): Update.
55977         (_version): Rename from "version".
55978
55979 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55980             Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55983         rpl_close.
55984         (_gl_register_fd): New function, extracted from rpl_open.
55985         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55986         (rpl_open, rpl_opendir): Use _gl_register_fd.
55987
55988 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55989
55990         Fix organization of 'open' replacement.
55991         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55992         (gl_FUNC_OPEN): Use it.
55993         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55994
55995 2008-10-08  Bruno Haible  <bruno@clisp.org>
55996
55997         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55998
55999 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56000
56001         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56002         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56003         listen).
56004
56005 2008-10-08  Eric Blake  <ebb9@byu.net>
56006
56007         GNUmakefile: add 'make version' target
56008         * top/GNUmakefile (_curr-ver): Split version update rules...
56009         (version): ...into a target.
56010
56011 2008-10-07  Bruno Haible  <bruno@clisp.org>
56012
56013         Use a more portable replacement expression for -0.0L.
56014         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56015         instead of -0.0L. Fix m4 quotation.
56016
56017         * tests/test-signbit.c: Include <float.h>.
56018         (minus_zero): New variable.
56019         (test_signbitl): Use minus_zero instead of -zero.
56020         * modules/signbit-tests (Depends-on): Add float.
56021
56022         * tests/test-ceill.c: Include <float.h>.
56023         (zero): Remove variable.
56024         (minus_zero): New variable.
56025         (main): Use minus_zero instead of -zero.
56026         * modules/ceill-tests (Depends-on): Add float.
56027
56028         * tests/test-floorl.c: Include <float.h>.
56029         (zero): Remove variable.
56030         (minus_zero): New variable.
56031         (main): Use minus_zero instead of -zero.
56032         * modules/floorl-tests (Depends-on): Add float.
56033
56034         * tests/test-roundl.c: Include <float.h>.
56035         (zero): Remove variable.
56036         (minus_zero): New variable.
56037         (main): Use minus_zero instead of -zero.
56038         * modules/roundl-tests (Depends-on): Add float.
56039
56040         * tests/test-truncl.c: Include <float.h>.
56041         (zero): Remove variable.
56042         (minus_zero): New variable.
56043         (main): Use minus_zero instead of -zero.
56044         * modules/truncl-tests (Depends-on): Add float.
56045
56046         * tests/test-frexpl.c (zero): Remove variable.
56047         (minus_zero): New variable.
56048         (main): Use minus_zero instead of -zero.
56049         * modules/frexpl-tests (Depends-on): Add float.
56050
56051         * tests/test-isnan.c (zerol): Remove variable.
56052         (minus_zerol): New variable.
56053         (test_long_double): Use minus_zerol instead of -zerol.
56054         * modules/isnan-tests (Depends-on): Add float.
56055
56056         * tests/test-isnanl.h (zero): Remove variable.
56057         (minus_zero): New variable.
56058         (main): Use minus_zero instead of -zero.
56059         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56060         * modules/isnanl-tests (Depends-on): Add float.
56061
56062         * tests/test-ldexpl.c (zero): Remove variable.
56063         (minus_zero): New variable.
56064         (main): Use minus_zero instead of -zero.
56065         * modules/ldexpl-tests (Depends-on): Add float.
56066
56067         * tests/test-snprintf-posix.h (zerol): Remove variable.
56068         (minus_zerol): New variable.
56069         (test_function): Use minus_zerol instead of -zerol.
56070         * modules/snprintf-posix-tests (Depends-on): Add float.
56071         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56072
56073         * tests/test-sprintf-posix.h (zerol): Remove variable.
56074         (minus_zerol): New variable.
56075         (test_function): Use minus_zerol instead of -zerol.
56076         * modules/sprintf-posix-tests (Depends-on): Add float.
56077         * modules/vsprintf-posix-tests (Depends-on): Add float.
56078
56079         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56080         (minus_zerol): New variable.
56081         (test_function): Use minus_zerol instead of -zerol.
56082         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56083
56084         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56085         (minus_zerol): New variable.
56086         (test_function): Use minus_zerol instead of -zerol.
56087         * modules/vasprintf-posix-tests (Depends-on): Add float.
56088
56089 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56090
56091         * MODULES.html.sh (Support for building documentation): Mention
56092         pmccabe2html.  Sort entries.
56093
56094         Add pmccabe2html module, from gnupdf.
56095         * build-aux/pmccabe.css: New file.
56096         * build-aux/pmccabe2html: New file.
56097         * m4/pmccabe2html.m4: New file.
56098         * modules/pmccabe2html: New file.
56099
56100 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56101
56102         flock: new module
56103         * MODULES.html.sh: Add to list of modules.
56104         * lib/flock.c: flock implementation for Windows and Unix systems
56105         which have fcntl.
56106         * doc/glibc-functions/flock.texi: Update documentation.
56107         * lib/sys_file.in.h: <sys/file.h> header file.
56108         * m4/flock.m4: M4 macros.
56109         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56110         * modules/flock: flock module.
56111         * modules/flock-tests: flock tests module.
56112         * modules/sys_file: sys/file.h module.
56113         * tests/test-flock.c: test suite for flock.
56114
56115 2008-10-06  Jim Meyering  <meyering@redhat.com>
56116
56117         bootstrap: check for LT_INIT more portably still ;-)
56118         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56119         Spotted by Bruno Haible.
56120
56121 2008-10-06  Eric Blake  <ebb9@byu.net>
56122
56123         test-signbit: avoid tripping Irix cc bug on -0.0L
56124         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56125         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56126         entire testsuite consistent and avoids an Irix 6.2 bug.
56127
56128 2008-10-05  Bruno Haible  <bruno@clisp.org>
56129             Jim Meyering  <jim@meyering.net>
56130
56131         Add an option for ignoring EPIPE during close_stdout.
56132         * lib/closeout.h: Include <stdbool.h>.
56133         (close_stdout_set_ignore_EPIPE): New declaration.
56134         * lib/closeout.c: Include <stdbool.h>.
56135         (ignore_EPIPE): New variable.
56136         (close_stdout_set_ignore_EPIPE): New function.
56137         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56138         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56139         failure.
56140         * modules/closeout (Depends-on): Add stdbool.
56141
56142 2008-10-05  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/accept: New file.
56145         * modules/bind: New file.
56146         * modules/connect: New file.
56147         * modules/getpeername: New file.
56148         * modules/getsockname: New file.
56149         * modules/getsockopt: New file.
56150         * modules/listen: New file.
56151         * modules/recv: New file.
56152         * modules/recvfrom: New file.
56153         * modules/send: New file.
56154         * modules/sendto: New file.
56155         * modules/setsockopt: New file.
56156         * modules/socket: New file.
56157         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56158         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56159         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56160         the particular module is requested. Add a link warning when the
56161         particular module is not requested.
56162         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56163         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56164         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56165         the particular module is requested.
56166         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56167         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56168         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56169         * modules/sys_socket (Depends-on): Add link-warning.
56170         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56171         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56172         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56173         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56174         GL_LINK_WARNING.
56175         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56176         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56177         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56178         * doc/posix-functions/getpeername.texi: Mention the new module
56179         'getpeername'.
56180         * doc/posix-functions/getsockname.texi: Mention the new module
56181         'getsockname'.
56182         * doc/posix-functions/getsockopt.texi: Mention the new module
56183         'getsockopt'.
56184         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56185         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56186         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56187         * doc/posix-functions/send.texi: Mention the new module 'send'.
56188         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56189         * doc/posix-functions/setsockopt.texi: Mention the new module
56190         'setsockopt'.
56191         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56192         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56193         listen, connect, accept.
56194         * modules/select-tests (Depends-on): Likewise.
56195
56196 2008-10-05  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/winsock.c (strerror): Remove unused #undef.
56199         (rpl_close): Remove unused local variable.
56200
56201         * modules/sys_socket (Depends-on); Add errno.
56202
56203 2008-10-05  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56206         (select): Add a link warning when the 'select' module is not used.
56207         * modules/sys_select (Depends-on): Add link-warning.
56208         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56209         Suggested by Paolo Bonzini.
56210
56211 2008-10-05  Jim Meyering  <meyering@redhat.com>
56212
56213         bootstrap: check for LT_INIT more portably
56214         * build-aux/bootstrap: Avoid using grep -E, since it's not
56215         portable enough.  Suggestion from Bruno Haible.
56216
56217 2008-10-05  Bruno Haible  <bruno@clisp.org>
56218
56219         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56220         as being fixed by gnulib.
56221
56222 2008-10-05  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/select-tests: New file, mostly copied from
56225         modules/sys_select-tests.
56226         * tests/test-select.c: New file, mostly copied from
56227         tests/test-sys_select.c.
56228         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56229         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56230         (Makefile.am): Remove test_sys_select_LDADD.
56231
56232         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56233         to an undefined symbol, for an error message.
56234         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56235         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56236         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56237         winsock-select.c here.
56238         * modules/sys_select (Files): Remove lib/winsock-select.c.
56239         (Depends-on): Remove alloca.
56240         (Makefile.am): Substitute GNULIB_SELECT.
56241         * modules/select: New file.
56242         * doc/posix-functions/select.texi: Update.
56243
56244 2008-10-05  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56247         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56248         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56249         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56250         getdtablesize.
56251         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56252         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56253
56254 2008-10-05  Bruno Haible  <bruno@clisp.org>
56255
56256         * modules/getdtablesize-tests: New file.
56257         * tests/test-getdtablesize.c: New file.
56258
56259         New module 'getdtablesize'.
56260         * lib/unistd.in.h (getdtablesize): New declaration.
56261         * lib/getdtablesize.c: New file.
56262         * m4/getdtablesize.m4: New file.
56263         * modules/getdtablesize: New file.
56264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56265         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56266         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56267         HAVE_GETDTABLESIZE.
56268         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56269
56270 2008-10-05  Bruno Haible  <bruno@clisp.org>
56271
56272         * modules/sched (Makefile.am): Fix typo.
56273         Reported by Simon Josefsson.
56274
56275 2008-10-05  Jim Meyering  <meyering@redhat.com>
56276
56277         bootstrap: check for LT_INIT, too
56278         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56279         are deprecated.  Suggestion from Ralf Wildenhues.
56280
56281 2008-10-05  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56284         overriding them by ours.
56285         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56286
56287 2008-10-05  Jim Meyering  <meyering@redhat.com>
56288
56289         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56290         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56291         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56292
56293 2008-10-04  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/dup2 (License): Change to LGPLv2+.
56296         * modules/sleep (License): Likewise.
56297         * modules/perror (License): Likewise.
56298         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56299         Blake.
56300         * modules/signal (License): Likewise.
56301         * modules/sigprocmask (License): Likewise.
56302         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56303         Meyering.
56304
56305 2008-10-04  Bruno Haible  <bruno@clisp.org>
56306
56307         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56308         Reported by Rainer Tammer <tammer@tammer.net>.
56309
56310 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56311             Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56314         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56315         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56316
56317 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56318
56319         filevercmp: new module
56320         * lib/filevercmp.h: New function filevercmp comparing version strings.
56321         * lib/filevercmp.c: Implementation of filevercmp function.
56322         * modules/filevercmp: Module metadata.
56323         * tests/test-filevercmp.c: Unit test for new module.
56324         * modules/filevercmp-tests: Unit test metadata.
56325         * MODULES.html.sh: Add filevercmp module.
56326
56327 2008-10-03  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/c-ctype.h: Add comment.
56330         Reported by Jim Meyering.
56331
56332 2008-10-02  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56335
56336 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56337
56338         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56339         name of bootstrap.conf accordingly.
56340
56341 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56342
56343         * build-aux/bootstrap: Install git-merge-changelog configuration
56344         items into .gitconfig if needed.
56345
56346 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56347
56348         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56349         git repository, and initialize/update it accordingly.
56350
56351 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56352
56353         * modules/fsync-tests: New file.
56354         * tests/test-fsync.c: New file.
56355
56356         New module 'fsync'.
56357         * lib/fsync.c: New file.
56358         * m4/fsync.m4: New file.
56359         * modules/fsync: New file.
56360         * lib/unistd.in.h (fsync): New declaration.
56361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56362         GNULIB_FSYNC and HAVE_FSYNC.
56363         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56364         * MODULES.html.sh (posix_functions): Add fsync.
56365         * doc/posix-functions/fsync.texi: Mention the new module.
56366
56367 2008-10-02  Jim Meyering  <meyering@redhat.com>
56368
56369         fts.c: sync with similar code from coreutils' remove.c
56370         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56371         Guard also with "#if defined __linux__", since for now at least,
56372         this code is Linux-kernel-specific.
56373
56374 2008-10-02  Jim Meyering  <meyering@redhat.com>
56375
56376         fts: bug fixes
56377         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56378         Include <sys/vfs.h>, not <sys/statfs.h>.
56379
56380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56381         Include <sys/vfs.h>, not <sys/statfs.h>.
56382
56383 2008-10-01  Bruno Haible  <bruno@clisp.org>
56384
56385         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56386         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56387         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56388         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56389         * doc/posix-functions/posix_spawnp.texi: Likewise.
56390         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56391         whether posix_spawn actually works.
56392         * m4/pipe.m4 (gl_PIPE): Likewise.
56393         * modules/execute (Files): Add m4/posix_spawn.m4.
56394         * modules/pipe (Files): Add m4/posix_spawn.m4.
56395         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56396
56397 2008-10-01  Jim Meyering  <meyering@redhat.com>
56398
56399         remove trailing spaces
56400         * NEWS: Likewise.
56401         * lib/poll.c (poll): Likewise.
56402         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56403         * lib/winsock.c (rpl_close): Likewise.
56404         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56405         * modules/yield: Likewise.
56406         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56407         * tests/test-sys_select.c (connect_to_socket): Likewise.
56408
56409         fts.c: adjust a new interface to be more generally useful
56410         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56411         (fts_build): Adjust caller.
56412
56413 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56414
56415         * modules/cond-tests: New file.
56416         * tests/test-cond.c: New file.
56417
56418 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56419             Bruno Haible  <bruno@clisp.org>
56420
56421         * modules/cond (Dependencies): Add errno, time.
56422         * lib/glthread/cond.h: Include <time.h>.
56423         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56424         across platforms.
56425
56426 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56427             Bruno Haible  <bruno@clisp.org>
56428
56429         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56430
56431 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56432             Bruno Haible  <bruno@clisp.org>
56433
56434         * modules/tls-tests (Depends-on): Add thread, yield.
56435         (configure.ac): Remove all checks.
56436         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56437         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56438         gl_thread_self): Remove definitions. Include glthread/thread.h and
56439         glthread/yield.h instead.
56440         (test_tls): Pass an additional NULL argument to gl_thread_join.
56441
56442 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56443             Bruno Haible  <bruno@clisp.org>
56444
56445         * modules/lock-tests (Depends-on): Add thread, yield.
56446         (configure.ac): Remove all checks.
56447         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56448         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56449         gl_thread_self): Remove definitions. Include glthread/thread.h and
56450         glthread/yield.h instead.
56451         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56452         additional NULL argument to gl_thread_join.
56453
56454 2008-09-30  Bruno Haible  <bruno@clisp.org>
56455
56456         Fix the Win32 implementation of the 'thread' module.
56457         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56458         pointer type.
56459         (gl_thread_self): Invoke gl_thread_self_func.
56460         (gl_thread_self_func): New declaration.
56461         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56462         (do_init_self_key, init_self_key): New functions.
56463         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56464         Remove some fields.
56465         (running_threads, running_lock): Remove variables.
56466         (get_current_thread_handle): New function.
56467         (gl_thread_self_func, wrapper_func, glthread_create_func,
56468         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56469         simplified.
56470
56471 2008-09-30  Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56474         files.
56475
56476 2008-09-30  Jim Meyering  <meyering@redhat.com>
56477
56478         fts.m4: correct the test for statfs.f_type
56479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56480         when checking for statfs.f_type.
56481
56482 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56483
56484         tests: avoid some compiler warnings
56485         * tests/test-memchr.c (main): Pass NULL indirectly.
56486         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56487
56488 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56489
56490         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56491         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56492         exactly specified dayshifts.
56493         (dayshift): New rule.
56494         (rel): Add dayshift.
56495         (relative_time_table) [tomorrow, yesterday, today, now]:
56496         Use tDAY_SHIFT in place of tDAY_UNIT.
56497         * tests/test-getdate.c: Add tests for now-disallowed countable
56498         dayshifts, e.g., "4 yesterday ago".
56499
56500 2008-09-29  Bruno Haible  <bruno@clisp.org>
56501
56502         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56503         * tests/test-posix_spawn1.in.sh: Renamed from
56504         tests/test-posix_spawn.in.sh.
56505         * tests/test-posix_spawn2.c: New file.
56506         * tests/test-posix_spawn2.in.sh: New file.
56507         * modules/posix_spawnp-tests (Files): Update.
56508         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56509
56510 2008-09-29  Bruno Haible  <bruno@clisp.org>
56511
56512         Propagate effects of putenv/setenv/unsetenv to child processes.
56513         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56514         * lib/pipe.c (create_pipe): Likewise.
56515
56516 2008-09-29  Bruno Haible  <bruno@clisp.org>
56517
56518         Enable use of shell scripts as executables in mingw.
56519         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56520         run the program as a shell script.
56521         * lib/pipe.c (create_pipe): Likewise.
56522         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56523         resulting array.
56524
56525 2008-09-29  Eric Blake  <ebb9@byu.net>
56526
56527         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56528
56529 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56530
56531         * doc/posix-functions/accept.texi: Update mingw problems.
56532         * doc/posix-functions/bind.texi: Update mingw problems.
56533         * doc/posix-functions/close.texi: Update mingw problems.
56534         * doc/posix-functions/connect.texi: Update mingw problems.
56535         * doc/posix-functions/getpeername.texi: Update mingw problems.
56536         * doc/posix-functions/getsockname.texi: Update mingw problems.
56537         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56538         * doc/posix-functions/ioctl.texi: Update mingw problems.
56539         * doc/posix-functions/listen.texi: Update mingw problems.
56540         * doc/posix-functions/recv.texi: Update mingw problems.
56541         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56542         * doc/posix-functions/select.texi: Update mingw problems.
56543         * doc/posix-functions/send.texi: Update mingw problems.
56544         * doc/posix-functions/sendto.texi: Update mingw problems.
56545         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56546         * doc/posix-functions/socket.texi: Update mingw problems.
56547
56548 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56549             Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/sys_select.in.h: Include sys/time.h.
56552         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56553         * modules/sys_select: Depend on sys_time.
56554         * tests/test-sys_select.c: Test that sys/select.h defines struct
56555         timeval fully.
56556
56557 2008-09-29  Bruno Haible  <bruno@clisp.org>
56558
56559         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56560         * lib/sys_select.in.h: Likewise.
56561
56562 2008-09-29  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56565
56566 2008-09-29  Bruno Haible  <bruno@clisp.org>
56567
56568         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56569         Set LIBSOCKET instead of augmenting LIBS.
56570         * modules/sockets (Link): New section.
56571         * modules/sockets-tests (test_sockets_LDADD): New variable.
56572         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56573         * modules/poll-tests (test_poll_LDADD): New variable.
56574         * NEWS: Document the change.
56575
56576 2008-09-29  Bruno Haible  <bruno@clisp.org>
56577
56578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56579         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56580         ARPA_INET_H directly.
56581         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56582
56583 2008-09-28  Bruno Haible  <bruno@clisp.org>
56584
56585         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56586         from gl_HEADER_SYS_SOCKET.
56587         (gl_HEADER_SYS_SOCKET): Invoke it.
56588         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56589
56590 2008-09-28  Bruno Haible  <bruno@clisp.org>
56591
56592         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56593         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56594         Needed on OSF/1 4.0.
56595
56596 2008-09-28  Bruno Haible  <bruno@clisp.org>
56597
56598         Override open more carefully.
56599         * lib/open.c (orig_open): New function.
56600         (rpl_open): Use orig_open instead of open.
56601         * lib/fcntl.in.h: Add special invocation convention.
56602         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56603         (gl_FUNC_OPEN): Invoke it.
56604
56605         Override freopen more carefully.
56606         * lib/freopen.c (orig_freopen): New function.
56607         (rpl_freopen): Use orig_freopen instead of freopen.
56608         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56609         (gl_FUNC_FREOPEN): Invoke it.
56610
56611         Override fopen more carefully.
56612         * lib/fopen.c (orig_fopen): New function.
56613         (rpl_fopen): Use orig_fopen instead of fopen.
56614         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56615         (gl_FUNC_FOPEN): Invoke it.
56616         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56617
56618 2008-09-28  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56621         SIGPIPE.
56622
56623 2008-09-28  Bruno Haible  <bruno@clisp.org>
56624
56625         * tests/test-sigaction.c (handler, main): Disable the check whether
56626         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56627         glibc systems with LinuxThreads.
56628
56629 2008-09-28  Bruno Haible  <bruno@clisp.org>
56630
56631         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56632
56633         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56634         with AIX xlc.
56635         * lib/fcntl.in.h (open): Likewise.
56636         Reported by Rainer Tammer <tammer@tammer.net>.
56637
56638 2008-09-28  Bruno Haible  <bruno@clisp.org>
56639
56640         * modules/posix_spawnp-tests: New file.
56641         * tests/test-posix_spawn.c: New file.
56642         * tests/test-posix_spawn.in.sh: New file.
56643
56644         New module 'posix_spawnp'.
56645         * modules/posix_spawnp: New file.
56646         * lib/spawnp.c: New file, from GNU libc with modifications.
56647         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56648
56649         New module 'posix_spawn'.
56650         * modules/posix_spawn: New file.
56651         * lib/spawn.c: New file, from GNU libc with modifications.
56652         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56653
56654         New module 'posix_spawnattr_destroy'.
56655         * modules/posix_spawnattr_destroy: New file.
56656         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56657         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56658         module.
56659
56660         New module 'posix_spawnattr_setsigmask'.
56661         * modules/posix_spawnattr_setsigmask: New file.
56662         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56663         modifications.
56664         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56665         new module.
56666
56667         New module 'posix_spawnattr_getsigmask'.
56668         * modules/posix_spawnattr_getsigmask: New file.
56669         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56670         modifications.
56671         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56672         new module.
56673
56674         New module 'posix_spawnattr_setsigdefault'.
56675         * modules/posix_spawnattr_setsigdefault: New file.
56676         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56677         modifications.
56678         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56679         new module.
56680
56681         New module 'posix_spawnattr_getsigdefault'.
56682         * modules/posix_spawnattr_getsigdefault: New file.
56683         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56684         modifications.
56685         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56686         new module.
56687
56688         New module 'posix_spawnattr_setschedpolicy'.
56689         * modules/posix_spawnattr_setschedpolicy: New file.
56690         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56691         modifications.
56692         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56693         new module.
56694
56695         New module 'posix_spawnattr_getschedpolicy'.
56696         * modules/posix_spawnattr_getschedpolicy: New file.
56697         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56698         modifications.
56699         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56700         new module.
56701
56702         New module 'posix_spawnattr_setschedparam'.
56703         * modules/posix_spawnattr_setschedparam: New file.
56704         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56705         modifications.
56706         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56707         new module.
56708
56709         New module 'posix_spawnattr_getschedparam'.
56710         * modules/posix_spawnattr_getschedparam: New file.
56711         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56712         modifications.
56713         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56714         new module.
56715
56716         New module 'posix_spawnattr_setpgroup'.
56717         * modules/posix_spawnattr_setpgroup: New file.
56718         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56719         modifications.
56720         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56721         module.
56722
56723         New module 'posix_spawnattr_getpgroup'.
56724         * modules/posix_spawnattr_getpgroup: New file.
56725         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56726         modifications.
56727         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56728         module.
56729
56730         New module 'posix_spawnattr_setflags'.
56731         * modules/posix_spawnattr_setflags: New file.
56732         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56733         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56734         module.
56735
56736         New module 'posix_spawnattr_getflags'.
56737         * modules/posix_spawnattr_getflags: New file.
56738         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56739         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56740         module.
56741
56742         New module 'posix_spawnattr_init'.
56743         * modules/posix_spawnattr_init: New file.
56744         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56745         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56746         module.
56747
56748         New module 'posix_spawn_file_actions_destroy'.
56749         * modules/posix_spawn_file_actions_destroy: New file.
56750         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56751         modifications.
56752         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56753         the new module.
56754
56755         New module 'posix_spawn_file_actions_addopen'.
56756         * modules/posix_spawn_file_actions_addopen: New file.
56757         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56758         modifications.
56759         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56760         the new module.
56761
56762         New module 'posix_spawn_file_actions_adddup2'.
56763         * modules/posix_spawn_file_actions_adddup2: New file.
56764         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56765         modifications.
56766         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56767         the new module.
56768
56769         New module 'posix_spawn_file_actions_addclose'.
56770         * modules/posix_spawn_file_actions_addclose: New file.
56771         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56772         modifications.
56773         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56774         the new module.
56775
56776         New module 'posix_spawn_file_actions_init'.
56777         * modules/posix_spawn_file_actions_init: New file.
56778         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56779         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56780         new module.
56781
56782         New module 'posix_spawn-internal'.
56783         * modules/posix_spawn-internal: New file.
56784         * lib/spawn_int.h: New file, from GNU libc with modifications.
56785         * lib/spawni.c: New file, from GNU libc with modifications.
56786         * m4/posix_spawn.m4: New file.
56787
56788         New module 'spawn'.
56789         * modules/spawn: New file.
56790         * lib/spawn.in.h: New file, from GNU libc with modifications.
56791         * m4/spawn_h.m4: New file.
56792         * doc/posix-headers/spawn.texi: Mention the new module.
56793
56794 2008-09-28  Bruno Haible  <bruno@clisp.org>
56795
56796         * modules/sched-tests: New file.
56797         * tests/test-sched.c: New file.
56798
56799         New module 'sched'.
56800         * modules/sched: New file.
56801         * lib/sched.in.h: New file.
56802         * m4/sched_h.m4: New file.
56803         * doc/posix-headers/sched.texi: Mention the new module.
56804
56805 2008-09-27  Eric Blake  <ebb9@byu.net>
56806
56807         Fix previous patch, and tweak references to $0.
56808         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56809         (func_version, func_gnulib_dir): Don't call this program
56810         gnulib-tool.
56811         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56812         with using $0 in function.
56813         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56814         (func_fatal_error): Reuse the name the user invoked us with.
56815
56816 2008-09-27  Bruno Haible  <bruno@clisp.org>
56817
56818         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56819         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56820         (gl_ICONV_H): Not here.
56821         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56822         instead of assigning ICONV_H directly.
56823
56824         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56826         WCHAR_H directly.
56827
56828 2008-09-27  Bruno Haible  <bruno@clisp.org>
56829
56830         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56831         * modules/arpa_inet (Depends-on): Add link-warning.
56832         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56833         * modules/unistd (Makefile.am): Likewise.
56834
56835 2008-09-26  Bruno Haible  <bruno@clisp.org>
56836
56837         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56838         variables.
56839         (func_version): Essentially copied from gnulib-tool.
56840         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56841         func_readlink): Copied from gnulib-tool.
56842
56843 2008-09-26  Bruno Haible  <bruno@clisp.org>
56844
56845         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56846         invoking git-version-gen.
56847
56848 2008-09-26  Bruno Haible  <bruno@clisp.org>
56849
56850         * posix-modules: Update to directory names changed on 2008-01-19.
56851         Remove commas in output before splitting into words. No more need to
56852         avoid 'ftruncate' since 2007-02-19.
56853
56854 2008-09-26  Bruno Haible  <bruno@clisp.org>
56855
56856         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56857
56858 2008-09-26  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56861         * modules/fwriteerror (Depends-on): Add errno.
56862
56863 2008-09-26  Bruno Haible  <bruno@clisp.org>
56864
56865         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56866         * tests/test-vc-list-files-cvs.sh: Likewise.
56867
56868 2008-09-26  Bruno Haible  <bruno@clisp.org>
56869
56870         * doc/posix-headers/sys_resource.texi: Reorder items.
56871
56872 2008-09-26  Jim Meyering  <meyering@redhat.com>
56873
56874         fts: tweak inode comparison function
56875         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56876         inode numbers, as documented.
56877
56878         fts: sort dirent entries on inode number before traversing
56879         This avoids a quadratic, seek-related performance penalty when
56880         operating on a directory containing many entries (measurable at 10k;
56881         3.5 hours at 2 million entries with a cold cache) on certain types
56882         of file systems, including ext3 and ext4, but not tmpfs.
56883         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56884         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56885         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56886         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56887         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56888         (fts_build): Set the stat.st_ino member from D_INO.
56889         If it is likely to be useful, sort dirent entries on inode number.
56890
56891         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56892         and the struct statfs.f_type member.
56893         * modules/fts (Depends-on): Add d-ino.
56894
56895 2008-09-26  Bruno Haible  <bruno@clisp.org>
56896
56897         * modules/sigpipe-die (Depends-on): Add sigpipe.
56898
56899         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56900         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56901         and GNULIB_STDIO_H_SIGPIPE are set.
56902         * lib/stdio-write.c: New file.
56903         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56904         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56905         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56906         REPLACE_STDIO_WRITE_FUNCS.
56907         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56908         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56909         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56910         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56911         * modules/stdio (Files): Add lib/stdio-write.c.
56912         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56913         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56914         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56915         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56916         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56917         REPLACE_FPRINTF_POSIX.
56918         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56919         REPLACE_PRINTF_POSIX.
56920         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56921         REPLACE_VFPRINTF_POSIX.
56922         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56923         REPLACE_VPRINTF_POSIX.
56924         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56925         SIGPIPE issue.
56926         * doc/posix-functions/fputc.texi: Likewise.
56927         * doc/posix-functions/fputs.texi: Likewise.
56928         * doc/posix-functions/fwrite.texi: Likewise.
56929         * doc/posix-functions/printf.texi: Likewise.
56930         * doc/posix-functions/putc.texi: Likewise.
56931         * doc/posix-functions/putchar.texi: Likewise.
56932         * doc/posix-functions/puts.texi: Likewise.
56933         * doc/posix-functions/vfprintf.texi: Likewise.
56934         * doc/posix-functions/vprintf.texi: Likewise.
56935
56936         * modules/safe-write (Depends-on): Add write.
56937
56938         * modules/sigpipe-tests: New file.
56939         * tests/test-sigpipe.c: New file.
56940         * tests/test-sigpipe.sh: New file.
56941
56942         * modules/write: New file.
56943         * lib/unistd.in.h: Include <sys/types.h>.
56944         (write): New declaration.
56945         * lib/write.c: New file.
56946         * m4/write.m4: New file.
56947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56948         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56949         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56950         GNULIB_WRITE, REPLACE_WRITE.
56951         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56952         and the SIGPIPE issue.
56953
56954         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56955         (raise): New declaration.
56956         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56957         (ext_signal): New function.
56958         (rpl_raise): New function.
56959         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56960         GNULIB_SIGNAL_H_SIGPIPE.
56961         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56962         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56963
56964         * modules/sigpipe: New file.
56965         * m4/sigpipe.m4: New file.
56966
56967 2008-09-25  Derek Price  <derek@ximbiot.com>
56968             Bruno Haible  <bruno@clisp.org>
56969
56970         * gnulib-tool (func_import): Report all license incompatibilities, not
56971         just the first one.
56972
56973 2008-09-25  Bruno Haible  <bruno@clisp.org>
56974
56975         * gnulib-tool (func_import): When computing the edits, consider not
56976         only the Makefile.ams that exist but also those that will be generated.
56977
56978 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56979
56980         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56981         fixes gnulib-tool --test warning about duplicate dependency.
56982
56983 2008-09-25  Bruno Haible  <bruno@clisp.org>
56984
56985         * gnulib-tool: Don't ask the user to perform edits in the generated
56986         Makefile.ams.
56987         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56988         apply to the Makefile.am being generated.
56989         (func_emit_tests_Makefile_am): Execute edits that apply to the
56990         Makefile.am being generated.
56991         (func_import): Setup list of Makefile.am edits before emitting the
56992         Makefile.ams, not at the end.
56993         (func_create_testdir): Update.
56994         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56995
56996 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56997
56998         * gnulib-tool (func_import): Store the --tests-base option in the
56999         comment in gnulib-cache.m4.
57000
57001 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57002
57003         * NEWS: Document increased portability that sys_select now provides.
57004
57005         * lib/sys_select.in.h: Install select wrapper.
57006         * lib/sys_socket.in.h: Use more descriptive name when there is no
57007         select wrapper.
57008         * lib/winsock-select.c: New.
57009         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57010         Require gl_HEADER_SYS_SOCKET.
57011         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57012         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57013         * tests/test-sys_select.c: Add functional tests.
57014
57015 2008-09-24  Eric Blake  <ebb9@byu.net>
57016
57017         open, fopen: close fd leak in last patch
57018         * lib/open.c (rpl_open): Close fd before returning error.
57019         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57020         * doc/posix-functions/open.texi (open): Document that Irix also
57021         has the bug.
57022         * doc/posix-functions/fopen.texi (fopen): Likewise.
57023         Reported by Paolo Bonzini.
57024
57025 2008-09-24  Bruno Haible  <bruno@clisp.org>
57026
57027         Ensure that a filename ending in a slash cannot be used to access a
57028         non-directory.
57029         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57030         to check whether it's really a directory.
57031         * lib/fopen.c: Include fcntl.h, unistd.h.
57032         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57033         and fdopen().
57034         * modules/fopen (Depends-on): Add unistd.
57035         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57036         * tests/test-fopen.c (main): Likewise.
57037         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57038         * doc/posix-functions/fopen.texi: Likewise.
57039         Reported by Eric Blake.
57040
57041 2008-09-23  Eric Blake  <ebb9@byu.net>
57042
57043         c-stack: avoid compiler optimizations when provoking overflow
57044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57045         recursion harder to optimize, to ensure a stack overflow occurs.
57046         * tests/test-c-stack.c (recurse): Likewise.
57047         Borrowed from libsigsegv.
57048
57049         c-stack: work around Irix sigaltstack bug
57050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57051         whether sigaltstack uses wrong end of stack_t (copied in part from
57052         libsigsegv).
57053         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57054         Irix bug, without requiring an over-allocation.
57055         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57056         bug.
57057
57058         fopen: document mingw bug on directories
57059         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57060         not allowing a stream visiting a directory, even though reading
57061         from such a stream is not portable.
57062
57063 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57064
57065         * lib/poll.c: Rewrite.
57066         * modules/poll: Depend on alloca.
57067
57068 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57069
57070         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57071         instead define prototypes for a full set of wrappers.  Ensure
57072         that Cygwin does not use the compatibility code, which is only
57073         for MinGW.
57074         * lib/winsock.c: New.
57075         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57076         * modules/sys_socket: Add lib/winsock.c.
57077
57078         * modules/poll-tests: Add errno and perror.
57079         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57080
57081 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57082
57083         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57084
57085 2008-09-23  Bruno Haible  <bruno@clisp.org>
57086
57087         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57088         * doc/glibc-functions/*: Likewise.
57089
57090 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57091
57092         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57093         success.
57094
57095 2008-09-22  Eric Blake  <ebb9@byu.net>
57096             Bruno Haible  <bruno@clisp.org>
57097
57098         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57099         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57100         supply %A but mishandle pseudo-NaN.
57101         Reported by Simon Josefsson.
57102
57103 2008-09-21  Bruno Haible  <bruno@clisp.org>
57104
57105         * tests/test-lock.c (main): Tweak skip message.
57106         * tests/test-tls.c (main): Likewise.
57107
57108 2008-09-21  Bruno Haible  <bruno@clisp.org>
57109
57110         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57111         whether 'struct sigaction' has sa_sigaction here...
57112         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57113         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57114
57115 2008-09-21  Bruno Haible  <bruno@clisp.org>
57116
57117         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57118         section.
57119         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57120         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57121         the new section.
57122         (Support for obsolete systems lacking POSIX:2001): New section.
57123         (String handling <string.h>): Move strdup to the new section.
57124         Suggested by Simon Josefsson and Paolo Bonzini.
57125
57126 2008-09-21  Bruno Haible  <bruno@clisp.org>
57127
57128         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57129         exponents in %e and %g results on 'long double'. Needed for mingw's
57130         improved *printf functions.
57131         * tests/test-vasprintf-posix.c (test_function): Likewise.
57132         * tests/test-snprintf-posix.h (test_function): Likewise.
57133         * tests/test-sprintf-posix.h (test_function): Likewise.
57134         Reported by Eric Blake.
57135
57136 2008-09-21  Bruno Haible  <bruno@clisp.org>
57137
57138         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57139         * tests/test-sprintf-posix.h (test_function): Likewise.
57140
57141 2008-09-21  Bruno Haible  <bruno@clisp.org>
57142
57143         * modules/getpass (Depends-on): Add strdup-posix.
57144
57145         New module 'strdup-posix'.
57146         * modules/strdup-posix: New file.
57147         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57148         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57150         REPLACE_STRDUP.
57151         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57152         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57153         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57154         strdup-posix.
57155
57156         * modules/strdup (Depends-on): Remove malloc-posix.
57157
57158 2008-09-20  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57161         Wildenhues.
57162
57163 2008-09-20  Bruno Haible  <bruno@clisp.org>
57164
57165         Ensure that wint_t gets defined on IRIX 5.3.
57166         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57167         * lib/wctype.in.h (wint_t): Likewise.
57168         (__wctype_wint_t): Remove type.
57169         (isw*): Use wint_t instead of __wctype_wint_t.
57170         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57171         * modules/wchar (Files): Add m4/wint_t.m4.
57172         (Makefile.am): Substitute HAVE_WINT_T.
57173         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57174         * tests/test-wctype.c: Check that wint_t is defined.
57175         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57176         * doc/posix-headers/wctype.texi: Likewise.
57177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57178
57179 2008-09-18  Bruno Haible  <bruno@clisp.org>
57180
57181         * gnulib-tool (func_exit): Update comment.
57182
57183 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57184
57185         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57186         assumes strdup exists and does not depend on strdup to return
57187         ENOMEM on out of memory conditions.
57188
57189 2008-09-18  Bruno Haible  <bruno@clisp.org>
57190
57191         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57192         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57193         digits for the exponent.
57194
57195 2008-09-18  Jim Meyering  <meyering@redhat.com>
57196             Bruno Haible  <bruno@clisp.org>
57197
57198         * lib/vasnprintf.c (decimal_point_char): Define also if
57199         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57200
57201 2008-09-16  Bruno Haible  <bruno@clisp.org>
57202         and Eric Blake  <ebb9@byu.net>
57203
57204         vasnprintf: support Irix 5.3
57205         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57206         that mishandle long double infinity.
57207         Reported by Tom G. Christensen.
57208
57209 2008-09-16  Bruno Haible  <bruno@clisp.org>
57210
57211         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57212         Solaris 9.
57213         * doc/glibc-functions/alphasort.texi: Likewise.
57214         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57215
57216 2008-09-16  Jim Meyering  <meyering@redhat.com>
57217
57218         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57219         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57220         a umask modification leak out of a subshell.  Otherwise, the
57221         opensolaris /bin/sh would be accepted and thus cause unwarranted
57222         failures in the coreutils test suite.
57223
57224 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57225
57226         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57227         to succeed.
57228
57229 2008-09-16  Jim Meyering  <meyering@redhat.com>
57230
57231         avoid spurious test failure when library is built without ACL support
57232         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57233         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57234         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57235         * tests/test-copy-acl.sh: Likewise.
57236
57237 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57238
57239         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57240         based on character occurrence counts.
57241
57242 2008-09-15  Eric Blake  <ebb9@byu.net>
57243
57244         tests: avoid some compiler warnings
57245         * tests/test-memchr.c (main): Pass NULL indirectly.
57246         * tests/test-closein.c (main): Avoid unused variable.
57247
57248 2008-09-15  Bruno Haible  <bruno@clisp.org>
57249
57250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57251         are missing on OpenBSD 4.0 individually.
57252         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57253
57254 2008-09-15  Bruno Haible  <bruno@clisp.org>
57255
57256         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57257         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57258         * doc/posix-functions/perror.texi: Likewise.
57259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57260         is missing.
57261         Reported by Eric Blake.
57262
57263         * lib/errno.in.h: Use replacement values >= 2000.
57264         Reported by Eric Blake.
57265
57266 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57267
57268         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57269         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57270         limit.
57271         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57272         compareseq was aborted.
57273
57274 2008-09-14  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57277         yvec_edit_count.
57278         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57279         (fstrcmp_bounded): Simplify result computation accordingly.
57280
57281 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57282
57283         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57284         (fstrcmp): Define in terms of fstrcmp_bounded.
57285         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57286         lower_bound argument.
57287         Return quickly if the result is certainly < lower_bound.
57288         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57289
57290 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57291
57292         * lib/diffseq.h (EARLY_ABORT): New macro.
57293         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57294         evaluates to true.
57295
57296 2008-09-14  Bruno Haible  <bruno@clisp.org>
57297
57298         * modules/perror-tests: New file.
57299         * tests/test-perror.sh: New file.
57300         * tests/test-perror.c: New file.
57301
57302         New module 'perror'.
57303         * lib/stdio.in.h (perror): New declaration.
57304         * lib/perror.c: New file.
57305         * m4/perror.m4: New file.
57306         * modules/perror: New file.
57307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57308         * doc/posix-functions/perror.texi: Mention the perror module.
57309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57310         REPLACE_PERROR.
57311         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57312         REPLACE_PERROR.
57313
57314 2008-09-14  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/stdio (Makefile.am): Reorder to match the order in
57317         lib/stdio.in.h.
57318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57319
57320 2008-09-13  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57323
57324 2008-09-13  Bruno Haible  <bruno@clisp.org>
57325
57326         Extend strerror to cover the added errno values.
57327         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57328         (rpl_strerror): Provide error messages for the added errno values and
57329         for the WSA* values.
57330         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57331         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57332         strerror.
57333         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57334         * modules/strerror (Depends-on): Add errno.
57335         * doc/posix-functions/strerror.texi: Document the change.
57336         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57337         and EOVERFLOW.
57338
57339 2008-09-13  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/EOVERFLOW: Remove file.
57342         * m4/eoverflow.m4: Remove file.
57343         * modules/EOVERFLOW-tests: Remove file.
57344         * tests/test-EOVERFLOW.c: Remove file.
57345         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57346         * modules/ftell (Depends-on): Likewise.
57347         * modules/getdelim (Depends-on): Likewise.
57348         * modules/getugroups (Depends-on): Likewise.
57349         * modules/poll (Depends-on): Likewise.
57350         * modules/snprintf (Depends-on): Likewise.
57351         * modules/sprintf-posix (Depends-on): Likewise.
57352         * modules/vasnprintf (Depends-on): Likewise.
57353         * modules/vasprintf (Depends-on): Likewise.
57354         * modules/vfprintf-posix (Depends-on): Likewise.
57355         * modules/vsnprintf (Depends-on): Likewise.
57356         * modules/vsprintf-posix (Depends-on): Likewise.
57357         * modules/xvasprintf (Depends-on): Likewise.
57358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57359         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57360         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57361         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57362         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57363         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57364         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57365         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57366         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57367         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57368         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57369         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57370         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57371         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57372         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57373         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57374         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57375         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57376         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57377         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57378         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57379         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57380         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57381         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57382         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57383         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57384         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57385         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57386         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57387         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57388         * MODULES.html.sh: Remove EOVERFLOW.
57389         * NEWS: Mention the change.
57390
57391 2008-09-13  Bruno Haible  <bruno@clisp.org>
57392
57393         * modules/errno-tests: New file.
57394         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57395
57396         * lib/errno.in.h: New file.
57397         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57398         * modules/errno: New file.
57399         * doc/posix-headers/errno.texi: Update documentation.
57400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57401
57402 2008-09-13  Bruno Haible  <bruno@clisp.org>
57403
57404         * tests/test-poll.c: Use #if for native Windows, rather than testing
57405         __MSVCRT__.
57406
57407 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57408             Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/glob.c: Don't include <pwd.h> on native Windows.
57411         (WINDOWS32): New macro.
57412         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57413
57414 2008-09-13  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57417         (ETIMEDOUT): Remove macro.
57418         (glthread_cond_timedwait_multithreaded): New declaration.
57419         (glthread_cond_timedwait): Use it.
57420         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57421         (glthread_cond_timedwait_multithreaded): New function.
57422
57423 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57424
57425         * modules/poll-tests: Do not check for io.h.
57426         * tests/test-poll.c: Check for __MSVCRT__ instead.
57427
57428 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57429
57430         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57431         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57432         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57433
57434 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57435
57436         * modules/poll-tests: New.
57437         * tests/test-poll.c: New.
57438
57439 2008-09-12  Eric Blake  <ebb9@byu.net>
57440
57441         frexp: test for NetBSD failure on -0.0
57442         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57443         not all, bugs from NetBSD 3.0 have been fixed.
57444         * doc/posix-functions/frexp.texi (frexp): Document bug.
57445         Reported by Thomas Klausner.
57446
57447         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57448         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57449         literal -0.0.
57450         Reported by Jonathan C. Patschke <jp@centtech.com>.
57451
57452 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57453
57454         * lib/glthread/cond.h: Use dummy implementation also if
57455         USE_WIN32_THREADS.
57456
57457 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57458
57459         * modules/fnmatch-posix (License): Change to LGPLv2+.
57460         * modules/fnmatch-gnu (License): Likewise.
57461
57462 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57463
57464         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57465
57466 2008-09-11  Jim Meyering  <meyering@redhat.com>
57467
57468         * users.txt: Add gtk-vnc.
57469
57470 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57471
57472         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57473         rotate amounts.
57474
57475         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57476         required for 16-bit and 8-bit rotates.
57477         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57478         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57479         UINT8_MAX instead of hard-coded constants.
57480         Suggested by Paul Eggert.
57481
57482 2008-09-07  Bruno Haible  <bruno@clisp.org>
57483
57484         * tests/test-striconveh.c (main): Check behaviour when converting from
57485         UTF-7.
57486
57487         Make striconveh work better with stateful encodings.
57488         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57489         that iconv does not increment the inptr when returning -1/EINVAL.
57490
57491 2008-09-07  Bruno Haible  <bruno@clisp.org>
57492
57493         * build-aux/config.rpath: Update according to libtool-2.2.6.
57494         * build-aux/config.libpath: Likewise.
57495
57496 2008-09-06  Bruno Haible  <bruno@clisp.org>
57497
57498         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57499         * lib/freadptr.c (freadptr): Likewise.
57500         * lib/freadseek.c (freadptrinc): Likewise.
57501         Reported by Simon Josefsson.
57502
57503 2008-09-06  Bruno Haible  <bruno@clisp.org>
57504
57505         * modules/freadptr (License): Change to LGPLv2+.
57506         * modules/freadseek (License): Likewise.
57507         Suggested by Eric Blake.
57508
57509         * modules/memchr2 (License): Change to LGPLv2+.
57510         Approved by Eric Blake.
57511
57512 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57513             Bruno Haible  <bruno@clisp.org>
57514
57515         Make gnulib-tool work with native 'sed' on AIX.
57516         * gnulib-tool (sed_noop): New variable.
57517         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57518         func_add_or_update, func_create_testdir): Use it to initialize sed
57519         script variables.
57520         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57521
57522 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57523             Bruno Haible  <bruno@clisp.org>
57524
57525         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57526         also works after #include directives.
57527
57528 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57529
57530         getdate.y: reject an out-of-range timezone value
57531         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57532         the range [-24...+24].  When specified with only one or two digits,
57533         * tests/test-getdate.c: Tests for the fix.
57534         * doc/getdate.texi: Document this change.
57535
57536 2008-09-03  Bruno Haible  <bruno@clisp.org>
57537
57538         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57539
57540 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57541
57542         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57543         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57544         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57545         Blake <ebb9@byu.net>.
57546
57547         * tests/test-bitrotate.c: Add more test vectors.
57548
57549 2008-09-02  Eric Blake  <ebb9@byu.net>
57550
57551         vasnprintf-posix: handle large precision via %.*d
57552         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57553         when handling it ourselves.
57554         * tests/test-vasnprintf-posix.c (test_function): Add test.
57555         * tests/test-snprintf-posix.h (test_function): Likewise.
57556         * tests/test-sprintf-posix.h (test_function): Likewise.
57557         * tests/test-vasprintf-posix.c (test_function): Likewise.
57558         Reported by Alain Guibert.
57559
57560 2008-09-01  Eric Blake  <ebb9@byu.net>
57561
57562         c-stack: make configure-time check more robust
57563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57564         successful sigaction call.
57565         Reported by Tom G. Christensen.
57566
57567 2008-09-01  Bruno Haible  <bruno@clisp.org>
57568
57569         New module 'findprog-lgpl'.
57570         * modules/findprog-lgpl: New file.
57571         * lib/findprog-lgpl.c: New file.
57572         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57573         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57574         to decide whether to use strdup or xstrdup, concatenated_filename or
57575         xconcatenated_filename.
57576
57577 2008-09-01  Bruno Haible  <bruno@clisp.org>
57578
57579         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57580         'xconcat-filename' (GPL).
57581         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57582         (License): Change to LGPLv2+.
57583         * modules/xconcat-filename: New file.
57584         * lib/concat-filename.h (concatenated_filename): Change specification.
57585         (xconcatenated_filename): New declaration.
57586         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57587         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57588         memory situations.
57589         * lib/xconcat-filename.c: New file.
57590         * NEWS: Mention the change.
57591         * lib/findprog.c: Include concat-filename.h, not filename.h.
57592         (find_in_path): Use xconcatenated_filename instead of
57593         concatenated_filename.
57594         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57595         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57596         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57597         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57598         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57599         instead of concatenated_filename.
57600         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57601         (execute_java_class): Use xconcatenated_filename instead of
57602         concatenated_filename.
57603         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57604         * modules/javacomp (Depends-on): Likewise.
57605         * modules/javaexec (Depends-on): Likewise.
57606
57607 2008-09-01  Bruno Haible  <bruno@clisp.org>
57608
57609         Split module 'filename' into 'filename' and 'concat-filename'.
57610         * modules/filename: Keep only lib/filename.h.
57611         (License): Change to LGPLv2+.
57612         * modules/concat-filename: New file, extracted from modules/filename.
57613         * lib/filename.h (concatenated_filename): Remove declaration.
57614         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57615         * lib/concat-filename.c: Include concat-filename.h.
57616         * NEWS: Mention the change.
57617
57618 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57619
57620         * lib/bitrotate.h (rotl8, rotr8): Add.
57621
57622         * modules/bitrotate (configure.ac): Need
57623         AC_REQUIRE([AC_C_INLINE]).
57624         (Description): Mention stdint.h.  Reported by Bruno Haible
57625         <bruno@clisp.org>.
57626
57627         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57628         Paolo Bonzini <bonzini@gnu.org>.
57629
57630 2008-08-31  Bruno Haible  <bruno@clisp.org>
57631
57632         Assume Solaris specific bi-arch conventions on Solaris systems.
57633         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57634         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57635         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57636         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57637         like acl_libdirstem.
57638         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57639         acl_libdirstem.
57640         * NEWS: Mention the change.
57641         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57642
57643 2008-08-31  Jim Meyering  <meyering@redhat.com>
57644
57645         * lib/strftime.h: Add comments describing the two added arguments.
57646
57647         remove duplicate #include directives
57648         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57649         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57650
57651 2008-08-31  Bruno Haible  <bruno@clisp.org>
57652
57653         New module 'sigpipe-die'.
57654         * modules/sigpipe-die: New file.
57655         * lib/sigpipe-die.h: New file.
57656         * lib/sigpipe-die.c: New file.
57657         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57658
57659 2008-08-31  Bruno Haible  <bruno@clisp.org>
57660
57661         Don't override previously installed signal handlers.
57662         * lib/fatal-signal.c (saved_sigactions): New variable.
57663         (uninstall_handlers): Reset the signal to the saved handler, not
57664         to SIG_DFL (except when ignored).
57665         (install_handlers): Save the previous handlers.
57666
57667 2008-08-30  Bruno Haible  <bruno@clisp.org>
57668
57669         * gnulib-tool (func_reset_sigpipe): New function.
57670         (func_get_automake_snippet, func_modules_transitive_closure,
57671         func_import): Invoke it before a join command that reads from stdin,
57672         to avoid "echo: write error: Broken pipe" error messages on stderr.
57673         Reported by Sam Steingold <sds@gnu.org>.
57674
57675 2008-08-30  Bruno Haible  <bruno@clisp.org>
57676
57677         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57678         Code copied from m4/open.m4.
57679         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57680         access and the filename ends in a slash. Code copied from lib/open.c.
57681         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57682         * tests/test-fopen.c (main): Check against bug with trailing slash.
57683
57684 2008-08-29  Bruno Haible  <bruno@clisp.org>
57685
57686         Avoid some "gcc -pedantic" warnings.
57687         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57688         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57689         * lib/dirent.in.h: Likewise.
57690         * lib/fcntl.in.h: Likewise.
57691         * lib/float.in.h: Likewise.
57692         * lib/iconv.in.h: Likewise.
57693         * lib/inttypes.in.h: Likewise.
57694         * lib/locale.in.h: Likewise.
57695         * lib/math.in.h: Likewise.
57696         * lib/netinet_in.in.h: Likewise.
57697         * lib/search.in.h: Likewise.
57698         * lib/signal.in.h: Likewise.
57699         * lib/stdarg.in.h: Likewise.
57700         * lib/stdint.in.h: Likewise.
57701         * lib/stdio.in.h: Likewise.
57702         * lib/stdlib.in.h: Likewise.
57703         * lib/string.in.h: Likewise.
57704         * lib/strings.in.h: Likewise.
57705         * lib/sys_select.in.h: Likewise.
57706         * lib/sys_socket.in.h: Likewise.
57707         * lib/sys_stat.in.h: Likewise.
57708         * lib/sys_time.in.h: Likewise.
57709         * lib/sysexits.in.h: Likewise.
57710         * lib/time.in.h: Likewise.
57711         * lib/unistd.in.h: Likewise.
57712         * lib/wchar.in.h: Likewise.
57713         * lib/wctype.in.h: Likewise.
57714         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57715         * modules/fchdir (Makefile.am): Likewise.
57716         * modules/fcntl (Makefile.am): Likewise.
57717         * modules/float (Makefile.am): Likewise.
57718         * modules/iconv_open (Makefile.am): Likewise.
57719         * modules/inttypes (Makefile.am): Likewise.
57720         * modules/locale (Makefile.am): Likewise.
57721         * modules/math (Makefile.am): Likewise.
57722         * modules/netinet_in (Makefile.am): Likewise.
57723         * modules/search (Makefile.am): Likewise.
57724         * modules/signal (Makefile.am): Likewise.
57725         * modules/stdarg (Makefile.am): Likewise.
57726         * modules/stdint (Makefile.am): Likewise.
57727         * modules/stdio (Makefile.am): Likewise.
57728         * modules/stdlib (Makefile.am): Likewise.
57729         * modules/string (Makefile.am): Likewise.
57730         * modules/strings (Makefile.am): Likewise.
57731         * modules/sys_select (Makefile.am): Likewise.
57732         * modules/sys_socket (Makefile.am): Likewise.
57733         * modules/sys_stat (Makefile.am): Likewise.
57734         * modules/sys_time (Makefile.am): Likewise.
57735         * modules/sysexits (Makefile.am): Likewise.
57736         * modules/time (Makefile.am): Likewise.
57737         * modules/unistd (Makefile.am): Likewise.
57738         * modules/wchar (Makefile.am): Likewise.
57739         * modules/wctype (Makefile.am): Likewise.
57740         Reported by Reuben Thomas <rrt@sc3d.org>.
57741
57742 2008-08-29  Bruno Haible  <bruno@clisp.org>
57743
57744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57745         any more.
57746
57747 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57748
57749         * MODULES.html.sh (Misc): Add bitrotate.
57750
57751         * modules/bitrotate: New file.
57752
57753         * lib/bitrotate.h: New file.
57754
57755         * modules/bitrotate-tests: New file.
57756
57757         * tests/test-bitrotate.c: New file.
57758
57759         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57760         on the bitrotate module.
57761
57762         * lib/arctwo.c: Use new bitrotate module.
57763
57764 2008-08-29  Jim Meyering  <meyering@redhat.com>
57765
57766         bootstrap: merge changes from coreutils
57767         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57768         of copied files.  Remove a kludge, now that this is fixed.
57769         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57770         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57771         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57772
57773 2008-08-29  Bruno Haible  <bruno@clisp.org>
57774
57775         * MODULES.html.sh: Remove --cvs-urls option.
57776
57777 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57778
57779         maint.mk: adjust to file name change
57780         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57781
57782 2008-08-28  Jim Meyering  <meyering@redhat.com>
57783
57784         * modules/getndelim2 (License): Relicense to LGPLv2+.
57785         Approved by Richard Stallman for the version of 1995, and by
57786         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57787
57788 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57789
57790         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57791         dummy if one is not available.  Do not touch them if
57792         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57793         (getc_maybe_unlocked): New.
57794         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57795
57796 2008-08-26  Eric Blake  <ebb9@byu.net>
57797
57798         doc/INSTALL: resync from autoconf
57799         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57800         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57801         moving...
57802         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57803         * INSTALL: Regenerate.
57804         * INSTALL.ISO: New file.
57805         * INSTALL.UTF-8: Likewise.
57806
57807 2008-08-26  Jim Meyering  <meyering@redhat.com>
57808
57809         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57810         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57811         these definitions conditional, so that they may be overridden, too.
57812
57813 2008-08-26  Bruno Haible  <bruno@clisp.org>
57814
57815         Generate INSTALL file variants with prettier quotes.
57816         * doc/Makefile (INSTALL_PRELUDE): New macro.
57817         (INSTALL): Use it.
57818         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57819
57820 2008-08-26  Bruno Haible  <bruno@clisp.org>
57821
57822         Run makeinfo in an English locale.
57823         * doc/Makefile (MAKEINFO): New variable.
57824
57825 2008-08-26  Bruno Haible  <bruno@clisp.org>
57826
57827         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57828         Suggested by Eric Blake.
57829
57830 2008-08-25  Bruno Haible  <bruno@clisp.org>
57831
57832         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57833
57834 2008-08-25  Eric Blake  <ebb9@byu.net>
57835
57836         c-stack: test that stack overflow can be caught
57837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57838         that platform allows handling stack overflow; at least OS/2 EMX
57839         has sigaltstack, but crashes before transferring control to
57840         handler on stack overflow.
57841         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57842         check for HAVE_STACK_OVERFLOW_HANDLING.
57843         Reported by Elbert Pol.
57844
57845 2008-08-25  Bruno Haible  <bruno@clisp.org>
57846
57847         * doc/posix-functions/strftime.texi: Fix description of strftime
57848         module.
57849
57850 2008-08-24  Bruno Haible  <bruno@clisp.org>
57851
57852         * tests/uniwidth/test-uc_width2.c: New file.
57853         * tests/uniwidth/test-uc_width2.sh: New file.
57854         * modules/uniwidth/width-tests (Files): Add the new files.
57855         (TESTS): Add uniwidth/test-uc_width2.sh.
57856         (TESTS_ENVIRONMENT): New variable.
57857         (check_PROGRAMS): Add test-uc_width2.
57858         (test_uc_width2_SOURCES): New variable.
57859
57860         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57861         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57862         not 0x00AB.
57863         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57864
57865 2008-08-22  Eric Blake  <ebb9@byu.net>
57866
57867         test-lock, test-tls: mention why a test is skipped
57868         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57869         skipped.
57870         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57871
57872         count-one-bits: relax license
57873         * modules/count-one-bits (License): Relicense to LGPLv2+.
57874         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57875
57876 2008-08-22  Andreas Schwab  <schwab@suse.de>
57877
57878         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57879         Remove spurious space in assignment.
57880
57881 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57882
57883         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57884         Paul Eggert <eggert@CS.UCLA.EDU>.
57885
57886 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57887
57888         * modules/gettext: Add m4/threadlib.m4.
57889
57890 2008-08-19  Eric Blake  <ebb9@byu.net>
57891
57892         test-c-stack: fix compilation failure on FreeBSD 5.0
57893         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57894         headers before <sys/resource.h>.
57895         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57896         the bug.
57897         Reported by Nelson H. F. Beebe.
57898
57899         strverscmp: migrate from "strverscmp.h" to <string.h>
57900         * modules/string (Makefile.am): Add new hooks.
57901         * modules/strverscmp (Files): Remove strverscmp.h.
57902         (Depends-on): Add string.
57903         (configure.ac): Add indicator.
57904         (Include): Mention new header.
57905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57906         defaults.
57907         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57908         results.
57909         * lib/strverscmp.h: Delete.
57910         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57911         * tests/test-strverscmp.c (includes): Adjust client.
57912         * lib/check-version.c (includes): Likewise.
57913         * NEWS: Document the change.
57914
57915         strverscmp: add unit test
57916         * modules/strverscmp-tests: New file.
57917         * tests/test-strverscmp.c: Likewise.
57918
57919 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57920
57921         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57922         regarding Windows crypto stuff, from Mono.
57923
57924 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57925
57926         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57927         if present, for intel RND.  Return error on failures.
57928
57929 2008-08-18  Ben Pfaff  <blp@gnu.org>
57930
57931         gitlog-to-changelog: give better diagnostic for failed pipe-open
57932         * build-aux/gitlog-to-changelog: Improve error message: suggest
57933         that the version of Git may be too old.
57934
57935 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57936
57937         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57938         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57939
57940 2008-08-18  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57943         pthread_in_use().
57944
57945 2008-08-18  Bruno Haible  <bruno@clisp.org>
57946
57947         * lib/glthread/threadlib.c: Include <pthread.h>.
57948
57949 2008-08-18  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57952         glthread_recursive_lock_* macros.
57953         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57954         Fix syntax error.
57955
57956 2008-08-18  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/glthread/thread.c: Avoid forcing a context switch right after
57959         thread creation.
57960
57961 2008-08-17  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57964         * lib/glthread/thread.h: Provide Win32 specific implementation.
57965         * modules/thread (Files): Add lib/glthread/thread.c.
57966         (Depends-on): Add lock.
57967         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57968
57969 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57970
57971         New module 'yield'.
57972         * modules/yield: New file.
57973         * lib/glthread/yield.h: New file.
57974         * m4/yield.m4: New file.
57975         * MODULES.html.sh (Multithreading): Add yield.
57976
57977 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57978
57979         New module 'thread'.
57980         * modules/thread: New file.
57981         * lib/glthread/thread.h: New file.
57982         * m4/thread.m4: New file.
57983         * MODULES.html.sh (Multithreading): Add thread.
57984
57985 2008-08-17  Bruno Haible  <bruno@clisp.org>
57986
57987         * lib/glthread/lock.h: Include <stdlib.h> always.
57988         * lib/glthread/tls.h: Likewise.
57989         * lib/glthread/cond.h: Likewise.
57990
57991 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57992
57993         New module 'cond'.
57994         * modules/cond: New file.
57995         * lib/glthread/cond.h: New file.
57996         * lib/glthread/cond.c: New file.
57997         * m4/cond.m4: New file.
57998         * MODULES.html.sh (Multithreading): Add cond.
57999
58000 2008-08-16  Eric Blake  <ebb9@byu.net>
58001
58002         c-stack: fix regression on Irix 5.3 from 2008-06-21
58003         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58004         sa_sigaction...
58005         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58006         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58007         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58008         * modules/signal (Makefile.am): Use the value.
58009         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58010         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58011         * doc/posix-headers/signal.texi (signal.h): Document this
58012         portability issue.
58013         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58014         Reported by Tom G. Christensen.
58015
58016 2008-08-17  Bruno Haible  <bruno@clisp.org>
58017
58018         New module 'threadlib'.
58019         * modules/threadlib: New file.
58020         * lib/glthread/threadlib.c: New file, extracted from
58021         lib/glthread/lock.c.
58022         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58023         functions.
58024         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58025         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58026         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58027         macros.
58028         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58029         (gl_DISABLE_THREADS): Remove macro.
58030         * modules/lock (Files): Remove build-aux/config.rpath.
58031         (Depends-on): Remove havelib. Add threadlib.
58032         (configure.ac-early): Remove section.
58033         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58034         * modules/tls (Depends-on): Remove lock. Add threadlib.
58035         (Link): New section, copied from threadlib.
58036         * MODULES.html.sh (Multithreading): Add threadlib.
58037
58038 2008-08-14  Bruno Haible  <bruno@clisp.org>
58039
58040         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58041         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58042         glthread_rwlock_unlock, glthread_rwlock_destroy,
58043         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58044         glthread_recursive_lock_destroy): Define as macros always.
58045         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58046         glthread_lock_lock.
58047         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58048         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58049         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58050         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58051         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58052         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58053         (glthread_recursive_lock_lock_func): Renamed from
58054         glthread_recursive_lock_lock.
58055         (glthread_recursive_lock_unlock_func): Renamed from
58056         glthread_recursive_lock_unlock.
58057         (glthread_recursive_lock_destroy_func): Renamed from
58058         glthread_recursive_lock_destroy.
58059
58060 2008-08-14  Bruno Haible  <bruno@clisp.org>
58061
58062         * lib/glthread/lock.h: Renamed from lib/lock.h.
58063         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58064         * lib/glthread/tls.h: Renamed from lib/tls.h.
58065         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58066         * lib/fstrcmp.c: Update includes.
58067         * lib/strsignal.c: Update includes.
58068         * modules/lock (Files, Makefile.am): Update.
58069         (Include): Change to "glthread/lock.h".
58070         * modules/tls (Files, Makefile.am): Update.
58071         (Include): Change to "glthread/tls.h".
58072         * tests/test-lock.c: Update includes.
58073         * tests/test-tls.c: Update includes.
58074         * NEWS: Mention the renamed header files.
58075
58076 2008-08-11  Jim Meyering  <meyering@redhat.com>
58077
58078         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58079
58080 2008-08-11  Eric Blake  <ebb9@byu.net>
58081
58082         test-c-stack: avoid C99-ism
58083         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58084         before statement.
58085         Reported by Alain Guibert.
58086
58087 2008-08-10  Jim Meyering  <meyering@redhat.com>
58088
58089         ensure that return value of uinttostr et al are not ignored
58090         * lib/inttostr.h (__GNUC_PREREQ): Define.
58091         (__attribute_warn_unused_result__): Define.
58092         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58093
58094 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58095
58096         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58097         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58098
58099 2008-08-07  Jim Meyering  <meyering@redhat.com>
58100
58101         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58102
58103         * modules/mkstemp (License): Relicense under LGPLv2+.
58104         * modules/tempname (License): Likewise.
58105
58106 2008-08-06  Bruno Haible  <bruno@clisp.org>
58107
58108         * lib/poll.c (poll): Further micro-optimization.
58109
58110 2008-08-06  Jim Meyering  <meyering@redhat.com>
58111
58112         inet_pton.c: use locale-independent tolower
58113         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58114         (inet_pton6): Use c_tolower rather than tolower.
58115         * modules/inet_pton (Depends-on): Add c-ctype.
58116
58117 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58118
58119         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58120         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58121
58122 2008-08-06  Jim Meyering  <meyering@redhat.com>
58123
58124         * modules/inet_pton (License): Relicense under LGPLv2+.
58125
58126 2008-08-03  Bruno Haible  <bruno@clisp.org>
58127
58128         Additional non-aborting API for lock and tls.
58129         * lib/lock.h: Include <errno.h>.
58130         (glthread_lock_init): New macro/function.
58131         (gl_lock_init): Define as wrapper around glthread_lock_init.
58132         (glthread_lock_lock): New macro/function.
58133         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58134         (glthread_lock_unlock): New macro/function.
58135         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58136         (glthread_lock_destroy): New macro/function.
58137         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58138         (glthread_rwlock_init): New macro/function.
58139         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58140         (glthread_rwlock_rdlock): New macro/function.
58141         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58142         (glthread_rwlock_wrlock): New macro/function.
58143         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58144         (glthread_rwlock_unlock): New macro/function.
58145         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58146         (glthread_rwlock_destroy): New macro/function.
58147         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58148         (glthread_recursive_lock_init): New macro/function.
58149         (gl_recursive_lock_init): Define as wrapper around
58150         glthread_recursive_lock_init.
58151         (glthread_recursive_lock_lock): New macro/function.
58152         (gl_recursive_lock_lock): Define as wrapper around
58153         glthread_recursive_lock_lock.
58154         (glthread_recursive_lock_unlock): New macro/function.
58155         (gl_recursive_lock_unlock): Define as wrapper around
58156         glthread_recursive_lock_unlock.
58157         (glthread_recursive_lock_destroy): New macro/function.
58158         (gl_recursive_lock_destroy): Define as wrapper around
58159         glthread_recursive_lock_destroy.
58160         (glthread_once): New macro/function.
58161         (gl_once): Define as wrapper around glthread_once.
58162         Update function declarations.
58163         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58164         glthread_rwlock_init. Return error code.
58165         (glthread_rwlock_rdlock_multithreaded): Renamed from
58166         glthread_rwlock_rdlock. Return error code.
58167         (glthread_rwlock_wrlock_multithreaded): Renamed from
58168         glthread_rwlock_wrlock. Return error code.
58169         (glthread_rwlock_unlock_multithreaded): Renamed from
58170         glthread_rwlock_unlock. Return error code.
58171         (glthread_rwlock_destroy_multithreaded): Renamed from
58172         glthread_rwlock_destroy. Return error code.
58173         (glthread_recursive_lock_init_multithreaded): Renamed from
58174         glthread_recursive_lock_init. Return error code.
58175         (glthread_recursive_lock_lock_multithreaded): Renamed from
58176         glthread_recursive_lock_lock. Return error code.
58177         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58178         glthread_recursive_lock_unlock. Return error code.
58179         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58180         glthread_recursive_lock_destroy. Return error code.
58181         (glthread_once_call): Make static.
58182         (glthread_once_multithreaded): Renamed from glthread_once.
58183         * lib/tls.h: Include <errno.h>.
58184         (glthread_tls_key_init): New macro/function.
58185         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58186         (glthread_tls_set): New macro/function.
58187         (gl_tls_set): Define as wrapper around glthread_tls_set.
58188         (glthread_tls_key_destroy): New macro/function.
58189         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58190         Update function declarations.
58191         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58192         glthread_tls_get.
58193         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58194
58195 2008-08-04  Eric Blake  <ebb9@byu.net>
58196
58197         gnumakefile: use space, not TAB, outside of targets
58198         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58199
58200 2008-08-02  Jim Meyering  <meyering@redhat.com>
58201
58202         getdate.y: avoid locale-dependent date parsing failure
58203         In Turkish locales, getdate would fail to recognize keywords
58204         containing a lowercase "i".  The solution is not to rely on
58205         locale-sensitive case-conversion.
58206         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58207         (lookup_word): Use c_toupper in place of toupper.
58208         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58209         Reported by Vefa Bicakci <bicave@superonline.com> in
58210         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58211         * modules/getdate (Depends-on): Add c-ctype.
58212
58213 2008-08-02  Bruno Haible  <bruno@clisp.org>
58214
58215         * gnulib-tool (func_import): When updating or creating a .gitignore
58216         file, prepend each added line with a slash, and ignore leading slashes
58217         from the existing lines.
58218         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58219
58220 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58221
58222         Portability fix for GNU make 3.79.1.
58223         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58224         versions do not understand.
58225
58226 2008-08-01  Bruno Haible  <bruno@clisp.org>
58227
58228         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58229         * tests/test-isnanf.h (zero): New variable.
58230         (main): Avoid literal -0.0f.
58231         * tests/test-isnand.h (zero): New variable.
58232         (main): Avoid literal -0.0.
58233         * tests/test-isnanl.h (zero): New variable.
58234         (main): Avoid literal -0.0L.
58235         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58236         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58237         -0.0, -0.0L.
58238         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58239         (test_signbitd): Avoid literal -0.0.
58240         (test_signbitl): Avoid literal -0.0L.
58241         * tests/test-ceilf1.c (zero): New variable.
58242         (main): Avoid literal -0.0f.
58243         * tests/test-ceill.c (zero): New variable.
58244         (main): Avoid literal -0.0L.
58245         * tests/test-floorf1.c (zero): New variable.
58246         (main): Avoid literal -0.0f.
58247         * tests/test-floorl.c (zero): New variable.
58248         (main): Avoid literal -0.0L.
58249         * tests/test-roundf1.c (zero): New variable.
58250         (main): Avoid literal -0.0f.
58251         * tests/test-round1.c (zero): New variable.
58252         (main): Avoid literal -0.0.
58253         * tests/test-roundl.c (zero): New variable.
58254         (main): Avoid literal -0.0L.
58255         * tests/test-truncf1.c (zero): New variable.
58256         (main): Avoid literal -0.0f.
58257         * tests/test-trunc1.c (zero): New variable.
58258         (main): Avoid literal -0.0.
58259         * tests/test-truncl.c (zero): New variable.
58260         (main): Avoid literal -0.0L.
58261         * tests/test-frexp.c (zero): New variable.
58262         (main): Avoid literal -0.0.
58263         * tests/test-frexpl.c (zero): New variable.
58264         (main): Avoid literal -0.0L.
58265         * tests/test-ldexpl.c (zero): New variable.
58266         (main): Avoid literal -0.0L.
58267         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58268         (zerod, zerol): New variables.
58269         (test_function): Avoid literals -0.0, -0.0L.
58270         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58271         (zerod, zerol): New variables.
58272         (test_function): Avoid literals -0.0, -0.0L.
58273         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58274         (zerod, zerol): New variables.
58275         (test_function): Avoid literals -0.0, -0.0L.
58276         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58277         (zerod, zerol): New variables.
58278         (test_function): Avoid literals -0.0, -0.0L.
58279         * tests/test-strtod.c (zero): New variable.
58280         (main): Avoid literal -0.0.
58281         Reported by Jonathan C. Patschke <jp@centtech.com>.
58282
58283 2008-07-31  Jim Meyering  <meyering@redhat.com>
58284
58285         sha256.h: correct definition of SHA224_DIGEST_SIZE
58286         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58287         Reported by Paulie Pena IV <paulie4@gmail.com>.
58288         Define as 224 / 8, rather than as a literal.
58289         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58290         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58291         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58292
58293 2008-07-31  Bruno Haible  <bruno@clisp.org>
58294
58295         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58296         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58297         Reported by Jonathan Patschke <jp@centtech.com>.
58298
58299 2008-07-31  Bruno Haible  <bruno@clisp.org>
58300
58301         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58302         Reported by Paolo Bonzini <bonzini@gnu.org>.
58303
58304 2008-07-30  Eric Blake  <ebb9@byu.net>
58305
58306         test-strtod: allow compilation without -lm
58307         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58308         Reported by Dennis Clarke <blastwave@gmail.com>.
58309
58310 2008-07-28  Jim Meyering  <meyering@redhat.com>
58311
58312         bootstrap: work also when there are no .po files in po/
58313         * build-aux/bootstrap (update_po_files): Complete the change
58314         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58315
58316 2008-07-27  Jim Meyering  <meyering@redhat.com>
58317
58318         * users.txt: Add zile.
58319
58320 2008-07-26  Ben Pfaff  <blp@gnu.org>
58321
58322         Add missing dependencies on new m4/exponent[fdl].m4 files.
58323         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58324         * modules/isnand-nolibm: Add m4/exponentd.m4.
58325         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58326         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58327         m4/isnan[fdl].m4, because the macros actually used moved.
58328         Reported by Jim Meyering.
58329
58330 2008-07-14  Ben Pfaff  <blp@gnu.org>
58331
58332         Add isinf module.
58333         * lib/isinf.c: New file.
58334         * lib/math.in.h: Define isinf macro if we have decided to replace
58335         it.
58336         * m4/isinf.m4: New file.
58337         * m4/math_h.m4: Initialize and substitute variables for isinf
58338         module.
58339         * modules/isinf: New file.
58340         * modules/isinf-tests: New file.
58341         * modules/math: Add substitutions for new module.
58342         * tests/test-isinf.c: New file.
58343         * doc/posix-functions/isinf.texi: Mention new module.
58344         * MODULES.html.sh: Mention new module.
58345
58346 2008-07-14  Ben Pfaff  <blp@gnu.org>
58347
58348         Factor out some macros for use by additional modules.
58349         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58350         exponentf.m4.
58351         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58352         exponentd.m4.
58353         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58354         file exponentl.m4.
58355         * m4/exponentf.m4: New file.
58356         * m4/exponentd.m4: New file.
58357         * m4/exponentl.m4: New file.
58358         * modules/isnanf: Use new file m4/exponentf.m4.
58359         * modules/isnand: Use new file m4/exponentd.m4.
58360         * modules/isnanl: Use new file m4/exponentl.m4.
58361
58362 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58363
58364         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58365         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58366         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58367         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58368
58369         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58370         readlink on platforms without PATH_MAX.
58371
58372 2008-07-21  Eric Blake  <ebb9@byu.net>
58373
58374         Warn, not fail, on stale version.
58375         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58376
58377         Don't allow installation with stale devel version number.
58378         * top/GNUmakefile (_is-install-target): New macro.
58379         (_curr-ver): Forbid installation with stale version number.
58380
58381 2008-07-20  Bruno Haible  <bruno@clisp.org>
58382
58383         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58384         TESTS_ENVIRONMENT.
58385         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58386
58387 2008-07-20  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/c-stack.h (c_stack_action): Add documentation.
58390         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58391
58392 2008-07-20  Bruno Haible  <bruno@clisp.org>
58393
58394         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58395         * modules/readlink (License): Likewise.
58396
58397 2008-07-17  Eric Blake  <ebb9@byu.net>
58398
58399         * modules/c-stack (Link): Fix typo.
58400
58401         Make c-stack use libsigsegv, when available.
58402         * modules/c-stack (Depends-on): Add libsigsegv.
58403         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58404         needed.
58405         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58406         (segv_handler, overflow_handler, c_stack_action)
58407         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58408         implementation when libsigsegv is available, but only when using
58409         the library is necessary.
58410         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58411         comment, explaining why XSI check fails on Linux.
58412         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58413         * tests/test-c-stack2.sh: Tweak skip message.
58414         * NEWS: Document new link-time requirements.
58415
58416 2008-07-16  Eric Blake  <ebb9@byu.net>
58417
58418         c-stack: Expose false positives when not using libsigsegv.
58419         * modules/c-stack-tests (Files): Expand test.
58420         * tests/test-c-stack.c (main): Add means to conditionally trigger
58421         non-overflow SIGSEGV.
58422         * tests/test-c-stack2.sh: New file.
58423
58424 2008-07-14  Bruno Haible  <bruno@clisp.org>
58425
58426         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58427         Reported by Eric Blake.
58428
58429 2008-07-14  Sam Steingold  <sds@gnu.org>
58430             Bruno Haible  <bruno@clisp.org>
58431
58432         New module libsigsegv.
58433         * modules/libsigsegv: New file.
58434         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58435         modifications.
58436         * MODULES.html.sh (Signal handling): New section.
58437
58438 2008-07-14  Bruno Haible  <bruno@clisp.org>
58439
58440         * modules/unictype/ctype-* (Description): Add the word "function".
58441         Improves the resulting doc in MODULES.html.
58442
58443 2008-07-12  Ben Pfaff  <blp@gnu.org>
58444
58445         Add longlong module.
58446         * modules/longlong: New file.
58447
58448 2008-07-12  Bruno Haible  <bruno@clisp.org>
58449
58450         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58451         to empty.
58452
58453 2008-07-10  Ben Pfaff  <blp@gnu.org>
58454
58455         Add isnan module.
58456         * doc/posix-functions/isnan.texi: Mention new module.
58457         * lib/math.in.h: Define isnan macro if we have decided to replace
58458         it.
58459         * m4/isnan.m4: New file.
58460         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58461         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58462         also.
58463         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58464         redundancy.
58465         * m4/math_h.m4: Initialize and substitute variables for isnan
58466         module.
58467         * modules/isnan: New file.
58468         * modules/isnan-tests: New file.
58469         * modules/math: Add substitutions for new module.
58470         * tests/test-isnan.c: New file.
58471         * MODULES.html.sh: Mention new module.
58472
58473 2008-07-10  Ben Pfaff  <blp@gnu.org>
58474
58475         Add isnanf module.
58476         * lib/isnanf.m4: New file.
58477         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58478         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58479         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58480         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58481         * modules/isnanf: New file.
58482         * modules/isnanf-tests: New file.
58483         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58484         files.
58485         * tests/test-isnanf-nolibm.c: factored most of its contents into
58486         new file tests/test-isnanf.h.
58487         * tests/test-isnanf.h: New file.
58488         * tests/test-isnanf.c: New file.
58489         * MODULES.html.sh: Mention new module.
58490         * doc/glibc-functions/isnanf.texi: Mention new module.
58491
58492 2008-07-10  Ben Pfaff  <blp@gnu.org>
58493
58494         Add isnand module.
58495         * lib/isnand.h: New file.
58496         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58497         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58498         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58499         functionality also.
58500         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58501         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58502         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58503         * modules/isnand: New file.
58504         * modules/isnand-tests: New file.
58505         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58506         files.
58507         * tests/test-isnand-nolibm.c: factored most of its contents into
58508         new file tests/test-isnand.h.
58509         * tests/test-isnand.h: New file.
58510         * tests/test-isnand.c: New file.
58511         * MODULES.html.sh: Mention new module.
58512
58513 2008-07-10  Ben Pfaff  <blp@gnu.org>
58514
58515         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58516         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58517         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58518         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58519         * modules/isnanf-nolibm: Update references to renamed files.
58520         * modules/isnand-nolibm: Likewise.
58521         * modules/isnanf-nolibm-tests: Likewise.
58522         * modules/isnand-nolibm-tests: Likewise.
58523         * lib/frexp.c: Likewise.
58524         * lib/isfinite.c: Likewise.
58525         * lib/signbitd.c: Likewise.
58526         * lib/signbitf.c: Likewise.
58527         * lib/vasnprintf.c: Likewise.
58528         * tests/test-ceilf1.c: Likewise.
58529         * tests/test-ceilf2.c: Likewise.
58530         * tests/test-floorf1.c: Likewise.
58531         * tests/test-floorf2.c: Likewise.
58532         * tests/test-frexp.c: Likewise.
58533         * tests/test-round1.c: Likewise.
58534         * tests/test-round2.c: Likewise.
58535         * tests/test-roundf1.c: Likewise.
58536         * tests/test-strtod.c: Likewise.
58537         * tests/test-trunc1.c: Likewise.
58538         * tests/test-trunc2.c: Likewise.
58539         * tests/test-truncf1.c: Likewise.
58540         * tests/test-truncf2.c: Likewise.
58541         * NEWS: Mention the renamed header files.
58542
58543 2008-07-11  Jim Meyering  <meyering@redhat.com>
58544
58545         vc-list-files: make the last-resort awk code more portable
58546         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58547         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58548         does not support it.
58549
58550 2008-07-10  Eric Blake  <ebb9@byu.net>
58551
58552         Work with tar's bootstrap.
58553         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58554         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58555         an m4 comment.
58556
58557 2008-07-09  Jim Meyering  <meyering@redhat.com>
58558
58559         posix-shell.m4: fix typo that made this test malfunction
58560         * m4/posix-shell.m4: Remove capitalization in variable name.
58561
58562 2008-07-08  Bruno Haible  <bruno@clisp.org>
58563
58564         * m4/onceonly.m4: Update comments.
58565         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58566
58567 2008-07-04  Jim Meyering  <meyering@redhat.com>
58568
58569         * users.txt: Add vc-dwim.
58570         (bison, coreutils): Use the gitweb URL.
58571
58572 2008-07-03  Jim Meyering  <meyering@redhat.com>
58573
58574         * users.txt: Add libffcall.  From Sam Steingold.
58575
58576 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58577
58578         getdate.y: do not ignore TZ with relative day, month or year offset
58579         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58580         relative-date-handling, since otherwise, the latter would clobber the
58581         sole output (an updated Start value) of the tz-handling block.
58582         * tests/test-getdate.c: Tests for the fix
58583
58584 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58585
58586         Recognize 'foo_LIBRARIES += libgnu.a'.
58587         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58588         makefile snippet has already specified an installation location,
58589         also using '+='.
58590
58591 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58592
58593         getdate.y: factor out common actions
58594         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58595         Use them in place of open-coded actions.
58596
58597 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58598
58599         Add self-test for getdate module.
58600         * modules/getdate-tests: New file.
58601         * tests/test-getdate.c: New file.
58602
58603 2008-06-29  Bruno Haible  <bruno@clisp.org>
58604
58605         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58606         .gitignore.
58607         Reported by Sylvain Beucler <beuc@beuc.net>.
58608
58609 2008-06-29  Bruno Haible  <bruno@clisp.org>
58610
58611         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58612         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58613
58614 2008-06-29  Bruno Haible  <bruno@clisp.org>
58615
58616         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58617         EXTRA_DIST.
58618         Reported by Sylvain Beucler <beuc@beuc.net>.
58619
58620 2008-06-26  Jim Meyering  <meyering@redhat.com>
58621
58622         make several modules depend on the "open" module
58623         This provides slightly increased consistency when opening-for-write
58624         the name of a non-directory spelled with a trailing slash.
58625         * modules/chdir-safer: Likewise.
58626         * modules/chown: Likewise.
58627         * modules/clean-temp: Likewise.
58628         * modules/copy-file: Likewise.
58629         * modules/fchdir: Likewise.
58630         * modules/fcntl-safer: Likewise.
58631         * modules/pipe: Likewise.
58632         * modules/utime: Likewise.
58633         Prompted by Eric Blake and Bruno Haible.
58634
58635 2008-06-24  Andreas Schwab  <schwab@suse.de>
58636
58637         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58638         literals can be used as initializers for global variables.
58639
58640 2008-06-23  Eric Blake  <ebb9@byu.net>
58641
58642         Make gnulib-cache.m4 easier to diff.
58643         * gnulib-tool (func_import): Allow newlines when reading cached
58644         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58645
58646 2008-06-23  Bruno Haible  <bruno@clisp.org>
58647
58648         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58649         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58650         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58651         m4/signalblocking.m4.
58652         (gl_PREREQ_SIGACTION): Don't invoke it.
58653         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58654         gl_PREREQ_SIG_HANDLER_H.
58655         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58656         Don't check for sigaction here.
58657
58658 2008-06-23  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58661         (install_handlers): Don't set the SA_RESETHAND flag.
58662
58663 2008-06-23  Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/sigaction.m4: Comment fixes.
58666         * lib/signal.in.h: Likewise.
58667
58668 2008-06-23  Eric Blake  <ebb9@byu.net>
58669
58670         Fix typo.
58671         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58672
58673         Avoid SA_ namespace.
58674         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58675         Reported by Ralf Wildenhues.
58676
58677         Avoid test failure due to SA_RESTORER.
58678         * tests/test-sigaction.c (SA_MASK): New macro.
58679         (main): Avoid failing due to extension flags being set.
58680         Reported by Jim Meyering.
58681
58682         Revert use of sig-handler.h in sigprocmask.c.
58683         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58684         it requires the existence of struct sigaction.
58685         * lib/sigprocmask.c (handler_t): Restore typedef.
58686         (rpl_signal, old_handlers): Use local type.
58687
58688 2008-06-22  Bruno Haible  <bruno@clisp.org>
58689
58690         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58691         conditionally.
58692         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58693
58694 2008-06-22  Bruno Haible  <bruno@clisp.org>
58695
58696         * doc/posix-functions/siginterrupt.texi: Move note.
58697
58698         * lib/signal.in.h (SA_RESTART): New macro.
58699         * lib/sigaction.c: Update comment.
58700
58701         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58702
58703         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58704         (gl_PREREQ_SIGPROCMASK): Invoke it.
58705         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58706
58707         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58708
58709         * lib/sigprocmask.c: Update a comment.
58710
58711 2008-06-21  Eric Blake  <ebb9@byu.net>
58712
58713         Use sigaction module rather than signal().
58714         * modules/c-stack (Depends-on): Add sigaction.
58715         * modules/fatal-signal (Depends-on): Likewise.
58716         * modules/nanosleep (Depends-on): Likewise.
58717         * modules/sigprocmask (Files): Add sig-handler.h.
58718         * modules/sigaction (Files): Likewise.
58719         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58720         Eggert.
58721         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58722         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58723         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58724         (init_fatal_signals): Likewise.
58725         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58726         (siginterrupt): Delete fallback.
58727         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58728         instead.
58729         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58730         siginterrupt.
58731
58732         New module sigaction, for mingw.
58733         * modules/sigaction: New module...
58734         * modules/sigaction-tests: ...and its test.
58735         * m4/sigaction.m4: New file.
58736         * lib/sigaction.c: Likewise.
58737         * tests/test-sigaction.c: Likewise.
58738         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58739         * modules/signal (Makefile.am): Likewise.
58740         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58741         needed.
58742         * doc/posix-headers/signal.texi (signal.h): Mention provided
58743         types.
58744         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58745         that sigaction is preferable.
58746         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58747         module.
58748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58749         sigaction.
58750
58751         Improve robustness of sigprocmask by overriding signal.
58752         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58753         is in use.
58754         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58755         (SIGKILL, SIGSTOP): Provide fallbacks.
58756         (rpl_signal): Implement.
58757         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58758         signal can be called inside handlers.
58759
58760         Fix nanosleep module on mingw.
58761         * modules/nanosleep (Depends-on): Add sys_select.
58762         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58763
58764         Fix licensing of sigprocmask.
58765         * modules/raise (License): Relicense as LGPL.
58766
58767 2008-06-21  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58770         result if it contains question marks.
58771         Reported by Michael Geng <linux@michaelgeng.de>.
58772
58773 2008-06-19  Bruno Haible  <bruno@clisp.org>
58774
58775         Fix CVS-ism.
58776         * doc/gnulib.texi: Include updated-stamp.texi.
58777         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58778         (updated-stamp.texi): New rule.
58779         (gnulib.info): Depend on it.
58780         * doc/.gitignore: Add updated-stamp.texi.
58781         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58782
58783 2008-06-19  Bruno Haible  <bruno@clisp.org>
58784
58785         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58786         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58787
58788 2008-06-19  Eric Blake  <ebb9@byu.net>
58789
58790         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58791         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58792         Reported by Stepan Kasal.
58793
58794 2008-06-18  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58797         Reported by Eric Blake.
58798
58799 2008-06-18  Eric Blake  <ebb9@byu.net>
58800
58801         Work around cygwin 1.5.25 strsignal bug.
58802         * tests/test-strsignal.c: Allow for const char *.
58803         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58804
58805 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58806
58807         * users.txt: Update URL to article and add author/date
58808         information.
58809
58810 2008-06-17  Bruno Haible  <bruno@clisp.org>
58811
58812         New macro gl_DISABLE_THREADS.
58813         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58814         if the user did not pass --enable-threads or --disable-threads option.
58815         (gl_DISABLE_THREADS): New macro.
58816         Reported by Eric Blake <ebb9@byu.net>.
58817
58818 2008-06-17  Bruno Haible  <bruno@clisp.org>
58819
58820         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58821         when the macro ignores it.
58822         Based on a patch by Eric Blake <ebb9@byu.net>.
58823
58824 2008-06-17  Bruno Haible  <bruno@clisp.org>
58825
58826         * modules/tls (License): Change to LGPLv2+.
58827         Reported by Eric Blake.
58828
58829 2008-06-17  Eric Blake  <ebb9@byu.net>
58830
58831         Simplify c-stack prerequisites.
58832         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58834         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58835         check.
58836         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58837         <sys/resource.h>.
58838
58839         Move c-stack test into testsuite.
58840         * modules/c-stack-tests: New file.
58841         * lib/c-stack.c [DEBUG]: Move test program...
58842         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58843         fail test if sigaltstack is lacking.
58844         * tests/test-c-stack.sh: New driver file.
58845
58846 2008-06-16  Eric Blake  <ebb9@byu.net>
58847
58848         Use raise module consistently.
58849         * modules/fatal-signal (Depends-on): Add raise.
58850         * modules/sigprocmask (Depends-on): Likewise.
58851         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58852         * lib/sigprocmask.c (sigprocmask): Likewise.
58853         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58854         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58855
58856         Fix compliance bug in sigpending.
58857         * lib/sigprocmask.c (sigpending): Return pending array via
58858         parameter, not return value.
58859
58860 2008-06-14  Eric Blake  <ebb9@byu.net>
58861
58862         Improve obstack-printf test code.
58863         * tests/test-obstack-printf.c (test_function): Fix comment, and
58864         simplify usage of obstack_* in macros.  Add a test for coverage.
58865         Reported by Bruno Haible.
58866
58867 2008-06-14  Bruno Haible  <bruno@clisp.org>
58868
58869         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58870         array size as a constant, not as a const variable.
58871         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58872         AC_USE_SYSTEM_EXTENSIONS.
58873         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58874         Test whether the obstack_printf function actually exists.
58875         * modules/obstack-printf (Depends-on): Add extensions.
58876         (Include): Remove obstack.h.
58877         * modules/obstack-printf-posix (Depends-on): Add extensions.
58878         (Include): Remove obstack.h.
58879
58880 2008-06-13  Eric Blake  <ebb9@byu.net>
58881
58882         Add obstack-printf and obstack-printf-posix modules.
58883         * modules/obstack-printf: New file.
58884         * modules/obstack-printf-posix: Likewise.
58885         * MODULES.html.sh (Misc): Mention them.
58886         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58887         Likewise.
58888         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58889         Likewise.
58890         * modules/stdio (Makefile.am): Accomodate new modules.
58891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58892         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58893         Declare.
58894         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58895         functions.
58896         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58897         (gl_REPLACE_OBSTACK_PRINTF): New macros
58898         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58899         * tests/test-obstack-printf.c: New file.
58900         * modules/obstack-printf-tests: Likewise.
58901         * modules/obstack-printf-posix-tests: Likewise.
58902
58903 2008-06-11  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58906         * lib/open.c: Include errno.h.
58907         (open): Fail when attempting to write to a file that has a trailing
58908         slash.
58909         * tests/test-open.c (main): Test against trailing slash bug.
58910         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58911
58912 2008-06-10  Bruno Haible  <bruno@clisp.org>
58913
58914         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58915         for $? to work inside the trap command, with various /bin/sh-s.
58916         * tests/test-vc-list-files-cvs.sh: Likewise.
58917
58918 2008-06-10  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/acl-internal.h: Don't include gettext.h here.
58921         * lib/set-mode-acl.c: Include gettext.h here.
58922         * lib/copy-acl.c: Likewise.
58923
58924 2008-06-10  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58927         * lib/wait-process.c (wait_subprocess): Likewise.
58928         * lib/execute.h (execute): Add termsigp argument.
58929         * lib/execute.c (execute): Likewise.
58930         * lib/csharpcomp.c (compile_csharp_using_pnet,
58931         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58932         * lib/csharpexec.c (execute_csharp_using_pnet,
58933         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58934         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58935         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58936         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58937         is_jikes_present): Update.
58938         * lib/javaexec.c (execute_java_class): Update.
58939         * lib/javaversion.c (execute_and_read_line): Update.
58940         * NEWS: Document the changes.
58941         Reported by Eric Blake.
58942
58943 2008-06-10  Eric Blake  <ebb9@byu.net>
58944
58945         Add missing include.
58946         * tests/test-strstr.c (includes): Add <signal.h>.
58947         * tests/test-strcasestr.c (includes): Likewise.
58948         * tests/test-memmem.c (includes): Likewise.
58949
58950 2008-06-10  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/wait-process.c (wait_subprocess): Add an assertion.
58953
58954 2008-06-10  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58957
58958 2008-06-10  Bruno Haible  <bruno@clisp.org>
58959
58960         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58961         using alarm().
58962         * tests/test-strcasestr.c (main): Likewise.
58963         * tests/test-strstr.c (main): Likewise.
58964
58965 2008-06-09  Bruno Haible  <bruno@clisp.org>
58966
58967         Work around the Solaris 10 ACE ACLs ABI change.
58968         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58969         declare if ACL_NO_TRIVIAL is present.
58970         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58971         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58972         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58973         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58974         define if ACL_NO_TRIVIAL is present.
58975         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58976         and use the current ABI.
58977         (file_has_acl): Use same #if condition as elsewhere.
58978         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58979         in use, and use the current ABI.
58980         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58981         Reported by Jim Meyering.
58982
58983 2008-06-09  Eric Blake  <ebb9@byu.net>
58984
58985         Work around environments that (stupidly) ignore SIGALRM.
58986         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58987         before using alarm().
58988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58990         Reported by Ian Beckwith <ianb@erislabs.net>.
58991
58992         Produce autobuild blurb earlier in log.
58993         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58994
58995 2008-06-09  Jim Meyering  <meyering@redhat.com>
58996         and Ondřej Vašík  <ovasik@redhat.com>
58997
58998         utimens.c: correct kernel bug work-around
58999         Ondřej Vašík found that the invalid return value of 280 indicates
59000         failure, not success, and the kernel bug we're trying to work
59001         around affects not just the utimensat call, but also the fallback
59002         futimens call.
59003         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59004         not success.
59005         [HAVE_FUTIMENS]: Use the same work-around, here.
59006
59007 2008-06-09  Jim Meyering  <meyering@redhat.com>
59008
59009         add more guards around definition of ACE_-related code
59010         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59011         ALLOW and ACE_OWNER are also defined.
59012
59013 2008-06-08  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/acl-internal.h: Add me as co-author.
59016         * lib/file-has-acl.c: Likewise.
59017         * lib/set-mode-acl.c: Likewise.
59018         * lib/copy-acl.c: Likewise.
59019
59020 2008-06-08  Bruno Haible  <bruno@clisp.org>
59021
59022         Add support for AIX ACLs.
59023         * lib/acl-internal.h (acl_nontrivial): New declaration.
59024         * lib/file-has-acl.c (acl_nontrivial): New function.
59025         (file_has_acl): Add implementation using AIX 4 ACL API.
59026         * lib/set-mode-acl.c (qset_acl): Likewise.
59027         * lib/copy-acl.c (qcopy_acl): Likewise.
59028
59029 2008-06-08  Bruno Haible  <bruno@clisp.org>
59030
59031         Add support for HP-UX ACLs.
59032         * lib/acl-internal.h (acl_nontrivial): New declaration.
59033         * lib/file-has-acl.c (acl_nontrivial): New function.
59034         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59035         * lib/set-mode-acl.c (qset_acl): Likewise.
59036         * lib/copy-acl.c (qcopy_acl): Likewise.
59037
59038 2008-06-08  Bruno Haible  <bruno@clisp.org>
59039
59040         Add support for Cygwin ACLs.
59041         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59042         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59043         the chmod_or_fchmod call.
59044         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59045
59046 2008-06-08  Bruno Haible  <bruno@clisp.org>
59047
59048         Fix bug with setuid modes in Solaris 10+ code.
59049         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59050         succeeded, when the mode contains some special bits.
59051
59052 2008-06-08  Bruno Haible  <bruno@clisp.org>
59053
59054         Add support for Solaris 7..10 ACLs.
59055         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59056         declarations.
59057         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59058         functions.
59059         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59060         * lib/set-mode-acl.c (qset_acl): Likewise.
59061         * lib/copy-acl.c (qcopy_acl): Likewise.
59062
59063 2008-06-08  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59066         declaration.
59067         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59068         (acl_access_nontrivial): Remove MacOS X case.
59069         (file_has_acl): Use acl_extended_nontrivial.
59070         * lib/copy-acl.c (qcopy_acl): Likewise.
59071
59072 2008-06-08  Bruno Haible  <bruno@clisp.org>
59073
59074         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59075
59076 2008-06-08  Jim Meyering  <meyering@redhat.com>
59077
59078         * modules/acl (Maintainer): Add Bruno Haible.
59079
59080 2008-06-07  Bruno Haible  <bruno@clisp.org>
59081
59082         Improve support for Tru64 ACLs.
59083         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59084         ACL on OSF/1.
59085
59086 2008-06-07  Bruno Haible  <bruno@clisp.org>
59087
59088         Add support for MacOS X ACLs.
59089         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59090         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59091         * lib/set-mode-acl.c (qset_acl): Likewise.
59092         * lib/copy-acl.c (qcopy_acl): Likewise.
59093
59094 2008-06-07  Bruno Haible  <bruno@clisp.org>
59095
59096         Fix memory leak introduced on 2008-05-22.
59097         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59098         use.
59099
59100 2008-06-07  Bruno Haible  <bruno@clisp.org>
59101
59102         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59103         to construct an empty ACL.
59104
59105 2008-06-07  Bruno Haible  <bruno@clisp.org>
59106
59107         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59108         precisely.
59109         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59110
59111 2008-06-07  Bruno Haible  <bruno@clisp.org>
59112
59113         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59114         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59115
59116 2008-06-07  Bruno Haible  <bruno@clisp.org>
59117
59118         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59119         regardless of POSIX.
59120         * doc/posix-functions/_longjmp.texi: Likewise.
59121         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59122         SystemV platform in this case.
59123
59124 2008-06-06  Eric Blake  <ebb9@byu.net>
59125
59126         Document abort() bugs.
59127         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59128
59129         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59130         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59131         sigsetjmp.
59132         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59133         siglongjmp, but only as a macro.
59134         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59135         is obsolete.
59136         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59137
59138         Tweak documentation to cover cygwin argz bugs.
59139         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59140         argz bug fix; no code change needed since no cygwin releases
59141         occurred between the last fix and the bug being tested.
59142         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59143         module and recently fixed cygwin bugs.
59144         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59145         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59146         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59147         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59148         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59149         Likewise.
59150         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59151         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59152         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59153         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59154         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59155         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59156         Likewise.
59157
59158         Avoid gcc warning on cygwin.
59159         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59160         !ACL_NO_TRIVIAL]: Avoid unused variable.
59161
59162 2008-06-05  Eric Blake  <ebb9@byu.net>
59163
59164         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59165         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59166         git-version-gen fails to come up with a version.
59167         Reported by Simon Josefsson.
59168
59169 2008-06-05  Jim Meyering  <meyering@redhat.com>
59170             Paul Eggert  <eggert@cs.ucla.edu>
59171
59172         utimens.c: work around a probable Linux kernel bug
59173         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59174         appears to be a kernel bug that causes utimensat to return 280
59175         instead of 0, indicating success.
59176
59177 2008-06-04  Bruno Haible  <bruno@clisp.org>
59178
59179         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59180         2008-06-01 commit.
59181
59182 2008-06-04  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59185         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59186         (file_has_acl): Use it. Save errno afterwards.
59187         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59188
59189 2008-06-03  Bruno Haible  <bruno@clisp.org>
59190
59191         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59192         draft code. Simplify #ifs.
59193         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59194         Put Solaris code after POSIX-draft code. Fix comments regarding
59195         Solaris 10, HP-UX. Mention Cygwin.
59196         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59197
59198 2008-06-03  Eric Blake  <ebb9@byu.net>
59199
59200         Provide fallback for older kernels.
59201         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59202         Provide runtime fallback if kernel lacks support.
59203         Reported by Mike Frysinger.
59204
59205 2008-06-02  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59208         it exists.
59209
59210 2008-06-02  Bruno Haible  <bruno@clisp.org>
59211
59212         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59213         * lib/copy-acl.c (qcopy_acl): Update comment.
59214
59215 2008-06-02  Bruno Haible  <bruno@clisp.org>
59216
59217         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59218         like ACL APIs.
59219
59220 2008-06-02  Bruno Haible  <bruno@clisp.org>
59221
59222         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59223         * tests/test-set-mode-acl.sh: Likewise.
59224         * tests/test-copy-acl.sh: Likewise.
59225         * tests/test-copy-file.sh: Likewise.
59226
59227 2008-06-02  Bruno Haible  <bruno@clisp.org>
59228
59229         * tests/test-file-has-acl.sh: Remove unused code.
59230
59231 2008-06-01  Bruno Haible  <bruno@clisp.org>
59232
59233         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59234         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59235         messages.
59236         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59237
59238 2008-06-01  Bruno Haible  <bruno@clisp.org>
59239
59240         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59241         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59242         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59243         APIs.
59244         * modules/acl-tests (configure.ac): Remove tests now contained in
59245         m4/acl.m4.
59246
59247 2008-06-02  Jim Meyering  <meyering@redhat.com>
59248
59249         announce-gen: use a better key-server host name
59250         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59251         it may be more consistently reliable.  Suggested by Werner Koch
59252         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59253
59254 2008-06-01  Bruno Haible  <bruno@clisp.org>
59255
59256         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59257         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59258
59259 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59260
59261         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59262
59263 2008-06-01  Bruno Haible  <bruno@clisp.org>
59264
59265         New ACL tests.
59266         * tests/test-file-has-acl.sh: New file.
59267         * tests/test-file-has-acl.c: New file.
59268         * tests/test-set-mode-acl.sh: New file.
59269         * tests/test-set-mode-acl.c: New file.
59270         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59271         * tests/test-copy-acl.c: New file.
59272         * modules/acl-tests: New file, based on modules/copy-file-tests.
59273         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59274         (Depends-on): Add acl-tests.
59275         (configure.ac): Remove checks.
59276         (Makefile.am): Don't create test-sameacls program here any more.
59277
59278 2008-06-01  Bruno Haible  <bruno@clisp.org>
59279
59280         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59281         * tests/test-sameacls.c: Include progname.h.
59282         (main): Invoke set_program_name. Portability fixes for MacOS X,
59283         Solaris, HP-UX.
59284
59285 2008-06-01  Bruno Haible  <bruno@clisp.org>
59286
59287         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59288         function.
59289         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59290
59291 2008-06-01  Bruno Haible  <bruno@clisp.org>
59292
59293         * modules/rpmatch (Depends-on): Add strdup.
59294
59295 2008-06-01  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/pipe.c: Include unistd-safer.h.
59298         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59299         * modules/pipe (Depends-on): Add unistd-safer.
59300
59301 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59302
59303         * modules/autobuild (configure.ac): Call AB_INIT.
59304
59305 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59306
59307         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59308         Suggested by Bruno Haible <bruno@clisp.org>.
59309
59310 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59311
59312         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59313         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59314         <bruno@clisp.org>.
59315
59316 2008-05-29  Eric Blake  <ebb9@byu.net>
59317
59318         Prefer new POSIX 200x interfaces over futimesat.
59319         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59320         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59321         when available.
59322         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59323
59324 2008-05-28  Bruno Haible  <bruno@clisp.org>
59325
59326         * modules/stpcpy (License): Change to LGPLv2+.
59327         Requested by David Lutterkort <dlutter@redhat.com>.
59328
59329 2008-05-27  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59332         current mingw.
59333         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59334
59335 2008-05-27  Bruno Haible  <bruno@clisp.org>
59336
59337         * modules/iconv_open (Link): New section, from module 'iconv'.
59338         * modules/striconv (Link): Likewise.
59339         * modules/striconveh (Link): Likewise.
59340         * modules/xstriconv (Link): Likewise.
59341         * modules/unicodeio (Link): Likewise.
59342         * modules/propername (Link): Likewise.
59343         Reported by Jim Meyering.
59344
59345 2008-05-26  Jim Meyering  <meyering@redhat.com>
59346
59347         sha256: do not artificially restrict buffer length to be < 2^32
59348         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59349         uint32_t to size_t.
59350         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59351         to match.
59352
59353         avoid unaligned access errors, e.g., on sparc
59354         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59355         direct access through a possibly-unaligned uint64* pointer.
59356         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59357         direct access through a possibly-unaligned uint32* pointer.
59358         Prompted by this patch from Tom "spot" Callaway:
59359         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59360
59361         sha512.c: fix typo in comment
59362         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59363
59364 2008-05-25  Bruno Haible  <bruno@clisp.org>
59365
59366         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59367         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59368         (Makefile.am): Update lib_SOURCES.
59369
59370 2008-05-25  Bruno Haible  <bruno@clisp.org>
59371
59372         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59373
59374 2008-05-25  Jim Meyering  <meyering@redhat.com>
59375
59376         useless-if-before-free: freed expr may have white-space differences
59377         * build-aux/useless-if-before-free: Recognize cases in which the
59378         freed expression differs from the tested one in embedded white
59379         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59380         $1 was used, so we can't make any regexp shy.  Improved tests now
59381         detect this.
59382
59383         useless-if-before-free: accept white space in the expression.
59384         * build-aux/useless-if-before-free: For now, any white space
59385         in the expression must be identical in the free argument.
59386
59387         useless-if-before-free: efficiency tweak
59388         * build-aux/useless-if-before-free: Make the expression-matching
59389         regexp "shy".
59390         Make the *outer* regexp shy, not the expr-matching one.
59391
59392         update code-in-comment to accept cast of free arg
59393         * build-aux/useless-if-before-free: Update regexp.
59394
59395 2008-05-25  Bruno Haible  <bruno@clisp.org>
59396
59397         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59398         * modules/copy-file-tests (Files, Makefile.am): Update.
59399         * tests/test-copy-file.c (func_test_copy): Update.
59400
59401 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59402
59403         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59404
59405 2008-05-23  Bruno Haible  <bruno@clisp.org>
59406
59407         Improve support for ACLs on OSF/1.
59408         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59409         Remove fallback for unknown flavors of ACLs.
59410
59411 2008-05-22  Bruno Haible  <bruno@clisp.org>
59412
59413         Add support for ACLs on OSF/1.
59414         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59415         replacements.
59416         (acl_free_text): New macro fallback.
59417         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59418         acl_free.
59419         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59420         acl_free_text function. Require AC_C_INLINE.
59421
59422 2008-05-22  Bruno Haible  <bruno@clisp.org>
59423
59424         Make copy_acl work on MacOS X 10.5.
59425         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59426         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59427         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59428         If MODE_INSIDE_ACL, don't assume that every system has the same text
59429         representation for ACLs as FreeBSD.
59430         * lib/copy-acl.c (copy_acl): Add support for platforms with
59431         !MODE_INSIDE_ACL.
59432         * lib/file-has-acl.c (file_has_acl): Likewise.
59433         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59434         FreeBSD, MacOS X, or IRIX, respectively.
59435
59436 2008-05-22  Bruno Haible  <bruno@clisp.org>
59437
59438         * lib/acl.h: Don't include <sys/acl.h>.
59439         (GETACLCNT): Move fallback to lib/acl-internal.h.
59440         * lib/acl-internal.h: Include <sys/acl.h> here.
59441         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59442
59443 2008-05-22  Bruno Haible  <bruno@clisp.org>
59444
59445         Split off copy_acl function to separate file.
59446         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59447         * lib/acl.c (copy_acl): Moved function to separate file.
59448         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59449         * modules/acl (Files): Add lib/copy-acl.c.
59450         (Makefiles.am): Augment lib_SOURCES.
59451
59452 2008-05-22  Bruno Haible  <bruno@clisp.org>
59453
59454         * modules/copy-file-tests: New file.
59455         * tests/test-copy-file.sh: New file.
59456         * tests/test-copy-file.c: New file.
59457         * tests/test-copy-file-sameacls.c: New file.
59458
59459 2008-05-22  Eric Blake  <ebb9@byu.net>
59460
59461         Avoid gcc warning.
59462         * tests/test-memcmp.c (main): Pass NULL indirectly.
59463
59464 2008-05-21  Bruno Haible  <bruno@clisp.org>
59465
59466         Add reference doc about ACLs.
59467         * doc/acl-resources.txt: New file.
59468         * doc/acl-cygwin.txt: New file.
59469
59470 2008-05-21  Bruno Haible  <bruno@clisp.org>
59471
59472         Avoid one more warning from gcc.
59473         * lib/vasnprintf.c (IF_LINT): Update comments.
59474         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59475
59476 2008-05-21  Jim Meyering  <meyering@redhat.com>
59477
59478         avoid a warning from gcc
59479         * lib/vasnprintf.c (IF_LINT): Define.
59480         (scale10_round_decimal_long_double):
59481         Use it to avoid a "may be used uninitialized" warning.
59482         (scale10_round_decimal_double): Likewise.
59483
59484 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59485
59486         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59487         declared.
59488
59489 2008-05-20  Bruno Haible  <bruno@clisp.org>
59490
59491         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59492         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59493
59494 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59495
59496         * modules/memcmp-tests: New file.
59497         * tests/test-memcmp.c: New file.
59498
59499 2008-05-19  Bruno Haible  <bruno@clisp.org>
59500
59501         * modules/propername (Notice, configure.ac): Put quoted "..." into
59502         --keyword option.
59503         * lib/propername.h: Update comments accordingly.
59504         Reported by Eric Blake.
59505
59506 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59507
59508         * modules/getpass-gnu (Depends-on): Add fseeko.
59509
59510 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59511
59512         * modules/base64-tests: New file.
59513
59514 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59515
59516         * lib/base64.c (base64_decode_ctx): If a decode context structure
59517         was passed in use it to ignore newlines.  If a context structure
59518         was _not_ passed in, continue to treat newlines as garbage (this
59519         is the historical behavior).  Formerly base64_decode.
59520         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59521         takes a decode context structure.
59522         * lib/base64.h (base64_decode): Macro for four-argument calls.
59523         (base64_decode_alloc): Likewise.
59524         * lib/base64.c (base64_decode_ctx): If a decode context structure
59525         was passed in use it to ignore newlines.  If a context structure
59526         was _not_ passed in, continue to treat newlines as garbage (this
59527         is the historical behavior).  Formerly base64_decode.
59528         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59529         takes a decode context structure.
59530         * lib/base64.h (base64_decode): Macro for four-argument calls.
59531         (base64_decode_alloc): Likewise.
59532
59533 2008-05-19  Jim Meyering  <meyering@redhat.com>
59534
59535         avoid a warning from gcc
59536         * lib/trim.c (IF_LINT): Define.
59537         (trim2): Use it to avoid a "may be used uninitialized" warning.
59538
59539         Fix doc typo.
59540         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59541
59542 2008-05-19  Bruno Haible  <bruno@clisp.org>
59543
59544         * doc/glibc-functions/getpass.texi: Document limits of other
59545         implementations.
59546
59547 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59548             Bruno Haible <bruno@clisp.org>
59549
59550         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59551
59552 2008-05-18  Bruno Haible  <bruno@clisp.org>
59553
59554         * modules/propername: New file, from GNU gettext.
59555         * lib/propername.h: New file, from GNU gettext.
59556         * lib/propername.c: New file, from GNU gettext.
59557         * MODULES.html.sh (Internationalization functions): Add propername.
59558
59559 2008-05-16  Jim Meyering  <meyering@redhat.com>
59560             Bruno Haible  <bruno@clisp.org>
59561
59562         Avoid some warnings from "gcc -Wshadow".
59563         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59564
59565 2008-05-15  Eric Blake  <ebb9@byu.net>
59566
59567         Extend previous patch to cygwin 1.7.0.
59568         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59569         fast implementation in cygwin >= 1.7.0.
59570         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59572
59573 2008-05-15  Bruno Haible  <bruno@clisp.org>
59574
59575         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59576         implementation in glibc >= 2.9.
59577         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59579
59580 2008-05-15  Bruno Haible  <bruno@clisp.org>
59581
59582         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59583         (Unicode string functions): Add unilbrk/*.
59584         Reported by Karl Berry.
59585
59586 2008-05-15  Eric Blake  <ebb9@byu.net>
59587
59588         Fix violation of <stdbool.h> replacement in regex.
59589         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59590         * lib/regexec.c (re_search_internal): Likewise.
59591         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59592
59593 2008-05-15  Jim Meyering  <meyering@redhat.com>
59594
59595         avoid distracting test output when git or cvs is not found
59596         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59597         * tests/test-vc-list-files-git.sh: Likewise.
59598
59599 2008-05-15  Eric Blake  <ebb9@byu.net>
59600
59601         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59602         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59603         glibc version.
59604         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59605         * doc/posix-functions/strstr.texi (strstr): Likewise.
59606         * lib/str-two-way.h (MAX): Sychronize with glibc.
59607
59608 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59609
59610         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59611         opr.ctx_type.
59612         (calc_first): Initialize constraint field.
59613         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59614         Fix grammar.
59615         (duplicate_node): Merge constraint field for all node types.
59616         (calc_eclosure_iter): Look at constraint field for all node types.
59617         * lib/regex_internal.c (create_cd_newstate): Don't look at
59618         opr.ctx_type.
59619
59620 2008-05-14  Bruno Haible  <bruno@clisp.org>
59621
59622         Help GCC to do better code generation.
59623         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59624         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59625         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59626         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59627         Declare with attribute 'malloc' if supported.
59628
59629 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59630
59631         use "echo STR|wc -c" rather than unportable "expr length STR"
59632         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59633         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59634
59635 2008-05-14  Jim Meyering  <meyering@redhat.com>
59636
59637         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59638         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59639         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59640         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59641         via Collin Lasse.
59642
59643 2008-05-14  Eric Blake  <ebb9@byu.net>
59644
59645         Avoid quadratic growth in gl_LIBSOURCES.
59646         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59647         Suggested by Bruno Haible.
59648
59649         Test xmemdup0.
59650         * modules/xmemdup0-tests: New file.
59651         * tests/test-xmemdup0.c: Likewise.
59652
59653 2008-05-13  Eric Blake  <ebb9@byu.net>
59654
59655         Split xmemdup0 into its own module.
59656         * modules/xmemdup0: New file.
59657         * lib/xmemdup0.h: Likewise.
59658         * lib/xmemdup0.c: Likewise.
59659         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59660         * lib/xalloc.h (xmemdup0): Remove.
59661         * lib/xmalloc.c (xmemdup0): Likewise.
59662
59663 2008-05-13  Eric Blake  <ebb9@byu.net>
59664             Bruno Haible  <bruno@clisp.org>
59665
59666         Reduce number of forks required during autoconf.
59667         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59668         and gl_LIBSOURCES_DIR.
59669         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59670         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59671         m4_syscmd per file.
59672         <m4_foreach_w>: Move...
59673         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59674
59675 2008-05-13  Eric Blake  <ebb9@byu.net>
59676
59677         * gnulib-tool: Fix various comment typos.
59678
59679 2008-05-12  Bruno Haible  <bruno@clisp.org>
59680
59681         Tailor the linebreaking algorithm.
59682         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59683
59684 2008-05-12  Bruno Haible  <bruno@clisp.org>
59685
59686         Update to Unicode 5.0.0.
59687         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59688         LBP_JV, LBP_JT. Redistribute values.
59689         (unilbrk_table): Change size.
59690         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59691         Unicode TR#14 rev. 22.
59692         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59693         LBP_JV, LBP_JT. Redistribute values.
59694         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59695         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59696         Update.
59697         * lib/unilbrk/lbrkprop1.h: Regenerated.
59698         * lib/unilbrk/lbrkprop2.h: Regenerated.
59699         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59700         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59701         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59702         Likewise.
59703         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59704         Likewise.
59705         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59706         result.
59707         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59708         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59709         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59710         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59711         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59712         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59713
59714 2008-05-11  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59717
59718 2008-05-11  Bruno Haible  <bruno@clisp.org>
59719
59720         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59721         * modules/unilbrk/gen-lbrk: New file.
59722
59723 2008-05-11  Bruno Haible  <bruno@clisp.org>
59724
59725         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59726         * m4/sha512.m4 (gl_SHA512): Likewise.
59727
59728 2008-05-11  Jim Meyering  <meyering@redhat.com>
59729
59730         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59731         * modules/crypto/sha256: New file.
59732         * modules/crypto/sha512: Likewise.
59733         * lib/sha256.c: Likewise.
59734         * lib/sha256.h: Likewise.
59735         * lib/sha512.c: Likewise.
59736         * lib/sha512.h: Likewise.
59737         * lib/u64.h: Likewise.
59738         * m4/sha256.m4: Likewise.
59739         * m4/sha512.m4: Likewise.
59740         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59741
59742 2008-05-10  Bruno Haible  <bruno@clisp.org>
59743
59744         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59745         (Input/Output <stdio.h>): Add xprintf.
59746         (Signal handling <signal.h>): Add strsignal.
59747         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59748         (Core language properties): Add func.
59749         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59750         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59751         strings.
59752         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59753         (Input/output): New section.
59754         (File system functions): Add openat-die, stat-macros.
59755         (Networking functions): Add sockets.
59756         (Unicode string functions): Add unictype/*.
59757         (Support for building libraries and executables): Add gperf.
59758         (Support for building documentation): Add agpl-3.0.
59759         (Misc): Add nocrash.
59760
59761 2008-05-10  Bruno Haible  <bruno@clisp.org>
59762
59763         * modules/unictype/gen-ctype: New file.
59764
59765 2008-05-10  Jim Meyering  <meyering@redhat.com>
59766
59767         Make chdir-safer.c more efficient on a system with no symlinks.
59768         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59769         also if ELOOP is zero.  Suggested by Bruno Haible.
59770
59771         Make chdir-safer.c slightly safer.
59772         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59773         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59774
59775         Avoid compile failure on systems without ELOOP (like mingw).
59776         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59777         Reported by Bruno Haible.
59778
59779 2008-05-10  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59782         (is_utf8_encoding): Use a case-insensitive comparison.
59783         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59784         streq.
59785
59786 2008-05-10  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59789         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59790         * lib/unilbrk/ulc-common.h (iconv_string_length,
59791         iconv_string_keeping_offsets): Remove declarations.
59792         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59793         Don't include <iconv.h>, streq.h, xsize.h.
59794         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59795         conversion.
59796         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59797         <iconv.h>, streq.h, xsize.h.
59798         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59799         conversion.
59800         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59801         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59802         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59803         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59804
59805 2008-05-10  Bruno Haible  <bruno@clisp.org>
59806
59807         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59808         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59809
59810         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59811         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59812
59813         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59814         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59815
59816         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59817         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59818
59819         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59820         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59821
59822         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59823         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59824
59825         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59826         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59827
59828         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59829         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59830
59831 2008-05-10  Bruno Haible  <bruno@clisp.org>
59832
59833         Split up 'linebreak' module.
59834         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59835         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59836         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59837         modifications.
59838         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59839         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59840         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59841         lib/linebreak.c.
59842         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59843         lib/linebreak.c.
59844         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59845         lib/linebreak.c.
59846         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59847         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59848         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59849         lib/linebreak.c.
59850         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59851         lib/linebreak.c.
59852         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59853         lib/linebreak.c.
59854         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59855         lib/linebreak.c.
59856         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59857         lib/linebreak.c.
59858         * modules/unilbrk/base: New file.
59859         * modules/unilbrk/tables: New file.
59860         * modules/unilbrk/u8-possible-linebreaks: New file.
59861         * modules/unilbrk/u16-possible-linebreaks: New file.
59862         * modules/unilbrk/u32-possible-linebreaks: New file.
59863         * modules/unilbrk/ulc-common: New file.
59864         * modules/unilbrk/ulc-possible-linebreaks: New file.
59865         * modules/unilbrk/u8-width-linebreaks: New file.
59866         * modules/unilbrk/u16-width-linebreaks: New file.
59867         * modules/unilbrk/u32-width-linebreaks: New file.
59868         * modules/unilbrk/ulc-width-linebreaks: New file.
59869         * lib/linebreak.h: Remove file.
59870         * lib/linebreak.c: Remove file.
59871         * m4/linebreak.m4: Remove file.
59872         * modules/linebreak: Remove file.
59873         * NEWS: Mention the changes.
59874
59875 2008-05-09  Eric Blake  <ebb9@byu.net>
59876
59877         Add xmemdup0.
59878         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59879         implementation.
59880         * lib/xmalloc.c (xmemdup0): New C implementation.
59881
59882 2008-05-08  Bruno Haible  <bruno@clisp.org>
59883
59884         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59885
59886 2008-05-07  Eric Blake  <ebb9@byu.net>
59887
59888         Support cross-compilation of <wctype.h>.
59889         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59890         AC_CACHE_CHECK.
59891
59892 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59893
59894         * build-aux/vc-list-files: Add support for bzr.
59895
59896 2008-05-03  Jim Meyering  <meyering@redhat.com>
59897
59898         avoid failed assertion with tight malloc
59899         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59900
59901 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59902
59903         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59904         are needed from arpa/inet.h.
59905         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59906         Reported by Bruno Haible.
59907
59908 2008-05-02  Jim Meyering  <meyering@redhat.com>
59909
59910         avoid compilation error on FreeBSD 6
59911         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59912
59913 2008-05-01  Jim Meyering  <meyering@redhat.com>
59914
59915         useless-if-before-free: correct --help's exit status description
59916         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59917         for one or more matches, etc.  Reported by Bruno Haible.
59918
59919         vc-list-files: make the stand-alone gnulib test work
59920         * modules/vc-list-files-tests (configure.ac):
59921         Define and AC_SUBST abs_aux_dir.
59922         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59923         $(abs_top_srcdir) to each script and having each of them
59924         duplicate the work of setting PATH, set PATH here, using
59925         the new variable, abs_aux_dir instead.
59926         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59927         * tests/test-vc-list-files-git.sh: Likewise.
59928         Reported by Bruno Haible.
59929
59930 2008-05-01  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59933         reallocation. Rename 'done' to 'found_delimiter'.
59934
59935 2008-05-01  Jim Meyering  <meyering@redhat.com>
59936
59937         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59938         * build-aux/vc-list-files: Use `...`, not $(...).
59939
59940 2008-04-30  Jim Meyering  <meyering@redhat.com>
59941
59942         add tests for vc-list-files
59943         * modules/vc-list-files-tests: New module.
59944         * tests/test-vc-list-files-cvs.sh: New file.
59945         * tests/test-vc-list-files-git.sh: New file.
59946
59947         avoid a warning from gcc
59948         * lib/getndelim2.c (IF_LINT): Define.
59949         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59950
59951         vc-list-files: work properly with build-aux/cvsu, too
59952         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59953         to all cvs-based clauses.
59954
59955         vc-list-files: work properly in the CVS+awk case, too
59956         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59957
59958         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59959         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59960         take more than one file argument, so .  Add quotes, just in case $dir
59961         ever contains a shell meta-character.  Prompted by Soren Hansen in
59962         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59963
59964 2008-04-29  Eric Blake  <ebb9@byu.net>
59965
59966         Optimize getndelim2 to use block operations when possible.
59967         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59968         freadseek, and memchr2.
59969         * lib/getndelim2.c (getndelim2): Use them for block reads.
59970
59971 2008-04-29  Bruno Haible  <bruno@clisp.org>
59972
59973         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59974         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59975         * modules/inet_ntop (Depends-on): Add extensions.
59976         * modules/inet_pton (Depends-on): Likewise.
59977         Reported by Simon Josefsson.
59978
59979 2008-04-29  Jim Meyering  <meyering@redhat.com>
59980
59981         When the is more than one match in a block, match all of them.
59982         * build-aux/useless-if-before-free: Iterate through each block
59983         until there are no more matches.
59984
59985         Fix broken useless-if-before-free script.
59986         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59987         the expression to match cast of argument to free-like function.
59988
59989 2008-04-29  Eric Blake  <ebb9@byu.net>
59990
59991         Use new header.
59992         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59993
59994 2008-04-29  Jim Meyering  <meyering@redhat.com>
59995
59996         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59997         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59998         by gnulib to exist and to declare e.g., inet_ntop.
59999         Don't include "inet_ntop.h", now removed.
60000
60001         * m4/arpa_inet_h.m4: Remove trailing blanks.
60002
60003 2008-04-29  Eric Blake  <ebb9@byu.net>
60004
60005         Silence valgrind on safe reads beyond potential array bounds.
60006         * lib/rawmemchr.valgrind: New file.
60007         * lib/strchrnul.valgrind: Likewise.
60008         * modules/rawmemchr (Files): Distribute new file.
60009         * modules/strchrnul (Files): Likewise.
60010         Suggested by Bruno Haible.
60011
60012 2008-04-29  Bruno Haible  <bruno@clisp.org>
60013
60014         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60015         (inet_ntop, inet_pton): Change portability warning's wording.
60016         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60017         Invoke gl_CHECK_NEXT_HEADERS.
60018         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60019         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60020         set ARPA_INET_H.
60021         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60022         * modules/arpa_inet (Description): No longer only for systems that
60023         lack it.
60024         (Depends-on): Add include_next.
60025         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60026         HAVE_ARPA_INET_H.
60027
60028 2008-04-29  Jim Meyering  <meyering@redhat.com>
60029
60030         * modules/mkdir (License): Re-license as LGPLv2+.
60031
60032 2008-04-29  Bruno Haible  <bruno@clisp.org>
60033
60034         * modules/rawmemchr (Maintainer): Set to Eric.
60035         * modules/strchrnul (Maintainer): Likewise.
60036
60037 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60038
60039         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60040         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60041
60042         * modules/arpa_inet (arpa/inet.h): Use them.
60043
60044 2008-04-28  Eric Blake  <ebb9@byu.net>
60045
60046         Test getndelim2.
60047         * modules/getndelim2-tests: New file.
60048         * tests/test-getndelim2.c: Likewise.
60049         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60050         stream.
60051         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60052
60053         * MODULES.html.sh: Document new module.
60054
60055 2008-04-20  Bruno Haible  <bruno@clisp.org>
60056
60057         * lib/c-stack.c (die): Use raise.
60058         * modules/c-stack (Depends-on): Add raise.
60059
60060 2008-04-28  Bruno Haible  <bruno@clisp.org>
60061
60062         Expect rpmatch to be declared.
60063         * lib/yesno.c (rpmatch): Remove declaration.
60064
60065         Declare rpmatch.
60066         * lib/stdlib.in.h (rpmatch): New declaration.
60067         * lib/rpmatch.c: Include <stdlib.h> first.
60068         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60069         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60071         HAVE_RPMATCH.
60072         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60074         (Include): Set to <stdlib.h>.
60075         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60076         HAVE_RPMATCH.
60077         * NEWS: Document the change.
60078
60079 2008-04-28  Bruno Haible  <bruno@clisp.org>
60080
60081         Change rpmatch to use nl_langinfo when appropriate.
60082         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60083         (N_): New macro.
60084         (localized_pattern): New function/macro.
60085         (try): Remove match, nomatch arguments. Copy the pattern into safe
60086         memory before caching it.
60087         (rpmatch): Use localized_pattern. Add translator comments.
60088         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60089         Suggested by Eric Blake.
60090         * modules/rpmatch (Depends-on): Add stdbool.
60091
60092 2008-04-28  Eric Blake  <ebb9@byu.net>
60093
60094         Add rawmemchr module, matching glibc.
60095         * modules/string (Makefile.am): New indicator.
60096         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60097         * lib/string.in.h (rawmemchr): Declare when appropriate.
60098         * modules/rawmemchr: New file.
60099         * m4/rawmemchr.m4: Likewise.
60100         * lib/rawmemchr.c: Likewise.
60101         * modules/rawmemchr-tests: Likewise.
60102         * tests/test-rawmemchr.c: Likewise.
60103         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60104         module.
60105         * modules/strchrnul (Depends-on): Add rawmemchr.
60106         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60107
60108         Whitespace cleanup.
60109         * tests/test-strchrnul.c: Reindent.
60110         * lib/strchrnul.c: Likewise.
60111
60112         Optimize and test strchrnul.
60113         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60114         * modules/strchrnul-tests: New file.
60115         * tests/test-strchrnul.c: Likewise.
60116
60117         Remove intprops dependency.
60118         * modules/memchr (Depends-on): Remove intprops.
60119         * modules/memrchr (Depends-on): Likewise.
60120         * modules/memchr2 (Depends-on): Likewise.
60121         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60122         * lib/memrchr.c (__memrchr): Likewise.
60123         * lib/memrchr2.c (memchr2): Likewise.
60124         Reported by Simon Josefsson.
60125
60126 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60127
60128         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60129         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60130
60131 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60132
60133         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60134
60135         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60136
60137         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60138
60139         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60140         declarations.
60141         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60142
60143         * m4/inet_pton.m4: Don't check for header files.
60144
60145         * m4/inet_ntop.m4: Don't check for header files.
60146
60147 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60148
60149         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60150         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60151         trigger for cygwin).
60152         Reported by Bruno Haible  <bruno@clisp.org>.
60153
60154 2008-04-28  Bruno Haible  <bruno@clisp.org>
60155
60156         * doc/posix-functions/strdup.texi: Mention mingw problem.
60157
60158 2008-04-27  Bruno Haible  <bruno@clisp.org>
60159
60160         * modules/stat-time-tests (Depends-on): Add sleep.
60161         * tests/test-stat-time.c (force_unlink): New function.
60162         (cleanup): Use it.
60163         (test_mtime): Remove the ctime related tests.
60164         (test_ctime): New function, containing the ctime related tests.
60165         (main): Call test_ctime, except on native Windows platforms.
60166
60167 2008-04-27  Bruno Haible  <bruno@clisp.org>
60168
60169         * lib/rpmatch.c (rpmatch): Add some comments.
60170         Reported by James Youngman <jay@gnu.org>.
60171
60172 2008-04-27  Bruno Haible  <bruno@clisp.org>
60173
60174         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60175         quiet NaNs.
60176
60177 2008-04-27  Bruno Haible  <bruno@clisp.org>
60178
60179         Make test-yesno.sh work on mingw.
60180         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60181         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60182         (main): Set stdin to binary mode.
60183         * modules/yesno-tests (Depends-on): Add binary-io.
60184
60185 2008-04-27  Bruno Haible  <bruno@clisp.org>
60186
60187         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60188         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60189         argument that lie outside the IEEE 854 domain.
60190         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60191         (gl_ISFINITE): Use it.
60192         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60193
60194 2008-04-27  Bruno Haible  <bruno@clisp.org>
60195
60196         Allow local renaming in config.h.
60197         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60198
60199 2008-04-27  Bruno Haible  <bruno@clisp.org>
60200
60201         * lib/memchr.c (__memchr): Change type of 'i'.
60202         * lib/memchr2.c (memchr2): Likewise.
60203
60204 2008-04-26  Eric Blake  <ebb9@byu.net>
60205         and Bruno Haible  <bruno@clisp.org>
60206
60207         Optimize and test memrchr.
60208         * modules/memrchr (Depends-on): Add intprops.
60209         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60210         * modules/memrchr-tests: New file.
60211         * tests/test-memrchr.c: New file.
60212
60213 2008-04-26  Bruno Haible  <bruno@clisp.org>
60214
60215         Add tentative support for DragonFly BSD.
60216         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60217         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60218         fp.
60219         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60220         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60221         * lib/fpurge.c (fpurge): Likewise.
60222         * lib/freadable.c (freaadable): Likewise.
60223         * lib/freadahead.c (freadahead): Likewise.
60224         * lib/freading.c (freading): Likewise.
60225         * lib/freadptr.c (freadptr): Likewise.
60226         * lib/freadseek.c (freadptrinc): Likewise.
60227         * lib/fseeko.c (fseeko): Likewise.
60228         * lib/fseterr.c (fseterr): Likewise.
60229         * lib/fwritable.c (fwritable): Likewise.
60230         * lib/fwriting.c (fwriting): Likewise.
60231
60232 2008-04-26  Bruno Haible  <bruno@clisp.org>
60233
60234         * lib/stdio-impl.h: New file.
60235         * lib/fbufmode.c: Include stdio-impl.h.
60236         (fbufmode): Use fp_, remove redundant #defines.
60237         * lib/fflush.c: Include stdio-impl.h.
60238         (clear_ungetc_buffer): Remove redundant #defines.
60239         * lib/fpurge.c: Include stdio-impl.h.
60240         (fpurge): Remove redundant #defines.
60241         * lib/freadable.c: Include stdio-impl.h.
60242         (freadable): Remove redundant #defines.
60243         * lib/freadahead.c: Include stdio-impl.h.
60244         (freadahead): Remove redundant #defines.
60245         * lib/freading.c: Include stdio-impl.h.
60246         (freading): Remove redundant #defines.
60247         * lib/freadptr.c: Include stdio-impl.h.
60248         (freadptr): Remove redundant #defines.
60249         * lib/freadseek.c: Include stdio-impl.h.
60250         (freadptrinc): Remove redundant #defines.
60251         * lib/fseeko.c: Include stdio-impl.h.
60252         (rpl_fseeko): Remove redundant #defines.
60253         * lib/fseterr.c: Include stdio-impl.h.
60254         (fseterr): Remove redundant #defines.
60255         * lib/fwritable.c: Include stdio-impl.h.
60256         (fwritable: Remove redundant #defines.
60257         * lib/fwriting.c: Include stdio-impl.h.
60258         (fwriting): Remove redundant #defines.
60259         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60260         * modules/fflush (Files): Likewise.
60261         * modules/fpurge (Files): Likewise.
60262         * modules/freadable (Files): Likewise.
60263         * modules/freadahead (Files): Likewise.
60264         * modules/freading (Files): Likewise.
60265         * modules/freadptr (Files): Likewise.
60266         * modules/freadseek (Files): Likewise.
60267         * modules/fseeko (Files): Likewise.
60268         * modules/fseterr (Files): Likewise.
60269         * modules/fwritable (Files): Likewise.
60270         * modules/fwriting (Files): Likewise.
60271
60272 2008-04-26  Bruno Haible  <bruno@clisp.org>
60273
60274         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60275         restore_seek_optimization, update_fpos_cache): New functions, extracted
60276         from rpl_fflush.
60277         (rpl_fflush): Use them.
60278         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60279         (gl_REPLACE_FFLUSH): Use it.
60280
60281 2008-04-26  Bruno Haible  <bruno@clisp.org>
60282
60283         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60284         on Solaris.
60285         * tests/test-xstrtoimax.sh: Likewise.
60286         * tests/test-xstrtoumax.sh: Likewise.
60287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60288
60289 2008-04-26  Bruno Haible  <bruno@clisp.org>
60290
60291         * modules/memchr-tests: New file.
60292         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60293
60294 2008-04-26  Eric Blake  <ebb9@byu.net>
60295             Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/memchr.c: Include intprops.h.
60298         (__memchr): Optimize parallel detection of matching bytes. Rename local
60299         variables. Add explanatory comments.
60300
60301 2008-04-26  Bruno Haible  <bruno@clisp.org>
60302
60303         Fix module 'memchr', broken since 2000-10-28.
60304         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60305
60306 2008-04-26  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60309         comments.
60310
60311 2008-04-25  Eric Blake  <ebb9@byu.net>
60312
60313         Use native fstatat on cygwin 1.7.0.
60314         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60315         first.
60316
60317 2008-04-23  Eric Blake  <ebb9@byu.net>
60318
60319         Improve memchr2 performance.
60320         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60321         NUL bytes.
60322         * modules/memchr2 (Depends-on): Use intprops.h.
60323
60324 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60325
60326         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60327         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60328         <blp@cs.stanford.edu>.
60329
60330 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60331
60332         * lib/arpa_inet.in.h: New file.
60333
60334         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60335         (Makefile.am): Sed in substitute header file.
60336
60337         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60338         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60339
60340         * modules/inet_ntop (configure.ac): Use
60341         gl_ARPA_INET_MODULE_INDICATOR.
60342
60343         * modules/inet_pton (configure.ac): Use
60344         gl_ARPA_INET_MODULE_INDICATOR.
60345
60346 2008-04-22  Jim Meyering  <meyering@redhat.com>
60347
60348         * modules/verify (License): Re-license as LGPLv2+.
60349
60350 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60351
60352         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60353         parameter to void* as per POSIX standard (MinGW uses char*).
60354
60355 2008-04-21  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60358         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60359         Define to replacements if REPLACE_ISWCNTRL is 1.
60360         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60361         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60362         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60363         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60364         what it fixes.
60365         * doc/posix-functions/iswalpha.texi: Likewise.
60366         * doc/posix-functions/iswblank.texi: Likewise.
60367         * doc/posix-functions/iswcntrl.texi: Likewise.
60368         * doc/posix-functions/iswdigit.texi: Likewise.
60369         * doc/posix-functions/iswgraph.texi: Likewise.
60370         * doc/posix-functions/iswlower.texi: Likewise.
60371         * doc/posix-functions/iswprint.texi: Likewise.
60372         * doc/posix-functions/iswpunct.texi: Likewise.
60373         * doc/posix-functions/iswspace.texi: Likewise.
60374         * doc/posix-functions/iswupper.texi: Likewise.
60375         * doc/posix-functions/iswxdigit.texi: Likewise.
60376         Reported by Alain Guibert.
60377
60378 2008-04-21  Bruno Haible  <bruno@clisp.org>
60379
60380         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60381         Patch by Alain Guibert.
60382
60383 2008-04-21  Bruno Haible  <bruno@clisp.org>
60384
60385         Fix test failures on mingw.
60386         * tests/test-xstrtol.c (print_no_progname): New function.
60387         (main): Install it in error_print_progname hook.
60388         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60389         * tests/test-xstrtoimax.sh: Likewise.
60390         * tests/test-xstrtoumax.sh: Likewise.
60391
60392 2008-04-21  Bruno Haible  <bruno@clisp.org>
60393
60394         Fix test failure on mingw.
60395         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60396
60397 2008-04-21  Bruno Haible  <bruno@clisp.org>
60398
60399         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60400         Actually assign a value.
60401
60402 2008-04-20  Bruno Haible  <bruno@clisp.org>
60403
60404         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60405         take 2.
60406         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60407         'canonicalize-lgpl' module is also used.
60408         * lib/canonicalize-lgpl.c: Undo last change.
60409         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60410
60411 2008-04-20  Bruno Haible  <bruno@clisp.org>
60412
60413         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60414         config.h. Provide _mkdir based fallback for mingw.
60415         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60416         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60417         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60418         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60419         rather than defining mkdir in config.h.
60420         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60421         (gl_SYS_STAT_H_DEFAULTS): New macro.
60422         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60423         HAVE_IO_H any more.
60424         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60425         HAVE_DECL_MKDIR and HAVE_IO_H.
60426
60427 2008-04-20  Bruno Haible  <bruno@clisp.org>
60428
60429         * lib/isapipe.c: Port to native Windows platforms.
60430
60431 2008-04-20  Bruno Haible  <bruno@clisp.org>
60432
60433         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60434
60435 2008-04-21  Eric Blake  <ebb9@byu.net>
60436
60437         Work around preprocessors that don't handle UINTMAX_MAX.
60438         * lib/memchr2.c (memchr2): Avoid embedded #if.
60439         Reported by Alain Guibert, fix suggested by Bruno Haible.
60440
60441 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60442
60443         * doc/posix-functions/strftime.texi (strftime): Explain better
60444         Windows incompatibility.  Suggested by Micah Cowan
60445         <micah@cowan.name>.
60446
60447 2008-04-20  Bruno Haible  <bruno@clisp.org>
60448
60449         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60450         unistr/u8-mblen.
60451
60452 2008-04-20  Bruno Haible  <bruno@clisp.org>
60453
60454         Fix test failure on platforms with non-GNU iconv.
60455         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60456         (U_TO_U8): Use it, rather than u16_to_u8.
60457         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60458         units at the end of the input string.
60459         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60460
60461 2008-04-20  Bruno Haible  <bruno@clisp.org>
60462
60463         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60464         when the resulting length is 0.
60465         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60466
60467 2008-04-20  Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60470         works.
60471         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60472
60473 2008-04-20  Bruno Haible  <bruno@clisp.org>
60474
60475         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60476         * modules/tsearch-tests (configure.ac): Test for initstate function.
60477
60478 2008-04-20  Bruno Haible  <bruno@clisp.org>
60479
60480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60481         for nlink_t if missing.
60482         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60483
60484 2008-04-19  Bruno Haible  <bruno@clisp.org>
60485
60486         Work around snprintf bug on Linux libc5.
60487         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60489         gl_SNPRINTF_SIZE1.
60490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60491         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60492         that test failed.
60493         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60494         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60495         * modules/snprintf (Files): Add m4/printf.m4.
60496         * modules/vsnprintf (Files): Likewise.
60497         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60498         * doc/posix-functions/vsnprintf.texi: Likewise.
60499
60500 2008-04-19  Bruno Haible  <bruno@clisp.org>
60501
60502         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60503         from 0.0058 to less than 10^-7.
60504
60505 2008-04-19  Bruno Haible  <bruno@clisp.org>
60506
60507         Fix rounding when a precision is given.
60508         * lib/vasnprintf.c (is_borderline): New function.
60509         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60510         9...9x.
60511         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60512         %e, %g.
60513         * tests/test-vasprintf-posix.c (test_function): Likewise.
60514         * tests/test-snprintf-posix.h (test_function): Likewise.
60515         * tests/test-sprintf-posix.h (test_function): Likewise.
60516         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60517         * tests/test-printf-posix.h (test_function): Likewise.
60518         * tests/test-printf-posix.output: Update.
60519         Reported by John Darrington <john@darrington.wattle.id.au> via
60520         Ben Pfaff <blp@cs.stanford.edu>.
60521
60522 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60523
60524         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60525         Suggested by Bruno Haible <bruno@clisp.org>.
60526
60527 2008-04-17  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60530         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60531         implementation.
60532         Patch by Bruce Merry <bmerry@gmail.com>.
60533
60534 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60535
60536         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60537         doesn't work under Windows.
60538
60539 2008-04-16  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60542         New macros.
60543         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60544         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60545         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60546         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60547         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60548         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60549         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60550         macros.
60551         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60552         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60553         Northern Sotho, Uighur.
60554
60555 2008-04-16  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60558         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60559         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60560         Reported by Daniel Bergström <daniel@octocode.com>.
60561
60562 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60563             Bruno Haible  <bruno@clisp.org>
60564
60565         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60566         function.
60567         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60568         New functions, mostly extracted from gl_locale_name_default.
60569         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60570
60571 2008-04-16  Eric Blake  <ebb9@byu.net>
60572
60573         Adjust strtod detection to catch glibc 2.7 bug.
60574         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60575         Reported by John Gatewood Ham.
60576
60577 2008-04-16  Bruno Haible  <bruno@clisp.org>
60578
60579         Add tentative support for Linux libc5.
60580         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60581         * lib/fpurge.c (fpurge): Likewise.
60582         * lib/freadable.c (freadable): Likewise.
60583         * lib/freadahead.c (freadahead): Likewise.
60584         * lib/freading.c (freading): Likewise.
60585         * lib/freadptr.c (freadptr): Likewise.
60586         * lib/freadseek.c (freadptrinc): Likewise.
60587         * lib/fseeko.c (rpl_fseeko): Likewise.
60588         * lib/fseterr.c (fseterr): Likewise.
60589         * lib/fwritable.c (fwritable): Likewise.
60590         * lib/fwriting.c (fwriting): Likewise.
60591         Reported by Alain Guibert <alguibert+bts@free.fr>.
60592
60593 2008-04-15  Bruno Haible  <bruno@clisp.org>
60594
60595         * modules/mathl (configure.ac): Define module indicator.
60596
60597 2008-04-15  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/logl.c (logl): Remove unused variables.
60600
60601 2008-04-15  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60604         fails.
60605
60606 2008-04-15  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/trim.c (trim2): Fix argument of isspace() macro.
60609
60610 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60611
60612         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60613         to 0.
60614         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60615
60616 2008-04-14  Bruno Haible  <bruno@clisp.org>
60617
60618         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60619         AC_LANG_PROGRAM argument.
60620         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60621         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60623         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60624         * m4/math_h.m4 (gl_MATH_H): Likewise.
60625         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60627         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60628         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60629         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60630         * m4/regex.m4 (gl_REGEX): Likewise.
60631         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60632         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60634         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60635         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60636         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60637         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60638         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60639
60640 2008-04-14  Jim Meyering  <meyering@redhat.com>
60641
60642         test-strtod: fix typos: s/abs/fabs/
60643         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60644
60645 2008-04-13  Bruno Haible  <bruno@clisp.org>
60646
60647         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60648         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60649         module is also used and while not building the reloc-wrapper.
60650
60651 2008-04-13  Bruno Haible  <bruno@clisp.org>
60652
60653         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60654
60655 2008-04-13  Bruno Haible  <bruno@clisp.org>
60656
60657         Fix AIX compilation failure introduced on 2008-04-02.
60658         * tests/test-frexp.c (exp): Undefine before redefining.
60659         * tests/test-frexpl.c (exp): Likewise.
60660
60661 2008-04-13  Bruno Haible  <bruno@clisp.org>
60662
60663         Work around a HP-UX stdio bug.
60664         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60665         * tests/test-ftello.c (main): Likewise.
60666         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60667         * doc/posix-functions/ftello.texi: Likewise.
60668
60669 2008-04-13  Bruno Haible  <bruno@clisp.org>
60670
60671         Make test-signbit pass on HP-UX/hppa.
60672         * tests/test-signbit.c (minus_zerol): New variable.
60673         (test_signbitl): Use it.
60674
60675 2008-04-13  Bruno Haible  <bruno@clisp.org>
60676
60677         Make truncl work on OSF/1 4.0.
60678         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60679         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60680         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60682         HAVE_DECL_TRUNCL.
60683         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60684         HAVE_DECL_TRUNCL.
60685         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60686
60687 2008-04-13  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60690
60691 2008-04-13  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60694         expression, so as to avoid HP-UX 11 cc compiler bug.
60695
60696 2008-04-13  Bruno Haible  <bruno@clisp.org>
60697
60698         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60699
60700 2008-04-13  Bruno Haible  <bruno@clisp.org>
60701
60702         * lib/git-merge-changelog.c: Remove empty declaration outside of
60703         functions.
60704
60705 2008-04-13  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60708
60709 2008-04-13  Bruno Haible  <bruno@clisp.org>
60710
60711         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60712         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60714         also if it exists but lacks definitions of the SHUT_* macros.
60715         * modules/sys_socket (Description): Update.
60716         Reported by Elbert Pol <e.pol@chello.nl>.
60717
60718 2008-04-13  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/localcharset.c (OS2): Don't redefine if already defined.
60721         Reported by Elbert Pol <e.pol@chello.nl>.
60722
60723 2008-04-13  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/binary-io.h [__EMX__]: Include <io.h>.
60726         Reported by Elbert Pol <e.pol@chello.nl>.
60727
60728 2008-04-12  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/fpucw.h: Enable the definitions also for x86_64.
60731         Needed for NetBSD/x86_64.
60732         Reported by Thomas Klausner <tk@giga.or.at>.
60733
60734 2008-04-12  Bruno Haible  <bruno@clisp.org>
60735
60736         * tests/test-strtod.c: Include isnand.h.
60737         (main): Use isnand instead of isnan.
60738         Reported by Jim Meyering.
60739
60740 2008-04-12  Bruno Haible  <bruno@clisp.org>
60741
60742         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60743         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60744
60745 2008-04-12  Jim Meyering  <meyering@redhat.com>
60746
60747         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60748
60749 2008-04-12  Bruno Haible  <bruno@clisp.org>
60750
60751         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60752         Reported by Elbert Pol <e.pol@chello.nl>.
60753
60754 2008-04-12  Eric Blake  <ebb9@byu.net>
60755
60756         Work around Solaris 10 math.h bug.
60757         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60758         (gl_MATH_H_DEFAULTS): Set up default.
60759         * modules/math (Makefile.am): Replace new indicators.
60760         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60761         * tests/test-math.c (main): Test this.
60762         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60763         * doc/posix-headers/math.texi (math.h): Mention bug.
60764         Reported by Nelson H. F. Beebe and Jim Meyering.
60765
60766 2008-04-11  Bruno Haible  <bruno@clisp.org>
60767
60768         Adapt to future versions of Apple GCC.
60769         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60770         Reported by Peter O'Gorman <peter@pogma.com>.
60771
60772 2008-04-11  Bruno Haible  <bruno@clisp.org>
60773
60774         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60775
60776 2008-04-11  Bruno Haible  <bruno@clisp.org>
60777
60778         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60779
60780         * modules/getaddrinfo-tests (Makefile.am): Define
60781         test_getaddrinfo_LDADD.
60782
60783 2008-04-11  Bruno Haible  <bruno@clisp.org>
60784
60785         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60786         (init): Fix syntax error.
60787         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60788         is declared.
60789
60790 2008-04-11  Bruno Haible  <bruno@clisp.org>
60791
60792         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60793         * modules/glob (Depends-on): Add stdbool.
60794
60795 2008-04-11  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/trim.c: Include <string.h>.
60798
60799 2008-04-11  Eric Blake  <ebb9@byu.net>
60800
60801         Avoid compile failure on OS/2.
60802         * lib/regex_internal.h (internal_function): Disable optimization
60803         on OS/2 (__EMX__), where it caused compiler error.
60804         Reported by Elbert Pol.
60805
60806 2008-04-11  Bruno Haible  <bruno@clisp.org>
60807
60808         Flush the standard error stream before aborting. Needed on mingw.
60809         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60810         * tests/test-array_list.c (ASSERT): Likewise.
60811         * tests/test-array_oset.c (ASSERT): Likewise.
60812         * tests/test-avltree_list.c (ASSERT): Likewise.
60813         * tests/test-avltree_oset.c (ASSERT): Likewise.
60814         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60815         * tests/test-binary-io.c (ASSERT): Likewise.
60816         * tests/test-byteswap.c (ASSERT): Likewise.
60817         * tests/test-c-ctype.c (ASSERT): Likewise.
60818         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60819         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60820         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60821         * tests/test-c-strstr.c (ASSERT): Likewise.
60822         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60823         * tests/test-canonicalize.c (ASSERT): Likewise.
60824         * tests/test-carray_list.c (ASSERT): Likewise.
60825         * tests/test-ceilf1.c (ASSERT): Likewise.
60826         * tests/test-ceilf2.c (ASSERT): Likewise.
60827         * tests/test-ceill.c (ASSERT): Likewise.
60828         * tests/test-count-one-bits.c (ASSERT): Likewise.
60829         * tests/test-fbufmode.c (ASSERT): Likewise.
60830         * tests/test-fflush2.c (ASSERT): Likewise.
60831         * tests/test-floorf1.c (ASSERT): Likewise.
60832         * tests/test-floorf2.c (ASSERT): Likewise.
60833         * tests/test-floorl.c (ASSERT): Likewise.
60834         * tests/test-fopen.c (ASSERT): Likewise.
60835         * tests/test-fpending.c (ASSERT): Likewise.
60836         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60837         * tests/test-fpurge.c (ASSERT): Likewise.
60838         * tests/test-freadable.c (ASSERT): Likewise.
60839         * tests/test-freadahead.c (ASSERT): Likewise.
60840         * tests/test-freading.c (ASSERT): Likewise.
60841         * tests/test-freadptr.c (ASSERT): Likewise.
60842         * tests/test-freadptr2.c (ASSERT): Likewise.
60843         * tests/test-freadseek.c (ASSERT): Likewise.
60844         * tests/test-freopen.c (ASSERT): Likewise.
60845         * tests/test-frexp.c (ASSERT): Likewise.
60846         * tests/test-frexpl.c (ASSERT): Likewise.
60847         * tests/test-fseek.c (ASSERT): Likewise.
60848         * tests/test-fseeko.c (ASSERT): Likewise.
60849         * tests/test-fstrcmp.c (ASSERT): Likewise.
60850         * tests/test-ftell.c (ASSERT): Likewise.
60851         * tests/test-ftello.c (ASSERT): Likewise.
60852         * tests/test-func.c (ASSERT): Likewise.
60853         * tests/test-fwritable.c (ASSERT): Likewise.
60854         * tests/test-fwriting.c (ASSERT): Likewise.
60855         * tests/test-getdelim.c (ASSERT): Likewise.
60856         * tests/test-getline.c (ASSERT): Likewise.
60857         * tests/test-i-ring.c (ASSERT): Likewise.
60858         * tests/test-iconv-utf.c (ASSERT): Likewise.
60859         * tests/test-iconv.c (ASSERT): Likewise.
60860         * tests/test-isfinite.c (ASSERT): Likewise.
60861         * tests/test-isnand.c (ASSERT): Likewise.
60862         * tests/test-isnanf.c (ASSERT): Likewise.
60863         * tests/test-isnanl.h (ASSERT): Likewise.
60864         * tests/test-ldexpl.c (ASSERT): Likewise.
60865         * tests/test-linked_list.c (ASSERT): Likewise.
60866         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60867         * tests/test-localename.c (ASSERT): Likewise.
60868         * tests/test-lseek.c (ASSERT): Likewise.
60869         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60870         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60871         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60872         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60873         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60874         * tests/test-mbschr.c (ASSERT): Likewise.
60875         * tests/test-mbscspn.c (ASSERT): Likewise.
60876         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60877         * tests/test-mbspbrk.c (ASSERT): Likewise.
60878         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60879         * tests/test-mbsrchr.c (ASSERT): Likewise.
60880         * tests/test-mbsspn.c (ASSERT): Likewise.
60881         * tests/test-mbsstr1.c (ASSERT): Likewise.
60882         * tests/test-mbsstr2.c (ASSERT): Likewise.
60883         * tests/test-mbsstr3.c (ASSERT): Likewise.
60884         * tests/test-memchr2.c (ASSERT): Likewise.
60885         * tests/test-memmem.c (ASSERT): Likewise.
60886         * tests/test-open.c (ASSERT): Likewise.
60887         * tests/test-printf-frexp.c (ASSERT): Likewise.
60888         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60889         * tests/test-printf-posix.c (ASSERT): Likewise.
60890         * tests/test-quotearg.c (ASSERT): Likewise.
60891         * tests/test-rbtree_list.c (ASSERT): Likewise.
60892         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60893         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60894         * tests/test-round1.c (ASSERT): Likewise.
60895         * tests/test-roundf1.c (ASSERT): Likewise.
60896         * tests/test-roundl.c (ASSERT): Likewise.
60897         * tests/test-signbit.c (ASSERT): Likewise.
60898         * tests/test-sleep.c (ASSERT): Likewise.
60899         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60900         * tests/test-snprintf.c (ASSERT): Likewise.
60901         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60902         * tests/test-stat-time.c (ASSERT): Likewise.
60903         * tests/test-strcasestr.c (ASSERT): Likewise.
60904         * tests/test-strerror.c (ASSERT): Likewise.
60905         * tests/test-striconv.c (ASSERT): Likewise.
60906         * tests/test-striconveh.c (ASSERT): Likewise.
60907         * tests/test-striconveha.c (ASSERT): Likewise.
60908         * tests/test-strsignal.c (ASSERT): Likewise.
60909         * tests/test-strstr.c (ASSERT): Likewise.
60910         * tests/test-strtod.c (ASSERT): Likewise.
60911         * tests/test-trunc1.c (ASSERT): Likewise.
60912         * tests/test-trunc2.c (ASSERT): Likewise.
60913         * tests/test-truncf1.c (ASSERT): Likewise.
60914         * tests/test-truncf2.c (ASSERT): Likewise.
60915         * tests/test-truncl.c (ASSERT): Likewise.
60916         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60917         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60918         * tests/test-vasnprintf.c (ASSERT): Likewise.
60919         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60920         * tests/test-vasprintf.c (ASSERT): Likewise.
60921         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60922         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60923         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60924         * tests/test-vsnprintf.c (ASSERT): Likewise.
60925         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60926         * tests/test-wcwidth.c (ASSERT): Likewise.
60927         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60928         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60929         * tests/test-xvasprintf.c (ASSERT): Likewise.
60930         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60931         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60932         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60933         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60934         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60935         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60936         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60937         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60938         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60939         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60940         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60941         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60942         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60943         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60944         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60945         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60946         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60947         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60948         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60949         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60950         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60951         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60952         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60953         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60954         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60955         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60956         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60957         * tests/unictype/test-combining.c (ASSERT): Likewise.
60958         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60959         * tests/unictype/test-digit.c (ASSERT): Likewise.
60960         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60961         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60962         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60963         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60964         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60965         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60966         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60967         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60968         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60969         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60970         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60971         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60972         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60973         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60974         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60975         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60976         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60977         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60978         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60979         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60980         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60981         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60982         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60983         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60984         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60985         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60986         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60987         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60988         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60989         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60990         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60991         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60992         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60993         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60994         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60995         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60996         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60997         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60998         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60999         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61000         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61001         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61002         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61003         Reported by Eric Blake.
61004
61005 2008-04-11  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/wchar.in.h: Tweak comment.
61008
61009 2008-04-11  Bruno Haible  <bruno@clisp.org>
61010
61011         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61012         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61013         gl_COMMON.
61014         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61015
61016 2008-04-11  Bruno Haible  <bruno@clisp.org>
61017
61018         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61019
61020 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61021
61022         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61023         of attempting to use non-existing /dev/*random.  Based on patch
61024         from Adam Strzelecki <ono@java.pl> in
61025         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61026
61027 2008-04-08  Bruno Haible  <bruno@clisp.org>
61028
61029         Add tentative support for emx+gcc.
61030         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61031         * lib/fpurge.c (fpurge): Likewise.
61032         * lib/freadable.c (freadable): Likewise.
61033         * lib/freadahead.c (freadahead): Likewise.
61034         * lib/freading.c (freading): Likewise.
61035         * lib/freadptr.c (freadptr): Likewise.
61036         * lib/freadseek.c (freadptrinc): Likewise.
61037         * lib/fseeko.c (rpl_fseeko): Likewise.
61038         * lib/fseterr.c (fseterr): Likewise.
61039         * lib/fwritable.c (fwritable): Likewise.
61040         * lib/fwriting.c (fwriting): Likewise.
61041         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61042
61043 2008-04-09  Eric Blake  <ebb9@byu.net>
61044
61045         Avoid some autoconf warnings.
61046         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61047         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61048         * m4/afs.m4 (gl_AFS): Likewise.
61049         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61050         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61051         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61052         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61053         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61054         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61055         (AC_CHECK_DECLS_ONCE): Likewise.
61056         Rename file...
61057         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61058         gnulib-tool requires autoconf 2.59 or better.
61059         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61060
61061 2008-04-08  Eric Blake  <ebb9@byu.net>
61062
61063         Use 'git describe --match' if present (added in git 1.5.5).
61064         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61065         if possible.
61066
61067 2008-04-08  Bruno Haible  <bruno@clisp.org>
61068
61069         Add tentative support for OpenServer.
61070         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61071         _ptr, _cnt.
61072         * lib/fpurge.c (fpurge): Likewise.
61073         * lib/freadable.c (freadable): Likewise.
61074         * lib/freadahead.c (freadahead): Likewise.
61075         * lib/freading.c (freading): Likewise.
61076         * lib/freadptr.c (freadptr): Likewise.
61077         * lib/freadseek.c (freadptrinc): Likewise.
61078         * lib/fseeko.c (rpl_fseeko): Likewise.
61079         * lib/fseterr.c (fseterr): Likewise.
61080         * lib/fwritable.c (fwritable): Likewise.
61081         * lib/fwriting.c (fwriting): Likewise.
61082         Reported by Roger Cornelius <rac@tenzing.org> and
61083         Brian K. White <brian@aljex.com>.
61084
61085 2008-04-06  Jim Meyering  <meyering@redhat.com>
61086
61087         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61088
61089 2008-04-06  Bruno Haible  <bruno@clisp.org>
61090
61091         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61092         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61093         * tests/test-printf-posix.sh: Likewise.
61094         * tests/test-vfprintf-posix.sh: Likewise.
61095         * tests/test-vprintf-posix.sh: Likewise.
61096         * tests/test-xprintf-posix.sh: Likewise.
61097
61098 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61099
61100         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61101         hide error from 'ls', needed on OS/2.
61102         Report by Elbert Pol <elbert.pol@gmail.com>.
61103
61104 2008-04-04  Eric Blake  <ebb9@byu.net>
61105
61106         Make test-fseeko.c failures meaningful.
61107         * tests/test-fseeko.c: Print line number on failure.
61108         * tests/test-fseek.c: Likewise.
61109         Reported by Nelson H. F. Beebe.
61110
61111         Improve strtod bug detection check.
61112         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61113         required for Solaris 10.
61114         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61115
61116 2008-04-04  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61119         by m4/setenv.m4.
61120
61121 2008-04-03  Eric Blake  <ebb9@byu.net>
61122
61123         Ensure sane .version contents.
61124         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61125         version string.
61126         * build-aux/git-version-gen: Improve documentation.
61127
61128         Make GNU make output nicer.
61129         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61130         MAKECMDGOALS to enforce message for all command line targets.  Set
61131         srcdir for use in maint.mk.
61132
61133         Another maintainer tweak.
61134         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61135         a target that regenerates version.
61136
61137 2008-04-03  Jim Meyering  <meyering@redhat.com>
61138
61139         vc-list-files: don't cause coreutils "make po-check" failure
61140         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61141
61142 2008-04-03  Eric Blake  <ebb9@byu.net>
61143
61144         Allow VPATH usage of vc-list-files.
61145         * build-aux/vc-list-files (scriptversion): Add timestamp.
61146         (options): Add --help, --version, -C.
61147         (CVS): Support installed cvsu.
61148
61149 2008-04-02  Bruno Haible  <bruno@clisp.org>
61150
61151         Avoid some "statement with no effect" warnings from gcc.
61152         * tests/test-wctype.c (main): Explicitly ignore unused values.
61153         Reported by Jim Meyering.
61154
61155 2008-04-02  Jim Meyering  <meyering@redhat.com>
61156
61157         Avoid some warnings from "gcc -Wshadow".
61158         * tests/test-frexp.c (exp): Define to a different identifier.
61159         * tests/test-frexpl.c (exp): Likewise.
61160
61161 2008-04-03  Jim Meyering  <meyering@redhat.com>
61162
61163         bootstrap: remove dangling *.[ch] symlinks from lib
61164         * build-aux/bootstrap [dangling symlink removal]: Move find's
61165         -depth option to precede all others, to avoid a warning.
61166         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61167
61168 2008-04-02  Bruno Haible  <bruno@clisp.org>
61169
61170         Avoid some warnings from "gcc -Wshadow".
61171         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61172         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61173         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61174         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61175         Reported by Jim Meyering.
61176
61177 2008-04-01  Bruno Haible  <bruno@clisp.org>
61178
61179         Fix test to work on IRIX 6.5 with cc.
61180         * tests/test-math.c (numeric_equal): New function.
61181         (main): Use it.
61182
61183 2008-04-01  Bruno Haible  <bruno@clisp.org>
61184
61185         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61186
61187 2008-04-01  Bruno Haible  <bruno@clisp.org>
61188
61189         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61190         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61191         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61192         (Depends-on): Remove math.
61193
61194         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61195         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61196         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61197         (Depends-on): Remove math.
61198
61199         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61200         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61201         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61202         (Depends-on): Remove math.
61203         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61204         (Depends-on): Remove math.
61205
61206         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61207         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61208         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61209         (Depends-on): Remove math.
61210         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61211         (Depends-on): Remove math.
61212
61213         * tests/test-round1.c: Include nan.h.
61214         (main): Use NaNd instead of NAN.
61215         * modules/round-tests (Files): Add tests/nan.h.
61216
61217         * tests/test-trunc1.c: Include nan.h.
61218         (main): Use NaNd instead of NAN.
61219         * modules/trunc-tests (Files): Add tests/nan.h.
61220
61221         * tests/test-roundf1.c: Include nan.h.
61222         (main): Use NaNf instead of NAN.
61223         * modules/roundf-tests (Files): Add tests/nan.h.
61224
61225         * tests/test-truncf1.c: Include nan.h.
61226         (main): Use NaNf instead of NAN.
61227         * modules/truncf-tests (Files): Add tests/nan.h.
61228
61229         * tests/test-ceilf1.c: Include nan.h.
61230         (main): Use NaNf instead of NAN.
61231         * modules/ceilf-tests (Files): Add tests/nan.h.
61232
61233         * tests/test-floorf1.c: Include nan.h.
61234         (main): Use NaNf instead of NAN.
61235         * modules/floorf-tests (Files): Add tests/nan.h.
61236
61237         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61238         (main): Use NaNf instead of NAN.
61239         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61240
61241         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61242         (main): Use NaNd instead of NAN.
61243         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61244
61245         * tests/test-frexp.c: Include nan.h.
61246         (main): Use NaNd instead of NAN.
61247         * modules/frexp-tests (Files): Add tests/nan.h.
61248
61249         * lib/isnan.c: Don't include <math.h>.
61250         (FUNC): Don't use NAN macro.
61251         * modules/isnand-nolibm (Depends-on): Remove math.
61252         * modules/isnanf-nolibm (Depends-on): Remove math.
61253         * modules/isnanl (Depends-on): Remove math.
61254         * modules/isnanl-nolibm (Depends-on): Remove math.
61255
61256         * tests/nan.h: New file.
61257
61258 2008-04-01  Eric Blake  <ebb9@byu.net>
61259
61260         Fix typos.
61261         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61262         values to be the right type.
61263
61264         For now, cater to gnulib strtod inaccuracies.
61265         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61266         fractional results.  While not as nice from a QoI perspective, it
61267         is a quicker patch than correctly implementing decimal to binary
61268         rounding.
61269
61270 2008-03-31  Eric Blake  <ebb9@byu.net>
61271
61272         Guarantee a definition of NAN.
61273         * lib/math.in.h (NAN): Define if missing.
61274         * tests/test-math.c (main): Test it.
61275         * doc/posix-headers/math.texi (math.h): Document this.
61276         * lib/isnan.c (rpl_isnand): Use it.
61277         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61278         * tests/test-floorf1.c (NaN): Likewise.
61279         * tests/test-frexp.c (NaN): Likewise.
61280         * tests/test-isnand.c (NaN): Likewise.
61281         * tests/test-isnanf.c (NaN): Likewise.
61282         * tests/test-round1.c (NaN): Likewise.
61283         * tests/test-roundf1.c (NaN): Likewise.
61284         * tests/test-snprintf-posix.h (NaN): Likewise.
61285         * tests/test-sprintf-posix.h (NaN): Likewise.
61286         * tests/test-trunc1.c (NaN): Likewise.
61287         * tests/test-truncf1.c (NaN): Likewise.
61288         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61289         * tests/test-vasprintf-posix.c (NaN): Likewise.
61290         * modules/isnand-nolibm (Depends-on): Add math.
61291         * modules/isnanf-nolibm (Depends-on): Likewise.
61292         * modules/isnanl (Depends-on): Likewise.
61293         * modules/isnanl-nolibm (Depends-on): Likewise.
61294         * modules/snprintf-posix-tests (Depends-on): Likewise.
61295         * modules/sprintf-posix-tests (Depends-on): Likewise.
61296         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61297         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61298         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61299         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61300
61301 2008-03-31  Bruno Haible  <bruno@clisp.org>
61302
61303         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61304         * doc/posix-functions/strtod.texi: Likewise.
61305
61306 2008-03-31  Bruno Haible  <bruno@clisp.org>
61307
61308         * tests/test-strtod.c (main): Don't use C99 syntax.
61309
61310 2008-03-31  Bruno Haible  <bruno@clisp.org>
61311
61312         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61313         Reported by Eric Blake.
61314
61315 2008-03-31  Jim Meyering  <meyering@redhat.com>
61316
61317         Don't compare actual signbit return values.
61318         * tests/test-strtod.c (main): Rather, compare only their
61319         zero/non-zero nature.
61320
61321 2008-03-31  Eric Blake  <ebb9@byu.net>
61322
61323         More strtod documentation.
61324         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61325         failures as distinct bugs.
61326
61327 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61330         Problem reported by Erik Benada in
61331         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61332
61333 2008-03-30  Bruno Haible  <bruno@clisp.org>
61334
61335         * tests/test-strtod.c: Add comments about which assertion fails on which
61336         platform.
61337         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61338
61339 2008-03-30  Eric Blake  <ebb9@byu.net>
61340
61341         Test signbit behavior on zeros.
61342         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61343         (test_signbitd, test_signbitl): Likewise.
61344
61345         More strtod touchups.
61346         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61347         sign of negative underflow, for now.  Use .5, not .1.
61348         * doc/posix-functions/strtod.texi (strtod): Mention these
61349         limitations.
61350         Reported by Jim Meyering.
61351
61352 2008-03-30  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61355         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61356
61357 2008-03-30  Bruno Haible  <bruno@clisp.org>
61358
61359         Avoid failure when attempting to return empty iconv results on some
61360         platforms.
61361         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61362         allocation, don't report ENOMEM when the resulting string is empty.
61363
61364 2008-03-30  Bruno Haible  <bruno@clisp.org>
61365
61366         Fix buffer overrun.
61367         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61368         Don't consider the width for tmp_length. Check count against tmp_length
61369         before doing the padding. Ensure enough allocation during padding.
61370
61371 2008-03-30  Eric Blake  <ebb9@byu.net>
61372
61373         strtod touchups.
61374         * lib/strtod.c (strtod): Avoid compiler warnings.
61375         Reported by Jim Meyering.
61376
61377 2008-03-30  Bruno Haible  <bruno@clisp.org>
61378
61379         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61380         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61381         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61382         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61383         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61384         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61385         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61386         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61387
61388         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61389         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61390         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61391         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61392         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61393         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61394         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61395         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61396
61397         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61398         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61399         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61400         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61401         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61402         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61403         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61404         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61405
61406         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61407         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61408
61409         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61410         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61411
61412         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61413         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61414
61415         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61416         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61417         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61418
61419         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61421         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61422
61423         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61424         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61425         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61426
61427         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61429         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61430
61431         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61432         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61434         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61435         (Depends-on): Add EOVERFLOW.
61436         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61437         (Depends-on): Add EOVERFLOW.
61438         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61439         (Depends-on): Add EOVERFLOW.
61440         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61441         (Depends-on): Add EOVERFLOW.
61442         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61443         (Depends-on): Add EOVERFLOW.
61444         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61445         (Depends-on): Add EOVERFLOW.
61446         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61447         (Depends-on): Add EOVERFLOW.
61448         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61449         (Depends-on): Add EOVERFLOW.
61450
61451         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61453         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61454
61455         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61456         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61457         * modules/snprintf (Depends-on): Add EOVERFLOW.
61458
61459         * lib/poll.c (EOVERFLOW): Remove fallback.
61460         * modules/poll (Depends-on): Add EOVERFLOW.
61461
61462         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61463         * modules/getugroups (Depends-on): Add EOVERFLOW.
61464
61465         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61466         * modules/getdelim (Depends-on): Add EOVERFLOW.
61467
61468         * lib/ftell.c (EOVERFLOW): Remove fallback.
61469         * modules/ftell (Depends-on): Add EOVERFLOW.
61470
61471         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61473         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61474
61475         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61476
61477         * modules/EOVERFLOW-tests: New file.
61478         * tests/test-EOVERFLOW.c: New file.
61479
61480         * modules/EOVERFLOW: New file.
61481         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61482
61483 2008-03-30  Bruno Haible  <bruno@clisp.org>
61484
61485         Fix bug introduced on 2007-06-10.
61486         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61487         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61488
61489 2008-03-30  Bruno Haible  <bruno@clisp.org>
61490
61491         Improve freadseek's efficiency after ungetc.
61492         * lib/freadseek.c: Include freadahead.h.
61493         (freadptrinc): New function, extracted from freadseek.
61494         (freadseek): Use it in a loop. Use freadahead to determine the number
61495         of loop iterations.
61496         * modules/freadseek (Depends-on): Add freadahead.
61497         (configure.ac): Require AC_C_INLINE.
61498
61499 2008-03-30  Bruno Haible  <bruno@clisp.org>
61500
61501         * lib/freadseek.c (freadseek): Don't ignore the return value of
61502         freadptr.
61503
61504 2008-03-29  Eric Blake  <ebb9@byu.net>
61505
61506         Add hex float support.
61507         * modules/strtod (Depends-on): Add c-ctype.
61508         (Link): Mention POW_LIB.
61509         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61510         whitespace between 'e' and exponent.
61511         * tests/test-strtod.c (main): Enable hex float tests.
61512         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61513         now provides.
61514
61515         Document various strtod bugs, with some fixes.
61516         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61517         "-0x", "inf", "nan", and hex constants.
61518         * doc/posix-functions/atof.texi (atof): Likewise.
61519         * modules/stdlib (Makefile.am): Support strtod.
61520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61521         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61522         detect additional strtod bugs.
61523         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61524         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61525         bool where appropriate.  Parse 'inf' and 'nan'.
61526         * tests/test-strtod.c: New file.
61527         * modules/strtod (Depends-on): Add stdbool, stdlib.
61528         (configure.ac): Turn on module indicator.
61529         * modules/strtod-tests: New module.
61530
61531 2008-03-29  Eric Blake  <ebb9@byu.net>
61532
61533         Fix ftell on mingw.
61534         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61535         * modules/ftell-tests (Depends-on): Add binary-io.
61536         * modules/ftello-tests (Depends-on): Likewise.
61537         * tests/test-ftell.c (main): Enhance test to cover behavior after
61538         ungetc.  Enforce binary mode.
61539         * tests/test-ftello.c (main): Likewise.
61540
61541         Pass test-freadseek on cygwin.
61542         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61543         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61544         ungetc buffer.
61545
61546         * tests/test-fflush2.c (main): Fix typo.
61547
61548 2008-03-29  Bruno Haible  <bruno@clisp.org>
61549
61550         * tests/test-fflush2.c (main): Temporarily disable the contents of
61551         this test.
61552         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61553         Reported by Eric Blake.
61554
61555 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61556
61557         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61558         (GC_SHA224_DIGEST_SIZE): Add.
61559
61560         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61561         (gc_hash_digest_length): Likewise.
61562         (gc_hash_buffer): Likewise.
61563
61564 2008-03-25  Bruno Haible  <bruno@clisp.org>
61565
61566         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61567         detail which gettext release to use.
61568         Reported by Simon Josefsson.
61569
61570 2008-03-26  Jim Meyering  <meyering@redhat.com>
61571
61572         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61573         * modules/gnumakefile (clean-GNUmakefile): Also, use
61574         test ... && ... || : syntax rather than if-then ... fi.
61575
61576         gnumakefile: Don't double-quote-expand $(VPATH) value.
61577         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61578
61579 2008-03-24  Eric Blake  <ebb9@byu.net>
61580
61581         Alter GNUmakefile to install into top directory.
61582         * modules/maintainer-makefile: Split, and add dependency...
61583         * modules/gnumakefile: to this new module.
61584         * build-aux/GNUmakefile: Move...
61585         * top/GNUmakefile: ...here.
61586         * build-aux/maint.mk: Move...
61587         * top/maint.mk: ...here.
61588         * MODULES.html.sh (Support for maintaining...): Document new
61589         module.
61590
61591 2008-03-23  Bruno Haible  <bruno@clisp.org>
61592
61593         * gnulib-tool: New options --vc-files, --no-vc-files.
61594         (func_usage): Document them.
61595         (vc_files): New variable.
61596         (func_import): Consider vc_files.
61597         (func_create_testdir): Set vc_files to empty.
61598         Suggested by Jim Meyering and Karl Berry.
61599
61600 2008-03-23  Bruno Haible  <bruno@clisp.org>
61601
61602         Fix regex compilation error on HP-UX 11.
61603         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61604         * modules/regex (Files): Add m4/mbstate_t.m4.
61605         Reported by Ton Voon <ton.voon@altinity.com>.
61606
61607 2008-03-23  Bruno Haible  <bruno@clisp.org>
61608
61609         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61610
61611 2008-03-23  Eric Blake  <ebb9@byu.net>
61612             Bruno Haible  <bruno@clisp.org>
61613
61614         Install files from top/ in the destination directory.
61615         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61616         augmentation also for the files from top/.
61617         (func_import, func_create_testdir): Rewrite file names:
61618         top/filename -> filename.
61619
61620 2008-03-23  Bruno Haible  <bruno@clisp.org>
61621
61622         Tweak "gnulib --version" output.
61623         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61624
61625 2008-03-23  Bruno Haible  <bruno@clisp.org>
61626
61627         Tweak "gnulib --version" output.
61628         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61629         rather than contents of ChangeLog, when possible.
61630
61631 2008-03-21  Eric Blake  <ebb9@byu.net>
61632
61633         More --version tweaks.
61634         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61635         date of last ChangeLog entry.
61636
61637 2008-03-21  Jim Meyering  <meyering@redhat.com>
61638
61639         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61640
61641 2008-03-20  Eric Blake  <ebb9@byu.net>
61642
61643         VPATH fix.
61644         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61645
61646 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61647
61648         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61649         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61650
61651 2008-03-20  Eric Blake  <ebb9@byu.net>
61652
61653         Sync GNUmakefile with coreutils.
61654         * build-aux/GNUmakefile (have-Makefile): Rename...
61655         (_have-Makefile): ...to this, for namespace consideration.
61656         (GNUmakefile.cfg): Include, if present.
61657         (_autoreconf): Define a default.
61658         (_is-dist-target): New rule for rebuilds to pick up intra-release
61659         version.
61660         (maint-cfg.mk): Rename...
61661         (cfg.mk): ...to this.
61662
61663 2008-03-18  Jim Meyering  <meyering@redhat.com>
61664
61665         New script and module: mktempd
61666         * MODULES.html.sh (maint+release support): Add mktempd.
61667         * build-aux/mktempd: New file.
61668         * modules/mktempd: New file.
61669
61670 2008-03-15  Jim Meyering  <meyering@redhat.com>
61671
61672         Undo last change.
61673         * lib/sha1.c, lib/md5.c: 63 != ~63.
61674         Reported by Andreas Schwab.
61675
61676         sha1.c, md5.c: Hoist a redundant expression.
61677         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61678         "ctx->buflen" only once, before calling *_process_block.
61679         * lib/md5.c (md5_process_bytes): Likewise.
61680
61681 2008-03-14  Eric Blake  <ebb9@byu.net>
61682
61683         Bump copyright year in files generated by gnulib-tool.
61684         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61685         gnulib-tool, rather than hard-coding it.
61686
61687         Fix 'gnulib-tool --version' output to work with git.
61688         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61689         (startup): ...here.
61690         (func_version): Use it to invoke git-version-gen, rather than
61691         relying on CVS keyword expansion.  Modernize wording.
61692         (cvsdatestamp, last_checkin_date, version): Kill unused
61693         variables.
61694
61695 2008-03-12  Jim Meyering  <meyering@redhat.com>
61696
61697         Recognize optional cast of the argument to free.
61698         * build-aux/useless-if-before-free: Update regexps.
61699
61700         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61701
61702 2008-03-11  Bruno Haible  <bruno@clisp.org>
61703
61704         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61705         by a single package.
61706         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61707         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61708         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61709         Reported by Sam Steingold <sds@gnu.org>.
61710
61711 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61712
61713         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61714         repositories.
61715
61716 2008-03-11  Bruno Haible  <bruno@clisp.org>
61717
61718         Avoid conflicts between local macro definitions.
61719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61720         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61721
61722 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61723             Bruno Haible  <bruno@clisp.org>
61724
61725         Make va_copy work with some version of xlc on AIX 5.1.
61726         * lib/stdarg.in.h: New file.
61727         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61728         On AIX, use a <stdarg.h> file substitute.
61729         * modules/stdarg (Files): Add lib/stdarg.in.h.
61730         (Depends-on): Add include_next.
61731         (Makefile.am): Build a stdarg.h substitute if requested.
61732         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61733
61734 2008-03-10  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61737         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61738         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61739
61740 2008-03-10  Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/stdlib (Depends-on): Add include_next, remove
61743         absolute-header.
61744
61745 2008-03-09  Bruno Haible  <bruno@clisp.org>
61746
61747         * lib/freadahead.h (freadahead): Document more precisely.
61748         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61749         the sum of both buffer sizes.
61750         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61751         * NEWS: Document the change.
61752
61753 2008-03-09  Bruno Haible  <bruno@clisp.org>
61754
61755         Extend freadptr to return also the buffer size.
61756         * lib/freadptr.h (freadptr): Add sizep argument.
61757         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61758         (freadptr): Add sizep argument. Determine buffer size like freadahead
61759         does.
61760         * tests/test-freadptr.c: Don't include freadahead.h.
61761         (main): Adapt for new calling convention of freadptr.
61762         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61763         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61764         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61765         tests/test-freadptr2.sh.
61766         (Depends): Remove freadahead.
61767         (TESTS): Add test-freadptr2.sh.
61768         (check_PROGRAMS): Add test-freadptr2.
61769
61770 2008-03-09  Bruno Haible  <bruno@clisp.org>
61771
61772         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61773         Report and solution by Simon Josefsson.
61774
61775 2008-03-06  Bruno Haible  <bruno@clisp.org>
61776
61777         Make fflush after ungetc work on BSD platforms.
61778         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61779         * tests/test-fflush2.c: New file.
61780         * tests/test-fflush2.sh: New file.
61781         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61782         tests/test-fflush2.c.
61783         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61784         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61785
61786 2008-03-06  Eric Blake  <ebb9@byu.net>
61787
61788         Likewise for ftello.
61789         * modules/ftello (Dependencies): Add extensions.
61790         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61791
61792 2008-03-06  Bruno Haible  <bruno@clisp.org>
61793
61794         * modules/fseeko (Dependencies): Add extensions.
61795         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61796         Needed on glibc systems.
61797
61798 2008-03-06  Bruno Haible  <bruno@clisp.org>
61799
61800         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61801         email address.
61802         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61803
61804 2008-03-06  Bruno Haible  <bruno@clisp.org>
61805
61806         * users.txt: Add libgnupdf.
61807
61808 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61809
61810         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61811         (Header File Substitutes, Function Substitutes,
61812         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61813         (Build robot for gnulib): Fix typo.
61814
61815 2008-03-06  Bruno Haible  <bruno@clisp.org>
61816
61817         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61818         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61819
61820 2008-03-06  Bruno Haible  <bruno@clisp.org>
61821
61822         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61823         * doc/gnulib.texi: Include it.
61824
61825 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61826
61827         * modules/func (License): Change license to unlimited; there was
61828         no LGPL parts in the module anyway.
61829
61830 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61831
61832         * modules/__func__: Renamed to modules/func.
61833         * modules/__func__-tests: Renamed to modules/func-tests.
61834         * tests/test-__func__.c: Renamed to tests/test-func.c.
61835         * m4/__func__.m4: Renamed to m4/func.m4.
61836         * doc/gnulib.texi (__func__): Section renamed to func.
61837         Suggested by Eric Blake <ebb9@byu.net>.
61838
61839 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61840
61841         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61842         about __func__.  Make example self-contained.  Suggested by Eric
61843         Blake <ebb9@byu.net>.
61844
61845         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61846         Suggested by Eric Blake <ebb9@byu.net>.
61847
61848 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61849
61850         * modules/__func__: New file.
61851         * modules/__func__-tests: New file.
61852         * tests/test-__func__.c: New file.
61853         * m4/__func__.m4: New file.
61854         * doc/gnulib.texi (__func__): Document __func__ module.
61855
61856 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61857
61858         * modules/byteswap (License): Re-license as LGPLv2+.
61859
61860 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61861
61862         * doc/Makefile: Add pdf target.
61863
61864 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61865
61866         * modules/inline (License): Use 'unlimited', since there are only
61867         *.m4 files in this module.
61868
61869 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61870             Bruno Haible  <bruno@clisp.org>
61871
61872         Add support for HP C 7.1 on OpenVMS 8.3.
61873         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61874
61875 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61876
61877         Update VMS specifics.
61878         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61879
61880 2008-03-02  Jim Meyering  <meyering@redhat.com>
61881
61882         Remove the last dependency on the "free" module.
61883         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61884         Reported by Bob Proulx.
61885
61886         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61887
61888         Remove useless "if" tests before free.  Deprecate "free" module.
61889         * doc/posix-functions/free.texi: Mention that this
61890         module is no longer useful.
61891         * modules/free (Notice): Say this module is obsolete.
61892         * modules/readutmp (Depends-on): Remove free.
61893         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61894         * lib/putenv.c (putenv): Likewise.
61895         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61896         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61897         * tests/test-c-strcasestr.c (main): Likewise.
61898         * tests/test-c-strstr.c (main): Likewise.
61899         * tests/test-mbscasestr1.c (main): Likewise.
61900         * tests/test-mbscasestr2.c (main): Likewise.
61901         * tests/test-mbsstr1.c (main): Likewise.
61902         * tests/test-mbsstr2.c (main): Likewise.
61903         * tests/test-memmem.c (main): Likewise.
61904         * tests/test-strcasestr.c (main): Likewise.
61905         * tests/test-striconv.c (main): Likewise.
61906         * tests/test-striconveh.c (main): Likewise.
61907         * tests/test-striconveha.c (main): Likewise.
61908         * tests/test-strstr.c (main): Likewise.
61909
61910         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61911
61912         bootstrap: sync from coreutils again
61913         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61914
61915 2008-03-01  Jim Meyering  <meyering@redhat.com>
61916
61917         bootstrap: sync from coreutils
61918         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61919         also when the target doesn't exist.
61920
61921 2008-03-01  Eric Blake  <ebb9@byu.net>
61922
61923         Fix bugs in last patch.
61924         * lib/memchr2.c (memchr2): Fix typo.
61925         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61926         extension.
61927         Reported by Bruce Korb.
61928
61929         New module 'memchr2'.
61930         * modules/memchr2: New file.
61931         * modules/memchr2-tests: Likewise.
61932         * lib/memchr2.h: Likewise.
61933         * lib/memchr2.c: Likewise, based on memchr.c.
61934         * tests/test-memchr2.c: New test.
61935         * MODULES.html.sh (String handling): Add memchr2.
61936
61937 2008-02-29  Bruno Haible  <bruno@clisp.org>
61938
61939         * modules/freadseek-tests: New file.
61940         * tests/test-freadseek.sh: New file.
61941         * tests/test-freadseek.c: New file.
61942
61943         New module 'freadseek'.
61944         * modules/freadseek: New file.
61945         * lib/freadseek.h: New file.
61946         * lib/freadseek.c: New file.
61947         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61948
61949 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61950
61951         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61952         wydawca.
61953
61954         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61955         program_invocation_name and program_invocation_short_name are
61956         present.
61957
61958 2008-02-28  Bruno Haible  <bruno@clisp.org>
61959
61960         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61961         * tests/test-freadptr.sh: Also test non-seekable stdin.
61962
61963 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61964
61965         * build-aux/bootstrap (source_base, m4_base)
61966         (doc_base, tests_base): New variables.
61967         (gnulib_tool_options): Do not hardcode base directories, use
61968         the above variables instead.
61969
61970 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61971
61972         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61973
61974 2008-02-28  Bruno Haible  <bruno@clisp.org>
61975
61976         * modules/freadptr-tests: New file.
61977         * tests/test-freadptr.sh: New file.
61978         * tests/test-freadptr.c: New file.
61979
61980         New module 'freadptr'.
61981         * modules/freadptr: New file.
61982         * lib/freadptr.h: New file.
61983         * lib/freadptr.c: New file.
61984         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61985
61986 2008-02-26  Karl Berry  <karl@freefriends.org>
61987
61988         Sync from Libtool:
61989         * libltdl/argz.c (argz_add, argz_count): New functions.
61990         * libltdl/argz.in.h: Declare them.
61991         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61992
61993 2008-02-22  Bruno Haible  <bruno@clisp.org>
61994
61995         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61996         is a pointer type.  Needed for HP-UX 10.
61997         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61998         * doc/posix-functions/gmtime_r.texi: Likewise.
61999         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62000
62001 2008-02-24  Bruno Haible  <bruno@clisp.org>
62002
62003         * modules/environ-tests: New file.
62004         * tests/test-environ.c: New file.
62005
62006         New module 'environ'.
62007         * modules/environ: New file.
62008         * lib/unistd.in.h (environ): New declaration.
62009         * m4/environ.m4: New file.
62010         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62011         after use.
62012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62013         HAVE_DECL_ENVIRON.
62014         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62015         HAVE_DECL_ENVIRON.
62016         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62017         wrong claim that 'environ' is missing on some systems.
62018         * modules/execute (Depends-on): Add environ.
62019         * lib/execute.c (environ): Remove fallback declaration.
62020         * modules/pipe (Depends-on): Add environ.
62021         * lib/pipe.c (environ): Remove fallback declaration.
62022         * modules/setenv (Depends-on): Add environ.
62023         * lib/setenv.c (environ): Remove fallback declaration.
62024         * modules/unsetenv (Depends-on): Add environ.
62025         * lib/unsetenv.c (environ): Remove fallback declaration.
62026         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62027         m4/environ.m4.
62028         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62029         (gl_PREREQ_UNSETENV): Likewise.
62030
62031 2008-02-24  Bruno Haible  <bruno@clisp.org>
62032
62033         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62034
62035 2008-02-20  Bob Proulx  <bob@proulx.com>
62036
62037         Enable use of older two part flavor 'git describe'.
62038         * build-aux/git-version-gen: If using the older two part flavor of
62039         git version then recreate the third part now present in the
62040         newer three part flavor of git describe.
62041
62042 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62043
62044         * lib/fts.c (fts_build): Typo correction to comment.
62045
62046 2008-02-17  Bruno Haible  <bruno@clisp.org>
62047
62048         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62049         generating no-op conflicts.
62050
62051 2008-02-17  Bruno Haible  <bruno@clisp.org>
62052
62053         Speed up by 10%.
62054         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62055         result_entries, rather than an index-based loop.
62056
62057 2008-02-17  Bruno Haible  <bruno@clisp.org>
62058
62059         Speed up by 25%.
62060         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62061         'hashcode_cached'.
62062         (entry_create): New function.
62063         (entry_hashcode): Use the cached hashcode if possible.
62064         (read_changelog_file, try_split_merged_entry): Use entry_create.
62065
62066 2008-02-17  Bruno Haible  <bruno@clisp.org>
62067
62068         Speed up from O(n^2) to O(n) for long ChangeLog files.
62069         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62070         (read_changelog_file): Change implementation of entries_reversed list
62071         to rbtreehash.
62072         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62073
62074 2008-02-17  Bruno Haible  <bruno@clisp.org>
62075
62076         New option --split-merged-entry.
62077         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62078         (find_paragraph_end, try_split_merged_entry): New functions.
62079         (long_options): Add option --split-merged-entry.
62080         (usage): Document option --split-merged-entry.
62081         (main): Implement option --split-merged-entry.
62082         Reported by Eric Blake.
62083
62084 2008-02-17  Bruno Haible  <bruno@clisp.org>
62085
62086         * lib/git-merge-changelog.c: Include c-strstr.h.
62087         (main): Support the "git pull --rebase" situation.
62088         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62089         Reported by Eric Blake.
62090
62091 2008-02-16  Eric Blake  <ebb9@byu.net>
62092
62093         Avoid doubling \ in common case of "c-maybe" quoting style.
62094         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62095         eliding outer quotes.
62096         * lib/quotearg.h: Document this.
62097         * tests/test-quotearg.c (result_strings, inputs, results_g)
62098         (flag_results, locale_results): Test it by adding a new string to
62099         each test group.
62100         (compare_strings): Test new string.
62101
62102 2008-02-13  Eric Blake  <ebb9@byu.net>
62103
62104         Avoid trigraph quoting in default output.
62105         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62106         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62107         unless explicitly requested.
62108         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62109
62110 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62111
62112         Don't rely on signed integer overflowing to negative value.
62113         * lib/getugroups.c (getugroups): Include <limits.h>.
62114         Instead, compare against INT_MAX, and increment only if the test passes.
62115
62116 2008-02-13  Jim Meyering  <meyering@redhat.com>
62117         and Eric Blake  <ebb9@byu.net>
62118
62119         Avoid shadowing warning and compile errors on Linux.
62120         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62121         forwarding macros on Linux.
62122         (dcgettext): Define a stub, for Linux.
62123         (results_g, main): Avoid warnings.
62124
62125 2008-02-12  Eric Blake  <ebb9@byu.net>
62126
62127         Silence warning in last patch.
62128         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62129
62130         Quotearg part 4: add tests, fix c-maybe colon quoting.
62131         * lib/quotearg.h: Improve documentation.
62132         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62133         escapes when adding outer quotes.  When quoting trigraphs, use
62134         valid C notation.  When quoting NUL, omit extra characters if next
62135         character is not digit.  Alter prototype.
62136         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62137         callers.
62138         * modules/quotearg-tests: New module.
62139         * tests/test-quotearg.c: New test.
62140
62141 2008-02-07  Eric Blake  <ebb9@byu.net>
62142
62143         Quotearg part 3: add flag to control outer quote elision.
62144         * lib/quotearg.h (c_maybe_quoting_style): New style.
62145         (enum quoting_flags): Better documentation of flags.
62146         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62147         c-maybe style.
62148         (quotearg_buffer_restyled): Handle new flag to elide outer
62149         quotes.
62150
62151         Quotearg part 2: add flag that can control NUL elision.
62152         * lib/quotearg.h (set_quoting_flags): New prototype.
62153         * lib/quotearg.c (struct quoting_options): Add flag field.
62154         (set_quoting_flags): New function.
62155         (quotearg_buffer_restyled): Add flags parameter.
62156         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62157         (quotearg_n_options): Set the flag, since length cannot be
62158         returned.
62159         (quoting_options_from_style): Default flags correctly.
62160
62161         Quotearg part 1: more wrappers, restore quotearg_char state.
62162         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62163         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62164         (quotearg_colon_mem): New wrappers.
62165         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62166         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62167         functions.
62168         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62169         (quotearg_colon_mem): New functions.
62170
62171 2008-02-11  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62174         library in the current directory: it does not work with parallel make.
62175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62176
62177 2008-02-11  Bruno Haible  <bruno@clisp.org>
62178
62179         * .gitattributes: New file.
62180
62181 2008-02-11  Jim Meyering  <meyering@redhat.com>
62182
62183         useless-if-before-free: Fix reversed exit values.
62184         * build-aux/useless-if-before-free: Use correct values
62185         for EXIT_MATCH and EXIT_NO_MATCH.
62186
62187         * build-aux/useless-if-before-free: Close stdout carefully.
62188
62189 2008-02-10  Bruno Haible  <bruno@clisp.org>
62190
62191         New module 'git-merge-changelog'.
62192         * modules/git-merge-changelog: New file.
62193         * lib/git-merge-changelog.c: New file.
62194
62195 2008-02-10  Jim Meyering  <meyering@redhat.com>
62196
62197         useless-if-before-free: New option: --list (-l).
62198
62199         useless-if-before-free: Don't exit immediately upon open failure.
62200         * build-aux/useless-if-before-free: Exit 2 for errors.
62201         Upon failure to open a file, don't exit immediately.
62202         Rather, just warn and continue with any remaining files.
62203
62204 2008-02-10  Bruno Haible  <bruno@clisp.org>
62205
62206         New abstract list operation 'node_set_value'.
62207         * lib/gl_list.h (gl_list_node_set_value): New function.
62208         (struct gl_list_implementation): New field node_set_value.
62209         * lib/gl_list.c (gl_list_node_set_value): New function.
62210         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62211         (gl_array_list_implementation): Update.
62212         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62213         (gl_carray_list_implementation): Update.
62214         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62215         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62216         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62217         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62218         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62219         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62220         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62221         Update.
62222         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62223         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62224         (gl_sublist_list_implementation): Update.
62225
62226 2008-02-10  Bruno Haible  <bruno@clisp.org>
62227
62228         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62229         Needed when ELEMENT is #defined to 'some_type *'.
62230
62231 2008-02-10  Jim Meyering  <meyering@redhat.com>
62232
62233         New script and module: useless-if-before-free
62234         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62235         * build-aux/useless-if-before-free: New file.
62236         * modules/useless-if-before-free: New file.
62237
62238         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62239
62240         xstrtol_error: Fix typo.
62241         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62242         s/exit_failure/exit_status/.
62243
62244 2008-02-09  Jim Meyering  <meyering@redhat.com>
62245
62246         New script and module: gitlog-to-changelog
62247         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62248         * modules/gitlog-to-changelog: New file.
62249         * build-aux/gitlog-to-changelog: New file.
62250
62251 2008-02-08  Jim Meyering  <meyering@redhat.com>
62252
62253         Avoid two "parameter unused" warnings.
62254         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62255         Mark "st" as used.
62256
62257         Use "git COMMAND", not "git-COMMAND".
62258         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62259         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62260         * build-aux/git-version-gen: Use "git status", not "git-status".
62261
62262 2008-02-07  Bruno Haible  <bruno@clisp.org>
62263
62264         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62265         Avoids a crash on Windows Vista.
62266         Reported by Adam Strzelecki <ono@java.pl> via
62267         Simon Josefsson <simon@josefsson.org>.
62268
62269 2008-02-06  Bruno Haible  <bruno@clisp.org>
62270
62271         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62272         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62273         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62275         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62277         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62278         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62286         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62287         left-adjust flag.
62288         * tests/test-snprintf-posix.h (test_function): Likewise.
62289         * tests/test-sprintf-posix.h (test_function): Likewise.
62290         * tests/test-vasprintf-posix.c (test_function): Likewise.
62291         * doc/posix-functions/fprintf.texi: Update.
62292         * doc/posix-functions/printf.texi: Update.
62293         * doc/posix-functions/snprintf.texi: Update.
62294         * doc/posix-functions/sprintf.texi: Update.
62295         * doc/posix-functions/vfprintf.texi: Update.
62296         * doc/posix-functions/vprintf.texi: Update.
62297         * doc/posix-functions/vsnprintf.texi: Update.
62298         * doc/posix-functions/vsprintf.texi: Update.
62299         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62300
62301 2008-02-06  Bruno Haible  <bruno@clisp.org>
62302
62303         Fix bug introduced on 2008-01-26.
62304         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62305
62306 2008-02-06  Bruno Haible  <bruno@clisp.org>
62307
62308         Fix bug introduced on 2007-06-10.
62309         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62310         !NEED_PRINTF_FLAG_ZERO.
62311
62312 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62313
62314         getloadavg: use libperfstat on AIX5
62315         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62316
62317 2008-02-03  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/diffseq.h: Add comments about required #includes.
62320         Reported by Michael Biggs <gnulib@doubleplum.net>.
62321
62322 2008-02-01  Bruno Haible  <bruno@clisp.org>
62323
62324         * users.txt: Add gnuit.
62325
62326 2008-01-31  Bruno Haible  <bruno@clisp.org>
62327
62328         * lib/md4.c (set_uint32): Mark as inline.
62329         * lib/md5.c (set_uint32): Likewise.
62330         * lib/sha1.c (set_uint32): Likewise.
62331         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62332         * m4/md5.m4 (gl_MD5): Likewise.
62333         * m4/sha1.m4 (gl_SHA1): Likewise.
62334
62335 2008-01-31  Jim Meyering  <meyering@redhat.com>
62336
62337         Use "sizeof VAR", rather than a literal "4".
62338         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62339         * lib/md4.c (md4_read_ctx): Likewise.
62340         * lib/sha1.c (sha1_read_ctx): Likewise.
62341
62342 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62343
62344         * tests/test-sha1.c: New file, based on test-md5.c.
62345
62346         * modules/crypto/sha1-tests: New file.
62347
62348 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62349
62350         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62351
62352 2008-01-31  Jim Meyering  <meyering@redhat.com>
62353
62354         Prefer "sizeof v" over the equivalent "4".
62355         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62356         * lib/md5.c (set_uint32): Likewise.
62357         * lib/sha1.c (set_uint32): Likewise.
62358
62359 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62360
62361         * lib/sha1.c (set_uint32): Mark function as static.
62362
62363 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62364
62365         md2: clarify comments to say that alignment is not required.
62366         * lib/md2.h: Remove warning about alignment in comment.
62367         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62368         never been required.
62369
62370 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62371
62372         md4: adapt alignment constraint fix from sha1.
62373         * lib/md4.c (set_uint32): New function, from sha1.c
62374         (md4_read_ctx): Use it.
62375         (md4_finish_ctx): Doc fix.
62376         * lib/md4.h: Doc fix.
62377
62378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62379
62380         md5: adapt alignment constraint fix from sha1.
62381         * lib/md5.c (set_uint32): New function, from sha1.c
62382         (md5_read_ctx): Use it.
62383         (md5_finish_ctx): Doc fix.
62384         * lib/md5.h: Doc fix.
62385
62386 2008-01-30  Peter Palfrader  <weasel@debian.org>
62387
62388         sha1: remove the result buffer alignment constraint
62389         * lib/sha1.c (set_uint32): New function.
62390         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62391         constraint.
62392         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62393         * lib/sha1.h: Likewise.
62394
62395 2008-01-30  Andreas Schwab  <schwab@suse.de>
62396             Bruno Haible  <bruno@clisp.org>
62397
62398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62399         correct definition of LDBL_MIN_EXP.
62400
62401 2008-01-30  Karl Berry  <karl@gnu.org>
62402
62403         * config/srclist-update: try to preserve x bit on updates.
62404         * config/srclistvars.sh: update for karl.
62405
62406 2008-01-29  Jim Meyering  <meyering@redhat.com>
62407
62408         vasnprintf.c: Avoid warning about unused label
62409         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62410         "overflow" label definition and associated code with the
62411         same cpp condition that guards the sole use of that label.
62412
62413 2008-01-26  Bruno Haible  <bruno@clisp.org>
62414
62415         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62416         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62417         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62418         * lib/isnanl-nolibm.h (isnanl): Likewise.
62419         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62420
62421 2008-01-26  Bruno Haible  <bruno@clisp.org>
62422
62423         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62424         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62425
62426 2008-01-26  Bruno Haible  <bruno@clisp.org>
62427
62428         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62429         GCC >= 4.0 built-in.
62430         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62431
62432 2008-01-26  Bruno Haible  <bruno@clisp.org>
62433
62434         Rename isnan, applicable to 'double' only, to isnand.
62435         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62436         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62437         (configure.ac): Update.
62438         (Include): Replace "isnan.h" with "isnand.h".
62439         * m4/isnand.m4: Renamed from m4/isnan.m4.
62440         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62441         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62442         instead of isnan.c.
62443         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62444         instead of HAVE_ISNAN_IN_LIBC.
62445         (isnand): Renamed from isnan.
62446         * lib/isnand.c: New file.
62447         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62448         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62449         (Makefile.am): Update.
62450         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62451         Include isnand.h instead of isnan.h.
62452         (main): Test isnand instead of isnan.
62453         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62454         isnan-nolibm.
62455         * modules/frexp (Depends-on): Likewise.
62456         * modules/frexp-tests (Depends-on): Likewise.
62457         * modules/frexp-nolibm (Depends-on): Likewise.
62458         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62459         * modules/isfinite (Depends-on): Likewise.
62460         * modules/round-tests (Depends-on): Likewise.
62461         * modules/signbit (Depends-on): Likewise.
62462         * modules/signbit-tests (Depends-on): Likewise.
62463         * modules/snprintf-posix (Depends-on): Likewise.
62464         * modules/sprintf-posix (Depends-on): Likewise.
62465         * modules/trunc-tests (Depends-on): Likewise.
62466         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62467         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62468         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62469         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62470         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62471         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62472         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62473         * modules/vasnprintf-posix (Depends-on): Likewise.
62474         * modules/vasprintf-posix (Depends-on): Likewise.
62475         * modules/vfprintf-posix (Depends-on): Likewise.
62476         * modules/vsnprintf-posix (Depends-on): Likewise.
62477         * modules/vsprintf-posix (Depends-on): Likewise.
62478         * lib/frexp.c: Include isnand.h instead of isnan.h.
62479         (ISNAN): Set to isnand instead of isnan.
62480         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62481         (gl_isfinited): Use isnand instead of isnan.
62482         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62483         (gl_signbitd): Use isnand instead of isnan.
62484         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62485         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62486         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62487         (main): Use isnand instead of isnan.
62488         * tests/test-round1.c: Include isnand.h.
62489         (main): Use isnand instead of isnan.
62490         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62491         (ISNAN): Set to isnand instead of isnan.
62492         * tests/test-trunc1.c: Include isnand.h.
62493         (main): Use isnand instead of isnan.
62494         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62495         (equal): Use isnand instead of isnan.
62496         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62497         isnand-nolibm.
62498         * NEWS: Mention the change.
62499
62500 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62501             Bruno Haible  <bruno@clisp.org>
62502
62503         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62504         the GCC builtins for signbits are present and set
62505         REPLACE_SIGNBIT_USING_GCC if so.
62506         * lib/math.in.h (signbit): Define using GCC builtins if
62507         REPLACE_SIGNBIT_USING_GCC is set.
62508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62509         REPLACE_SIGNBIT_USING_GCC.
62510         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62511
62512 2008-01-25  Jim Meyering  <meyering@redhat.com>
62513
62514         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62515         * lib/poll.c: Include <config.h>, not "config.h".
62516         * tests/test-getaddrinfo.c: Likewise.
62517
62518 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62519
62520         * modules/sockets-tests: New file.
62521
62522 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62523
62524         * modules/sockets: New module, can be used to call WSA_Startup and
62525         WSA_Cleanup when needed.
62526
62527         * lib/sockets.h, lib/sockets.c: New files.
62528
62529         * m4/sockets.m4: New file.
62530
62531         * tests/test-sockets.c: New file.
62532
62533 2008-01-19  Bruno Haible  <bruno@clisp.org>
62534
62535         * doc/posix-headers: Renamed from doc/headers.
62536         * doc/posix-functions: Renamed from doc/functions.
62537         * doc/gnulib.texi: Update.
62538
62539 2008-01-19  Bruno Haible  <bruno@clisp.org>
62540
62541         * doc/glibc-functions/strcasestr.texi: Include contents of
62542         doc/functions/strcasestr.texi, fixing the list of platforms.
62543         * doc/functions/strcasestr.texi: Remove file.
62544
62545 2008-01-19  Bruno Haible  <bruno@clisp.org>
62546
62547         * doc/glibc-functions/memmem.texi: Include contents of
62548         doc/functions/memmem.texi.
62549         * doc/functions/memmem.texi: Remove file.
62550
62551 2008-01-18  Bruno Haible  <bruno@clisp.org>
62552
62553         * doc/glibc-functions/*.texi: New files.
62554         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62555         to use the new files.
62556
62557 2008-01-17  Bruno Haible  <bruno@clisp.org>
62558
62559         * tests/test-gethostname.c (main): Fix printf statement.
62560
62561 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62562
62563         * modules/gethostname-tests: New file.
62564
62565         * tests/test-gethostname.c: New file.
62566
62567 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62568
62569         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62570         used by the UNAME case.  Reported by Bruno Haible
62571         <bruno@clisp.org>.
62572
62573 2008-01-17  Eric Blake  <ebb9@byu.net>
62574
62575         Convert c-strcasestr to be more efficient.
62576         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62577         (Depends-on): Add c-strcase, remove malloca, strnlen.
62578         * tests/test-c-strcasestr.c (main): Enhance test.
62579         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62580
62581 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62582
62583         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62584         Use it in creating po/Makevars.
62585
62586 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62587
62588         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62589         Applications that requires it should initialize libgcrypt
62590         manually.
62591
62592 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62593
62594         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62595
62596 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62597
62598         Fix problem with getdate on mingw32 reported by Simon Josefsson
62599         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62600         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62601         tzname", when deciding whether to declare tzname.
62602         * lib/strftime.c (tzname): Likewise.
62603
62604 2008-01-15  Bruno Haible  <bruno@clisp.org>
62605
62606         Work around a MacOS X 10.5 bug in frexpl().
62607         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62608         * doc/functions/frexpl.texi: Document the bug.
62609         Reported by Elias Pipping <pipping@gentoo.org>.
62610
62611 2008-01-14  Eric Blake  <ebb9@byu.net>
62612
62613         Touch up previous patch.
62614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62615         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62616
62617         Convert strcasestr module to use Two-Way algorithm.
62618         * modules/strcasestr-simple: New module, based on the old
62619         strcasestr, but with Two-Way rather than KMP.
62620         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62621         * lib/string.in.h (rpl_strcasestr): Declare.
62622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62623         performance.
62624         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62625         * modules/string (Makefile.am): Support strcasestr.
62626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62627         * modules/strcasestr-tests (Depends-on): Check for alarm.
62628         * tests/test-strcasestr.c: Augment test.
62629         * lib/str-two-way.h: Clean up stray macro.
62630         * NEWS: Document new module.
62631         * MODULES.html.sh (string handling): Likewise.
62632         * doc/functions/strcasestr.texi: New file.
62633         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62634         here, since it is not a POSIX function.
62635
62636 2008-01-14  Colin Watson  <cjwatson@debian.org>
62637             Bruno Haible  <bruno@clisp.org>
62638
62639         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62640         works fine; if not, set REPLACE_STRSIGNAL.
62641         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62643         REPLACE_STRSIGNAL.
62644         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62645         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62646         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62647
62648 2008-01-14  Bruno Haible  <bruno@clisp.org>
62649
62650         * modules/strsignal (Include): Change to <string.h>.
62651
62652 2008-01-14  Colin Watson  <cjwatson@debian.org>
62653
62654         * modules/argp (Notice): Add a notice recommending to change
62655         XGETTEXT_OPTIONS.
62656         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62657
62658 2008-01-13  Colin Watson  <cjwatson@debian.org>
62659
62660         * modules/strsignal-tests: New file.
62661         * tests/test-strsignal.c: New file.
62662
62663         * lib/strsignal.c: New file, from glibc with modifications.
62664         * lib/siglist.h: New file, from glibc with modifications.
62665         * lib/string.in.h (strsignal): New declaration.
62666         * m4/strsignal.m4: New file.
62667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62668         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62669         * modules/strsignal: New file.
62670         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62671         HAVE_DECL_STRSIGNAL.
62672
62673 2008-01-13  Bruno Haible  <bruno@clisp.org>
62674
62675         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62676         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62677         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62678         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62679
62680 2008-01-13  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62683         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62684         * lib/argp.h (__attribute__): Likewise.
62685         * lib/c-stack.c (__attribute__): Likewise.
62686         * lib/error.h (__attribute__): Likewise.
62687         * lib/fts.c (__attribute__): Likewise.
62688         * lib/openat.h (__attribute__): Likewise.
62689         * lib/stdio.in.h (__attribute__): Likewise.
62690         * lib/string.in.h (__attribute__): Likewise.
62691         * lib/utimens.c (__attribute__): Likewise.
62692         * lib/vasnprintf.h (__attribute__): Likewise.
62693         * lib/xalloc.h (__attribute__): Likewise.
62694         * lib/xprintf.h (__attribute__): Likewise.
62695         * lib/xstrtol.h (__attribute__): Likewise.
62696         * lib/xvasprintf.h (__attribute__): Likewise.
62697
62698 2008-01-12  Bruno Haible  <bruno@clisp.org>
62699
62700         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62701         * doc/glibc-headers/a.out.texi: New file.
62702         * doc/glibc-headers/aliases.texi: New file.
62703         * doc/glibc-headers/alloca.texi: New file.
62704         * doc/glibc-headers/ar.texi: New file.
62705         * doc/glibc-headers/argp.texi: New file.
62706         * doc/glibc-headers/argz.texi: New file.
62707         * doc/glibc-headers/byteswap.texi: New file.
62708         * doc/glibc-headers/crypt.texi: New file.
62709         * doc/glibc-headers/endian.texi: New file.
62710         * doc/glibc-headers/envz.texi: New file.
62711         * doc/glibc-headers/err.texi: New file.
62712         * doc/glibc-headers/error.texi: New file.
62713         * doc/glibc-headers/execinfo.texi: New file.
62714         * doc/glibc-headers/fpu_control.texi: New file.
62715         * doc/glibc-headers/fstab.texi: New file.
62716         * doc/glibc-headers/fts.texi: New file.
62717         * doc/glibc-headers/getopt.texi: New file.
62718         * doc/glibc-headers/ieee754.texi: New file.
62719         * doc/glibc-headers/ifaddrs.texi: New file.
62720         * doc/glibc-headers/libintl.texi: New file.
62721         * doc/glibc-headers/mcheck.texi: New file.
62722         * doc/glibc-headers/mntent.texi: New file.
62723         * doc/glibc-headers/obstack.texi: New file.
62724         * doc/glibc-headers/paths.texi: New file.
62725         * doc/glibc-headers/printf.texi: New file.
62726         * doc/glibc-headers/pty.texi: New file.
62727         * doc/glibc-headers/resolv.texi: New file.
62728         * doc/glibc-headers/shadow.texi: New file.
62729         * doc/glibc-headers/sysexits.texi: New file.
62730         * doc/glibc-headers/ttyent.texi: New file.
62731
62732 2008-01-12  Jim Meyering  <meyering@redhat.com>
62733
62734         announce-gen: emit Gnulib's git-based version string.
62735         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62736         New option --gnulib-version=V, where V is expected to be
62737         the output of running git describe in the gnulib directory.
62738         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62739         not useful, and plan to stop publishing an xdelta file with each
62740         coreutils release.
62741
62742         * build-aux/announce-gen: Also check for lzma-compressed files.
62743
62744 2008-01-11  Bruno Haible  <bruno@clisp.org>
62745
62746         * tests/test-memmem.c (main): Increase maximum allowed time.
62747         * tests/test-strstr.c (main): Likewise.
62748
62749 2008-01-11  Bruno Haible  <bruno@clisp.org>
62750
62751         * doc/functions/memmem.texi: Add more precisions about platforms.
62752         * doc/functions/strstr.texi: Likewise.
62753
62754 2008-01-10  Eric Blake  <ebb9@byu.net>
62755
62756         * m4/strstr.m4: Delete cruft from copy-n-paste.
62757         Reported by Bruno Haible.
62758
62759 2008-01-10  Bruno Haible  <bruno@clisp.org>
62760
62761         Make c-strstr rely on strstr.
62762         * lib/c-strstr.c: Don't include str-kmp.h.
62763         (c_strstr): Define in terms of strstr.
62764         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62765         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62766
62767 2008-01-10  Bruno Haible  <bruno@clisp.org>
62768
62769         * doc/gnulib.texi (String Functions in C Locale): New section.
62770         * doc/c-ctype.texi: New file.
62771         * doc/c-strcase.texi: New file.
62772         * doc/c-strcaseeq.texi: New file.
62773         * doc/c-strcasestr.texi: New file.
62774         * doc/c-strstr.texi: New file.
62775         * doc/c-strtod.texi: New file.
62776         * doc/c-strtold.texi: New file.
62777
62778 2008-01-10  Eric Blake  <ebb9@byu.net>
62779
62780         * lib/relocatable.h: Fix a comment.
62781
62782 2008-01-10  Eric Blake  <ebb9@byu.net>
62783
62784         Share two-way algorithm.
62785         * lib/str-two-way.h: New file, merged from...
62786         * lib/memmem.c: ...here...
62787         * lib/strstr.c: ...and here.
62788         * modules/memmem (Files): Use it.
62789         * modules/strstr (Files): Likewise.
62790
62791         Avoid quadratic strstr implementations.
62792         * lib/strstr.c: New file.
62793         * m4/strstr.m4: Likewise.
62794         * modules/strstr: Likewise.
62795         * modules/strstr-tests: Likewise.
62796         * tests/test-strstr.c: Likewise.
62797         * lib/string.in.h (rpl_strstr): Declare.
62798         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62800         * modules/string (Makefile.am): Likewise.
62801         * MODULES.html.sh (string handling): Mention new module.
62802         * doc/functions/strstr.texi (strstr): Document the bug.
62803
62804 2008-01-10  Bruno Haible  <bruno@clisp.org>
62805
62806         * lib/relocatable.h (relocate): State whether result is freshly
62807         allocated or not.
62808         * lib/relocatable.c (relocate): Return a freshly allocated string
62809         instead of a pointer to a privately held string.
62810         Reported by Sylvain Beucler <beuc@gnu.org>.
62811
62812 2008-01-10  Colin Watson  <cjwatson@debian.org>
62813
62814         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62815         s/S_ISNLK/S_ISLNK/.
62816
62817 2008-01-09  Bruno Haible  <bruno@clisp.org>
62818
62819         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62820         and other files.
62821         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62822         if it's only a guess.
62823         * modules/memmem: Simplify by depending on memmem-simple.
62824
62825 2008-01-09  Bruno Haible  <bruno@clisp.org>
62826
62827         Work around OpenBSD 4.0 tdelete() bug.
62828         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62829         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62830         macros and don't redefine the enum values.
62831         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62832         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62833         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62834
62835 2008-01-09  Bruno Haible  <bruno@clisp.org>
62836
62837         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62838         (main): Don't perform the tests if setlocale did not install a UTF-8
62839         locale. Needed on OpenBSD 4.0.
62840         * modules/wcwidth-tests (Depends-on): Add localcharset.
62841
62842 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62843
62844         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62845         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62846         * NEWS: announce this.
62847         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62848
62849 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62850         and Eric Blake  <ebb9@byu.net>
62851
62852         Add memmem-simple module.
62853         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62854         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62855         * modules/memmem-simple: New file.
62856         * modules/memmem (Description): Tweak.
62857         * MODULES.html.sh (string handling): Mention new module.
62858         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62859         addressed by memmem-simple.
62860         * NEWS: Document the difference.
62861
62862 2008-01-09  Eric Blake  <ebb9@byu.net>
62863
62864         Give gcc some memmem optimization hints.
62865         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62866         (strcasestr): Declare as pure.
62867         * modules/memmem (Maintainer): Claim my implementation.
62868
62869 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62870
62871         Support AIX 6.1 and higher.
62872         * build-aux/config.libpath: Likewise.
62873         * build-aux/config.rpath: Likewise.
62874
62875 2008-01-08  Jim Meyering  <meyering@redhat.com>
62876             Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62879         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62880         Reported by Peter Fales in
62881         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62882
62883 2008-01-08  Bruno Haible  <bruno@clisp.org>
62884
62885         * modules/unictype/category-of (Depends-on): Add
62886         unictype/category-none.
62887         * modules/unictype/category-and-tests (Depends-on): Add
62888         unictype/category-{L,N,Lu,Nd}.
62889         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62890         * modules/unictype/category-or-tests (Depends-on): Add
62891         unictype/category-{L,N}.
62892         * modules/unictype/category-name-tests (Depends-on): Add
62893         unictype/category-{Z,Nl}.
62894         Reported by Simon Josefsson.
62895
62896 2008-01-08  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62899         convention better.
62900         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62901         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62902         Reported by Peter Miller <millerp@canb.auug.org.au>.
62903
62904 2008-01-08  Eric Blake  <ebb9@byu.net>
62905
62906         Rewrite memmem to guarantee linear complexity without malloc.
62907         * lib/memmem.c (memmem): Use Two-Way rather than
62908         Knuth-Morris-Pratt, to allow O(1) space usage.
62909         (critical_factorization, two_way_short_needle)
62910         (two_way_long_needle): New functions.
62911         (knuth_morris_pratt): Delete.
62912         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62913         Add stdint.
62914         * tests/test-memmem.c (main): Add tests for periodic needle and
62915         sublinear performance.
62916         * doc/functions/memmem.texi (memmem): Document other deficiencies
62917         in cygwin and older glibc.
62918
62919 2008-01-08  Bruno Haible  <bruno@clisp.org>
62920
62921         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62922         augmentation.
62923
62924 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62925
62926         Add a configure time option: --disable-acl.
62927         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62928         AC_ARG_ENABLE(acl).
62929
62930 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62931
62932         * tests/test-localename.c: Don't include obsolete "setenv.h".
62933
62934         * modules/localename-tests (Depends-on): Need unsetenv.
62935
62936 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62937
62938         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62939
62940 2008-01-06  Colin Watson  <cjwatson@debian.org>
62941
62942         * users.txt: Add man-db.
62943
62944 2008-01-07  Bruno Haible  <bruno@clisp.org>
62945
62946         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62947         previous section name.
62948
62949 2008-01-07  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/progname.c (set_program_name): Don't strip off a leading
62952         "lt-" prefix outside a .libs directory.
62953         Suggested by Paul Eggert.
62954
62955 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62956             Bruno Haible  <bruno@clisp.org>
62957
62958         Improve memory cleanup in 'relocatable' module.
62959         * lib/relocatable.h (compute_curr_prefix): Change return type to
62960         'char *'.
62961         * lib/relocatable.c (compute_curr_prefix): Change return type to
62962         'char *'. Free curr_installdir after use.
62963         (relocate): Free curr_prefix_better after use.
62964         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62965
62966 2008-01-01  Bruno Haible  <bruno@clisp.org>
62967
62968         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62969         failure on older glibc systems.
62970         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62971
62972 2008-01-05  Eric Blake  <ebb9@byu.net>
62973
62974         Avoid quadratic system memmem.
62975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62976         Reported by Ralf Wildenhues.
62977
62978         Fix memmem test for mingw.
62979         * modules/memmem-tests (configure.ac): Check for alarm.
62980         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62981         it.
62982         * doc/functions/memmem.texi: New file.
62983         * doc/gnulib.texi (Function Substitutes): Add memmem.
62984         Reported by Bruno Haible.
62985
62986 2008-01-04  Bruno Haible  <bruno@clisp.org>
62987
62988         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62989         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62990         gl_HEADER_STRING_H_DEFAULTS.
62991
62992 2008-01-04  Eric Blake  <ebb9@byu.net>
62993
62994         Shorten duration of memmem test.
62995         * tests/test-memmem.c (main): Use alarm to declare failure if test
62996         is taking too long.
62997         Reported by Ralf Wildenhues.
62998
62999 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63000
63001         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63002         string, needed by strerror.
63003
63004 2008-01-03  Colin Watson  <cjwatson@debian.org>
63005             Bruno Haible  <bruno@clisp.org>
63006
63007         * doc/gnulib-tool.texi (Localization): New section.
63008
63009 2008-01-02  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63012         variables to 'unsigned char *' type.
63013         Reported by Paul Eggert.
63014
63015 2008-01-02  Jim Meyering  <jim@meyering.net>
63016
63017         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63018
63019 2007-12-31  Jim Meyering  <jim@meyering.net>
63020
63021         Avoid use of private FTS type name.
63022         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63023
63024 2007-12-30  Karl Berry  <karl@gnu.org>
63025
63026         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63027         work around defect in Texinfo and/or the standalone Info browser.
63028
63029 2007-12-30  Bruno Haible  <bruno@clisp.org>
63030
63031         Unify 5 copies of the KMP code.
63032         * lib/str-kmp.h: New file.
63033         * lib/c-strcasestr.c: Include str-kmp.h.
63034         (knuth_morris_pratt): Remove function.
63035         (c_strcasestr): Update.
63036         * lib/c-strstr.c: Include str-kmp.h.
63037         (knuth_morris_pratt): Remove function.
63038         (c_strcasestr): Update.
63039         * lib/mbscasestr.c: Include str-kmp.h.
63040         (knuth_morris_pratt_unibyte): Remove function.
63041         * lib/mbsstr.c: Include str-kmp.h.
63042         (knuth_morris_pratt_unibyte): Remove function.
63043         * lib/strcasestr.c: Include str-kmp.h.
63044         (knuth_morris_pratt): Remove function.
63045         (strcasestr): Update.
63046         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63047         * modules/c-strstr (Files): Likewise.
63048         * modules/mbscasestr (Files): Likewise.
63049         * modules/mbsstr (Files): Likewise.
63050         * modules/strcasestr (Files): Likewise.
63051         Suggested by Paul Eggert.
63052
63053 2007-12-30  Bruno Haible  <bruno@clisp.org>
63054
63055         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63056         defined.
63057
63058 2007-12-30  Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/xmalloca.h: Include xalloc.h.
63061         (xnmalloca): New macro.
63062
63063 2007-12-30  Bruno Haible  <bruno@clisp.org>
63064
63065         * lib/malloca.h (nmalloca): New macro.
63066         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63067         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63068         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63069         knuth_morris_pratt_multibyte): Likewise.
63070         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63071         knuth_morris_pratt_multibyte): Likewise.
63072         * lib/memmem.c (knuth_morris_pratt): Likewise.
63073         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63074
63075 2007-12-25  Bruno Haible  <bruno@clisp.org>
63076
63077         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63078         * lib/glob.c: Don't include openat.h.
63079         (link_exists2_p): Add back the code that deals with the
63080         !GLOB_ALTDIRFUNC case.
63081         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63082         let it do the filename concatenation.
63083         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63084         * modules/glob (Depends-on): Remove openat.
63085
63086 2007-12-31  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/dirfd (License): Change to LGPLv2+.
63089         Approved by Jim Meyering.
63090
63091 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63092
63093         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63094         when multiplying M by sizeof (size_t).
63095
63096 2007-12-10  Martin Lambers  <marlam@marlam.de>
63097
63098         Override getpagesize on mingw.
63099         * lib/getpagesize.c: New file.
63100         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63101         * modules/getpagesize (Files): Add lib/getpagesize.c.
63102         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63104         REPLACE_GETPAGESIZE.
63105         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63106
63107 2007-12-25  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/localcharset (Notice): New field.
63110         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63111         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63112
63113 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63114             Bruno Haible  <bruno@clisp.org>
63115
63116         Avoid using the syntax symbol() in formatted documentation.
63117         * MODULES.html.sh (func_module): When replacing symbol() with a
63118         hyperlink, remove the parentheses. Show an error if some remain.
63119         Recognize and render the '...' syntax.
63120         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63121         Rework. Add paragraph about GCC's inlining.
63122         * doc/alloca.texi: Likewise.
63123         * doc/error.texi: Remove parentheses from symbol reference.
63124         * doc/gnulib-intro.texi: Likewise.
63125         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63126         * modules/fnmatch (Description): Reword to say "the ... function".
63127         * modules/full-read (Description): Likewise.
63128         * modules/full-write (Description): Likewise.
63129         * modules/safe-read (Description): Likewise.
63130         * modules/safe-write (Description): Likewise.
63131         * modules/strchrnul (Description): Likewise.
63132         * modules/trim (Description): Likewise.
63133         * modules/error (Description): Remove parentheses from symbol
63134         references.
63135         * modules/verror (Description): Likewise.
63136         Reported by Karl Berry.
63137
63138 2007-12-25  Bruno Haible  <bruno@clisp.org>
63139
63140         Fixup after 2007-10-16 commit.
63141         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63142
63143 2007-12-24  Bruno Haible  <bruno@clisp.org>
63144
63145         Make --enable-relocatable work with DESTDIR.
63146         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63147         to compute installdir from destprog.
63148         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63149         also set the RELOC_DESTDIR variable.
63150         Reported by Левашев Иван <octagram@bluebottle.com>.
63151
63152 2007-12-24  Bruno Haible  <bruno@clisp.org>
63153
63154         Fix link error due to xalloc_die().
63155         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63156         of xreadlink.
63157         * lib/relocwrapper.c: Update comments.
63158         * build-aux/install-reloc: Remove xreadlink.c from file list.
63159         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63160         xreadlink.c.
63161         Reported by Левашев Иван <octagram@bluebottle.com>.
63162
63163 2007-12-24  Bruno Haible  <bruno@clisp.org>
63164
63165         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63166         * lib/setenv.h: Remove file.
63167         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63168         lib/setenv.h.
63169         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63170         (Depends-on): Add stdlib.
63171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63172         gl_FUNC_UNSETENV.
63173         (Include): Replace setenv.h with <stdlib.h>.
63174         * modules/unsetenv: New file.
63175         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63176         * lib/unsetenv.c: Include <stdlib.h> first.
63177         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63178         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63179         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63180         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63181         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63182         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63184         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63185         * doc/functions/unsetenv.texi: Update.
63186         * modules/xsetenv (Depends-on): Add unsetenv.
63187         * modules/getdate (Depends-on): Likewise.
63188         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63189         * lib/xsetenv.c: Don't include setenv.h.
63190         * lib/getdate.y: Likewise.
63191         * lib/relocwrapper.c: Likewise.
63192         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63193         (Depends-on): Add stdlib.
63194         * NEWS: Mention the changes.
63195         Reported by Левашев Иван <octagram@bluebottle.com>.
63196
63197 2007-12-23  Bruno Haible  <bruno@clisp.org>
63198
63199         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63200         indentation.
63201
63202 2007-12-23  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/c-strcasestr.c: Add more comments.
63205         * lib/c-strstr.c: Likewise.
63206         * lib/mbscasestr.c: Likewise.
63207         * lib/mbsstr.c: Likewise.
63208         * lib/strcasestr.c: Likewise.
63209         * lib/memmem.c: Likewise.
63210
63211 2007-12-23  Bruno Haible  <bruno@clisp.org>
63212
63213         * tests/test-memmem.c: Include <string.h> first.
63214
63215 2007-12-22  Bruno Haible  <bruno@clisp.org>
63216
63217         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63218         the contents of $testsbase.
63219         Reported by Ralf Wildenhues.
63220
63221 2007-12-22  Bruno Haible  <bruno@clisp.org>
63222
63223         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63224         two variables local_ldadd_before, local_ldadd_last.
63225
63226 2007-12-20  Eric Blake  <ebb9@byu.net>
63227
63228         Work around circular library issue when cross-compiling.
63229         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63230         that progname.o does not need to pull in rpl_memcmp.
63231
63232 2007-12-19  Eric Blake  <ebb9@byu.net>
63233
63234         Fix memmem to avoid O(n^2) worst-case complexity.
63235         * lib/memmem.c (knuth_morris_pratt): New function.
63236         (memmem): Use it if first few naive iterations fail.
63237         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63238         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63239         * modules/memchr (License): Likewise.
63240         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63241         malloca.
63242         * tests/test-memmem.c: Rewrite, borrowing ideas from
63243         test-mbsstr1.c; the old version wouldn't even compile!
63244         * modules/memmem-tests: New file.
63245         * lib/string.in.h (rpl_memmem): Add declaration.
63246         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63248         REPLACE_MEMMEM.
63249
63250 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63253         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63254         before any system include files, and undef after them all.  This
63255         should fix a problem on VMS reported by John E. Malmberg in
63256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63257
63258 2007-12-17  Eric Blake  <ebb9@byu.net>
63259
63260         Revert addition of verify, for BSD/OS.
63261         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63262         can't handle large files, for the sake of obsolete platforms.
63263         * modules/fseeko (Depends-on): Remove verify.
63264         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63265         * doc/functions/ftello.texi (ftello): Likewise.
63266         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63267         Reported by Larry Jones.
63268
63269 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63270
63271         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63272         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63273
63274 2007-12-17  Jim Meyering  <meyering@redhat.com>
63275
63276         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63277         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63278         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63279         * modules/getcwd (Depends-on): Add openat.
63280         Reported by Petr Salinger.
63281
63282 2007-12-17  Bruno Haible  <bruno@clisp.org>
63283
63284         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63285         avoid a segmentation fault of the configure test on x86_64 systems.
63286
63287 2007-12-15  Jim Meyering  <meyering@redhat.com>
63288
63289         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63290
63291 2007-12-13  Eric Blake  <ebb9@byu.net>
63292
63293         Another fseek test.
63294         * tests/test-fseek.c (main): Also test ungetc handling.
63295         * tests/test-fseeko.c (main): Likewise.
63296         * modules/fseeko (Depends-on): Add verify.
63297         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63298         large.
63299         Reported by Larry Jones.
63300
63301         Fix fseeko on mingw.
63302         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63303         seek.
63304
63305         Beef up fseek tests.
63306         * tests/test-fseek.c (main): Also test eof handling.
63307         * tests/test-fseeko.c (main): Likewise.
63308         Reported by Larry Jones.
63309
63310 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63311
63312         Fix fseeko on BSD-based platforms.
63313         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63314         successful seek.
63315
63316 2007-12-12  Eric Blake  <ebb9@byu.net>
63317
63318         Allow circular dependency of separate libtests.a
63319         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63320         when use_libtests.
63321
63322 2007-12-11  Eric Blake  <ebb9@byu.net>
63323
63324         Fix bug with -0.0L in previous patch.
63325         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63326         * tests/test-isnan.c (main): Also test on zeroes.
63327         * tests/test-isnanf.c (main): Likewise.
63328         * tests/test-isnanl.h (main): Likewise.
63329
63330         Detect pseudo-denormals on x86 even when cross-compiling.
63331         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63332         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63333         invalid bit patterns that happen to satisfy ==.
63334
63335         Avoid link failures with separate libtests.a.
63336         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63337         last, to satisfy circular dependencies.
63338
63339 2007-12-11  Eric Blake  <ebb9@byu.net>
63340         and Bruno Haible  <bruno@clisp.org>
63341
63342         Fix OpenBSD 4.0 <float.h> handling of long double.
63343         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63344         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63345         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63346
63347 2007-12-11  Jim Meyering  <meyering@redhat.com>
63348
63349         * users.txt: Add libvirt.
63350
63351         Support versions of autoconf prior to 2.59c.
63352         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63353         if it is not already defined.
63354
63355 2007-12-09  Bruno Haible  <bruno@clisp.org>
63356
63357         Let 'gnulib-tool --import' collect sources needed for the tests in
63358         tests/ rather than in lib/.
63359         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63360         argument. If true, add rules to generate libtests.a, and put libtests.a
63361         into $(LDADD). Consider source files in subdirectories and set
63362         uses_subdirs.
63363         (func_emit_initmacro_start, func_emit_initmacro_end,
63364         func_emit_initmacro_done): Pass all arguments explicitly.
63365         (func_import): Determine two module lists main_modules,
63366         testsrelated_modules. Determine use_libtests. Determine two variables
63367         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63368         instead of just sed_transform_lib_file. Determine two variables
63369         main_files and testsrelated_files. Compute 'files' as the union of
63370         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63371         func_add_or_update. In the generated gnulib-comp.m4, collect the
63372         object files for tests/ in different variables than those for lib/.
63373         Substitute LIBTESTS_LIBDEPS.
63374         (func_create_testdir): Combine the uses_subdirs results from
63375         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63376
63377 2007-12-09  Bruno Haible  <bruno@clisp.org>
63378
63379         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63380         the build-aux directory.
63381
63382 2007-12-09  Bruno Haible  <bruno@clisp.org>
63383
63384         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63385         introduced on 2006-09-09.
63386
63387 2007-12-07  Jim Meyering  <meyering@redhat.com>
63388
63389         Let these macros work also with autoconf-2.59.
63390         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63391         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63392         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63393
63394 2007-12-06  Jim Meyering  <meyering@redhat.com>
63395
63396         Avoid a configure-time syntax error in gl_FUNC_ACL.
63397         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63398         function in each branch, before testing the cache variable.
63399
63400 2007-12-04  Eric Blake  <ebb9@byu.net>
63401
63402         Make scripts executable.
63403         * build-aux/config.guess: Add execute permissions.
63404         * build-aux/config.sub: Likewise.
63405         * build-aux/gendocs.sh: Likewise.
63406
63407         Fix frexp on mingw.
63408         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63409         cross-compiling.
63410         * doc/functions/frexp.texi (frexp): Document the bug.
63411
63412         Make cygwin fseeko check more reliable.
63413         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63414         version numbers, rather than unrelated feature check.
63415         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63416         * doc/functions/ftello.texi (ftello): Likewise.
63417         Reported by Bruno Haible.
63418
63419         * m4/strerror.m4: Bump version number.
63420
63421 2007-12-03  Bruno Haible  <bruno@clisp.org>
63422
63423         * doc/functions/mprotect.texi: Mention the mingw problem.
63424
63425 2007-12-03  Eric Blake  <ebb9@byu.net>
63426
63427         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63428         REPLACE_STRERROR is initialized before this macro.
63429
63430 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63431
63432         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63433         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63434         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63435         put -lsec in even for programs other than 'ls'.  This fixes a problem
63436         for gettext reported by Bruno Haible in
63437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63438         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63439         Add support for Solaris 10.  This isn't efficient, but should get the
63440         job done for now.
63441
63442 2007-12-03  James Youngman  <jay@gnu.org>
63443
63444         * doc/regexprops-generic.texi: change "an close-group" to "a
63445         close-group" and "illegal" to "not allowed".
63446
63447 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63448
63449         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63450         pr_byname.h. Needed for the rare case when the maintainer has done
63451         "make maintainer-clean" in the source directory and then attempts a
63452         build outside the source directory.
63453         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63454         scripts_byname.h.
63455
63456 2007-12-02  Martin Lambers <marlam@marlam.de>
63457             Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/getpagesize.h: Remove file.
63460         * lib/unistd.in.h: Include declaration of getpagesize here.
63461         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63462         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63463         HAVE_SYS_PARAM_H.
63464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63465         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63466         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63467         (Depends-on): Add unistd.
63468         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63469         (Include): Use <unistd.h> instead of getpagesize.h.
63470         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63471         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63472         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63473         gl_GETPAGESIZE invocation, already handled by module dependency.
63474         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63475
63476 2007-12-02  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/strings-tests: New file.
63479         * tests/test-strings.c: New file.
63480
63481         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63482         * lib/strings.in.h: New file.
63483         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63484         * m4/strings_h.m4: New file.
63485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63486         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63487         * modules/strings: New file.
63488         * modules/string (Makefile.am): Update.
63489         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63490         Reported by Karl Berry.
63491
63492 2007-12-01  Eric Blake  <ebb9@byu.net>
63493
63494         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63495         accommodate fix in cygwin 1.5.25.
63496
63497 2007-12-01  Jim Meyering  <meyering@redhat.com>
63498
63499         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63500         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63501         that would inhibit utf8-optimization of a regexp containing line-
63502         or buffer-anchors, e.g., `^', `$'.
63503
63504 2007-11-30  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63507         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63508         glthread_recursive_lock_init.
63509         * lib/lock.c (glthread_recursive_lock_init)
63510         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63511         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63512
63513 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63514
63515         New function qset_acl, like set_acl but with syscall semantics.
63516         * lib/acl.h (qset_acl): New decl.
63517         * lib/acl.c (qset_acl): New function.
63518         (set_acl): Use new function.  Use more-consistent diagnostics.
63519
63520 2007-11-28  Jim Meyering  <meyering@redhat.com>
63521
63522         * modules/physmem (License): Change from GPL to LGPLv2+.
63523
63524 2007-11-26  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63527         'long double' type has excess precision.
63528         Reported by Jim Meyering in
63529         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63530
63531 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63532
63533         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63534         Sync from <http://gnu.org/licenses>.
63535         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63536         with license text from same location.
63537         * doc/maintain.texi, doc/standards.texi:  Sync from
63538         <http://savannah.gnu.org/projects/gnustandards>.
63539
63540 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63541         and Jim Meyering  <meyering@redhat.com>
63542
63543         Adjust getdate' grammar to accept a slightly more regular language.
63544         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63545         Before, the former was rejected.
63546         * lib/getdate.y (digits_to_date_time): New function, factored
63547         out of ...
63548         (number): ...here.  Just call digits_to_date_time.
63549         (hybrid): New non-terminal to handle an <unsigned number,
63550         signed relative offset> sequence consistently.
63551
63552 2007-11-18  Jim Meyering  <meyering@redhat.com>
63553
63554         Pull my changes from coreutils:
63555         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63556         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63557         use of $gnulib_tool_option_extras, so that it's separated from the
63558         preceding argument.
63559
63560         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63561         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63562         parent destination directories before copying a file into place.
63563
63564 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63565
63566         bootstrap: work also with 4-argument variant of AC_INIT
63567         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63568
63569 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         Port test-getaddrinfo to Solaris.
63572         Problem reported by Bruno Haible in
63573         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63574         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63575         explanation of setting 'hints'.
63576         Don't reject an implementation merely because it returns EAI_SERVICE.
63577         (EAI_SERVICE): Define to 0 if not defined.
63578
63579 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         The license of gnu-make and posix-shell is now "GPLed build tool".
63582         * modules/gnu-make (License): Likewise.
63583         * modules/posix-shell (License): Likewise.
63584
63585         New module posix-shell, for determining a POSIX shell
63586         or perhaps something that is close enough to a POSIX shell.
63587         * m4/posix-shell.m4: New file.
63588         * modules/posix-shell: New file.
63589
63590         * MODULES.html.sh: Mention new module.
63591
63592         New module gnu-make, for determining whether we're using GNU Make.
63593         * m4/gnu-make.m4: New file.
63594         * modules/gnu-make: New file.
63595         * MODULES.html.sh: Mention new module.
63596
63597 2007-11-14  Jim Meyering  <meyering@redhat.com>
63598
63599         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63600         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63601         use this macro to create a function _definition_.
63602         Remove useless "#undef ARGMATCH_DIE".
63603
63604 2007-11-14  Bruno Haible  <bruno@clisp.org>
63605
63606         * lib/config.charset: Update for OpenBSD 4.1.
63607         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63608
63609 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         Document 64-bit #if problems in stdint.texi.
63612         * doc/headers/stdint.texi (stdint.h): Mention problems with
63613         64-bit-#if, and how to work around them.
63614
63615         Don't insist on 'long long int' support in the preprocessor.  It
63616         breaks too many things.  For example, PRIdMAX still uses a 'long
63617         long int' format with the latest Sun compiler, even though
63618         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63619         preprocessor problem.  This causes the latest coreutils to dump
63620         core on Solaris 10 sparc with the Sun C compiler.
63621         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63622         the troublesome expressions at configure-time, not at #if-time.
63623         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63624         preprocessor.
63625         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63626         compile-time C checks, done at 'configure'-time.
63627         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63628         * modules/inttypes (Makefile): Substitute the new symbols that
63629         gl_INTTYPES_H now generates.
63630         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63631
63632 2007-11-12  Bruno Haible  <bruno@clisp.org>
63633
63634         Tests for Unicode character classification functions.
63635
63636         * modules/unictype/bidicategory-byname-tests: New file.
63637         * modules/unictype/bidicategory-name-tests: New file.
63638         * modules/unictype/bidicategory-of-tests: New file.
63639         * modules/unictype/bidicategory-test-tests: New file.
63640         * modules/unictype/block-list-tests: New file.
63641         * modules/unictype/block-of-tests: New file.
63642         * modules/unictype/block-test-tests: New file.
63643         * modules/unictype/category-C-tests: New file.
63644         * modules/unictype/category-Cc-tests: New file.
63645         * modules/unictype/category-Cf-tests: New file.
63646         * modules/unictype/category-Cn-tests: New file.
63647         * modules/unictype/category-Co-tests: New file.
63648         * modules/unictype/category-Cs-tests: New file.
63649         * modules/unictype/category-L-tests: New file.
63650         * modules/unictype/category-Ll-tests: New file.
63651         * modules/unictype/category-Lm-tests: New file.
63652         * modules/unictype/category-Lo-tests: New file.
63653         * modules/unictype/category-Lt-tests: New file.
63654         * modules/unictype/category-Lu-tests: New file.
63655         * modules/unictype/category-M-tests: New file.
63656         * modules/unictype/category-Mc-tests: New file.
63657         * modules/unictype/category-Me-tests: New file.
63658         * modules/unictype/category-Mn-tests: New file.
63659         * modules/unictype/category-N-tests: New file.
63660         * modules/unictype/category-Nd-tests: New file.
63661         * modules/unictype/category-Nl-tests: New file.
63662         * modules/unictype/category-No-tests: New file.
63663         * modules/unictype/category-P-tests: New file.
63664         * modules/unictype/category-Pc-tests: New file.
63665         * modules/unictype/category-Pd-tests: New file.
63666         * modules/unictype/category-Pe-tests: New file.
63667         * modules/unictype/category-Pf-tests: New file.
63668         * modules/unictype/category-Pi-tests: New file.
63669         * modules/unictype/category-Po-tests: New file.
63670         * modules/unictype/category-Ps-tests: New file.
63671         * modules/unictype/category-S-tests: New file.
63672         * modules/unictype/category-Sc-tests: New file.
63673         * modules/unictype/category-Sk-tests: New file.
63674         * modules/unictype/category-Sm-tests: New file.
63675         * modules/unictype/category-So-tests: New file.
63676         * modules/unictype/category-Z-tests: New file.
63677         * modules/unictype/category-Zl-tests: New file.
63678         * modules/unictype/category-Zp-tests: New file.
63679         * modules/unictype/category-Zs-tests: New file.
63680         * modules/unictype/category-and-not-tests: New file.
63681         * modules/unictype/category-and-tests: New file.
63682         * modules/unictype/category-byname-tests: New file.
63683         * modules/unictype/category-name-tests: New file.
63684         * modules/unictype/category-none-tests: New file.
63685         * modules/unictype/category-of-tests: New file.
63686         * modules/unictype/category-or-tests: New file.
63687         * modules/unictype/category-test-withtable-tests: New file.
63688         * modules/unictype/combining-class-tests: New file.
63689         * modules/unictype/ctype-alnum-tests: New file.
63690         * modules/unictype/ctype-alpha-tests: New file.
63691         * modules/unictype/ctype-blank-tests: New file.
63692         * modules/unictype/ctype-cntrl-tests: New file.
63693         * modules/unictype/ctype-digit-tests: New file.
63694         * modules/unictype/ctype-graph-tests: New file.
63695         * modules/unictype/ctype-lower-tests: New file.
63696         * modules/unictype/ctype-print-tests: New file.
63697         * modules/unictype/ctype-punct-tests: New file.
63698         * modules/unictype/ctype-space-tests: New file.
63699         * modules/unictype/ctype-upper-tests: New file.
63700         * modules/unictype/ctype-xdigit-tests: New file.
63701         * modules/unictype/decimal-digit-tests: New file.
63702         * modules/unictype/digit-tests: New file.
63703         * modules/unictype/mirror-tests: New file.
63704         * modules/unictype/numeric-tests: New file.
63705         * modules/unictype/property-alphabetic-tests: New file.
63706         * modules/unictype/property-ascii-hex-digit-tests: New file.
63707         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63708         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63709         * modules/unictype/property-bidi-block-separator-tests: New file.
63710         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63711         * modules/unictype/property-bidi-common-separator-tests: New file.
63712         * modules/unictype/property-bidi-control-tests: New file.
63713         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63714         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63715         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63716         * modules/unictype/property-bidi-european-digit-tests: New file.
63717         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63718         * modules/unictype/property-bidi-left-to-right-tests: New file.
63719         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63720         * modules/unictype/property-bidi-other-neutral-tests: New file.
63721         * modules/unictype/property-bidi-pdf-tests: New file.
63722         * modules/unictype/property-bidi-segment-separator-tests: New file.
63723         * modules/unictype/property-bidi-whitespace-tests: New file.
63724         * modules/unictype/property-byname-tests: New file.
63725         * modules/unictype/property-combining-tests: New file.
63726         * modules/unictype/property-composite-tests: New file.
63727         * modules/unictype/property-currency-symbol-tests: New file.
63728         * modules/unictype/property-dash-tests: New file.
63729         * modules/unictype/property-decimal-digit-tests: New file.
63730         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63731         * modules/unictype/property-deprecated-tests: New file.
63732         * modules/unictype/property-diacritic-tests: New file.
63733         * modules/unictype/property-extender-tests: New file.
63734         * modules/unictype/property-format-control-tests: New file.
63735         * modules/unictype/property-grapheme-base-tests: New file.
63736         * modules/unictype/property-grapheme-extend-tests: New file.
63737         * modules/unictype/property-grapheme-link-tests: New file.
63738         * modules/unictype/property-hex-digit-tests: New file.
63739         * modules/unictype/property-hyphen-tests: New file.
63740         * modules/unictype/property-id-continue-tests: New file.
63741         * modules/unictype/property-id-start-tests: New file.
63742         * modules/unictype/property-ideographic-tests: New file.
63743         * modules/unictype/property-ids-binary-operator-tests: New file.
63744         * modules/unictype/property-ids-trinary-operator-tests: New file.
63745         * modules/unictype/property-ignorable-control-tests: New file.
63746         * modules/unictype/property-iso-control-tests: New file.
63747         * modules/unictype/property-join-control-tests: New file.
63748         * modules/unictype/property-left-of-pair-tests: New file.
63749         * modules/unictype/property-line-separator-tests: New file.
63750         * modules/unictype/property-logical-order-exception-tests: New file.
63751         * modules/unictype/property-lowercase-tests: New file.
63752         * modules/unictype/property-math-tests: New file.
63753         * modules/unictype/property-non-break-tests: New file.
63754         * modules/unictype/property-not-a-character-tests: New file.
63755         * modules/unictype/property-numeric-tests: New file.
63756         * modules/unictype/property-other-alphabetic-tests: New file.
63757         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63758         * modules/unictype/property-other-grapheme-extend-tests: New file.
63759         * modules/unictype/property-other-id-continue-tests: New file.
63760         * modules/unictype/property-other-id-start-tests: New file.
63761         * modules/unictype/property-other-lowercase-tests: New file.
63762         * modules/unictype/property-other-math-tests: New file.
63763         * modules/unictype/property-other-uppercase-tests: New file.
63764         * modules/unictype/property-paired-punctuation-tests: New file.
63765         * modules/unictype/property-paragraph-separator-tests: New file.
63766         * modules/unictype/property-pattern-syntax-tests: New file.
63767         * modules/unictype/property-pattern-white-space-tests: New file.
63768         * modules/unictype/property-private-use-tests: New file.
63769         * modules/unictype/property-punctuation-tests: New file.
63770         * modules/unictype/property-quotation-mark-tests: New file.
63771         * modules/unictype/property-radical-tests: New file.
63772         * modules/unictype/property-sentence-terminal-tests: New file.
63773         * modules/unictype/property-soft-dotted-tests: New file.
63774         * modules/unictype/property-space-tests: New file.
63775         * modules/unictype/property-terminal-punctuation-tests: New file.
63776         * modules/unictype/property-test-tests: New file.
63777         * modules/unictype/property-titlecase-tests: New file.
63778         * modules/unictype/property-unassigned-code-value-tests: New file.
63779         * modules/unictype/property-unified-ideograph-tests: New file.
63780         * modules/unictype/property-uppercase-tests: New file.
63781         * modules/unictype/property-variation-selector-tests: New file.
63782         * modules/unictype/property-white-space-tests: New file.
63783         * modules/unictype/property-xid-continue-tests: New file.
63784         * modules/unictype/property-xid-start-tests: New file.
63785         * modules/unictype/property-zero-width-tests: New file.
63786         * modules/unictype/scripts-tests: New file.
63787         * modules/unictype/syntax-c-ident-tests: New file.
63788         * modules/unictype/syntax-c-whitespace-tests: New file.
63789         * modules/unictype/syntax-java-ident-tests: New file.
63790         * modules/unictype/syntax-java-whitespace-tests: New file.
63791         * tests/unictype/test-bidi_byname.c: New file.
63792         * tests/unictype/test-bidi_name.c: New file.
63793         * tests/unictype/test-bidi_of.c: New file.
63794         * tests/unictype/test-bidi_test.c: New file.
63795         * tests/unictype/test-block_list.c: New file.
63796         * tests/unictype/test-block_of.c: New file.
63797         * tests/unictype/test-block_test.c: New file.
63798         * tests/unictype/test-categ_and.c: New file.
63799         * tests/unictype/test-categ_and_not.c: New file.
63800         * tests/unictype/test-categ_byname.c: New file.
63801         * tests/unictype/test-categ_name.c: New file.
63802         * tests/unictype/test-categ_none.c: New file.
63803         * tests/unictype/test-categ_of.c: New file.
63804         * tests/unictype/test-categ_or.c: New file.
63805         * tests/unictype/test-categ_test_withtable.c: New file.
63806         * tests/unictype/test-combining.c: New file.
63807         * tests/unictype/test-decdigit.c: New file.
63808         * tests/unictype/test-digit.c: New file.
63809         * tests/unictype/test-mirror.c: New file.
63810         * tests/unictype/test-numeric.c: New file.
63811         * tests/unictype/test-pr_byname.c: New file.
63812         * tests/unictype/test-pr_test.c: New file.
63813         * tests/unictype/test-predicate-part1.h: New file.
63814         * tests/unictype/test-predicate-part2.h: New file.
63815         * tests/unictype/test-scripts.c: New file.
63816         * tests/unictype/test-sy_c_ident.c: New file.
63817         * tests/unictype/test-sy_java_ident.c: New file.
63818
63819         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63820         for Unicode 5.0.0.
63821         * tests/unictype/test-categ_Cc.c: Likewise.
63822         * tests/unictype/test-categ_Cf.c: Likewise.
63823         * tests/unictype/test-categ_Cn.c: Likewise.
63824         * tests/unictype/test-categ_Co.c: Likewise.
63825         * tests/unictype/test-categ_Cs.c: Likewise.
63826         * tests/unictype/test-categ_L.c: Likewise.
63827         * tests/unictype/test-categ_Ll.c: Likewise.
63828         * tests/unictype/test-categ_Lm.c: Likewise.
63829         * tests/unictype/test-categ_Lo.c: Likewise.
63830         * tests/unictype/test-categ_Lt.c: Likewise.
63831         * tests/unictype/test-categ_Lu.c: Likewise.
63832         * tests/unictype/test-categ_M.c: Likewise.
63833         * tests/unictype/test-categ_Mc.c: Likewise.
63834         * tests/unictype/test-categ_Me.c: Likewise.
63835         * tests/unictype/test-categ_Mn.c: Likewise.
63836         * tests/unictype/test-categ_N.c: Likewise.
63837         * tests/unictype/test-categ_Nd.c: Likewise.
63838         * tests/unictype/test-categ_Nl.c: Likewise.
63839         * tests/unictype/test-categ_No.c: Likewise.
63840         * tests/unictype/test-categ_P.c: Likewise.
63841         * tests/unictype/test-categ_Pc.c: Likewise.
63842         * tests/unictype/test-categ_Pd.c: Likewise.
63843         * tests/unictype/test-categ_Pe.c: Likewise.
63844         * tests/unictype/test-categ_Pf.c: Likewise.
63845         * tests/unictype/test-categ_Pi.c: Likewise.
63846         * tests/unictype/test-categ_Po.c: Likewise.
63847         * tests/unictype/test-categ_Ps.c: Likewise.
63848         * tests/unictype/test-categ_S.c: Likewise.
63849         * tests/unictype/test-categ_Sc.c: Likewise.
63850         * tests/unictype/test-categ_Sk.c: Likewise.
63851         * tests/unictype/test-categ_Sm.c: Likewise.
63852         * tests/unictype/test-categ_So.c: Likewise.
63853         * tests/unictype/test-categ_Z.c: Likewise.
63854         * tests/unictype/test-categ_Zl.c: Likewise.
63855         * tests/unictype/test-categ_Zp.c: Likewise.
63856         * tests/unictype/test-categ_Zs.c: Likewise.
63857         * tests/unictype/test-ctype_alnum.c: Likewise.
63858         * tests/unictype/test-ctype_alpha.c: Likewise.
63859         * tests/unictype/test-ctype_blank.c: Likewise.
63860         * tests/unictype/test-ctype_cntrl.c: Likewise.
63861         * tests/unictype/test-ctype_digit.c: Likewise.
63862         * tests/unictype/test-ctype_graph.c: Likewise.
63863         * tests/unictype/test-ctype_lower.c: Likewise.
63864         * tests/unictype/test-ctype_print.c: Likewise.
63865         * tests/unictype/test-ctype_punct.c: Likewise.
63866         * tests/unictype/test-ctype_space.c: Likewise.
63867         * tests/unictype/test-ctype_upper.c: Likewise.
63868         * tests/unictype/test-ctype_xdigit.c: Likewise.
63869         * tests/unictype/test-decdigit.h: Likewise.
63870         * tests/unictype/test-digit.h: Likewise.
63871         * tests/unictype/test-numeric.h: Likewise.
63872         * tests/unictype/test-pr_alphabetic.c: Likewise.
63873         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63874         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63875         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63876         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63877         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63878         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63879         * tests/unictype/test-pr_bidi_control.c: Likewise.
63880         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63881         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63882         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63883         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63884         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63885         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63886         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63887         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63888         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63889         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63890         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63891         * tests/unictype/test-pr_combining.c: Likewise.
63892         * tests/unictype/test-pr_composite.c: Likewise.
63893         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63894         * tests/unictype/test-pr_dash.c: Likewise.
63895         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63896         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63897         * tests/unictype/test-pr_deprecated.c: Likewise.
63898         * tests/unictype/test-pr_diacritic.c: Likewise.
63899         * tests/unictype/test-pr_extender.c: Likewise.
63900         * tests/unictype/test-pr_format_control.c: Likewise.
63901         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63902         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63903         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63904         * tests/unictype/test-pr_hex_digit.c: Likewise.
63905         * tests/unictype/test-pr_hyphen.c: Likewise.
63906         * tests/unictype/test-pr_id_continue.c: Likewise.
63907         * tests/unictype/test-pr_id_start.c: Likewise.
63908         * tests/unictype/test-pr_ideographic.c: Likewise.
63909         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63910         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63911         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63912         * tests/unictype/test-pr_iso_control.c: Likewise.
63913         * tests/unictype/test-pr_join_control.c: Likewise.
63914         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63915         * tests/unictype/test-pr_line_separator.c: Likewise.
63916         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63917         * tests/unictype/test-pr_lowercase.c: Likewise.
63918         * tests/unictype/test-pr_math.c: Likewise.
63919         * tests/unictype/test-pr_non_break.c: Likewise.
63920         * tests/unictype/test-pr_not_a_character.c: Likewise.
63921         * tests/unictype/test-pr_numeric.c: Likewise.
63922         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63923         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63924         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63925         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63926         * tests/unictype/test-pr_other_id_start.c: Likewise.
63927         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63928         * tests/unictype/test-pr_other_math.c: Likewise.
63929         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63930         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63931         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63932         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63933         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63934         * tests/unictype/test-pr_private_use.c: Likewise.
63935         * tests/unictype/test-pr_punctuation.c: Likewise.
63936         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63937         * tests/unictype/test-pr_radical.c: Likewise.
63938         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63939         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63940         * tests/unictype/test-pr_space.c: Likewise.
63941         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63942         * tests/unictype/test-pr_titlecase.c: Likewise.
63943         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63944         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63945         * tests/unictype/test-pr_uppercase.c: Likewise.
63946         * tests/unictype/test-pr_variation_selector.c: Likewise.
63947         * tests/unictype/test-pr_white_space.c: Likewise.
63948         * tests/unictype/test-pr_xid_continue.c: Likewise.
63949         * tests/unictype/test-pr_xid_start.c: Likewise.
63950         * tests/unictype/test-pr_zero_width.c: Likewise.
63951         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63952         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63953
63954 2007-11-12  Bruno Haible  <bruno@clisp.org>
63955
63956         Unicode character classification functions.
63957         * lib/unictype.h: New file.
63958         * modules/unictype/base: New file.
63959         * modules/unictype/category-L: New file.
63960         * modules/unictype/category-Lu: New file.
63961         * modules/unictype/category-Ll: New file.
63962         * modules/unictype/category-Lt: New file.
63963         * modules/unictype/category-Lm: New file.
63964         * modules/unictype/category-Lo: New file.
63965         * modules/unictype/category-M: New file.
63966         * modules/unictype/category-Mn: New file.
63967         * modules/unictype/category-Mc: New file.
63968         * modules/unictype/category-Me: New file.
63969         * modules/unictype/category-N: New file.
63970         * modules/unictype/category-Nd: New file.
63971         * modules/unictype/category-Nl: New file.
63972         * modules/unictype/category-No: New file.
63973         * modules/unictype/category-P: New file.
63974         * modules/unictype/category-Pc: New file.
63975         * modules/unictype/category-Pd: New file.
63976         * modules/unictype/category-Ps: New file.
63977         * modules/unictype/category-Pe: New file.
63978         * modules/unictype/category-Pi: New file.
63979         * modules/unictype/category-Pf: New file.
63980         * modules/unictype/category-Po: New file.
63981         * modules/unictype/category-S: New file.
63982         * modules/unictype/category-Sm: New file.
63983         * modules/unictype/category-Sc: New file.
63984         * modules/unictype/category-Sk: New file.
63985         * modules/unictype/category-So: New file.
63986         * modules/unictype/category-Z: New file.
63987         * modules/unictype/category-Zs: New file.
63988         * modules/unictype/category-Zl: New file.
63989         * modules/unictype/category-Zp: New file.
63990         * modules/unictype/category-C: New file.
63991         * modules/unictype/category-Cc: New file.
63992         * modules/unictype/category-Cf: New file.
63993         * modules/unictype/category-Cs: New file.
63994         * modules/unictype/category-Co: New file.
63995         * modules/unictype/category-Cn: New file.
63996         * modules/unictype/category-or: New file.
63997         * modules/unictype/category-of: New file.
63998         * modules/unictype/category-test: New file.
63999         * modules/unictype/category-test-withtable: New file.
64000         * modules/unictype/category-byname: New file.
64001         * modules/unictype/category-none: New file.
64002         * modules/unictype/category-and: New file.
64003         * modules/unictype/category-and-not: New file.
64004         * modules/unictype/category-name: New file.
64005         * modules/unictype/combining-class: New file.
64006         * modules/unictype/category-all: New file.
64007         * modules/unictype/bidicategory-all: New file.
64008         * modules/unictype/bidicategory-byname: New file.
64009         * modules/unictype/bidicategory-name: New file.
64010         * modules/unictype/bidicategory-of: New file.
64011         * modules/unictype/bidicategory-test: New file.
64012         * modules/unictype/decimal-digit: New file.
64013         * modules/unictype/digit: New file.
64014         * modules/unictype/numeric: New file.
64015         * modules/unictype/mirror: New file.
64016         * modules/unictype/property-white-space: New file.
64017         * modules/unictype/property-alphabetic: New file.
64018         * modules/unictype/property-other-alphabetic: New file.
64019         * modules/unictype/property-not-a-character: New file.
64020         * modules/unictype/property-default-ignorable-code-point: New file.
64021         * modules/unictype/property-other-default-ignorable-code-point: New
64022         file.
64023         * modules/unictype/property-deprecated: New file.
64024         * modules/unictype/property-logical-order-exception: New file.
64025         * modules/unictype/property-variation-selector: New file.
64026         * modules/unictype/property-private-use: New file.
64027         * modules/unictype/property-unassigned-code-value: New file.
64028         * modules/unictype/property-uppercase: New file.
64029         * modules/unictype/property-other-uppercase: New file.
64030         * modules/unictype/property-lowercase: New file.
64031         * modules/unictype/property-other-lowercase: New file.
64032         * modules/unictype/property-titlecase: New file.
64033         * modules/unictype/property-soft-dotted: New file.
64034         * modules/unictype/property-id-start: New file.
64035         * modules/unictype/property-other-id-start: New file.
64036         * modules/unictype/property-id-continue: New file.
64037         * modules/unictype/property-other-id-continue: New file.
64038         * modules/unictype/property-xid-start: New file.
64039         * modules/unictype/property-xid-continue: New file.
64040         * modules/unictype/property-pattern-white-space: New file.
64041         * modules/unictype/property-pattern-syntax: New file.
64042         * modules/unictype/property-join-control: New file.
64043         * modules/unictype/property-grapheme-base: New file.
64044         * modules/unictype/property-grapheme-extend: New file.
64045         * modules/unictype/property-other-grapheme-extend: New file.
64046         * modules/unictype/property-grapheme-link: New file.
64047         * modules/unictype/property-bidi-control: New file.
64048         * modules/unictype/property-bidi-left-to-right: New file.
64049         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64050         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64051         * modules/unictype/property-bidi-european-digit: New file.
64052         * modules/unictype/property-bidi-eur-num-separator: New file.
64053         * modules/unictype/property-bidi-eur-num-terminator: New file.
64054         * modules/unictype/property-bidi-arabic-digit: New file.
64055         * modules/unictype/property-bidi-common-separator: New file.
64056         * modules/unictype/property-bidi-block-separator: New file.
64057         * modules/unictype/property-bidi-segment-separator: New file.
64058         * modules/unictype/property-bidi-whitespace: New file.
64059         * modules/unictype/property-bidi-non-spacing-mark: New file.
64060         * modules/unictype/property-bidi-boundary-neutral: New file.
64061         * modules/unictype/property-bidi-pdf: New file.
64062         * modules/unictype/property-bidi-embedding-or-override: New file.
64063         * modules/unictype/property-bidi-other-neutral: New file.
64064         * modules/unictype/property-hex-digit: New file.
64065         * modules/unictype/property-ascii-hex-digit: New file.
64066         * modules/unictype/property-ideographic: New file.
64067         * modules/unictype/property-unified-ideograph: New file.
64068         * modules/unictype/property-radical: New file.
64069         * modules/unictype/property-ids-binary-operator: New file.
64070         * modules/unictype/property-ids-trinary-operator: New file.
64071         * modules/unictype/property-zero-width: New file.
64072         * modules/unictype/property-space: New file.
64073         * modules/unictype/property-non-break: New file.
64074         * modules/unictype/property-iso-control: New file.
64075         * modules/unictype/property-format-control: New file.
64076         * modules/unictype/property-dash: New file.
64077         * modules/unictype/property-hyphen: New file.
64078         * modules/unictype/property-punctuation: New file.
64079         * modules/unictype/property-line-separator: New file.
64080         * modules/unictype/property-paragraph-separator: New file.
64081         * modules/unictype/property-quotation-mark: New file.
64082         * modules/unictype/property-sentence-terminal: New file.
64083         * modules/unictype/property-terminal-punctuation: New file.
64084         * modules/unictype/property-currency-symbol: New file.
64085         * modules/unictype/property-math: New file.
64086         * modules/unictype/property-other-math: New file.
64087         * modules/unictype/property-paired-punctuation: New file.
64088         * modules/unictype/property-left-of-pair: New file.
64089         * modules/unictype/property-combining: New file.
64090         * modules/unictype/property-composite: New file.
64091         * modules/unictype/property-decimal-digit: New file.
64092         * modules/unictype/property-numeric: New file.
64093         * modules/unictype/property-diacritic: New file.
64094         * modules/unictype/property-extender: New file.
64095         * modules/unictype/property-ignorable-control: New file.
64096         * modules/unictype/property-test: New file.
64097         * modules/unictype/property-byname: New file.
64098         * modules/unictype/property-all: New file.
64099         * modules/unictype/scripts: New file.
64100         * modules/unictype/scripts-all: New file.
64101         * modules/unictype/block-of: New file.
64102         * modules/unictype/block-test: New file.
64103         * modules/unictype/block-list: New file.
64104         * modules/unictype/block-all: New file.
64105         * modules/unictype/syntax-c-whitespace: New file.
64106         * modules/unictype/syntax-java-whitespace: New file.
64107         * modules/unictype/syntax-c-ident: New file.
64108         * modules/unictype/syntax-java-ident: New file.
64109         * modules/unictype/ctype-alnum: New file.
64110         * modules/unictype/ctype-alpha: New file.
64111         * modules/unictype/ctype-cntrl: New file.
64112         * modules/unictype/ctype-digit: New file.
64113         * modules/unictype/ctype-graph: New file.
64114         * modules/unictype/ctype-lower: New file.
64115         * modules/unictype/ctype-print: New file.
64116         * modules/unictype/ctype-punct: New file.
64117         * modules/unictype/ctype-space: New file.
64118         * modules/unictype/ctype-upper: New file.
64119         * modules/unictype/ctype-xdigit: New file.
64120         * modules/unictype/ctype-blank: New file.
64121         * lib/unictype/bidi_byname.c: New file.
64122         * lib/unictype/bidi_name.c: New file.
64123         * lib/unictype/bidi_of.c: New file.
64124         * lib/unictype/bidi_test.c: New file.
64125         * lib/unictype/bitmap.h: New file.
64126         * lib/unictype/block_test.c: New file.
64127         * lib/unictype/blocks.c: New file.
64128         * lib/unictype/categ_C.c: New file.
64129         * lib/unictype/categ_Cc.c: New file.
64130         * lib/unictype/categ_Cf.c: New file.
64131         * lib/unictype/categ_Cn.c: New file.
64132         * lib/unictype/categ_Co.c: New file.
64133         * lib/unictype/categ_Cs.c: New file.
64134         * lib/unictype/categ_L.c: New file.
64135         * lib/unictype/categ_Ll.c: New file.
64136         * lib/unictype/categ_Lm.c: New file.
64137         * lib/unictype/categ_Lo.c: New file.
64138         * lib/unictype/categ_Lt.c: New file.
64139         * lib/unictype/categ_Lu.c: New file.
64140         * lib/unictype/categ_M.c: New file.
64141         * lib/unictype/categ_Mc.c: New file.
64142         * lib/unictype/categ_Me.c: New file.
64143         * lib/unictype/categ_Mn.c: New file.
64144         * lib/unictype/categ_N.c: New file.
64145         * lib/unictype/categ_Nd.c: New file.
64146         * lib/unictype/categ_Nl.c: New file.
64147         * lib/unictype/categ_No.c: New file.
64148         * lib/unictype/categ_P.c: New file.
64149         * lib/unictype/categ_Pc.c: New file.
64150         * lib/unictype/categ_Pd.c: New file.
64151         * lib/unictype/categ_Pe.c: New file.
64152         * lib/unictype/categ_Pf.c: New file.
64153         * lib/unictype/categ_Pi.c: New file.
64154         * lib/unictype/categ_Po.c: New file.
64155         * lib/unictype/categ_Ps.c: New file.
64156         * lib/unictype/categ_S.c: New file.
64157         * lib/unictype/categ_Sc.c: New file.
64158         * lib/unictype/categ_Sk.c: New file.
64159         * lib/unictype/categ_Sm.c: New file.
64160         * lib/unictype/categ_So.c: New file.
64161         * lib/unictype/categ_Z.c: New file.
64162         * lib/unictype/categ_Zl.c: New file.
64163         * lib/unictype/categ_Zp.c: New file.
64164         * lib/unictype/categ_Zs.c: New file.
64165         * lib/unictype/categ_and.c: New file.
64166         * lib/unictype/categ_and_not.c: New file.
64167         * lib/unictype/categ_byname.c: New file.
64168         * lib/unictype/categ_name.c: New file.
64169         * lib/unictype/categ_none.c: New file.
64170         * lib/unictype/categ_of.c: New file.
64171         * lib/unictype/categ_or.c: New file.
64172         * lib/unictype/categ_test.c: New file.
64173         * lib/unictype/combining.c: New file.
64174         * lib/unictype/ctype_alnum.c: New file.
64175         * lib/unictype/ctype_alpha.c: New file.
64176         * lib/unictype/ctype_blank.c: New file.
64177         * lib/unictype/ctype_cntrl.c: New file.
64178         * lib/unictype/ctype_digit.c: New file.
64179         * lib/unictype/ctype_graph.c: New file.
64180         * lib/unictype/ctype_lower.c: New file.
64181         * lib/unictype/ctype_print.c: New file.
64182         * lib/unictype/ctype_punct.c: New file.
64183         * lib/unictype/ctype_space.c: New file.
64184         * lib/unictype/ctype_upper.c: New file.
64185         * lib/unictype/ctype_xdigit.c: New file.
64186         * lib/unictype/decdigit.c: New file.
64187         * lib/unictype/digit.c: New file.
64188         * lib/unictype/identsyntaxmap.h: New file.
64189         * lib/unictype/mirror.c: New file.
64190         * lib/unictype/numeric.c: New file.
64191         * lib/unictype/pr_alphabetic.c: New file.
64192         * lib/unictype/pr_ascii_hex_digit.c: New file.
64193         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64194         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64195         * lib/unictype/pr_bidi_block_separator.c: New file.
64196         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64197         * lib/unictype/pr_bidi_common_separator.c: New file.
64198         * lib/unictype/pr_bidi_control.c: New file.
64199         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64200         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64201         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64202         * lib/unictype/pr_bidi_european_digit.c: New file.
64203         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64204         * lib/unictype/pr_bidi_left_to_right.c: New file.
64205         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64206         * lib/unictype/pr_bidi_other_neutral.c: New file.
64207         * lib/unictype/pr_bidi_pdf.c: New file.
64208         * lib/unictype/pr_bidi_segment_separator.c: New file.
64209         * lib/unictype/pr_bidi_whitespace.c: New file.
64210         * lib/unictype/pr_byname.c: New file.
64211         * lib/unictype/pr_byname.gperf: New file.
64212         * lib/unictype/pr_combining.c: New file.
64213         * lib/unictype/pr_composite.c: New file.
64214         * lib/unictype/pr_currency_symbol.c: New file.
64215         * lib/unictype/pr_dash.c: New file.
64216         * lib/unictype/pr_decimal_digit.c: New file.
64217         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64218         * lib/unictype/pr_deprecated.c: New file.
64219         * lib/unictype/pr_diacritic.c: New file.
64220         * lib/unictype/pr_extender.c: New file.
64221         * lib/unictype/pr_format_control.c: New file.
64222         * lib/unictype/pr_grapheme_base.c: New file.
64223         * lib/unictype/pr_grapheme_extend.c: New file.
64224         * lib/unictype/pr_grapheme_link.c: New file.
64225         * lib/unictype/pr_hex_digit.c: New file.
64226         * lib/unictype/pr_hyphen.c: New file.
64227         * lib/unictype/pr_id_continue.c: New file.
64228         * lib/unictype/pr_id_start.c: New file.
64229         * lib/unictype/pr_ideographic.c: New file.
64230         * lib/unictype/pr_ids_binary_operator.c: New file.
64231         * lib/unictype/pr_ids_trinary_operator.c: New file.
64232         * lib/unictype/pr_ignorable_control.c: New file.
64233         * lib/unictype/pr_iso_control.c: New file.
64234         * lib/unictype/pr_join_control.c: New file.
64235         * lib/unictype/pr_left_of_pair.c: New file.
64236         * lib/unictype/pr_line_separator.c: New file.
64237         * lib/unictype/pr_logical_order_exception.c: New file.
64238         * lib/unictype/pr_lowercase.c: New file.
64239         * lib/unictype/pr_math.c: New file.
64240         * lib/unictype/pr_non_break.c: New file.
64241         * lib/unictype/pr_not_a_character.c: New file.
64242         * lib/unictype/pr_numeric.c: New file.
64243         * lib/unictype/pr_other_alphabetic.c: New file.
64244         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64245         * lib/unictype/pr_other_grapheme_extend.c: New file.
64246         * lib/unictype/pr_other_id_continue.c: New file.
64247         * lib/unictype/pr_other_id_start.c: New file.
64248         * lib/unictype/pr_other_lowercase.c: New file.
64249         * lib/unictype/pr_other_math.c: New file.
64250         * lib/unictype/pr_other_uppercase.c: New file.
64251         * lib/unictype/pr_paired_punctuation.c: New file.
64252         * lib/unictype/pr_paragraph_separator.c: New file.
64253         * lib/unictype/pr_pattern_syntax.c: New file.
64254         * lib/unictype/pr_pattern_white_space.c: New file.
64255         * lib/unictype/pr_private_use.c: New file.
64256         * lib/unictype/pr_punctuation.c: New file.
64257         * lib/unictype/pr_quotation_mark.c: New file.
64258         * lib/unictype/pr_radical.c: New file.
64259         * lib/unictype/pr_sentence_terminal.c: New file.
64260         * lib/unictype/pr_soft_dotted.c: New file.
64261         * lib/unictype/pr_space.c: New file.
64262         * lib/unictype/pr_terminal_punctuation.c: New file.
64263         * lib/unictype/pr_test.c: New file.
64264         * lib/unictype/pr_titlecase.c: New file.
64265         * lib/unictype/pr_unassigned_code_value.c: New file.
64266         * lib/unictype/pr_unified_ideograph.c: New file.
64267         * lib/unictype/pr_uppercase.c: New file.
64268         * lib/unictype/pr_variation_selector.c: New file.
64269         * lib/unictype/pr_white_space.c: New file.
64270         * lib/unictype/pr_xid_continue.c: New file.
64271         * lib/unictype/pr_xid_start.c: New file.
64272         * lib/unictype/pr_zero_width.c: New file.
64273         * lib/unictype/scripts.c: New file.
64274         * lib/unictype/sy_c_ident.c: New file.
64275         * lib/unictype/sy_c_whitespace.c: New file.
64276         * lib/unictype/sy_java_ident.c: New file.
64277         * lib/unictype/sy_java_whitespace.c: New file.
64278
64279         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64280         Unicode 5.0.0.
64281         * lib/unictype/blocks.h: Likewise.
64282         * lib/unictype/categ_C.h: Likewise.
64283         * lib/unictype/categ_Cc.h: Likewise.
64284         * lib/unictype/categ_Cf.h: Likewise.
64285         * lib/unictype/categ_Cn.h: Likewise.
64286         * lib/unictype/categ_Co.h: Likewise.
64287         * lib/unictype/categ_Cs.h: Likewise.
64288         * lib/unictype/categ_L.h: Likewise.
64289         * lib/unictype/categ_Ll.h: Likewise.
64290         * lib/unictype/categ_Lm.h: Likewise.
64291         * lib/unictype/categ_Lo.h: Likewise.
64292         * lib/unictype/categ_Lt.h: Likewise.
64293         * lib/unictype/categ_Lu.h: Likewise.
64294         * lib/unictype/categ_M.h: Likewise.
64295         * lib/unictype/categ_Mc.h: Likewise.
64296         * lib/unictype/categ_Me.h: Likewise.
64297         * lib/unictype/categ_Mn.h: Likewise.
64298         * lib/unictype/categ_N.h: Likewise.
64299         * lib/unictype/categ_Nd.h: Likewise.
64300         * lib/unictype/categ_Nl.h: Likewise.
64301         * lib/unictype/categ_No.h: Likewise.
64302         * lib/unictype/categ_P.h: Likewise.
64303         * lib/unictype/categ_Pc.h: Likewise.
64304         * lib/unictype/categ_Pd.h: Likewise.
64305         * lib/unictype/categ_Pe.h: Likewise.
64306         * lib/unictype/categ_Pf.h: Likewise.
64307         * lib/unictype/categ_Pi.h: Likewise.
64308         * lib/unictype/categ_Po.h: Likewise.
64309         * lib/unictype/categ_Ps.h: Likewise.
64310         * lib/unictype/categ_S.h: Likewise.
64311         * lib/unictype/categ_Sc.h: Likewise.
64312         * lib/unictype/categ_Sk.h: Likewise.
64313         * lib/unictype/categ_Sm.h: Likewise.
64314         * lib/unictype/categ_So.h: Likewise.
64315         * lib/unictype/categ_Z.h: Likewise.
64316         * lib/unictype/categ_Zl.h: Likewise.
64317         * lib/unictype/categ_Zp.h: Likewise.
64318         * lib/unictype/categ_Zs.h: Likewise.
64319         * lib/unictype/categ_of.h: Likewise.
64320         * lib/unictype/combining.h: Likewise.
64321         * lib/unictype/ctype_alnum.h: Likewise.
64322         * lib/unictype/ctype_alpha.h: Likewise.
64323         * lib/unictype/ctype_blank.h: Likewise.
64324         * lib/unictype/ctype_cntrl.h: Likewise.
64325         * lib/unictype/ctype_digit.h: Likewise.
64326         * lib/unictype/ctype_graph.h: Likewise.
64327         * lib/unictype/ctype_lower.h: Likewise.
64328         * lib/unictype/ctype_print.h: Likewise.
64329         * lib/unictype/ctype_punct.h: Likewise.
64330         * lib/unictype/ctype_space.h: Likewise.
64331         * lib/unictype/ctype_upper.h: Likewise.
64332         * lib/unictype/ctype_xdigit.h: Likewise.
64333         * lib/unictype/decdigit.h: Likewise.
64334         * lib/unictype/digit.h: Likewise.
64335         * lib/unictype/mirror.h: Likewise.
64336         * lib/unictype/numeric.h: Likewise.
64337         * lib/unictype/pr_alphabetic.h: Likewise.
64338         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64339         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64340         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64341         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64342         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64343         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64344         * lib/unictype/pr_bidi_control.h: Likewise.
64345         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64346         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64347         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64348         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64349         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64350         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64351         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64352         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64353         * lib/unictype/pr_bidi_pdf.h: Likewise.
64354         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64355         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64356         * lib/unictype/pr_combining.h: Likewise.
64357         * lib/unictype/pr_composite.h: Likewise.
64358         * lib/unictype/pr_currency_symbol.h: Likewise.
64359         * lib/unictype/pr_dash.h: Likewise.
64360         * lib/unictype/pr_decimal_digit.h: Likewise.
64361         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64362         * lib/unictype/pr_deprecated.h: Likewise.
64363         * lib/unictype/pr_diacritic.h: Likewise.
64364         * lib/unictype/pr_extender.h: Likewise.
64365         * lib/unictype/pr_format_control.h: Likewise.
64366         * lib/unictype/pr_grapheme_base.h: Likewise.
64367         * lib/unictype/pr_grapheme_extend.h: Likewise.
64368         * lib/unictype/pr_grapheme_link.h: Likewise.
64369         * lib/unictype/pr_hex_digit.h: Likewise.
64370         * lib/unictype/pr_hyphen.h: Likewise.
64371         * lib/unictype/pr_id_continue.h: Likewise.
64372         * lib/unictype/pr_id_start.h: Likewise.
64373         * lib/unictype/pr_ideographic.h: Likewise.
64374         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64375         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64376         * lib/unictype/pr_ignorable_control.h: Likewise.
64377         * lib/unictype/pr_iso_control.h: Likewise.
64378         * lib/unictype/pr_join_control.h: Likewise.
64379         * lib/unictype/pr_left_of_pair.h: Likewise.
64380         * lib/unictype/pr_line_separator.h: Likewise.
64381         * lib/unictype/pr_logical_order_exception.h: Likewise.
64382         * lib/unictype/pr_lowercase.h: Likewise.
64383         * lib/unictype/pr_math.h: Likewise.
64384         * lib/unictype/pr_non_break.h: Likewise.
64385         * lib/unictype/pr_not_a_character.h: Likewise.
64386         * lib/unictype/pr_numeric.h: Likewise.
64387         * lib/unictype/pr_other_alphabetic.h: Likewise.
64388         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64389         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64390         * lib/unictype/pr_other_id_continue.h: Likewise.
64391         * lib/unictype/pr_other_id_start.h: Likewise.
64392         * lib/unictype/pr_other_lowercase.h: Likewise.
64393         * lib/unictype/pr_other_math.h: Likewise.
64394         * lib/unictype/pr_other_uppercase.h: Likewise.
64395         * lib/unictype/pr_paired_punctuation.h: Likewise.
64396         * lib/unictype/pr_paragraph_separator.h: Likewise.
64397         * lib/unictype/pr_pattern_syntax.h: Likewise.
64398         * lib/unictype/pr_pattern_white_space.h: Likewise.
64399         * lib/unictype/pr_private_use.h: Likewise.
64400         * lib/unictype/pr_punctuation.h: Likewise.
64401         * lib/unictype/pr_quotation_mark.h: Likewise.
64402         * lib/unictype/pr_radical.h: Likewise.
64403         * lib/unictype/pr_sentence_terminal.h: Likewise.
64404         * lib/unictype/pr_soft_dotted.h: Likewise.
64405         * lib/unictype/pr_space.h: Likewise.
64406         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64407         * lib/unictype/pr_titlecase.h: Likewise.
64408         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64409         * lib/unictype/pr_unified_ideograph.h: Likewise.
64410         * lib/unictype/pr_uppercase.h: Likewise.
64411         * lib/unictype/pr_variation_selector.h: Likewise.
64412         * lib/unictype/pr_white_space.h: Likewise.
64413         * lib/unictype/pr_xid_continue.h: Likewise.
64414         * lib/unictype/pr_xid_start.h: Likewise.
64415         * lib/unictype/pr_zero_width.h: Likewise.
64416         * lib/unictype/scripts.h: Likewise.
64417         * lib/unictype/scripts_byname.gperf: Likewise.
64418         * lib/unictype/sy_c_ident.h: Likewise.
64419         * lib/unictype/sy_c_whitespace.h: Likewise.
64420         * lib/unictype/sy_java_ident.h: Likewise.
64421         * lib/unictype/sy_java_whitespace.h: Likewise.
64422
64423         * lib/unictype/Makefile: New file.
64424         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64425         glibc.
64426         * lib/unictype/3level.h: New file, copied from glibc.
64427         * lib/unictype/3levelbit.h: New file.
64428
64429 2007-11-11  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/gperf: New file.
64432         * modules/iconv_open (Depends-on): Add it.
64433         (Makefile.am): Remove the GPERF definition.
64434
64435 2007-11-11  Bruno Haible  <bruno@clisp.org>
64436
64437         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64438         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64439
64440 2007-11-11  Bruno Haible  <bruno@clisp.org>
64441
64442         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64443         (usage): Remove function.
64444
64445 2007-11-11  Bruno Haible  <bruno@clisp.org>
64446
64447         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64448         gl_FUNC_CEILF_LIBS.
64449         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64450         gl_FUNC_CEIL_LIBS.
64451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64452         gl_FUNC_CEILL_LIBS.
64453         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64454         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64455         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64456
64457 2007-11-11  Bruno Haible  <bruno@clisp.org>
64458
64459         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64460         roundf were declared but do not exist on functions.
64461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64462         roundl were declared but do not exist on functions.
64463         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64464         HAVE_FLOORL_AND_CEILL, respectively.
64465         Needed for Sun C on Solaris 10.
64466
64467 2007-11-11  Bruno Haible  <bruno@clisp.org>
64468
64469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64470         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64471         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64472         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64473         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64474         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64475         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64476         HAVE_DECL_ROUNDF.
64477         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64478         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64480         of HAVE_DECL_ROUND*.
64481         * modules/math (Makefile.am): Update.
64482
64483 2007-11-10  Bruno Haible  <bruno@clisp.org>
64484
64485         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64486         ptrdiff_t as m4/intl.m4.
64487
64488 2007-11-10  Jim Meyering  <meyering@redhat.com>
64489
64490         Avoid link failure for the argmatch test.
64491         * tests/test-argmatch.c (usage): Define function to avoid a link
64492         failure: argmatch_die requires a usage function.
64493
64494 2007-11-09  Bruno Haible  <bruno@clisp.org>
64495
64496         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64497         * doc/functions/vsnprintf.texi: Likewise.
64498         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64499         with a size argument < 2.
64500
64501 2007-11-09  Bruno Haible  <bruno@clisp.org>
64502
64503         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64504         buffer. Fixes an inefficiency introduced on 2007-11-03.
64505
64506 2007-11-09  Bruno Haible  <bruno@clisp.org>
64507
64508         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64509         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64510
64511 2007-11-08  Jim Meyering  <meyering@redhat.com>
64512
64513         Change cache variable name prefix "jm_" to "gl_" everywhere.
64514         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64515         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64516         * m4/uptime.m4: s/gl_/jm_/
64517
64518 2007-11-07  Bruno Haible  <bruno@clisp.org>
64519
64520         Update to GNU gettext 0.17.
64521         * m4/intl.m4: Update to GNU gettext 0.17.
64522         * m4/po.m4: Likewise.
64523         * modules/gettext (Files): Remove m4/ulonglong.m4.
64524         (configure.ac): Require gettext infrastructure from version 0.17.
64525
64526 2007-11-06  Bruno Haible  <bruno@clisp.org>
64527
64528         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64529         symbolic values are not defined in a public header.
64530         * lib/freadable.c (freadable) [QNX]: Likewise.
64531         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64532         * lib/freading.c (freading) [QNX]: Likewise.
64533         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64534         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64535         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64536         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64537         Reported by Alain Magloire.
64538
64539         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64540
64541 2007-11-05  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64544         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64545         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64546         Reported by Eric Blake.
64547
64548 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64549             Bruno Haible  <bruno@clisp.org>
64550
64551         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64552         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64553         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64554         (malloc): Undefine also before including <stdlib.h>.
64555         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64556         Needed on OSF/1 4.0.
64557
64558 2007-11-05  Jim Meyering  <meyering@redhat.com>
64559
64560         git-version-gen: sync from coreutils.
64561         * build-aux/git-version-gen: Add comments.
64562         Change the first '-' to '.' in the snapshot version string,
64563         e.g., 6.9-377-08144 -> 6.9.377-08144
64564         Remove first parameter.
64565         Don't declare a version "-dirty" merely because a time
64566         stamp has changed.
64567
64568 2007-11-04  Bruno Haible  <bruno@clisp.org>
64569
64570         * lib/lock.h: Protect all macro definitions containing an 'if'
64571         statement through a "do { ... } while (0)".
64572         * lib/tls.h: Likewise.
64573
64574 2007-11-04  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64577
64578 2007-11-04  Bruno Haible  <bruno@clisp.org>
64579
64580         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64581         * modules/fprintf-posix (Depends-on): Add nocrash.
64582         * modules/snprintf-posix (Depends-on): Likewise.
64583         * modules/sprintf-posix (Depends-on): Likewise.
64584         * modules/vasnprintf-posix (Depends-on): Likewise.
64585         * modules/vasprintf-posix (Depends-on): Likewise.
64586         * modules/vfprintf-posix (Depends-on): Likewise.
64587         * modules/vsnprintf-posix (Depends-on): Likewise.
64588         * modules/vsprintf-posix (Depends-on): Likewise.
64589         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64590         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64591         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64592         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64593         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64594         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64595         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64596
64597 2007-11-04  Bruno Haible  <bruno@clisp.org>
64598
64599         * modules/nocrash: New file.
64600         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64601         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64602
64603 2007-11-04  Bruno Haible  <bruno@clisp.org>
64604
64605         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64606         precision handling.
64607         * tests/test-vasprintf-posix.c (test_function): Likewise.
64608         * tests/test-snprintf-posix.h (test_function): Likewise.
64609         * tests/test-sprintf-posix.h (test_function): Likewise.
64610
64611         Fix *printf behaviour for large precisions on mingw and BeOS.
64612         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64613         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64615         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64617         gl_PRINTF_PRECISION and test its result. Invoke
64618         gl_PREREQ_VASNPRINTF_PRECISION.
64619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64626         * doc/functions/fprintf.texi: Update.
64627         * doc/functions/printf.texi: Update.
64628         * doc/functions/snprintf.texi: Update.
64629         * doc/functions/sprintf.texi: Update.
64630         * doc/functions/vfprintf.texi: Update.
64631         * doc/functions/vprintf.texi: Update.
64632         * doc/functions/vsnprintf.texi: Update.
64633         * doc/functions/vsprintf.texi: Update.
64634
64635 2007-11-04  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64638
64639 2007-11-04  Bruno Haible  <bruno@clisp.org>
64640
64641         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64642         Reported by Sylvain Beucler <beuc@gnu.org>.
64643
64644 2007-11-03  Bruno Haible  <bruno@clisp.org>
64645
64646         * tests/test-fprintf-posix2.sh: New file.
64647         * tests/test-fprintf-posix2.c: New file.
64648         * modules/fprintf-posix-tests (Files): Add them.
64649         (TESTS): Add test-fprintf-posix2.sh.
64650         (configure.ac): Check for getrlimit and setrlimit.
64651         (check_PROGRAMS): Add test-fprintf-posix2.
64652
64653         * tests/test-printf-posix2.sh: New file.
64654         * tests/test-printf-posix2.c: New file.
64655         * modules/printf-posix-tests (Files): Add them.
64656         (TESTS): Add test-printf-posix2.sh.
64657         (configure.ac): Check for getrlimit and setrlimit.
64658         (check_PROGRAMS): Add test-printf-posix2.
64659
64660         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64661         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64662         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64663         (decode_double): New function, copied from decode_long_double.
64664         (scale10_round_decimal_decoded): New function, extracted from
64665         scale10_round_decimal_long_double.
64666         (scale10_round_decimal_long_double): Use it.
64667         (scale10_round_decimal_double): New function.
64668         (floorlog10): New function.
64669         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64671         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64673         gl_PRINTF_ENOMEM and test its result. Invoke
64674         gl_PREREQ_VASNPRINTF_ENOMEM.
64675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64676         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64679         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64682         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64683         * modules/snprintf-posix (Depends-on): Likewise.
64684         * modules/sprintf-posix (Depends-on): Likewise.
64685         * modules/vasnprintf-posix (Depends-on): Likewise.
64686         * modules/vasprintf-posix (Depends-on): Likewise.
64687         * modules/vfprintf-posix (Depends-on): Likewise.
64688         * modules/vsnprintf-posix (Depends-on): Likewise.
64689         * modules/vsprintf-posix (Depends-on): Likewise.
64690         * doc/functions/fprintf.texi: Update.
64691         * doc/functions/printf.texi: Update.
64692         * doc/functions/snprintf.texi: Update.
64693         * doc/functions/sprintf.texi: Update.
64694         * doc/functions/vfprintf.texi: Update.
64695         * doc/functions/vprintf.texi: Update.
64696         * doc/functions/vsnprintf.texi: Update.
64697         * doc/functions/vsprintf.texi: Update.
64698
64699 2007-11-03  Bruno Haible  <bruno@clisp.org>
64700
64701         * modules/frexp-nolibm-tests: New file.
64702
64703         * modules/frexp-nolibm: New file.
64704         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64705
64706 2007-11-03  Bruno Haible  <bruno@clisp.org>
64707
64708         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64709         value is C99 compliant.
64710         Needed for OSF/1 5.1.
64711
64712 2007-11-03  Bruno Haible  <bruno@clisp.org>
64713
64714         Fix out-of-memory handling of vasnprintf.
64715         * lib/printf-parse.c: Include <errno.h>.
64716         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64717         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64718         is already set.
64719
64720 2007-11-02  Eric Blake  <ebb9@byu.net>
64721
64722         Fix tests on cygwin.
64723         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64724
64725 2007-11-01  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64728         warning.
64729         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64730         needed for POSIX compatibility.
64731
64732 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64735         for compatibility with GNU.
64736
64737 2007-11-01  Bruno Haible  <bruno@clisp.org>
64738
64739         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64740         (putenv): Renamed from rpl_putenv. Change argument type from
64741         'const char *' to 'char *'.
64742         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64743         of defining putenv in config.h, just set REPLACE_PUTENV.
64744         * modules/putenv (Depends-on): Add stdlib.
64745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64746         (Include): Use <stdlib.h>.
64747         * lib/stdlib.in.h (putenv): New declaration.
64748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64749         REPLACE_PUTENV.
64750         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64751         REPLACE_PUTENV.
64752         Needed for MacOS X 10.5.0.
64753         Reported by Peter O'Gorman <peter@pogma.com>.
64754
64755 2007-11-01  Jim Meyering  <meyering@redhat.com>
64756
64757         Treat an empty date string exactly like "0".
64758         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64759         if the remaining date string (to be parsed) is empty, use "0".
64760         Reported by Mischa Molhoek and discussed in this thread:
64761         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64762
64763 2007-10-31  Bruno Haible  <bruno@clisp.org>
64764
64765         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64766         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64767         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64768         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64769         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64770         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64771
64772 2007-10-31  Bruno Haible  <bruno@clisp.org>
64773
64774         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64775         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64776         (AC_TYPE_LONG_LONG_INT): Use it.
64777         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64778         it as well.
64779         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64780         to m4/longlong.m4.
64781         * modules/stdint (Files): Remove m4/ulonglong.m4.
64782         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64783         m4/ulonglong.m4.
64784         * modules/strtoumax (Files): Likewise.
64785
64786 2007-10-30  Bruno Haible  <bruno@clisp.org>
64787
64788         * modules/xvasprintf-posix: New file.
64789         Suggested by Eric Blake.
64790
64791 2007-10-30  Bruno Haible  <bruno@clisp.org>
64792
64793         * modules/xprintf-posix-tests: New file.
64794         * tests/test-xprintf-posix.sh: New file.
64795         * tests/test-xprintf-posix.c: New file.
64796         * tests/test-xfprintf-posix.c: New file.
64797
64798         * modules/xprintf-posix: New file.
64799
64800 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64801
64802         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64803         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64804         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64805
64806 2007-10-29  Bruno Haible  <bruno@clisp.org>
64807
64808         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64809         contain the special marker '_cv_'.
64810         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64811         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64812         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64813         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64814         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64815         Reported by Ralf Wildenhues.
64816
64817 2007-10-29  Bruno Haible  <bruno@clisp.org>
64818
64819         * gnulib-tool (func_import): When --lgpl is not specified, set
64820         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64821         GPLv3.
64822         Reported by Simon Josefsson.
64823
64824 2007-10-28  Bruno Haible  <bruno@clisp.org>
64825
64826         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64827         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64828         HAVE_DECL_ISFINITE.
64829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64830         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64831         HAVE_DECL_ISFINITE.
64832
64833 2007-10-28  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64836         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64837
64838 2007-10-28  Bruno Haible  <bruno@clisp.org>
64839
64840         Fix link errors with Sun C 5.0 on Solaris 10.
64841         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64842         function is declared but not present in the compiler's libm.
64843         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64844         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64845         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64846         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64847         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64848         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64849         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64851         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64852         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64853         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64854         HAVE_DECL_FLOORL.
64855
64856 2007-10-28  Bruno Haible  <bruno@clisp.org>
64857
64858         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64859         gl_FUNC_FLOORL. Cache the result.
64860         (gl_FUNC_FLOORL): Use it.
64861         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64862         gl_FUNC_CEILL. Cache the result.
64863         (gl_FUNC_CEILL): Use it.
64864
64865         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64866         gl_FUNC_FLOOR. Cache the result.
64867         (gl_FUNC_FLOOR): Use it.
64868         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64869         gl_FUNC_CEIL. Cache the result.
64870         (gl_FUNC_CEIL): Use it.
64871
64872         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64873         gl_FUNC_FLOORF. Cache the result.
64874         (gl_FUNC_FLOORF): Use it.
64875         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64876         gl_FUNC_CEILF. Cache the result.
64877         (gl_FUNC_CEILF): Use it.
64878
64879 2007-10-28  Bruno Haible  <bruno@clisp.org>
64880
64881         * gnulib-tool: Allow specifying the LGPL version number through
64882         --lgpl=2 or --lgpl=3.
64883         (func_usage): Document --lgpl with argument.
64884         Handle --lgpl=... arguments.
64885         (func_import): Recognize also gl_LGPL calls with an argument. When
64886         --lgpl=2 is used and the module's license is just LGPL, report an
64887         error. Set sed_transform_lib_file according to the lgpl variable. In
64888         the generated files, use --lgpl or gl_LGPL invocations with argument,
64889         if necessary.
64890         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64891         an LGPv2+ license.
64892         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64893         gl_LGPL macro.
64894
64895 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64896             Bruno Haible  <bruno@clisp.org>
64897
64898         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64899         (u16_uctomb_aux): Likewise.
64900         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64901         !HAVE_INLINE.
64902         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64903
64904 2007-10-28  Bruno Haible  <bruno@clisp.org>
64905
64906         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64907         Invoke AM_GETTEXT_OPTION if it exists.
64908         * modules/vasprintf: Likewise.
64909         * modules/verror: Likewise.
64910         * modules/xprintf: Likewise.
64911         * modules/xvasprintf: Likewise.
64912
64913 2007-10-27  Ben Pfaff  <blp@gnu.org>
64914
64915         * lib/math.in.h: Define isfinite macro and prototypes for
64916         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64917         implementations.
64918         * m4/math_h.m4: New substitutions for isfinite module.
64919         * lib/isfinite.c: New file.
64920         * m4/isfinite.m4: New file.
64921         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64922         * modules/isfinite: New file.
64923         * modules/isfinite-tests: New file.
64924         * tests/tests-isfinite.c: New file.
64925         * doc/functions/isfinite.texi: Mention isfinite module.
64926         * MODULES.html.sh: Mention new module.
64927
64928 2007-10-27  Ben Pfaff  <blp@gnu.org>
64929
64930         Ralf Wildenhues reported that Tru64 4.0D declares the round
64931         functions but does not have definitions.
64932         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64933         cannot be found in any library, set the output variable to
64934         "missing" instead of "".
64935         * m4/round.m4: Also use our substitute if we cannot find round in
64936         any library, even if it is declared.
64937         * m4/roundf.m4: Likewise for roundf.
64938         * m4/roundl.m4: Likewise for roundl.
64939         * lib/math.in.h: Undefine roundf, round, roundl before defining
64940         their replacements, to allow for hypothetical systems where these
64941         may be defined as macros but not available in libraries.
64942
64943 2007-10-27  Bruno Haible  <bruno@clisp.org>
64944
64945         * doc/gnulib.texi: Invoke @firstparagraphindent.
64946         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64947         changes in gnulib.
64948         (Source changes): New section.
64949
64950 2007-10-26  Bruno Haible  <bruno@clisp.org>
64951
64952         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64953         borrowed from autoconf.
64954
64955 2007-10-26  Bruno Haible  <bruno@clisp.org>
64956
64957         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64958         strerror returned the empty string. Needed on HP-UX 11.00.
64959
64960 2007-10-24  Micah Cowan  <micah@cowan.name>
64961
64962         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64963         * build-aux/bootstrap: Remove support for now-unnecessary option,
64964         --cvs-user, and envvars CVS_USER, CVS_RSH.
64965
64966 2007-10-24  Jim Meyering  <meyering@redhat.com>
64967
64968         Avoid diagnostics from sha1sum when there is no cached checksum.
64969         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64970         if the po.s1 file hasn't been created yet.
64971
64972         * build-aux/bootstrap: Sync from coreutils:
64973         2007-10-24  Jim Meyering  <meyering@redhat.com>
64974         Get gnulib from the git repository, not from an obsolete cvs one.
64975         * build-aux/bootstrap: Suggestion from Micah Cowan.
64976         2007-10-04  Jim Meyering  <jim@meyering.net>
64977         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64978         (update_po_files): Work also when there are no .po files in po/.
64979
64980 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         * README: Append ".git" to git and cg examples.
64983         Problem reported by Benoit Sigoure.
64984
64985 2007-10-23  Micah Cowan  <micah@cowan.name>
64986
64987         * users.txt: Add wget.
64988
64989 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64990
64991         Fix linking of some unistdio tests on FreeBSD.
64992         * modules/unistdio/u16-vsnprintf-tests
64993         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64994         * modules/unistdio/u16-vsprintf-tests
64995         (test_u16_vsnprintf1_LDADD): Likewise.
64996         * modules/unistdio/u32-vsnprintf-tests
64997         (test_u32_vsnprintf1_LDADD): Likewise.
64998         * modules/unistdio/u32-vsprintf-tests
64999         (test_u32_vsprintf1_LDADD): Likewise.
65000         * modules/unistdio/u8-vsnprintf-tests
65001         (test_u8_vsnprintf1_LDADD): Likewise.
65002         * modules/unistdio/u8-vsprintf-tests
65003         (test_u8_vsprintf1_LDADD): Likewise.
65004         * modules/unistdio/ulc-vsnprintf-tests
65005         (test_ulc_vsnprintf1_LDADD): Likewise.
65006         * modules/unistdio/ulc-vsprintf-tests
65007         (test_ulc_vsprintf1_LDADD): Likewise.
65008
65009         Fix linking of some uniconv tests on FreeBSD.
65010         * modules/uniconv/u16-conv-from-enc-tests
65011         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65012         * modules/uniconv/u16-conv-to-enc-tests
65013         (test_u16_conv_to_enc_LDADD): Likewise.
65014         * modules/uniconv/u16-strconv-from-enc-tests
65015         (test_u16_strconv_from_enc_LDADD): Likewise.
65016         * modules/uniconv/u16-strconv-to-enc-tests
65017         (test_u16_strconv_to_enc_LDADD): Likewise.
65018         * modules/uniconv/u32-conv-from-enc-tests
65019         (test_u32_conv_from_enc_LDADD): Likewise.
65020         * modules/uniconv/u32-conv-to-enc-tests
65021         (test_u32_conv_to_enc_LDADD): Likewise.
65022         * modules/uniconv/u32-strconv-from-enc-tests
65023         (test_u32_strconv_from_enc_LDADD): Likewise.
65024         * modules/uniconv/u32-strconv-to-enc-tests
65025         (test_u32_strconv_to_enc_LDADD): Likewise.
65026         * modules/uniconv/u8-conv-from-enc-tests
65027         (test_u8_conv_from_enc_LDADD): Likewise.
65028         * modules/uniconv/u8-conv-to-enc-tests
65029         (test_u8_conv_to_enc_LDADD): Likewise.
65030         * modules/uniconv/u8-strconv-from-enc-tests
65031         (test_u8_strconv_from_enc_LDADD): Likewise.
65032         * modules/uniconv/u8-strconv-to-enc-tests
65033         (test_u8_strconv_to_enc_LDADD): Likewise.
65034
65035 2007-10-22  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65038         size.
65039
65040 2007-10-22  Eric Blake  <ebb9@byu.net>
65041
65042         Tweak x*printf documentation.
65043         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65044         variable name and comments.
65045         Suggested by Bruno Haible.
65046
65047 2007-10-22  Bruno Haible  <bruno@clisp.org>
65048
65049         * lib/acl.c (copy_acl): Fix file name in comment.
65050
65051 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         Fix Tru64 problem with stdbool.h.
65054         * lib/stdbool.in.h (false, true):
65055         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65056         Don't declare as an enum in this situation; it runs afoul of Tru64.
65057         Problem reported by Steven M. Schweda in
65058         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65059
65060 2007-10-22  Eric Blake  <ebb9@byu.net>
65061
65062         Also wrap vf?printf.
65063         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65064         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65065         (xvprintf, xvfprintf): New functions.
65066
65067 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65068
65069         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65070         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65071
65072         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65073         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65074
65075 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65078         by Bruno Haible.
65079
65080 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65081
65082         * lib/getloadavg.c
65083         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65084         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65085
65086         * tests/test-i-ring.c: Work for C89.
65087
65088 2007-10-22  Bruno Haible  <bruno@clisp.org>
65089
65090         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65091         -1u, in preprocessor expression, so that we don't test for the bug
65092         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65094
65095 2007-10-22  Eric Blake  <ebb9@byu.net>
65096
65097         * tests/test-yesno.sh: Silence stderr during test.
65098
65099 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65100
65101         * modules/crypto/gc-camellia: New file.
65102
65103         * m4/gc-camellia.m4: New file.
65104
65105         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65106
65107         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65108
65109 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65110
65111         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65112         --help to stdout.  Reported by sms@antinode.org (Steven
65113         M. Schweda).
65114
65115 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65116
65117         * users.txt: Fix link to libksba.
65118
65119 2007-10-21  Ben Pfaff  <blp@gnu.org>
65120
65121         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65122         round.c roundf implementation that depends on floorf and ceilf to
65123         be tested unconditionally.
65124
65125 2007-10-21  Ben Pfaff  <blp@gnu.org>
65126
65127         * m4/check-libm-func.m4: Removed.
65128         * m4/check-math-lib.m4: New file.
65129         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65130         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65131         definition and lack of AC_LIBOBJ([roundf]).
65132         * m4/roundl.m4: Ditto, and similarly for roundl.
65133         * modules/round: Reference new m4 file.
65134         * modules/roundf: Ditto.
65135         * modules/roundl: Ditto.
65136         * tests/test-round2.c (main): Use ROUND instead of round.
65137         Bug report from Bruno Haible.
65138
65139 2007-10-21  Bruno Haible  <bruno@clisp.org>
65140
65141         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65142         context.
65143
65144 2007-10-21  Bruno Haible  <bruno@clisp.org>
65145
65146         * tests/test-wcwidth.c (main): Allow negative result for some control
65147         characters.
65148
65149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65150         Needed on OSF/1 5.1.
65151
65152 2007-10-21  Bruno Haible  <bruno@clisp.org>
65153
65154         * tests/test-floorf1.c: Include isnanf.h.
65155         (main): Use isnanf() instead of isnan().
65156         * tests/test-ceilf1.c: Include isnanf.h.
65157         (main): Use isnanf() instead of isnan().
65158         * tests/test-truncf1.c: Include isnanf.h.
65159         (main): Use isnanf() instead of isnan().
65160         * tests/test-roundf1.c: Include isnanf.h.
65161         (main): Use isnanf() instead of isnan().
65162
65163 2007-10-21  Eric Blake  <ebb9@byu.net>
65164
65165         * users.txt: Update URL for m4.
65166
65167 2007-10-21  Bruno Haible  <bruno@clisp.org>
65168
65169         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65170
65171 2007-10-21  Bruno Haible  <bruno@clisp.org>
65172
65173         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65174         Git's management files if the CVS files are not present.
65175
65176 2007-10-20  Bruno Haible  <bruno@clisp.org>
65177
65178         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65179         gcc-3.4.x.
65180
65181 2007-10-20  Ben Pfaff  <blp@gnu.org>
65182
65183         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65184         implementations.
65185         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65186         * lib/round.c: New file.
65187         * lib/roundf.c: New file.
65188         * lib/roundl.c: New file.
65189         * m4/round.m4: New file.
65190         * m4/roundf.m4: New file.
65191         * m4/roundl.m4: New file.
65192         * m4/check-libm-func-m4: New file.
65193         * modules/math: Replace round, roundf, roundl related @VARS@ in
65194         math.in.h.
65195         * modules/round: New file.
65196         * modules/round-tests: New file.
65197         * modules/roundf: New file.
65198         * modules/roundf-tests: New file.
65199         * modules/roundl: New file.
65200         * modules/roundl-tests: New file.
65201         * tests/test-round1.c: New file.
65202         * tests/test-round2.c: New file.
65203         * tests/test-roundf1.c: New file.
65204         * tests/test-roundf2.c: New file.
65205         * tests/test-roundl.c: New file.
65206         * doc/functions/round.texi: Mention round module.
65207         * doc/functions/roundf.texi: Mention roundf module.
65208         * doc/functions/roundl.texi: Mention roundl module.
65209         * MODULES.html.sh: Mention new modules.
65210         Thanks to Bruno Haible for suggestions.
65211
65212 2007-10-20  Jim Meyering  <meyering@redhat.com>
65213
65214         * lib/xprintf.c: Include <config.h> unconditionally.
65215
65216         Change xprintf's license to GPL.
65217         * modules/xprintf (License): s/LGPL/GPL/, since this module
65218         depends on modules (exit and exitfail) which are GPL.
65219         Suggestion from Bruno Haible.
65220
65221         xprintf fixes.
65222         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65223         Use a clearer diagnostic.
65224         Patch from Bruno Haible.
65225
65226 2007-10-20  Bruno Haible  <bruno@clisp.org>
65227
65228         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65229         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65230         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65231
65232 2007-10-20  Bruno Haible  <bruno@clisp.org>
65233
65234         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65235         precision in the comparison result > x - 1 or similar.
65236         * tests/test-ceilf2.c (correct_result_p): Likewise.
65237         * tests/test-truncf2.c (correct_result_p): Likewise.
65238         * tests/test-trunc2.c (correct_result_p): Likewise.
65239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65240
65241 2007-10-20  Bruno Haible  <bruno@clisp.org>
65242
65243         * modules/ceil: New file.
65244         * m4/ceil.m4: New file.
65245         * doc/functions/ceil.texi: Mention the 'ceil' module.
65246
65247 2007-10-20  Bruno Haible  <bruno@clisp.org>
65248
65249         * modules/floor: New file.
65250         * m4/floor.m4: New file.
65251         * doc/functions/floor.texi: Mention the 'floor' module.
65252
65253 2007-10-20  Bruno Haible  <bruno@clisp.org>
65254
65255         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65256         of %a.
65257         * modules/floorf-tests (Depends-on): Likewise.
65258         * modules/truncf-tests (Depends-on): Likewise.
65259         * modules/trunc-tests (Depends-on): Likewise.
65260         Reported by Ben Pfaff.
65261
65262 2007-10-19  Jim Meyering  <meyering@redhat.com>
65263
65264         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65265         Don't bother testing specific errno values.  Just test ferror.
65266
65267         New module: xprintf
65268         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65269
65270 2007-10-19  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65273         syntax.
65274         * modules/javaexec (Makefile.am): Likewise.
65275         * modules/relocatable-prog (Makefile.am): Likewise.
65276         Suggested by Jim Meyering.
65277
65278 2007-10-18  Bruno Haible  <bruno@clisp.org>
65279
65280         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65281         Reported by Jim Meyering.
65282
65283 2007-10-18  Eric Blake  <ebb9@byu.net>
65284
65285         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65286
65287 2007-10-18  Bruno Haible  <bruno@clisp.org>
65288
65289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65290         the format string into writable memory. Needed in Fortify conditions.
65291
65292 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65293             Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65296         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65297         * modules/trim (Depends-on): Add mbchar.
65298         (configure.ac): Add gl_FUNC_MBRTOWC.
65299         (Makefile.am): Augment lib_SOURCES.
65300
65301 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65302
65303         Modify glob.c to use fstatat and dirfd, to simplify it.
65304         Suggested by Eric Blake.
65305         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65306         Don't include <stdbool.h>; not used.
65307         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65308         (link_exists_p): Simplify implementation, since we can now assume
65309         dirfd and fstatat.
65310         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65311
65312 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65313
65314         * gnulib-tool (func_get_dependencies): Fix sed script to
65315         match only tests.
65316
65317 2007-10-17  Bruno Haible  <bruno@clisp.org>
65318
65319         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65320         allow locale names without encoding suffix.
65321         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65322         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65323
65324 2007-10-16  Bruno Haible  <bruno@clisp.org>
65325
65326         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65327         * lib/getgroups.c (getgroups): Likewise.
65328         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65329
65330 2007-10-16  Bruno Haible  <bruno@clisp.org>
65331
65332         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65333         * modules/malloc-posix (License): Likewise.
65334         * modules/realloc-posix (License): Likewise.
65335         * modules/calloc-posix (License): Likewise.
65336         * modules/intprops (License): Change from GPL to LGPL, with
65337         Paul Eggert's approval.
65338
65339 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65340
65341         Merge glibc changes into lib/glob.c.
65342
65343         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65344         2007-10-15 04:59:03 UTC.  Here are the changes:
65345
65346         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65347
65348         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65349
65350         * lib/glob.c: Add some branch prediction throughout.
65351
65352         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65353
65354         [BZ #5103]
65355         * lib/glob.c (glob): Recognize patterns starting \/.
65356
65357         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65358
65359         [BZ #3996]
65360         * lib/glob.c (attribute_hidden): Define if not defined.
65361         (glob): Unescape dirname, filename or username when needed and not
65362         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65363         is NULL.  Handle unescaped [ in pattern without closing ].
65364         Don't pass GLOB_CHECK down to recursive glob for directories.
65365         (__glob_pattern_type): New function.
65366         (__glob_pattern_p): Implement using __glob_pattern_type.
65367         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65368         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65369         Remove unreachable code.
65370
65371         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65372
65373         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65374         explain why there are no leaks.
65375
65376         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65377
65378         [BZ #3253]
65379         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65380         time, rather allocate increasingly bigger arrays of pointers, if
65381         possible with alloca, if too large with malloc.
65382
65383 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65386         Problem reported by H.Merijn Brand in
65387         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65388         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65389         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65390
65391 2007-10-15  Bruno Haible  <bruno@clisp.org>
65392
65393         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65394         with explicit rpl_ prefix.
65395         * lib/fopen.c (fopen): Likewise.
65396         * lib/freopen.c (freopen): Likewise.
65397         * lib/iconv.c (iconv): Likewise.
65398         * lib/iconv_close.c (iconv_close): Likewise.
65399
65400 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65401
65402         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65403
65404 2007-10-15  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65407         <stddef.h> instead of <stdlib.h> since we only need NULL.
65408         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65409
65410 2007-10-15  Bruno Haible  <bruno@clisp.org>
65411
65412         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65413         Replace paragraph talking about LIBOBJS.
65414         Reported by Colin Watson <cjwatson@debian.org>.
65415
65416 2007-10-15  Bruno Haible  <bruno@clisp.org>
65417
65418         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65419         <stdlib.h> before using NULL.
65420
65421 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65422
65423         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65424         Reported by Albert Chin <china@thewrittenword.com>.
65425
65426 2007-10-14  Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/iconv_open-utf-tests: New file.
65429         * tests/test-iconv-utf.c: New file.
65430
65431         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65432         * modules/iconv_open-utf: New file.
65433         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65434         (iconv, iconv_close): New declarations.
65435         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65436         be defined.
65437         (iconv_open): Add special handling of conversion between UTF-8 and
65438         UTF-{16,32}{BE,LE}.
65439         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65440         * lib/iconv_close.c: New file.
65441         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65442         gl_FUNC_ICONV_OPEN.
65443         (gl_FUNC_ICONV_OPEN): Use it.
65444         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65445         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65446         and REPLACE_ICONV_UTF.
65447         * modules/iconv_open (Depends-on): Add c-strcase.
65448         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65449         ICONV_CONST.
65450         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65451
65452 2007-10-13  Albert Chin  <china@thewrittenword.com>
65453             Bruno Haible  <bruno@clisp.org>
65454
65455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65456         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65457
65458 2007-10-13  Bruno Haible  <bruno@clisp.org>
65459
65460         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65461         defined, use the ISO C99 inline semantics.
65462         * lib/argp.h (ARGP_EI): Likewise.
65463
65464 2007-10-13  Bruno Haible  <bruno@clisp.org>
65465
65466         Handle 'inline' change in gcc 4.3.0.
65467         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65468         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65469         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65470         argp_fmtstream_point): Disable 'extern' declaration if the function
65471         definition is going to be provided inline.
65472         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65473         semantics, not the ISO C99 inline semantics.
65474         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65475         'extern' declaration if the function definition is going to be provided
65476         inline.
65477         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65478         the GNU C inline semantics, not the ISO C99 inline semantics. With
65479         GCC 4.2, avoid a warning.
65480
65481 2007-10-13  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/freading.h (freading): Enable the use of __freading for
65484         glibc >= 2.7.
65485         * lib/freading.c (freading): Likewise.
65486
65487 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65490         "warning: C99 inline functions are not supported; using GNU89".
65491
65492 2007-10-12  Bruno Haible  <bruno@clisp.org>
65493
65494         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65495         of 2.
65496         * tests/test-ceilf2.c: New file.
65497         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65498
65499         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65500         * modules/ceilf-tests: Update.
65501
65502 2007-10-12  Bruno Haible  <bruno@clisp.org>
65503
65504         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65505         of 2.
65506         * tests/test-floorf2.c: New file.
65507         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65508
65509         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65510         * modules/floorf-tests: Update.
65511
65512 2007-10-12  Bruno Haible  <bruno@clisp.org>
65513
65514         * tests/test-trunc2.c: New file.
65515         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65516
65517         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65518         * modules/trunc-tests: Update.
65519
65520 2007-10-12  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65523         of 2.
65524         * tests/test-truncf2.c: New file.
65525         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65526
65527         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65528         * modules/truncf-tests: Update.
65529
65530 2007-10-11  Eric Blake  <ebb9@byu.net>
65531
65532         Don't claim strerror is broken on Interix.
65533         * doc/functions/strerror.texi (strerror): Known broken systems are
65534         now Solaris 8, and not Interix.
65535         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65536         Interix on cross-compile.
65537         Reported by Martin Koeppe in
65538         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65539
65540 2007-10-11  Bruno Haible  <bruno@clisp.org>
65541
65542         * modules/i-ring-tests: New file.
65543         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65544         instead of assert.
65545
65546 2007-10-11  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/filenamecat-tests: New file.
65549         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65550         * lib/filenamecat.c: Remove test code.
65551
65552 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65555
65556         * lib/strerror.c: Include <string.h> always, to test interface,
65557         and to remove the need for the dummy.
65558         Include intprops.h to compute width instead of doing it ourselves
65559         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65560         (strerror): Define it to return NULL if there's no system strerror.
65561         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65562         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65563         ancient pre-strerror Unix systems well any more.  Saying "unknown
65564         system error" is enough.
65565         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65566         simpler strerror.c implementation.
65567         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65568         Simplify the tests to reflect the simpler strerror implementation.
65569         * modules/strerror (Depends-on): Add intprops.
65570
65571 2007-10-09  Eric Blake  <ebb9@byu.net>
65572
65573         Silence test-fpending.
65574         * modules/fpending-tests (Files): Add wrapper script.
65575         * tests/test-fpending.sh: New file.
65576
65577 2007-10-09  Bruno Haible  <bruno@clisp.org>
65578
65579         * MODULES.html.sh (func_module): Don't create a hyperlink for
65580         function names like 'printf_frexp'.
65581         (Misc): Add crc, memxor.
65582         (Characteristics of floating types): New section.
65583         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65584         isnanf-nolibm, signbit, trunc, truncf, truncl.
65585         (Enhancements for ISO C 99 functions): New subsection Input/output.
65586         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65587         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65588         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65589         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65590         (Enhancements for POSIX:2001 functions): Add chdir-long.
65591         (File system functions): Add areadlink, chdir-safer, read-file.
65592         Remove cycle-check.
65593         (File system as inode set): New section.
65594         (Date and time): Add gethrxtime.
65595         (Multithreading): Add openmp.
65596         (Internationalization functions): Add localename.
65597         (Unicode string functions): Add unistr/u*-mbsnlen.
65598         (Support for maintaining and releasing projects): Add git-version-gen.
65599         (Lone files): Remove directories.
65600
65601 2007-10-08  Ben Pfaff  <blp@gnu.org>
65602
65603         * lib/xmalloca.h: Fix typo in comment.
65604
65605 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65608         when avoiding problems with integer overflow.  Use a portable test
65609         instead.
65610
65611 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65612
65613         * modules/dummy (License): Change to LGPLv2+.
65614         * modules/float (License): Likewise
65615         * modules/realloc (License): Likewise
65616         * modules/stdlib (License): Likewise
65617
65618 2007-10-07  Bruno Haible  <bruno@clisp.org>
65619
65620         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65621         * floor.c (TWO_MANT_DIG): Likewise.
65622         * ceil.c (TWO_MANT_DIG): Likewise.
65623         Reported by Ben Pfaff.
65624
65625 2007-10-07  Bruno Haible  <bruno@clisp.org>
65626
65627         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65628         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65629         * lib/frexp.c (FUNC): Likewise.
65630         * lib/printf-frexp.h (printf_frexp): Likewise.
65631         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65632         * lib/printf-frexp.c (FUNC): Likewise.
65633         Suggested by Jim Meyering.
65634
65635 2007-10-07  Jim Meyering  <meyering@redhat.com>
65636
65637         Make xnanosleep's integer overflow test more robust.
65638         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65639         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65640
65641 2007-10-07  Bruno Haible  <bruno@clisp.org>
65642
65643         * NEWS: Mention the license change.
65644
65645         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65646         abbreviations in the modules files.
65647
65648         Change copyright notice from GPLv2+ to GPLv3+.
65649         * README: Change copyright notice.
65650         * MODULES.html.sh: Likewise.
65651         * build-aux/bootstrap.conf: Likewise.
65652         * build-aux/config.libpath: Likewise.
65653         * build-aux/csharpcomp.sh.in: Likewise.
65654         * build-aux/csharpexec.sh.in: Likewise.
65655         * build-aux/install-reloc: Likewise.
65656         * build-aux/javacomp.sh.in: Likewise.
65657         * build-aux/javaexec.sh.in: Likewise.
65658         * build-aux/ldd.sh.in: Likewise.
65659         * build-aux/reloc-ldflags: Likewise.
65660         * build-aux/relocatable.sh.in: Likewise.
65661         * build-aux/x-to-1.in: Likewise.
65662         * check-module: Likewise.
65663         * config/srclistvars.sh: Likewise.
65664         * gnulib-tool: Likewise.
65665         * lib/acl-internal.h: Likewise.
65666         * lib/acl.c: Likewise.
65667         * lib/acl.h: Likewise.
65668         * lib/acl_entries.c: Likewise.
65669         * lib/areadlink-with-size.c: Likewise.
65670         * lib/areadlink.c: Likewise.
65671         * lib/areadlink.h: Likewise.
65672         * lib/argmatch.c: Likewise.
65673         * lib/argmatch.h: Likewise.
65674         * lib/argp-ba.c: Likewise.
65675         * lib/argp-eexst.c: Likewise.
65676         * lib/argp-fmtstream.c: Likewise.
65677         * lib/argp-fmtstream.h: Likewise.
65678         * lib/argp-fs-xinl.c: Likewise.
65679         * lib/argp-help.c: Likewise.
65680         * lib/argp-namefrob.h: Likewise.
65681         * lib/argp-parse.c: Likewise.
65682         * lib/argp-pin.c: Likewise.
65683         * lib/argp-pv.c: Likewise.
65684         * lib/argp-pvh.c: Likewise.
65685         * lib/argp-xinl.c: Likewise.
65686         * lib/argp.h: Likewise.
65687         * lib/at-func.c: Likewise.
65688         * lib/atanl.c: Likewise.
65689         * lib/backupfile.c: Likewise.
65690         * lib/backupfile.h: Likewise.
65691         * lib/basename.c: Likewise.
65692         * lib/binary-io.h: Likewise.
65693         * lib/byteswap.in.h: Likewise.
65694         * lib/c-stack.c: Likewise.
65695         * lib/c-stack.h: Likewise.
65696         * lib/c-strcasestr.c: Likewise.
65697         * lib/c-strcasestr.h: Likewise.
65698         * lib/c-strstr.c: Likewise.
65699         * lib/c-strstr.h: Likewise.
65700         * lib/c-strtod.c: Likewise.
65701         * lib/calloc.c: Likewise.
65702         * lib/canon-host.c: Likewise.
65703         * lib/canon-host.h: Likewise.
65704         * lib/canonicalize-lgpl.c: Likewise.
65705         * lib/canonicalize.c: Likewise.
65706         * lib/canonicalize.h: Likewise.
65707         * lib/ceil.c: Likewise.
65708         * lib/ceilf.c: Likewise.
65709         * lib/ceill.c: Likewise.
65710         * lib/chdir-long.c: Likewise.
65711         * lib/chdir-long.h: Likewise.
65712         * lib/chdir-safer.c: Likewise.
65713         * lib/chdir-safer.h: Likewise.
65714         * lib/chown.c: Likewise.
65715         * lib/classpath.c: Likewise.
65716         * lib/classpath.h: Likewise.
65717         * lib/clean-temp.c: Likewise.
65718         * lib/clean-temp.h: Likewise.
65719         * lib/cloexec.c: Likewise.
65720         * lib/close-stream.c: Likewise.
65721         * lib/closein.c: Likewise.
65722         * lib/closein.h: Likewise.
65723         * lib/closeout.c: Likewise.
65724         * lib/closeout.h: Likewise.
65725         * lib/concat-filename.c: Likewise.
65726         * lib/copy-file.c: Likewise.
65727         * lib/copy-file.h: Likewise.
65728         * lib/count-one-bits.h: Likewise.
65729         * lib/crc.c: Likewise.
65730         * lib/crc.h: Likewise.
65731         * lib/creat-safer.c: Likewise.
65732         * lib/csharpcomp.c: Likewise.
65733         * lib/csharpcomp.h: Likewise.
65734         * lib/csharpexec.c: Likewise.
65735         * lib/csharpexec.h: Likewise.
65736         * lib/cycle-check.c: Likewise.
65737         * lib/cycle-check.h: Likewise.
65738         * lib/diacrit.c: Likewise.
65739         * lib/diacrit.h: Likewise.
65740         * lib/diffseq.h: Likewise.
65741         * lib/dirchownmod.c: Likewise.
65742         * lib/dirent.in.h: Likewise.
65743         * lib/dirfd.c: Likewise.
65744         * lib/dirfd.h: Likewise.
65745         * lib/dirname.c: Likewise.
65746         * lib/dirname.h: Likewise.
65747         * lib/dummy.c: Likewise.
65748         * lib/dup-safer.c: Likewise.
65749         * lib/dup2.c: Likewise.
65750         * lib/eealloc.h: Likewise.
65751         * lib/error.c: Likewise.
65752         * lib/error.h: Likewise.
65753         * lib/euidaccess.c: Likewise.
65754         * lib/exclude.c: Likewise.
65755         * lib/exclude.h: Likewise.
65756         * lib/execute.c: Likewise.
65757         * lib/execute.h: Likewise.
65758         * lib/exitfail.c: Likewise.
65759         * lib/exitfail.h: Likewise.
65760         * lib/expl.c: Likewise.
65761         * lib/fatal-signal.c: Likewise.
65762         * lib/fatal-signal.h: Likewise.
65763         * lib/fbufmode.c: Likewise.
65764         * lib/fbufmode.h: Likewise.
65765         * lib/fchdir.c: Likewise.
65766         * lib/fchmodat.c: Likewise.
65767         * lib/fchownat.c: Likewise.
65768         * lib/fcntl--.h: Likewise.
65769         * lib/fcntl-safer.h: Likewise.
65770         * lib/fcntl.in.h: Likewise.
65771         * lib/fd-safer.c: Likewise.
65772         * lib/fflush.c: Likewise.
65773         * lib/file-has-acl.c: Likewise.
65774         * lib/file-set.c: Likewise.
65775         * lib/file-type.c: Likewise.
65776         * lib/file-type.h: Likewise.
65777         * lib/fileblocks.c: Likewise.
65778         * lib/filemode.c: Likewise.
65779         * lib/filemode.h: Likewise.
65780         * lib/filename.h: Likewise.
65781         * lib/filenamecat.c: Likewise.
65782         * lib/filenamecat.h: Likewise.
65783         * lib/findprog.c: Likewise.
65784         * lib/findprog.h: Likewise.
65785         * lib/float.in.h: Likewise.
65786         * lib/floor.c: Likewise.
65787         * lib/floorf.c: Likewise.
65788         * lib/floorl.c: Likewise.
65789         * lib/fopen-safer.c: Likewise.
65790         * lib/fopen.c: Likewise.
65791         * lib/fpending.c: Likewise.
65792         * lib/fpending.h: Likewise.
65793         * lib/fprintf.c: Likewise.
65794         * lib/fprintftime.h: Likewise.
65795         * lib/fpucw.h: Likewise.
65796         * lib/fpurge.c: Likewise.
65797         * lib/fpurge.h: Likewise.
65798         * lib/freadable.c: Likewise.
65799         * lib/freadable.h: Likewise.
65800         * lib/freadahead.c: Likewise.
65801         * lib/freadahead.h: Likewise.
65802         * lib/freading.c: Likewise.
65803         * lib/freading.h: Likewise.
65804         * lib/free.c: Likewise.
65805         * lib/freopen.c: Likewise.
65806         * lib/frexp.c: Likewise.
65807         * lib/frexpl.c: Likewise.
65808         * lib/fseek.c: Likewise.
65809         * lib/fseterr.c: Likewise.
65810         * lib/fseterr.h: Likewise.
65811         * lib/fstatat.c: Likewise.
65812         * lib/fstrcmp.c: Likewise.
65813         * lib/fstrcmp.h: Likewise.
65814         * lib/fsusage.c: Likewise.
65815         * lib/fsusage.h: Likewise.
65816         * lib/ftell.c: Likewise.
65817         * lib/ftello.c: Likewise.
65818         * lib/fts-cycle.c: Likewise.
65819         * lib/fts.c: Likewise.
65820         * lib/fts_.h: Likewise.
65821         * lib/full-read.c: Likewise.
65822         * lib/full-read.h: Likewise.
65823         * lib/full-write.c: Likewise.
65824         * lib/full-write.h: Likewise.
65825         * lib/fwritable.c: Likewise.
65826         * lib/fwritable.h: Likewise.
65827         * lib/fwriteerror.c: Likewise.
65828         * lib/fwriteerror.h: Likewise.
65829         * lib/fwriting.c: Likewise.
65830         * lib/fwriting.h: Likewise.
65831         * lib/gcd.c: Likewise.
65832         * lib/gcd.h: Likewise.
65833         * lib/getcwd.c: Likewise.
65834         * lib/getdate.h: Likewise.
65835         * lib/getdate.y: Likewise.
65836         * lib/getdomainname.c: Likewise.
65837         * lib/getdomainname.h: Likewise.
65838         * lib/getgroups.c: Likewise.
65839         * lib/gethostname.c: Likewise.
65840         * lib/gethrxtime.c: Likewise.
65841         * lib/gethrxtime.h: Likewise.
65842         * lib/getloadavg.c: Likewise.
65843         * lib/getndelim2.c: Likewise.
65844         * lib/getndelim2.h: Likewise.
65845         * lib/getnline.c: Likewise.
65846         * lib/getnline.h: Likewise.
65847         * lib/getopt.c: Likewise.
65848         * lib/getopt.in.h: Likewise.
65849         * lib/getopt1.c: Likewise.
65850         * lib/getopt_int.h: Likewise.
65851         * lib/getpagesize.h: Likewise.
65852         * lib/getsubopt.c: Likewise.
65853         * lib/gettime.c: Likewise.
65854         * lib/getugroups.c: Likewise.
65855         * lib/getugroups.h: Likewise.
65856         * lib/getusershell.c: Likewise.
65857         * lib/gl_anyavltree_list1.h: Likewise.
65858         * lib/gl_anyavltree_list2.h: Likewise.
65859         * lib/gl_anyhash_list1.h: Likewise.
65860         * lib/gl_anyhash_list2.h: Likewise.
65861         * lib/gl_anylinked_list1.h: Likewise.
65862         * lib/gl_anylinked_list2.h: Likewise.
65863         * lib/gl_anyrbtree_list1.h: Likewise.
65864         * lib/gl_anyrbtree_list2.h: Likewise.
65865         * lib/gl_anytree_list1.h: Likewise.
65866         * lib/gl_anytree_list2.h: Likewise.
65867         * lib/gl_anytree_oset.h: Likewise.
65868         * lib/gl_anytreehash_list1.h: Likewise.
65869         * lib/gl_anytreehash_list2.h: Likewise.
65870         * lib/gl_array_list.c: Likewise.
65871         * lib/gl_array_list.h: Likewise.
65872         * lib/gl_array_oset.c: Likewise.
65873         * lib/gl_array_oset.h: Likewise.
65874         * lib/gl_avltree_list.c: Likewise.
65875         * lib/gl_avltree_list.h: Likewise.
65876         * lib/gl_avltree_oset.c: Likewise.
65877         * lib/gl_avltree_oset.h: Likewise.
65878         * lib/gl_avltreehash_list.c: Likewise.
65879         * lib/gl_avltreehash_list.h: Likewise.
65880         * lib/gl_carray_list.c: Likewise.
65881         * lib/gl_carray_list.h: Likewise.
65882         * lib/gl_linked_list.c: Likewise.
65883         * lib/gl_linked_list.h: Likewise.
65884         * lib/gl_linkedhash_list.c: Likewise.
65885         * lib/gl_linkedhash_list.h: Likewise.
65886         * lib/gl_list.c: Likewise.
65887         * lib/gl_list.h: Likewise.
65888         * lib/gl_oset.c: Likewise.
65889         * lib/gl_oset.h: Likewise.
65890         * lib/gl_rbtree_list.c: Likewise.
65891         * lib/gl_rbtree_list.h: Likewise.
65892         * lib/gl_rbtree_oset.c: Likewise.
65893         * lib/gl_rbtree_oset.h: Likewise.
65894         * lib/gl_rbtreehash_list.c: Likewise.
65895         * lib/gl_rbtreehash_list.h: Likewise.
65896         * lib/gl_sublist.c: Likewise.
65897         * lib/gl_sublist.h: Likewise.
65898         * lib/group-member.c: Likewise.
65899         * lib/group-member.h: Likewise.
65900         * lib/hard-locale.c: Likewise.
65901         * lib/hard-locale.h: Likewise.
65902         * lib/hash-pjw.c: Likewise.
65903         * lib/hash-pjw.h: Likewise.
65904         * lib/hash-triple.c: Likewise.
65905         * lib/hash.c: Likewise.
65906         * lib/hash.h: Likewise.
65907         * lib/human.c: Likewise.
65908         * lib/human.h: Likewise.
65909         * lib/i-ring.c: Likewise.
65910         * lib/i-ring.h: Likewise.
65911         * lib/idcache.c: Likewise.
65912         * lib/imaxabs.c: Likewise.
65913         * lib/imaxdiv.c: Likewise.
65914         * lib/inet_pton.c: Likewise.
65915         * lib/inet_pton.h: Likewise.
65916         * lib/intprops.h: Likewise.
65917         * lib/inttostr.c: Likewise.
65918         * lib/inttostr.h: Likewise.
65919         * lib/inttypes.in.h: Likewise.
65920         * lib/isapipe.c: Likewise.
65921         * lib/isdir.c: Likewise.
65922         * lib/isnan.c: Likewise.
65923         * lib/isnan.h: Likewise.
65924         * lib/isnanf.c: Likewise.
65925         * lib/isnanf.h: Likewise.
65926         * lib/isnanl-nolibm.h: Likewise.
65927         * lib/isnanl.c: Likewise.
65928         * lib/isnanl.h: Likewise.
65929         * lib/javacomp.c: Likewise.
65930         * lib/javacomp.h: Likewise.
65931         * lib/javaexec.c: Likewise.
65932         * lib/javaexec.h: Likewise.
65933         * lib/javaversion.c: Likewise.
65934         * lib/javaversion.h: Likewise.
65935         * lib/javaversion.java: Likewise.
65936         * lib/lbrkprop.h: Likewise.
65937         * lib/lchmod.h: Likewise.
65938         * lib/lchown.c: Likewise.
65939         * lib/ldexpl.c: Likewise.
65940         * lib/linebreak.c: Likewise.
65941         * lib/linebreak.h: Likewise.
65942         * lib/linebuffer.c: Likewise.
65943         * lib/linebuffer.h: Likewise.
65944         * lib/locale.in.h: Likewise.
65945         * lib/logl.c: Likewise.
65946         * lib/long-options.c: Likewise.
65947         * lib/long-options.h: Likewise.
65948         * lib/lstat.c: Likewise.
65949         * lib/lstat.h: Likewise.
65950         * lib/math.in.h: Likewise.
65951         * lib/mbchar.c: Likewise.
65952         * lib/mbchar.h: Likewise.
65953         * lib/mbfile.h: Likewise.
65954         * lib/mbiter.h: Likewise.
65955         * lib/mbscasecmp.c: Likewise.
65956         * lib/mbscasestr.c: Likewise.
65957         * lib/mbschr.c: Likewise.
65958         * lib/mbscspn.c: Likewise.
65959         * lib/mbslen.c: Likewise.
65960         * lib/mbsncasecmp.c: Likewise.
65961         * lib/mbsnlen.c: Likewise.
65962         * lib/mbspbrk.c: Likewise.
65963         * lib/mbspcasecmp.c: Likewise.
65964         * lib/mbsrchr.c: Likewise.
65965         * lib/mbssep.c: Likewise.
65966         * lib/mbsspn.c: Likewise.
65967         * lib/mbsstr.c: Likewise.
65968         * lib/mbstok_r.c: Likewise.
65969         * lib/mbswidth.c: Likewise.
65970         * lib/mbswidth.h: Likewise.
65971         * lib/mbuiter.h: Likewise.
65972         * lib/memcasecmp.c: Likewise.
65973         * lib/memcasecmp.h: Likewise.
65974         * lib/memchr.c: Likewise.
65975         * lib/memcmp.c: Likewise.
65976         * lib/memcoll.c: Likewise.
65977         * lib/memcoll.h: Likewise.
65978         * lib/memcpy.c: Likewise.
65979         * lib/memrchr.c: Likewise.
65980         * lib/mkancesdirs.c: Likewise.
65981         * lib/mkdir-p.c: Likewise.
65982         * lib/mkdir-p.h: Likewise.
65983         * lib/mkdir.c: Likewise.
65984         * lib/mkdirat.c: Likewise.
65985         * lib/mkdtemp.c: Likewise.
65986         * lib/mkstemp-safer.c: Likewise.
65987         * lib/mkstemp.c: Likewise.
65988         * lib/modechange.c: Likewise.
65989         * lib/modechange.h: Likewise.
65990         * lib/mountlist.c: Likewise.
65991         * lib/mountlist.h: Likewise.
65992         * lib/mpsort.c: Likewise.
65993         * lib/nanosleep.c: Likewise.
65994         * lib/obstack.c: Likewise.
65995         * lib/obstack.h: Likewise.
65996         * lib/open-safer.c: Likewise.
65997         * lib/open.c: Likewise.
65998         * lib/openat-die.c: Likewise.
65999         * lib/openat-priv.h: Likewise.
66000         * lib/openat-proc.c: Likewise.
66001         * lib/openat.c: Likewise.
66002         * lib/openat.h: Likewise.
66003         * lib/pagealign_alloc.c: Likewise.
66004         * lib/pagealign_alloc.h: Likewise.
66005         * lib/physmem.c: Likewise.
66006         * lib/physmem.h: Likewise.
66007         * lib/pipe-safer.c: Likewise.
66008         * lib/pipe.c: Likewise.
66009         * lib/pipe.h: Likewise.
66010         * lib/posixtm.c: Likewise.
66011         * lib/posixtm.h: Likewise.
66012         * lib/posixver.c: Likewise.
66013         * lib/printf-frexp.c: Likewise.
66014         * lib/printf-frexp.h: Likewise.
66015         * lib/printf-frexpl.c: Likewise.
66016         * lib/printf-frexpl.h: Likewise.
66017         * lib/printf.c: Likewise.
66018         * lib/progname.c: Likewise.
66019         * lib/progname.h: Likewise.
66020         * lib/progreloc.c: Likewise.
66021         * lib/putenv.c: Likewise.
66022         * lib/quote.c: Likewise.
66023         * lib/quote.h: Likewise.
66024         * lib/quotearg.c: Likewise.
66025         * lib/quotearg.h: Likewise.
66026         * lib/raise.c: Likewise.
66027         * lib/readline.c: Likewise.
66028         * lib/readline.h: Likewise.
66029         * lib/readlink.c: Likewise.
66030         * lib/readtokens.c: Likewise.
66031         * lib/readtokens.h: Likewise.
66032         * lib/readtokens0.c: Likewise.
66033         * lib/readtokens0.h: Likewise.
66034         * lib/readutmp.c: Likewise.
66035         * lib/readutmp.h: Likewise.
66036         * lib/realloc.c: Likewise.
66037         * lib/relocwrapper.c: Likewise.
66038         * lib/rename-dest-slash.c: Likewise.
66039         * lib/rename.c: Likewise.
66040         * lib/rmdir.c: Likewise.
66041         * lib/rpmatch.c: Likewise.
66042         * lib/safe-read.c: Likewise.
66043         * lib/safe-read.h: Likewise.
66044         * lib/safe-write.c: Likewise.
66045         * lib/safe-write.h: Likewise.
66046         * lib/same-inode.h: Likewise.
66047         * lib/same.c: Likewise.
66048         * lib/same.h: Likewise.
66049         * lib/save-cwd.c: Likewise.
66050         * lib/save-cwd.h: Likewise.
66051         * lib/savedir.c: Likewise.
66052         * lib/savedir.h: Likewise.
66053         * lib/savewd.c: Likewise.
66054         * lib/savewd.h: Likewise.
66055         * lib/search.in.h: Likewise.
66056         * lib/setenv.c: Likewise.
66057         * lib/setenv.h: Likewise.
66058         * lib/settime.c: Likewise.
66059         * lib/sh-quote.c: Likewise.
66060         * lib/sh-quote.h: Likewise.
66061         * lib/sig2str.c: Likewise.
66062         * lib/sig2str.h: Likewise.
66063         * lib/signal.in.h: Likewise.
66064         * lib/signbitd.c: Likewise.
66065         * lib/signbitf.c: Likewise.
66066         * lib/signbitl.c: Likewise.
66067         * lib/sigprocmask.c: Likewise.
66068         * lib/sincosl.c: Likewise.
66069         * lib/sleep.c: Likewise.
66070         * lib/sprintf.c: Likewise.
66071         * lib/sqrtl.c: Likewise.
66072         * lib/stat-time.h: Likewise.
66073         * lib/stdio--.h: Likewise.
66074         * lib/stdio-safer.h: Likewise.
66075         * lib/stdlib--.h: Likewise.
66076         * lib/stdlib-safer.h: Likewise.
66077         * lib/stdlib.in.h: Likewise.
66078         * lib/stpcpy.c: Likewise.
66079         * lib/stpncpy.c: Likewise.
66080         * lib/strchrnul.c: Likewise.
66081         * lib/strcspn.c: Likewise.
66082         * lib/strerror.c: Likewise.
66083         * lib/strftime.c: Likewise.
66084         * lib/strftime.h: Likewise.
66085         * lib/striconveh.c: Likewise.
66086         * lib/striconveh.h: Likewise.
66087         * lib/striconveha.c: Likewise.
66088         * lib/striconveha.h: Likewise.
66089         * lib/stripslash.c: Likewise.
66090         * lib/strnlen1.c: Likewise.
66091         * lib/strnlen1.h: Likewise.
66092         * lib/strtod.c: Likewise.
66093         * lib/strtoimax.c: Likewise.
66094         * lib/strtok_r.c: Likewise.
66095         * lib/strtol.c: Likewise.
66096         * lib/strtoll.c: Likewise.
66097         * lib/strtoul.c: Likewise.
66098         * lib/strtoull.c: Likewise.
66099         * lib/sysexits.in.h: Likewise.
66100         * lib/tempname.c: Likewise.
66101         * lib/tempname.h: Likewise.
66102         * lib/timespec.h: Likewise.
66103         * lib/tls.c: Likewise.
66104         * lib/tls.h: Likewise.
66105         * lib/tmpdir.c: Likewise.
66106         * lib/tmpdir.h: Likewise.
66107         * lib/tmpfile-safer.c: Likewise.
66108         * lib/tmpfile.c: Likewise.
66109         * lib/trigl.c: Likewise.
66110         * lib/trigl.h: Likewise.
66111         * lib/trim.c: Likewise.
66112         * lib/trim.h: Likewise.
66113         * lib/trunc.c: Likewise.
66114         * lib/truncf.c: Likewise.
66115         * lib/truncl.c: Likewise.
66116         * lib/tsearch.c: Likewise.
66117         * lib/unicodeio.c: Likewise.
66118         * lib/unicodeio.h: Likewise.
66119         * lib/unistd--.h: Likewise.
66120         * lib/unistd-safer.h: Likewise.
66121         * lib/unistdio/ulc-fprintf.c: Likewise.
66122         * lib/unistdio/ulc-vfprintf.c: Likewise.
66123         * lib/unlinkdir.c: Likewise.
66124         * lib/unlinkdir.h: Likewise.
66125         * lib/unlocked-io.h: Likewise.
66126         * lib/unsetenv.c: Likewise.
66127         * lib/userspec.c: Likewise.
66128         * lib/utime.c: Likewise.
66129         * lib/utimecmp.c: Likewise.
66130         * lib/utimecmp.h: Likewise.
66131         * lib/utimens.c: Likewise.
66132         * lib/verify.h: Likewise.
66133         * lib/verror.c: Likewise.
66134         * lib/verror.h: Likewise.
66135         * lib/version-etc-fsf.c: Likewise.
66136         * lib/version-etc.c: Likewise.
66137         * lib/version-etc.h: Likewise.
66138         * lib/vfprintf.c: Likewise.
66139         * lib/vprintf.c: Likewise.
66140         * lib/vsprintf.c: Likewise.
66141         * lib/w32spawn.h: Likewise.
66142         * lib/wait-process.c: Likewise.
66143         * lib/wait-process.h: Likewise.
66144         * lib/wcwidth.c: Likewise.
66145         * lib/write-any-file.c: Likewise.
66146         * lib/xalloc-die.c: Likewise.
66147         * lib/xalloc.h: Likewise.
66148         * lib/xasprintf.c: Likewise.
66149         * lib/xgetcwd.c: Likewise.
66150         * lib/xgetcwd.h: Likewise.
66151         * lib/xgetdomainname.c: Likewise.
66152         * lib/xgetdomainname.h: Likewise.
66153         * lib/xgethostname.c: Likewise.
66154         * lib/xmalloc.c: Likewise.
66155         * lib/xmalloca.c: Likewise.
66156         * lib/xmalloca.h: Likewise.
66157         * lib/xmemcoll.c: Likewise.
66158         * lib/xnanosleep.c: Likewise.
66159         * lib/xreadlink.c: Likewise.
66160         * lib/xreadlink.h: Likewise.
66161         * lib/xsetenv.c: Likewise.
66162         * lib/xsetenv.h: Likewise.
66163         * lib/xstriconv.c: Likewise.
66164         * lib/xstriconv.h: Likewise.
66165         * lib/xstrndup.c: Likewise.
66166         * lib/xstrndup.h: Likewise.
66167         * lib/xstrtod.c: Likewise.
66168         * lib/xstrtod.h: Likewise.
66169         * lib/xstrtol-error.c: Likewise.
66170         * lib/xstrtol.c: Likewise.
66171         * lib/xstrtol.h: Likewise.
66172         * lib/xtime.h: Likewise.
66173         * lib/xvasprintf.c: Likewise.
66174         * lib/xvasprintf.h: Likewise.
66175         * lib/yesno.c: Likewise.
66176         * lib/yesno.h: Likewise.
66177         * posix-modules: Likewise.
66178         * tests/test-alloca-opt.c: Likewise.
66179         * tests/test-arcfour.c: Likewise.
66180         * tests/test-arctwo.c: Likewise.
66181         * tests/test-argmatch.c: Likewise.
66182         * tests/test-argp-2.sh: Likewise.
66183         * tests/test-argp.c: Likewise.
66184         * tests/test-arpa_inet.c: Likewise.
66185         * tests/test-array_list.c: Likewise.
66186         * tests/test-array_oset.c: Likewise.
66187         * tests/test-atexit.c: Likewise.
66188         * tests/test-avltree_list.c: Likewise.
66189         * tests/test-avltree_oset.c: Likewise.
66190         * tests/test-avltreehash_list.c: Likewise.
66191         * tests/test-base64.c: Likewise.
66192         * tests/test-binary-io.c: Likewise.
66193         * tests/test-byteswap.c: Likewise.
66194         * tests/test-c-ctype.c: Likewise.
66195         * tests/test-c-strcasecmp.c: Likewise.
66196         * tests/test-c-strcasestr.c: Likewise.
66197         * tests/test-c-strncasecmp.c: Likewise.
66198         * tests/test-c-strstr.c: Likewise.
66199         * tests/test-canonicalize-lgpl.c: Likewise.
66200         * tests/test-canonicalize.c: Likewise.
66201         * tests/test-carray_list.c: Likewise.
66202         * tests/test-ceilf.c: Likewise.
66203         * tests/test-ceill.c: Likewise.
66204         * tests/test-count-one-bits.c: Likewise.
66205         * tests/test-crc.c: Likewise.
66206         * tests/test-dirname.c: Likewise.
66207         * tests/test-fbufmode.c: Likewise.
66208         * tests/test-fcntl.c: Likewise.
66209         * tests/test-fflush.c: Likewise.
66210         * tests/test-floorf.c: Likewise.
66211         * tests/test-floorl.c: Likewise.
66212         * tests/test-fopen.c: Likewise.
66213         * tests/test-fprintf-posix.c: Likewise.
66214         * tests/test-fprintf-posix.h: Likewise.
66215         * tests/test-fpurge.c: Likewise.
66216         * tests/test-freadable.c: Likewise.
66217         * tests/test-freadahead.c: Likewise.
66218         * tests/test-freading.c: Likewise.
66219         * tests/test-freopen.c: Likewise.
66220         * tests/test-frexp.c: Likewise.
66221         * tests/test-frexpl.c: Likewise.
66222         * tests/test-fseek.c: Likewise.
66223         * tests/test-fseeko.c: Likewise.
66224         * tests/test-fseterr.c: Likewise.
66225         * tests/test-fstrcmp.c: Likewise.
66226         * tests/test-ftell.c: Likewise.
66227         * tests/test-ftello.c: Likewise.
66228         * tests/test-fwritable.c: Likewise.
66229         * tests/test-fwriting.c: Likewise.
66230         * tests/test-getaddrinfo.c: Likewise.
66231         * tests/test-getpass.c: Likewise.
66232         * tests/test-gettimeofday.c: Likewise.
66233         * tests/test-hmac-md5.c: Likewise.
66234         * tests/test-hmac-sha1.c: Likewise.
66235         * tests/test-iconv.c: Likewise.
66236         * tests/test-iconvme.c: Likewise.
66237         * tests/test-inttypes.c: Likewise.
66238         * tests/test-isnan.c: Likewise.
66239         * tests/test-isnanf.c: Likewise.
66240         * tests/test-isnanl-nolibm.c: Likewise.
66241         * tests/test-isnanl.c: Likewise.
66242         * tests/test-isnanl.h: Likewise.
66243         * tests/test-ldexpl.c: Likewise.
66244         * tests/test-linked_list.c: Likewise.
66245         * tests/test-linkedhash_list.c: Likewise.
66246         * tests/test-locale.c: Likewise.
66247         * tests/test-localename.c: Likewise.
66248         * tests/test-lock.c: Likewise.
66249         * tests/test-lseek.c: Likewise.
66250         * tests/test-malloca.c: Likewise.
66251         * tests/test-math.c: Likewise.
66252         * tests/test-mbscasecmp.c: Likewise.
66253         * tests/test-mbscasestr1.c: Likewise.
66254         * tests/test-mbscasestr2.c: Likewise.
66255         * tests/test-mbscasestr3.c: Likewise.
66256         * tests/test-mbscasestr4.c: Likewise.
66257         * tests/test-mbschr.c: Likewise.
66258         * tests/test-mbscspn.c: Likewise.
66259         * tests/test-mbsncasecmp.c: Likewise.
66260         * tests/test-mbspbrk.c: Likewise.
66261         * tests/test-mbspcasecmp.c: Likewise.
66262         * tests/test-mbsrchr.c: Likewise.
66263         * tests/test-mbsspn.c: Likewise.
66264         * tests/test-mbsstr1.c: Likewise.
66265         * tests/test-mbsstr2.c: Likewise.
66266         * tests/test-mbsstr3.c: Likewise.
66267         * tests/test-md5.c: Likewise.
66268         * tests/test-memmem.c: Likewise.
66269         * tests/test-netinet_in.c: Likewise.
66270         * tests/test-open.c: Likewise.
66271         * tests/test-printf-frexp.c: Likewise.
66272         * tests/test-printf-frexpl.c: Likewise.
66273         * tests/test-printf-posix.c: Likewise.
66274         * tests/test-printf-posix.h: Likewise.
66275         * tests/test-rbtree_list.c: Likewise.
66276         * tests/test-rbtree_oset.c: Likewise.
66277         * tests/test-rbtreehash_list.c: Likewise.
66278         * tests/test-read-file.c: Likewise.
66279         * tests/test-rijndael.c: Likewise.
66280         * tests/test-search.c: Likewise.
66281         * tests/test-signbit.c: Likewise.
66282         * tests/test-sleep.c: Likewise.
66283         * tests/test-snprintf-posix.c: Likewise.
66284         * tests/test-snprintf-posix.h: Likewise.
66285         * tests/test-snprintf.c: Likewise.
66286         * tests/test-sprintf-posix.c: Likewise.
66287         * tests/test-sprintf-posix.h: Likewise.
66288         * tests/test-stat-time.c: Likewise.
66289         * tests/test-stdbool.c: Likewise.
66290         * tests/test-stdint.c: Likewise.
66291         * tests/test-stdio.c: Likewise.
66292         * tests/test-stdlib.c: Likewise.
66293         * tests/test-stpncpy.c: Likewise.
66294         * tests/test-strcasestr.c: Likewise.
66295         * tests/test-striconv.c: Likewise.
66296         * tests/test-striconveh.c: Likewise.
66297         * tests/test-striconveha.c: Likewise.
66298         * tests/test-string.c: Likewise.
66299         * tests/test-sys_select.c: Likewise.
66300         * tests/test-sys_socket.c: Likewise.
66301         * tests/test-sys_stat.c: Likewise.
66302         * tests/test-sys_time.c: Likewise.
66303         * tests/test-sysexits.c: Likewise.
66304         * tests/test-time.c: Likewise.
66305         * tests/test-tls.c: Likewise.
66306         * tests/test-trunc.c: Likewise.
66307         * tests/test-truncf.c: Likewise.
66308         * tests/test-truncl.c: Likewise.
66309         * tests/test-unistd.c: Likewise.
66310         * tests/test-vasnprintf-posix.c: Likewise.
66311         * tests/test-vasnprintf-posix2.c: Likewise.
66312         * tests/test-vasnprintf.c: Likewise.
66313         * tests/test-vasprintf-posix.c: Likewise.
66314         * tests/test-vasprintf.c: Likewise.
66315         * tests/test-verify.c: Likewise.
66316         * tests/test-vfprintf-posix.c: Likewise.
66317         * tests/test-vprintf-posix.c: Likewise.
66318         * tests/test-vsnprintf-posix.c: Likewise.
66319         * tests/test-vsnprintf.c: Likewise.
66320         * tests/test-vsprintf-posix.c: Likewise.
66321         * tests/test-wchar.c: Likewise.
66322         * tests/test-wctype.c: Likewise.
66323         * tests/test-wcwidth.c: Likewise.
66324         * tests/test-xstrtol.c: Likewise.
66325         * tests/test-xvasprintf.c: Likewise.
66326         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66327         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66328         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66329         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66330         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66331         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66332         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66333         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66334         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66335         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66336         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66337         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66338         * tests/uniname/test-uninames.c: Likewise.
66339         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66340         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66341         * tests/unistdio/test-u16-printf1.h: Likewise.
66342         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66343         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66344         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66345         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66346         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66347         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66348         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66349         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66350         * tests/unistdio/test-u32-printf1.h: Likewise.
66351         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66352         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66353         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66354         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66355         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66356         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66357         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66358         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66359         * tests/unistdio/test-u8-printf1.h: Likewise.
66360         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66361         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66362         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66363         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66364         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66365         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66366         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66367         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66368         * tests/unistdio/test-ulc-printf1.h: Likewise.
66369         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66370         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66371         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66372         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66373         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66374         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66375         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66376         * tests/uniwidth/test-u16-width.c: Likewise.
66377         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66378         * tests/uniwidth/test-u32-width.c: Likewise.
66379         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66380         * tests/uniwidth/test-u8-width.c: Likewise.
66381         * tests/uniwidth/test-uc_width.c: Likewise.
66382         * config/srclist-update: Likewise.
66383         (fixlicense): Update to GPLv3+.
66384
66385         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66386         * tests/test-tsearch.c: Change copyright notice.
66387
66388         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66389         * lib/c-strcaseeq.h: Change copyright notice.
66390         * lib/streq.h: Likewise.
66391         * lib/uniconv.h: Likewise.
66392         * lib/uniconv/u-conv-from-enc.h: Likewise.
66393         * lib/uniconv/u-conv-to-enc.h: Likewise.
66394         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66395         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66396         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66397         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66398         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66399         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66400         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66401         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66402         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66403         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66404         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66405         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66406         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66407         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66408         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66409         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66410         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66411         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66412         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66413         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66414         * lib/uniname.h: Likewise.
66415         * lib/uniname/uniname.c: Likewise.
66416         * lib/unistdio.h: Likewise.
66417         * lib/unistdio/u-asnprintf.h: Likewise.
66418         * lib/unistdio/u-asprintf.h: Likewise.
66419         * lib/unistdio/u-printf-args.c: Likewise.
66420         * lib/unistdio/u-printf-args.h: Likewise.
66421         * lib/unistdio/u-printf-parse.h: Likewise.
66422         * lib/unistdio/u-snprintf.h: Likewise.
66423         * lib/unistdio/u-sprintf.h: Likewise.
66424         * lib/unistdio/u-vasprintf.h: Likewise.
66425         * lib/unistdio/u-vsnprintf.h: Likewise.
66426         * lib/unistdio/u-vsprintf.h: Likewise.
66427         * lib/unistdio/u16-asnprintf.c: Likewise.
66428         * lib/unistdio/u16-asprintf.c: Likewise.
66429         * lib/unistdio/u16-printf-parse.c: Likewise.
66430         * lib/unistdio/u16-snprintf.c: Likewise.
66431         * lib/unistdio/u16-sprintf.c: Likewise.
66432         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66433         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66434         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66435         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66436         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66437         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66438         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66439         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66440         * lib/unistdio/u16-vasnprintf.c: Likewise.
66441         * lib/unistdio/u16-vasprintf.c: Likewise.
66442         * lib/unistdio/u16-vsnprintf.c: Likewise.
66443         * lib/unistdio/u16-vsprintf.c: Likewise.
66444         * lib/unistdio/u32-asnprintf.c: Likewise.
66445         * lib/unistdio/u32-asprintf.c: Likewise.
66446         * lib/unistdio/u32-printf-parse.c: Likewise.
66447         * lib/unistdio/u32-snprintf.c: Likewise.
66448         * lib/unistdio/u32-sprintf.c: Likewise.
66449         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66450         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66451         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66452         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66453         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66454         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66455         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66456         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66457         * lib/unistdio/u32-vasnprintf.c: Likewise.
66458         * lib/unistdio/u32-vasprintf.c: Likewise.
66459         * lib/unistdio/u32-vsnprintf.c: Likewise.
66460         * lib/unistdio/u32-vsprintf.c: Likewise.
66461         * lib/unistdio/u8-asnprintf.c: Likewise.
66462         * lib/unistdio/u8-asprintf.c: Likewise.
66463         * lib/unistdio/u8-printf-parse.c: Likewise.
66464         * lib/unistdio/u8-snprintf.c: Likewise.
66465         * lib/unistdio/u8-sprintf.c: Likewise.
66466         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66467         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66468         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66469         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66470         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66471         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66472         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66473         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66474         * lib/unistdio/u8-vasnprintf.c: Likewise.
66475         * lib/unistdio/u8-vasprintf.c: Likewise.
66476         * lib/unistdio/u8-vsnprintf.c: Likewise.
66477         * lib/unistdio/u8-vsprintf.c: Likewise.
66478         * lib/unistdio/ulc-asnprintf.c: Likewise.
66479         * lib/unistdio/ulc-asprintf.c: Likewise.
66480         * lib/unistdio/ulc-printf-parse.c: Likewise.
66481         * lib/unistdio/ulc-snprintf.c: Likewise.
66482         * lib/unistdio/ulc-sprintf.c: Likewise.
66483         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66484         * lib/unistdio/ulc-vasprintf.c: Likewise.
66485         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66486         * lib/unistdio/ulc-vsprintf.c: Likewise.
66487         * lib/unistr.h: Likewise.
66488         * lib/unistr/u-cpy-alloc.h: Likewise.
66489         * lib/unistr/u-cpy.h: Likewise.
66490         * lib/unistr/u-endswith.h: Likewise.
66491         * lib/unistr/u-move.h: Likewise.
66492         * lib/unistr/u-set.h: Likewise.
66493         * lib/unistr/u-startswith.h: Likewise.
66494         * lib/unistr/u-stpcpy.h: Likewise.
66495         * lib/unistr/u-stpncpy.h: Likewise.
66496         * lib/unistr/u-strcat.h: Likewise.
66497         * lib/unistr/u-strcpy.h: Likewise.
66498         * lib/unistr/u-strcspn.h: Likewise.
66499         * lib/unistr/u-strdup.h: Likewise.
66500         * lib/unistr/u-strlen.h: Likewise.
66501         * lib/unistr/u-strncat.h: Likewise.
66502         * lib/unistr/u-strncpy.h: Likewise.
66503         * lib/unistr/u-strnlen.h: Likewise.
66504         * lib/unistr/u-strpbrk.h: Likewise.
66505         * lib/unistr/u-strspn.h: Likewise.
66506         * lib/unistr/u-strstr.h: Likewise.
66507         * lib/unistr/u-strtok.h: Likewise.
66508         * lib/unistr/u16-check.c: Likewise.
66509         * lib/unistr/u16-chr.c: Likewise.
66510         * lib/unistr/u16-cmp.c: Likewise.
66511         * lib/unistr/u16-cpy-alloc.c: Likewise.
66512         * lib/unistr/u16-cpy.c: Likewise.
66513         * lib/unistr/u16-endswith.c: Likewise.
66514         * lib/unistr/u16-mblen.c: Likewise.
66515         * lib/unistr/u16-mbsnlen.c: Likewise.
66516         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66517         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66518         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66519         * lib/unistr/u16-mbtouc.c: Likewise.
66520         * lib/unistr/u16-mbtoucr.c: Likewise.
66521         * lib/unistr/u16-move.c: Likewise.
66522         * lib/unistr/u16-next.c: Likewise.
66523         * lib/unistr/u16-prev.c: Likewise.
66524         * lib/unistr/u16-set.c: Likewise.
66525         * lib/unistr/u16-startswith.c: Likewise.
66526         * lib/unistr/u16-stpcpy.c: Likewise.
66527         * lib/unistr/u16-stpncpy.c: Likewise.
66528         * lib/unistr/u16-strcat.c: Likewise.
66529         * lib/unistr/u16-strchr.c: Likewise.
66530         * lib/unistr/u16-strcmp.c: Likewise.
66531         * lib/unistr/u16-strcpy.c: Likewise.
66532         * lib/unistr/u16-strcspn.c: Likewise.
66533         * lib/unistr/u16-strdup.c: Likewise.
66534         * lib/unistr/u16-strlen.c: Likewise.
66535         * lib/unistr/u16-strmblen.c: Likewise.
66536         * lib/unistr/u16-strmbtouc.c: Likewise.
66537         * lib/unistr/u16-strncat.c: Likewise.
66538         * lib/unistr/u16-strncmp.c: Likewise.
66539         * lib/unistr/u16-strncpy.c: Likewise.
66540         * lib/unistr/u16-strnlen.c: Likewise.
66541         * lib/unistr/u16-strpbrk.c: Likewise.
66542         * lib/unistr/u16-strrchr.c: Likewise.
66543         * lib/unistr/u16-strspn.c: Likewise.
66544         * lib/unistr/u16-strstr.c: Likewise.
66545         * lib/unistr/u16-strtok.c: Likewise.
66546         * lib/unistr/u16-to-u32.c: Likewise.
66547         * lib/unistr/u16-to-u8.c: Likewise.
66548         * lib/unistr/u16-uctomb-aux.c: Likewise.
66549         * lib/unistr/u16-uctomb.c: Likewise.
66550         * lib/unistr/u32-check.c: Likewise.
66551         * lib/unistr/u32-chr.c: Likewise.
66552         * lib/unistr/u32-cmp.c: Likewise.
66553         * lib/unistr/u32-cpy-alloc.c: Likewise.
66554         * lib/unistr/u32-cpy.c: Likewise.
66555         * lib/unistr/u32-endswith.c: Likewise.
66556         * lib/unistr/u32-mblen.c: Likewise.
66557         * lib/unistr/u32-mbsnlen.c: Likewise.
66558         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66559         * lib/unistr/u32-mbtouc.c: Likewise.
66560         * lib/unistr/u32-mbtoucr.c: Likewise.
66561         * lib/unistr/u32-move.c: Likewise.
66562         * lib/unistr/u32-next.c: Likewise.
66563         * lib/unistr/u32-prev.c: Likewise.
66564         * lib/unistr/u32-set.c: Likewise.
66565         * lib/unistr/u32-startswith.c: Likewise.
66566         * lib/unistr/u32-stpcpy.c: Likewise.
66567         * lib/unistr/u32-stpncpy.c: Likewise.
66568         * lib/unistr/u32-strcat.c: Likewise.
66569         * lib/unistr/u32-strchr.c: Likewise.
66570         * lib/unistr/u32-strcmp.c: Likewise.
66571         * lib/unistr/u32-strcpy.c: Likewise.
66572         * lib/unistr/u32-strcspn.c: Likewise.
66573         * lib/unistr/u32-strdup.c: Likewise.
66574         * lib/unistr/u32-strlen.c: Likewise.
66575         * lib/unistr/u32-strmblen.c: Likewise.
66576         * lib/unistr/u32-strmbtouc.c: Likewise.
66577         * lib/unistr/u32-strncat.c: Likewise.
66578         * lib/unistr/u32-strncmp.c: Likewise.
66579         * lib/unistr/u32-strncpy.c: Likewise.
66580         * lib/unistr/u32-strnlen.c: Likewise.
66581         * lib/unistr/u32-strpbrk.c: Likewise.
66582         * lib/unistr/u32-strrchr.c: Likewise.
66583         * lib/unistr/u32-strspn.c: Likewise.
66584         * lib/unistr/u32-strstr.c: Likewise.
66585         * lib/unistr/u32-strtok.c: Likewise.
66586         * lib/unistr/u32-to-u16.c: Likewise.
66587         * lib/unistr/u32-to-u8.c: Likewise.
66588         * lib/unistr/u32-uctomb.c: Likewise.
66589         * lib/unistr/u8-check.c: Likewise.
66590         * lib/unistr/u8-chr.c: Likewise.
66591         * lib/unistr/u8-cmp.c: Likewise.
66592         * lib/unistr/u8-cpy-alloc.c: Likewise.
66593         * lib/unistr/u8-cpy.c: Likewise.
66594         * lib/unistr/u8-endswith.c: Likewise.
66595         * lib/unistr/u8-mblen.c: Likewise.
66596         * lib/unistr/u8-mbsnlen.c: Likewise.
66597         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66598         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66599         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66600         * lib/unistr/u8-mbtouc.c: Likewise.
66601         * lib/unistr/u8-mbtoucr.c: Likewise.
66602         * lib/unistr/u8-move.c: Likewise.
66603         * lib/unistr/u8-next.c: Likewise.
66604         * lib/unistr/u8-prev.c: Likewise.
66605         * lib/unistr/u8-set.c: Likewise.
66606         * lib/unistr/u8-startswith.c: Likewise.
66607         * lib/unistr/u8-stpcpy.c: Likewise.
66608         * lib/unistr/u8-stpncpy.c: Likewise.
66609         * lib/unistr/u8-strcat.c: Likewise.
66610         * lib/unistr/u8-strchr.c: Likewise.
66611         * lib/unistr/u8-strcmp.c: Likewise.
66612         * lib/unistr/u8-strcpy.c: Likewise.
66613         * lib/unistr/u8-strcspn.c: Likewise.
66614         * lib/unistr/u8-strdup.c: Likewise.
66615         * lib/unistr/u8-strlen.c: Likewise.
66616         * lib/unistr/u8-strmblen.c: Likewise.
66617         * lib/unistr/u8-strmbtouc.c: Likewise.
66618         * lib/unistr/u8-strncat.c: Likewise.
66619         * lib/unistr/u8-strncmp.c: Likewise.
66620         * lib/unistr/u8-strncpy.c: Likewise.
66621         * lib/unistr/u8-strnlen.c: Likewise.
66622         * lib/unistr/u8-strpbrk.c: Likewise.
66623         * lib/unistr/u8-strrchr.c: Likewise.
66624         * lib/unistr/u8-strspn.c: Likewise.
66625         * lib/unistr/u8-strstr.c: Likewise.
66626         * lib/unistr/u8-strtok.c: Likewise.
66627         * lib/unistr/u8-to-u16.c: Likewise.
66628         * lib/unistr/u8-to-u32.c: Likewise.
66629         * lib/unistr/u8-uctomb-aux.c: Likewise.
66630         * lib/unistr/u8-uctomb.c: Likewise.
66631         * lib/unitypes.h: Likewise.
66632         * lib/uniwidth.h: Likewise.
66633         * lib/uniwidth/cjk.h: Likewise.
66634         * lib/uniwidth/u16-strwidth.c: Likewise.
66635         * lib/uniwidth/u16-width.c: Likewise.
66636         * lib/uniwidth/u32-strwidth.c: Likewise.
66637         * lib/uniwidth/u32-width.c: Likewise.
66638         * lib/uniwidth/u8-strwidth.c: Likewise.
66639         * lib/uniwidth/u8-width.c: Likewise.
66640         * lib/uniwidth/width.c: Likewise.
66641
66642 2007-10-07  Bruno Haible  <bruno@clisp.org>
66643
66644         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66645         The file is still under LGPL (see modules/inttypes).
66646
66647 2007-10-06  Bruno Haible  <bruno@clisp.org>
66648
66649         * modules/trunc (Dependencies): Add 'extensions'.
66650         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66651         Reported by Ben Pfaff <blp@gnu.org>.
66652
66653 2007-10-06  Bruno Haible  <bruno@clisp.org>
66654
66655         * modules/freopen-tests: New file.
66656         * tests/test-freopen.c: New file.
66657
66658         * modules/fopen-tests: New file.
66659         * tests/test-fopen.c: New file.
66660
66661         * modules/fopen: New file.
66662         * lib/fopen.c: New file.
66663         * m4/fopen.m4: New file.
66664         * modules/freopen: New file.
66665         * lib/freopen.c: New file.
66666         * m4/freopen.m4: New file.
66667         * lib/stdio.in.h (fopen, freopen): New declarations.
66668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66669         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66670         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66671         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66672         * doc/functions/fopen.texi: Mention the 'fopen' module.
66673         * doc/functions/freopen.texi: Mention the 'freopen' module.
66674
66675 2007-10-06  Bruno Haible  <bruno@clisp.org>
66676
66677         * modules/open-tests: New file.
66678         * tests/test-open.c: New file.
66679
66680         * modules/open: New file.
66681         * lib/open.c: New file.
66682         * m4/open.m4: New file.
66683         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66684         lib/open.c does.
66685         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66686         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66687         macros.
66688         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66689         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66690         REPLACE_OPEN.
66691         * doc/functions/open.texi: Mention the 'open' module.
66692
66693 2007-10-04  Bruno Haible  <bruno@clisp.org>
66694
66695         * modules/ceill-tests: New file.
66696         * tests/test-ceill.c: New file.
66697
66698         * modules/ceill: New file.
66699         * lib/ceill.c: Replace entire file.
66700         * m4/ceill.m4: New file.
66701         * lib/math.in.h (ceill): Replace declaration.
66702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66703         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66704         * doc/functions/ceill.texi: Mention the 'ceill' module.
66705         * modules/mathl (Files): Remove lib/ceill.c.
66706         (Depends-on): Add ceill.
66707
66708 2007-10-04  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/ceilf-tests: New file.
66711         * tests/test-ceilf.c: New file.
66712
66713         * modules/ceilf: New file.
66714         * lib/ceil.c: New file.
66715         * lib/ceilf.c: New file.
66716         * m4/ceilf.m4: New file.
66717         * lib/math.in.h (ceilf): New declaration.
66718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66719         HAVE_DECL_CEILF.
66720         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66721         HAVE_DECL_CEILF.
66722         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66723
66724 2007-10-04  Bruno Haible  <bruno@clisp.org>
66725
66726         * modules/floorl-tests: New file.
66727         * tests/test-floorl.c: New file.
66728
66729         * modules/floorl: New file.
66730         * lib/floorl.c: Replace entire file.
66731         * m4/floorl.m4: New file.
66732         * lib/math.in.h (floorl): Replace declaration.
66733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66734         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66735         * doc/functions/floorl.texi: Mention the 'floorl' module.
66736         * modules/mathl (Files): Remove lib/floorl.c.
66737         (Depends-on): Add floorl.
66738
66739 2007-10-04  Bruno Haible  <bruno@clisp.org>
66740
66741         * modules/floorf-tests: New file.
66742         * tests/test-floorf.c: New file.
66743
66744         * modules/floorf: New file.
66745         * lib/floor.c: New file.
66746         * lib/floorf.c: New file.
66747         * m4/floorf.m4: New file.
66748         * lib/math.in.h (floorf): New declaration.
66749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66750         HAVE_DECL_FLOORF.
66751         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66752         HAVE_DECL_FLOORF.
66753         * doc/functions/floorf.texi: Mention the 'floorf' module.
66754
66755 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66756             Bruno Haible  <bruno@clisp.org>
66757
66758         Advertise for the Git server instead of the CVS server.
66759         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66760         repository instead of the CVS one.
66761         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66762         about all VCS systems generically.
66763         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66764
66765 2007-10-04  Bruno Haible  <bruno@clisp.org>
66766
66767         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66768         means.
66769         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66770
66771 2007-10-04  Bruno Haible  <bruno@clisp.org>
66772
66773         * modules/truncl-tests: New file.
66774         * tests/test-truncl.c: New file.
66775
66776         * modules/truncl: New file.
66777         * lib/truncl.c: New file.
66778         * m4/truncl.m4: New file.
66779         * lib/math.in.h (truncl): New declaration.
66780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66781         HAVE_DECL_TRUNCL.
66782         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66783         HAVE_DECL_TRUNCL.
66784         * doc/functions/truncl.texi: Mention the 'truncl' module.
66785
66786 2007-10-04  Bruno Haible  <bruno@clisp.org>
66787
66788         * modules/truncf-tests: New file.
66789         * tests/test-truncf.c: New file.
66790
66791         * modules/truncf: New file.
66792         * lib/trunc.c: Make paramerizable through USE_* macros.
66793         * lib/truncf.c: New file.
66794         * m4/truncf.m4: New file.
66795         * lib/math.in.h (truncf): New declaration.
66796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66797         HAVE_DECL_TRUNCF.
66798         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66799         HAVE_DECL_TRUNCF.
66800         * doc/functions/truncf.texi: Mention the 'truncf' module.
66801
66802 2007-10-03  Bruno Haible  <bruno@clisp.org>
66803
66804         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66805         augmentation also for tests modules.
66806         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66807         * modules/atexit-tests (Makefile.am): Likewise.
66808         * modules/binary-io-tests (Makefile.am): Likewise.
66809         * modules/c-strcase-tests (Makefile.am): Likewise.
66810         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66811         * modules/canonicalize-tests (Makefile.am): Likewise.
66812         * modules/closein-tests (Makefile.am): Likewise.
66813         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66814         * modules/freadahead-tests (Makefile.am): Likewise.
66815         * modules/fseek-tests (Makefile.am): Likewise.
66816         * modules/fseeko-tests (Makefile.am): Likewise.
66817         * modules/ftell-tests (Makefile.am): Likewise.
66818         * modules/ftello-tests (Makefile.am): Likewise.
66819         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66820         * modules/isnanl-tests (Makefile.am): Likewise.
66821         * modules/lseek-tests (Makefile.am): Likewise.
66822         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66823         * modules/mbscasestr-tests (Makefile.am): Likewise.
66824         * modules/mbschr-tests (Makefile.am): Likewise.
66825         * modules/mbscspn-tests (Makefile.am): Likewise.
66826         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66827         * modules/mbspbrk-tests (Makefile.am): Likewise.
66828         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66829         * modules/mbsrchr-tests (Makefile.am): Likewise.
66830         * modules/mbsspn-tests (Makefile.am): Likewise.
66831         * modules/mbsstr-tests (Makefile.am): Likewise.
66832         * modules/printf-posix-tests (Makefile.am): Likewise.
66833         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66834         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66835         * modules/tsearch-tests (Makefile.am): Likewise.
66836         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66837         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66838         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66839         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66840         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66841         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66842         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66843         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66844         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66845         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66846         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66847         * modules/xstrtol-tests (Makefile.am): Likewise.
66848         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66849         * modules/yesno-tests (Makefile.am): Likewise.
66850
66851 2007-10-03  Bruno Haible  <bruno@clisp.org>
66852
66853         * modules/trunc-tests: New file.
66854         * tests/test-trunc.c: New file.
66855
66856         * modules/trunc: New file.
66857         * lib/trunc.c: New file.
66858         * m4/trunc.m4: New file.
66859         * lib/math.in.h (trunc): New declaration.
66860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66861         HAVE_DECL_TRUNC.
66862         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66863         HAVE_DECL_TRUNC.
66864         * doc/functions/trunc.texi: Mention the 'trunc' module.
66865
66866 2007-10-03  Bruno Haible  <bruno@clisp.org>
66867
66868         * tests/test-fpending.c: New file, mostly copied
66869         from coreutils/lib/t-fpending.c.
66870         * modules/fpending-tests: New file.
66871
66872 2007-10-03  Bruno Haible  <bruno@clisp.org>
66873
66874         Port the stdio extensions to QNX (untested).
66875         * lib/fseterr.c (fseterr): Add support for QNX.
66876         * lib/fbufmode.c (fbufmode): Likewise.
66877         * lib/freadable.c (freadable): Likewise.
66878         * lib/fwritable.c (fwritable): Likewise.
66879         * lib/freading.c (freading): Likewise.
66880         * lib/fwriting.c (fwriting): Likewise.
66881         * lib/freadahead.c (freadahed): Likewise.
66882         * lib/fpurge.c (fpurge): Likewise.
66883         * lib/fseeko.c (rpl_fseeko): Likewise.
66884
66885 2007-10-03  Bruno Haible  <bruno@clisp.org>
66886             Jim Meyering  <jim@meyering.net>
66887             Eric Blake  <ebb9@byu.net>
66888
66889         * doc/relocatable.texi: Use @command instead of @program.
66890
66891 2007-10-02  Jim Meyering  <jim@meyering.net>
66892
66893         Perform one more "_.h" -> ".in.h" substitution.
66894         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66895         instead of unistd_.h here, too.
66896
66897 2007-10-01  Bruno Haible  <bruno@clisp.org>
66898
66899         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66900         Needed for the alloca-opt module.
66901
66902 2007-09-30  Bruno Haible  <bruno@clisp.org>
66903
66904         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66905         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66906         alloca_.h.
66907         * lib/argz.in.h: Renamed from lib/argz_.h.
66908         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66909         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66910         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66911         byteswap_.h.
66912         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66913         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66914         dirent_.h.
66915         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66916         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66917         fcntl_.h.
66918         * lib/float.in.h: Renamed from lib/float_.h.
66919         * modules/float (Files, Makefile.am): Use float.in.h instead of
66920         float_.h.
66921         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66922         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66923         fnmatch_.h.
66924         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66925         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66926         getopt_.h.
66927         * lib/glob.in.h: Renamed from lib/glob_.h.
66928         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66929         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66930         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66931         iconv_.h.
66932         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66933         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66934         inttypes_.h.
66935         * lib/locale.in.h: Renamed from lib/locale_.h.
66936         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66937         locale_.h.
66938         * lib/math.in.h: Renamed from lib/math_.h.
66939         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66940         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66941         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66942         of netinet_in_.h. Add dependency.
66943         * lib/poll.in.h: Renamed from lib/poll_.h.
66944         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66945         * lib/search.in.h: Renamed from lib/search_.h.
66946         * modules/search (Files, Makefile.am): Use search.in.h instead of
66947         search_.h.
66948         * lib/signal.in.h: Renamed from lib/signal_.h.
66949         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66950         _signal.h.
66951         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66952         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66953         stdbool_.h.
66954         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66955         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66956         stdint_.h.
66957         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66958         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66959         stdio_.h.
66960         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66961         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66962         stdlib_.h.
66963         * lib/string.in.h: Renamed from lib/string_.h.
66964         * modules/string (Files, Makefile.am): Use string.in.h instead of
66965         string_.h.
66966         * doc/gnulib-tool.texi (Initial import): Update.
66967         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66968         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66969         of sys_select_.h. Add dependency.
66970         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66971         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66972         of sys_socket_.h.
66973         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66974         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66975         sys_stat_.h.
66976         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66977         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66978         sys_time_.h.
66979         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66980         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66981         sysexits_.h.
66982         * lib/time.in.h: Renamed from lib/time_.h.
66983         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66984         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66985         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66986         unistd_.h.
66987         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66988         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66989         wchar_.h.
66990         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66991         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66992         wctype_.h.
66993         * build-aux/bootstrap (slurp): Update.
66994         * lib/.cppi-disable: Update.
66995
66996 2007-09-30  Bruno Haible  <bruno@clisp.org>
66997
66998         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66999         Needed on BeOS.
67000
67001 2007-09-30  Bruno Haible  <bruno@clisp.org>
67002
67003         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67004
67005 2007-09-29  Bruno Haible  <bruno@clisp.org>
67006
67007         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67008
67009 2007-09-29  Bruno Haible  <bruno@clisp.org>
67010
67011         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67012         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67013         * build-aux/install-reloc: Compile also areadlink.c.
67014         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67015
67016 2007-09-29  Bruno Haible  <bruno@clisp.org>
67017
67018         * gnulib-tool (func_emit_initmacro_done): Indentation.
67019
67020 2007-09-29  Bruno Haible  <bruno@clisp.org>
67021
67022         * README: Add CVS checkout update instructions.
67023         Info from Bob Proulx <bob@proulx.com>.
67024
67025 2007-09-28  Eric Blake  <ebb9@byu.net>
67026
67027         Provide move-if-change.
67028         * build-aux/move-if-change: New file, based on best practice
67029         rather than any canonical upstream location.
67030
67031 2007-09-28  Jim Meyering  <jim@meyering.net>
67032
67033         Fix canonicalize loop-detection corner case.
67034         Do not attempt to stat the symlink values stored via seen_triple.
67035         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67036         on linux-2.6.18, (but not 2.6.22).
67037         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67038         triple_compare.  The former compares dev,ino,filename, while the latter
67039         would actually stat dirname(filename) when dev and ino were equal.
67040         * lib/hash-triple.c: Install <string.h>.
67041         (STREQ): Define.
67042         (triple_compare_ino_str): New function.
67043         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67044
67045 2007-09-28  Eric Blake  <ebb9@byu.net>
67046
67047         Enforce that AC_REPLACE_FUNCS files exist.
67048         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67049         override check for typos.
67050
67051         Fix test-closein on Solaris 10.
67052         * tests/test-closein.c (main): Don't assume stdin can be inherited
67053         closed on all systems.
67054         * tests/test-closein.sh: Likewise.
67055         Reported by Piotr Tarnowski.
67056
67057 2007-09-28  Jim Meyering  <jim@meyering.net>
67058
67059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67060
67061 2007-09-27  Jim Meyering  <jim@meyering.net>
67062
67063         canonicalize: Avoid a false-positive cycle failure.
67064         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67065         Sort.  Remove cycle-check.
67066         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67067         not cycle-check.h.
67068         (seen_triple): New function.
67069         (canonicalize_filename_mode): Use it instead of cycle-check.
67070         * tests/test-canonicalize.c: Add a test for this bug.
67071         * tests/test-canonicalize.sh: Set up and run the test.
67072
67073         New module, file-set, from coreutils.
67074         * modules/file-set: Define it.
67075         * lib/file-set.c, lib/file-set.h: Implement.
67076
67077         New module, hash-triple, from coreutils.
67078         * modules/hash-triple: Define it.
67079         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67080
67081 2007-09-25  Eric Blake  <ebb9@byu.net>
67082
67083         Fix strerror on Interix.
67084         * lib/string_.h (strerror): Declare replacement.
67085         * doc/functions/strerror.texi (strerror): Document the Interix
67086         shortcoming.
67087         * modules/string (Makefile.am): Support new hooks.
67088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67089         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67090         gl_FUNC_STRERROR_SEPARATE.
67091         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67092         * lib/strerror.c (rpl_strerror): Provide replacement.
67093         * modules/strerror (Depends-on): Add string.
67094         (configure.ac): Detect use of module.
67095         * tests/test-strerror.c: New file.
67096         * modules/strerror-tests: New test module.
67097         * modules/argp (Depends-on): Add strerror.
67098         * modules/error (Depends-on): Likewise.
67099         Reported by Martin Koeppe.
67100
67101 2007-09-24  Bruno Haible  <bruno@clisp.org>
67102
67103         * README: Update git instructions.
67104
67105 2007-09-24  Eric Blake  <ebb9@byu.net>
67106
67107         Revert fpending breakage from 2007-09-08.
67108         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67109         __fpending.c.
67110
67111 2007-09-24  Jim Meyering  <jim@meyering.net>
67112
67113         filenamecat.c: Add a test.
67114         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67115         showing how the function works when DIR is the empty string.
67116
67117 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67118
67119         * tests/test-canonicalize.sh: Turn on executable bit.
67120
67121 2007-09-19  Eric Blake  <ebb9@byu.net>
67122
67123         * README: Update CVS instructions.
67124
67125 2007-09-18  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/areadlink: New file.
67128         * lib/areadlink.h (areadlink): New declaration.
67129         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67130
67131 2007-09-17  Jim Meyering  <jim@meyering.net>
67132
67133         * lib/savewd.c (ESTALE) [!defined]: Define.
67134         Reported to be required on Interix by Martin Koeppe.
67135
67136 2007-09-17  Bruno Haible  <bruno@clisp.org>
67137
67138         * gnulib-tool (func_version): Use $version.
67139
67140 2007-09-16  Bruno Haible  <bruno@clisp.org>
67141
67142         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67143         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67144         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67145         Reported by Greg Schafer <gschafer@zip.com.au>.
67146
67147 2007-09-15  Bruno Haible  <bruno@clisp.org>
67148
67149         * gnulib-tool (sed): Try a little harder to make bash understand the
67150         alias.
67151         Reported by Bruce Korb <bruce.korb@gmail.com>.
67152
67153 2007-09-13  Eric Blake  <ebb9@byu.net>
67154
67155         * ChangeLog: Remove conflict markers.
67156
67157 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67158
67159         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67160         Reported by Bruno Haible <bruno@clisp.org>.
67161
67162 2007-09-12  Bruno Haible  <bruno@clisp.org>
67163
67164         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67165         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67166         is not defined.
67167
67168 2007-09-12  Eric Blake  <ebb9@byu.net>
67169
67170         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67171         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67172         Autoconf definition.
67173         * modules/euidaccess (Depends-on): Add extensions, for
67174         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67175         * modules/fnmatch (Depends-on): Likewise.
67176         * modules/getaddrinfo (Depends-on): Likewise.
67177         * modules/getdelim (Depends-on): Likewise.
67178         * modules/getline (Depends-on): Likewise.
67179         * modules/getsubopt (Depends-on): Likewise.
67180         * modules/gettext (Depends-on): Likewise.
67181         * modules/group-member (Depends-on): Likewise.
67182         * modules/mbchar (Depends-on): Likewise.
67183         * modules/memmem (Depends-on): Likewise.
67184         * modules/mempcpy (Depends-on): Likewise.
67185         * modules/memrchr (Depends-on): Likewise.
67186         * modules/pagealign_alloc (Depends-on): Likewise.
67187         * modules/readutmp (Depends-on): Likewise.
67188         * modules/stpcpy (Depends-on): Likewise.
67189         * modules/stpncpy (Depends-on): Likewise.
67190         * modules/strchrnul (Depends-on): Likewise.
67191         * modules/strndup (Depends-on): Likewise.
67192         * modules/strsep (Depends-on): Likewise.
67193         * modules/strverscmp (Depends-on): Likewise.
67194         * modules/vasprintf (Depends-on): Likewise.
67195         * modules/wcwidth (Depends-on): Likewise.
67196         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67197         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67198         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67201         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67202         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67203         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67204         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67205         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67206         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67209         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67210         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67211         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67212         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67213         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67215         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67217         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67218         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67219         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67220         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67222         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67223         so that lock.m4 can be used in gettext without extensions module.
67224
67225 2007-09-11  Bruno Haible  <bruno@clisp.org>
67226
67227         * m4/isc-posix.m4: Remove file.
67228         Suggested by Eric Blake.
67229
67230 2007-09-11  Eric Blake  <ebb9@byu.net>
67231
67232         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67233
67234 2007-09-10  Bruno Haible  <bruno@clisp.org>
67235
67236         * posix-modules: Fix typo in error message.
67237         Reported by Matt <mkraai@beckman.com>.
67238
67239 2007-09-09  Bruno Haible  <bruno@clisp.org>
67240
67241         * doc/functions/getdelim.texi: Update list of platforms lacking the
67242         function.
67243         * doc/functions/getline.texi: Likewise.
67244
67245 2007-09-09  Jim Meyering  <jim@meyering.net>
67246
67247         * lib/hash.c (hash_initialize): Detect calloc failure.
67248         Reported by Bruno Haible.
67249
67250 2007-09-09  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67253         malloc or realloc fails.
67254
67255 2007-09-09  Bruno Haible  <bruno@clisp.org>
67256
67257         * modules/getcwd (Depends-on): Add malloc-posix.
67258         * modules/glob (Depends-on): Likewise.
67259         * modules/putenv (Depends-on): Likewise.
67260         * modules/strdup (Depends-on): Likewise.
67261         * modules/getdelim (Depends-on): Add realloc-posix.
67262         * modules/read-file (Depends-on): Likewise.
67263
67264 2007-09-09  Bruno Haible  <bruno@clisp.org>
67265
67266         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67267         (gl_FUNC_MALLOC_POSIX): Require it.
67268         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67269         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67270         * modules/realloc (Files): Add m4/malloc.m4.
67271         * modules/calloc (Files): Likewise.
67272
67273 2007-09-09  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/malloc-posix: New file.
67276         * modules/malloc (Depends-on): Add malloc-posix.
67277         * lib/malloc.c: Include errno.h.
67278         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67279         and a POSIX-compatible malloc into a single function. Set ENOMEM
67280         when returning NULL.
67281         * m4/malloc.m4: New file.
67282         * doc/functions/malloc.texi: Mention the malloc-posix module.
67283         * lib/stdlib_.h (malloc): New declaration.
67284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67285         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67286         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67287         and HAVE_MALLOC_POSIX.
67288
67289 2007-09-09  Bruno Haible  <bruno@clisp.org>
67290
67291         * modules/realloc-posix: New file.
67292         * modules/realloc (Depends-on): Add realloc-posix.
67293         * lib/realloc.c: Include errno.h.
67294         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67295         and a POSIX-compatible realloc into a single function. Set ENOMEM
67296         when returning NULL.
67297         * m4/realloc.m4: New file.
67298         * doc/functions/realloc.texi: Mention the realloc-posix module.
67299         * lib/stdlib_.h (realloc): New declaration.
67300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67301         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67302         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67303         and HAVE_REALLOC_POSIX.
67304
67305 2007-09-09  Bruno Haible  <bruno@clisp.org>
67306
67307         * modules/calloc-posix: New file.
67308         * modules/calloc (Depends-on): Add calloc-posix.
67309         * lib/calloc.c: Include errno.h.
67310         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67311         and a POSIX-compatible calloc into a single function. Set ENOMEM
67312         when returning NULL.
67313         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67314         * doc/functions/calloc.texi: Mention the calloc-posix module.
67315         * lib/stdlib_.h (calloc): New declaration.
67316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67317         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67318         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67319         and HAVE_CALLOC_POSIX.
67320
67321 2007-09-09  Bruno Haible  <bruno@clisp.org>
67322
67323         Allow for modules to show an arbitrary notice.
67324         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67325         * gnulib-tool: New option --extract-notice.
67326         (func_usage): Document it.
67327         (sed_extract_prog): Update.
67328         (func_get_notice): New function.
67329         (func_modules_notice): New function.
67330         (func_import, func_create_testdir): Invoke it.
67331         Suggested by Jim Meyering.
67332
67333 2007-09-09  Bruno Haible  <bruno@clisp.org>
67334
67335         * gnulib-tool: New options --verbose, --quiet.
67336         (func_usage): Document them.
67337         (verbose): New variable.
67338         (func_execute_command): New function.
67339         (func_import): Don't show the module list and the file list if
67340         $verbose < 0.
67341         (func_create_testdir): Likewise. Use func_execute_command.
67342         (func_create_megatestdir): Use func_execute_command.
67343
67344 2007-09-08  Bruno Haible  <bruno@clisp.org>
67345
67346         * gnulib-tool (func_import): Prefer rsync over wget when available,
67347         for fetching the PO files.
67348
67349 2007-09-08  Bruno Haible  <bruno@clisp.org>
67350
67351         * posix-modules: New file. Portions copied from gnulib-tool.
67352         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67353
67354 2007-09-08  Jim Meyering  <jim@meyering.net>
67355
67356         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67357         * lib/fpending.h: Rename from __fpending.h.
67358         * lib/fpending.c: Rename from __fpending.c.
67359         Include "fpending.h", not "__fpending.h".
67360         * lib/__fpending.h, lib/__fpending.c: Remove files.
67361         * modules/fpending (Files): Reflect new file names.
67362         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67363
67364 2007-09-08  Bruno Haible  <bruno@clisp.org>
67365
67366         * m4/inttypes-h.m4: Remove stub file.
67367
67368 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67369
67370         * doc/headers/stdint.texi: Discuss #include_next issue.
67371
67372 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67373
67374         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67375
67376 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67377
67378         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67379         in variable name.
67380
67381 2007-09-03  Jim Meyering  <jim@meyering.net>
67382
67383         New module: git-version-gen.
67384         * modules/git-version-gen: New file.
67385
67386         Import changes from coreutils for bootstrap script.
67387
67388         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67389
67390         bootstrap: uses rsync to download the .po files
67391         * build-aux/bootstrap (po_download_command_format): New global.
67392         (download_po_files): Use rsync.
67393         (update_po_files): Don't remove .po files after download,
67394         so future rsync runs can take advantage of the copies.
67395
67396         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67397
67398         Solve the unnecessary-.po-file-regeneration problem once and for all.
67399         * build-aux/bootstrap (download_po_files): New function, renamed from
67400         get_translations.  Now, downloads, but doesn't update LINGUAS.
67401         (update_po_files): New function.
67402
67403         bootstrap: Ignore more.
67404         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67405         uniwidth to e.g., lib/.gitignore.
67406         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67407
67408         * build-aux/bootstrap: New setting: vc_ignore.
67409         (insert_sorted_if_absent): Create $file if absent.
67410         Adapt to new, possibly empty, list: $vc_ignore.
67411
67412         bootstrap: generate more ignorable names
67413         * build-aux/bootstrap (slurp): When generating ignorable names,
67414         also map .sin to .sed, .gperf to .c, and .y to .c.
67415
67416 2007-09-03  Jim Meyering  <jim@meyering.net>
67417
67418         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67419         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67420
67421 2007-09-02  Bruno Haible  <bruno@clisp.org>
67422
67423         Fix mis-recognition of 'mcs' on QNX 6.
67424         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67425         output contains the string "Mono".
67426         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67427         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67428
67429 2007-09-01  Bruno Haible  <bruno@clisp.org>
67430
67431         Fix collision between uniwidth/* and linebreak modules.
67432         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67433         u32_width): Remove declarations.
67434         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67435         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67436         streq3, streq2, streq1, streq0): Remove functions.
67437         (STREQ): Remove macro.
67438         (is_cjk_encoding): Remove function.
67439         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67440         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67441         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67442         * NEWS: Document the change.
67443
67444 2007-09-01  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/streq.h: Add double-inclusion guard.
67447
67448 2007-09-01  Karl Berry  <karl@gnu.org>
67449
67450         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67451
67452 2007-08-28  Jim Meyering  <jim@meyering.net>
67453
67454         Rename mreadlink_with_size to areadlink_with_size.
67455         * NEWS: Document the change.
67456         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67457         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67458         * lib/mreadlink.h: Rename this to...
67459         * lib/areadlink.h: ...this.
67460         * modules/mreadlink-with-size: Rename this to...
67461         * modules/areadlink-with-size: ...this.
67462         * lib/canonicalize.c: Reflect the renaming.
67463         * modules/canonicalize: Likewise.
67464
67465 2007-08-26  Bruno Haible  <bruno@clisp.org>
67466
67467         * gnulib-tool (func_import): When deciding which files to remove,
67468         consider also dangling symbolic links.
67469         Reported by Eric Blake.
67470
67471 2007-08-26  Bruno Haible  <bruno@clisp.org>
67472
67473         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67474
67475 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67476
67477         * lib/readline.c: Don't include getline.h, the prototype is now
67478         found in stdio.h.
67479
67480 2007-08-23  Jim Meyering  <jim@meyering.net>
67481
67482         Getdelim touchup.
67483         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67484         around the funlockfile call, since funlockfile never sets errno.
67485         Don't set errno upon failed realloc.
67486
67487 2007-08-22  Eric Blake  <ebb9@byu.net>
67488
67489         Getline touchups.
67490         * lib/getdelim.c (getdelim): Revert regression that required *n to
67491         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67492         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67493         getdelim, rather than whether implementation is missing.
67494         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67495         * lib/stdio_.h (getline): Also declare if replacement is
67496         required.
67497         * doc/functions/getdelim.texi: New file.
67498         * doc/functions/getline.texi: Likewise.
67499         * doc/gnulib.texi (Function Substitutes): Add new files.
67500         Reported by Bruno Haible.
67501
67502 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67503
67504         * users.txt: Add Guile.
67505
67506 2007-08-22  Eric Blake  <ebb9@byu.net>
67507
67508         * tests/test-getdelim.c (main): Use remove, not unlink.
67509         * tests/test-getline.c (main): Likewise.
67510
67511         Move getline and getdelim into stdio.h, per POSIX 200x.
67512         * modules/getline (Files): Remove getline.h.
67513         (Depends-on): Add stdio.
67514         (configure.ac): Add module indicator.
67515         * modules/getdelim (Files): Remove getdelim.h.
67516         (Depends-on): Add stdio.
67517         (configure.ac): Add module indicator.
67518         * modules/stdio (Makefile.am): Work with new indicators.
67519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67520         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67521         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67522         * lib/getdelim.h: Delete.
67523         * lib/getline.h: Delete.
67524         * lib/stdio_.h (getdelim, getline): Declare.
67525         * modules/getdelim-tests: New module.
67526         * modules/getline-tests: Likewise.
67527         * tests/test-getdelim.c: New file.
67528         * tests/test-getline.c: Likewise.
67529         * NEWS: Document the change.
67530         * lib/getline.c: Update choice of header.
67531         * lib/csharpcomp.c: Likewise.
67532         * lib/getpass.c: Likewise.
67533         * lib/javacomp.c: Likewise.
67534         * lib/javaversion.c: Likewise.
67535         * lib/yesno.c: Likewise.
67536         * lib/getdelim.c: Likewise.
67537         (getdelim): Set errno on failure, and avoid memory leak.
67538
67539 2007-08-19  Bruno Haible  <bruno@clisp.org>
67540
67541         * modules/closein (Depends-on): Add freadahead.
67542         * lib/closein.c: Include freadahead.h.
67543         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67544         is zero.
67545
67546 2007-08-19  Bruno Haible  <bruno@clisp.org>
67547
67548         * modules/freadahead-tests: New file.
67549         * tests/test-freadahead.sh: New file.
67550         * tests/test-freadahead.c: New file.
67551
67552         * modules/freadahead: New file.
67553         * lib/freadahead.h: New file.
67554         * lib/freadahead.c: New file.
67555         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67556         fbufmode, fpurge, freadable, fwritable.
67557
67558 2007-08-19  Eric Blake  <ebb9@byu.net>
67559
67560         Test yesno in combination with closein.
67561         * lib/yesno.c (yesno): Document use of stdin.
67562         * modules/yesno-tests (Files): New module.
67563         * tests/test-yesno.c (main): New file.
67564         * tests/test-yesno.sh: Likewise.
67565
67566 2007-08-19  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67569         * lib/fseeko.c (rpl_fseeko): Likewise.
67570         * lib/fseterr.c (fseterr): Likewise.
67571
67572 2007-08-19  Bruno Haible  <bruno@clisp.org>
67573
67574         * tests/test-lseek.c (main): Disable a test for BeOS.
67575         * doc/functions/lseek.texi: Document the BeOS bug.
67576
67577 2007-08-19  Bruno Haible  <bruno@clisp.org>
67578             Eric Blake  <ebb9@byu.net>
67579
67580         * lib/lseek.c: Include <sys/stat.h>.
67581         (rpl_lseek): Add workaround code also for Unix platforms.
67582         Needed for BeOS.
67583         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67584         * doc/functions/lseek.texi: Document BeOS definiency.
67585
67586 2007-08-18  Bruno Haible  <bruno@clisp.org>
67587
67588         * modules/fstrcmp-tests: New file.
67589         * tests/test-fstrcmp.c: New file.
67590
67591 2007-08-18  Bruno Haible  <bruno@clisp.org>
67592
67593         * modules/fstrcmp: New file, from GNU gettext with modifications.
67594         * lib/fstrcmp.h: New file, from GNU gettext.
67595         * lib/fstrcmp.c: New file, from GNU gettext.
67596         * MODULES.html.sh (String handling): Add fstrcmp.
67597
67598 2007-08-18  Bruno Haible  <bruno@clisp.org>
67599
67600         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67601         'bool'.
67602         (diag, compareseq): Remove const from the ctxt argument.
67603         (USE_HEURISTIC): Undefine at the end.
67604
67605 2007-08-18  Jim Meyering  <jim@meyering.net>
67606
67607         New file: lib/idcache.h
67608         * NEWS: Mention the addition.
67609         * modules/idcache (Files): Add lib/idcache.h
67610         * lib/idcache.c: Include "idcache.h".
67611         Don't include <sys/types.h>.
67612         Add a FIXME comment.
67613         Move file-scoped "static" declarations to the top.
67614         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67615
67616 2007-08-17  Bruno Haible  <bruno@clisp.org>
67617         and Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * MODULES.html.sh: Add diffseq.
67620         * modules/diffseq: New file.
67621         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67622         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67623
67624 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         Import changes from coreutils for bootstrap script.
67627
67628         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * build-aux/bootstrap (slurp): Work even in environments where
67631         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67632         current code does not slurp files whose names start with ".", and
67633         this looks like it might be a troublesome area.
67634
67635         2007-07-11  Jim Meyering  <jim@meyering.net>
67636
67637         If there's a GPL vN copyright comment, require that N == 3.
67638
67639         2007-07-08  Jim Meyering  <jim@meyering.net>
67640
67641         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67642         * build-aux/bootstrap (mam_template): Move definition out of loop.
67643
67644         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67645
67646         * build-aux/bootstrap (symlink_to_dir): Rename function from
67647         symlink_to_gnulib.  Add a directory parameter.  Update all
67648         callers.
67649         (cp_mark_as_generated): Also check for -- and link to -- files in
67650         gl/.
67651
67652         2007-07-08  Jim Meyering  <jim@meyering.net>
67653
67654         Adapt to deeper hierarchy in gnulib.
67655         * build-aux/bootstrap (symlink_to_dir): If the destination
67656         directory doesn't exist, create it. This is required at least for
67657         "lib/uniwidth/cjk.h".
67658
67659         2007-05-15  Jim Meyering  <jim@meyering.net>
67660
67661         * build-aux/bootstrap: Now that generated Makefile.am files
67662         are no longer under version control, they must be created at
67663         bootstrap time.
67664
67665 2007-08-14  Ben Pfaff  <blp@gnu.org>
67666
67667         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67668
67669 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67672         given the changes below.
67673         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67674         even on hosts that have padding bits beyond the supported 64.
67675
67676 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67679         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67680         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67681         depends on it.
67682         (xstrtol_error): Remove.
67683         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67684         but with a different signature.
67685         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67686         * lib/xstrtol-error.c: Include exitfail.h.
67687         (xstrtol_fatal): New function, with a different signature from the
67688         old xstrtol_error, so that the caller need not worry about passing
67689         in an exit status, or about storage management of the option argument.
67690         (xstrtol_error): Now a static function.  Redo signature to
67691         implement xstrtol_fatal.  Output the correct number of hyphens in
67692         front of the option so that the caller need not worry about
67693         storage management.
67694         (N_): New macro.
67695         (_): Remove; not used now.
67696         * modules/xstrtol: Depend on getopt.
67697         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67698         of old STRTOL_FATAL_ERROR macro.
67699         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67700         of test program.
67701         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67702         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67703
67704 2007-08-08  Eric Blake  <ebb9@byu.net>
67705
67706         * lib/xstrtol-error.c: Add missing include.
67707
67708         Move xstrtol messages into gnulib domain, when --pobase is used.
67709         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67710         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67711         * modules/xstrtol (Files): Distribute new file.
67712         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67713         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67714         * tests/test-xstrtol.c: ...into new file.
67715         * tests/test-xstrtoul.c: Also test xstrtoul.
67716         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67717         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67718         * tests/test-xstrtol.sh: Drive the tests.
67719         * tests/test-xstrtoimax.sh: Likewise.
67720         * tests/test-xstrtoumax.sh: Likewise.
67721         * modules/xstrtol-tests: New module.
67722         * modules/xstrtoimax-tests: Likewise.
67723         * modules/xstrtoumax-tests: Likewise.
67724
67725 2007-08-08  Jim Meyering  <jim@meyering.net>
67726
67727         New function: mfile_name_concat.
67728         * lib/filenamecat.c (mfile_name_concat): New function, just like
67729         file_name_concat, but return NULL upon failure rather than exiting
67730         with a diagnostic.
67731         * lib/filenamecat.h: Declare it.
67732
67733 2007-08-07  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67736         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67737         warning from gcc.
67738         Reported by Eric Blake.
67739
67740 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67741
67742         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67743         * modules/crypto/arcfour (License): Likewise.
67744         * modules/crypto/des-tests (License): Likewise.
67745         * modules/crypto/gc-arctwo-tests (License): Likewise.
67746         * modules/crypto/gc-des-tests (License): Likewise.
67747         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67748         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67749         * modules/crypto/gc-md2-tests (License): Likewise.
67750         * modules/crypto/gc-md4-tests (License): Likewise.
67751         * modules/crypto/gc-md5-tests (License): Likewise.
67752         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67753         * modules/crypto/gc-rijndael-tests (License): Likewise.
67754         * modules/crypto/gc-sha1-tests (License): Likewise.
67755         * modules/crypto/gc-tests (License): Likewise.
67756         * modules/crypto/hmac-md5 (License): Likewise.
67757         * modules/crypto/hmac-sha1 (License): Likewise.
67758         * modules/crypto/md2-tests (License): Likewise.
67759         * modules/crypto/md4-tests (License): Likewise.
67760         * modules/crypto/md5 (License): Likewise.
67761         * modules/crypto/rijndael (License): Likewise.
67762         * modules/crypto/sha1 (License): Likewise.
67763         * modules/memxor (License): Likewise.
67764
67765 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67766         and Bruno Haible  <bruno@clisp.org>
67767
67768         * NEWS: Describe interface changes to human, xstrtol.
67769         * lib/human.h: Include <xstrtol.h>.
67770         (human_options): Return enum strtol_error, not int.  Remove
67771         bool arg; take int * instead.
67772         * lib/human.c: Don't include "gettext.h".
67773         (_): Remove; no longer used.
67774         Don't include <xstrtol.h>, since human.h does it.
67775         (human_options): Adjust to abovementioned interface changes.
67776         Do not report error to stderr; that's now the caller's
67777         responsibility.
67778         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67779         interface change.
67780         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67781         Str, Argument_type_string.  All uses changed.  Put " argument"
67782         in diagnostics to make them clearer.  Change wording of suffix
67783         message for clarity.
67784         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67785         Argument_type_string.
67786         (STRTOL_FATAL_WARN): Remove; no longer used.
67787         * modules/human (Depends-on): Remove gettext-h.
67788
67789 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67790
67791         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67792
67793 2007-07-31  Bruno Haible  <bruno@clisp.org>
67794
67795         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67796         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67797         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67798
67799 2007-07-31  Bruno Haible  <bruno@clisp.org>
67800
67801         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67802         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67803
67804 2007-07-30  Bruno Haible  <bruno@clisp.org>
67805
67806         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67807         * modules/c-ctype (License): Likewise.
67808         * modules/c-strcase (License): Likewise.
67809         * modules/check-version (License): Likewise.
67810         * modules/iconv (License): Likewise.
67811         * modules/iconv_open (License): Likewise.
67812         * modules/read-file (License): Likewise.
67813         * modules/striconv (License): Likewise.
67814         * modules/strverscmp (License): Likewise.
67815         * modules/vasprintf (License): Likewise.
67816         * modules/crypto/des (License): Likewise.
67817         * modules/crypto/gc (License): Likewise.
67818         * modules/crypto/gc-arcfour (License): Likewise.
67819         * modules/crypto/gc-arctwo (License): Likewise.
67820         * modules/crypto/gc-des (License): Likewise.
67821         * modules/crypto/gc-hmac-md5 (License): Likewise.
67822         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67823         * modules/crypto/gc-md2 (License): Likewise.
67824         * modules/crypto/gc-md4 (License): Likewise.
67825         * modules/crypto/gc-md5 (License): Likewise.
67826         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67827         * modules/crypto/gc-random (License): Likewise.
67828         * modules/crypto/gc-rijndael (License): Likewise.
67829         * modules/crypto/gc-sha1 (License): Likewise.
67830         * modules/crypto/md2 (License): Likewise.
67831         * modules/crypto/md4 (License): Likewise.
67832
67833 2007-07-30  Jim Meyering  <jim@meyering.net>
67834
67835         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67836         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67837         it has valid stat data.  This bug would cause du not to count the
67838         sizes of inaccessible directories.
67839         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67840         in <http://bugzilla.redhat.com/250077>.
67841
67842 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67843             Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67846         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67847         #include_next, gives a diagnostic about it, but reports no error in
67848         the exit code.
67849         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67850
67851 2007-07-24  Ben Pfaff  <blp@gnu.org>
67852
67853         Improve name: "count-one-bits" is better than "popcount".
67854         * MODULES.html.sh: Update name.
67855         * lib/popcount.h: Renamed lib/count-one-bits.h.
67856         (popcount): Renamed count_one_bits.
67857         (popcountl): Renamed count_one_bits_l.
67858         (popcountll): Renamed count_one_bits_ll.
67859         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67860         * modules/popcount: Renamed module/count-one-bits.
67861         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67862         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67863
67864 2007-07-23  Ben Pfaff  <blp@gnu.org>
67865
67866         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67867         better code generation, and add U to large constants to avoid
67868         warnings, in non-GCC case.
67869         Suggested by Bruno Haible.
67870
67871 2007-07-23  Ben Pfaff  <blp@gnu.org>
67872
67873         * lib/popcount.h: Use verify_true instead of if...abort.
67874         * modules/popcount: Depend on verify module.
67875         Suggested by Jim Meyering.
67876
67877 2007-07-23  Bruno Haible  <bruno@clisp.org>
67878
67879         * gnulib-tool (func_import): Create a .cvsignore file also when the
67880         directory is not yet in CVS but the toplevel directory is. When
67881         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67882         Reported by Karl Berry.
67883
67884 2007-07-22  Ben Pfaff  <blp@gnu.org>
67885
67886         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67887         case.
67888         Suggested by Eric Blake.
67889
67890 2007-07-22  Ben Pfaff  <blp@gnu.org>
67891
67892         New module: popcount.
67893         * MODULES.html.sh: Add popcount.
67894         * modules/popcount: New file.
67895         * modules/popcount-tests: New file.
67896         * tests/test-popcount.c: New file.
67897         * lib/popcount.h: New file.
67898         * m4/popcount.m4: New file.
67899
67900 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * build-aux/announce-gen: Update to GPLv3.
67903
67904         * build-aux/config.guess: Update from config.
67905
67906 2007-07-21  Bruno Haible  <bruno@clisp.org>
67907
67908         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67909         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67910
67911 2007-07-20  Jim Meyering  <jim@meyering.net>
67912
67913         * check-module: Diagnose a self-dependency.
67914
67915 2007-07-19  Bruno Haible  <bruno@clisp.org>
67916
67917         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67918         empty.
67919         Reported by Eric Blake.
67920
67921 2007-07-18  Bruno Haible  <bruno@clisp.org>
67922
67923         * gnulib-tool: New options --po-base, --po-domain.
67924         (func_usage): Document them.
67925         (pobase, po_domain): New variables.
67926         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67927         DEFAULT_TEXT_DOMAIN.
67928         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67929         (func_import): Consider pobase and po_domain. Create a po/ directory.
67930         (func_create_testdir): Set pobase and po_domain to empty.
67931         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67932         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67933
67934 2007-07-18  Bruno Haible  <bruno@clisp.org>
67935
67936         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67937         EXTRA_DIST augmentation for files in build-aux/.
67938
67939 2007-07-16  Bruno Haible  <bruno@clisp.org>
67940
67941         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67942         * modules/getdelim (License): Likewise.
67943
67944 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67945
67946         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67947         * modules/d-type (License): Likewise.
67948         * modules/extensions (License): Likewise.
67949         * modules/fnmatch (License): Likewise.
67950         * modules/fseeko (License): Likewise.
67951         * modules/getaddrinfo (License): Likewise.
67952         * modules/getline (License): Likewise.
67953         * modules/getlogin_r (License): Likewise.
67954         * modules/getpass (License): Likewise.
67955         * modules/gettimeofday (License): Likewise.
67956         * modules/glob (License): Likewise.
67957         * modules/inet_ntop (License): Likewise.
67958         * modules/malloc (License): Likewise.
67959         * modules/malloca (License): Likewise.
67960         * modules/memmem (License): Likewise.
67961         * modules/mempcpy (License): Likewise.
67962         * modules/memset (License): Likewise.
67963         * modules/minmax (License): Likewise.
67964         * modules/mktime (License): Likewise.
67965         * modules/netinet_in (License): Likewise.
67966         * modules/pathmax (License): Likewise.
67967         * modules/poll (License): Likewise.
67968         * modules/regex (License): Likewise.
67969         * modules/snprintf (License): Likewise.
67970         * modules/stdbool (License): Likewise.
67971         * modules/stdint (License): Likewise.
67972         * modules/stdio (License): Likewise.
67973         * modules/strcase (License): Likewise.
67974         * modules/strcasestr (License): Likewise.
67975         * modules/strdup (License): Likewise.
67976         * modules/string (License): Likewise.
67977         * modules/strndup (License): Likewise.
67978         * modules/strnlen (License): Likewise.
67979         * modules/strpbrk (License): Likewise.
67980         * modules/strptime (License): Likewise.
67981         * modules/strsep (License): Likewise.
67982         * modules/sys_select (License): Likewise.
67983         * modules/sys_socket (License): Likewise.
67984         * modules/sys_stat (License): Likewise.
67985         * modules/sys_time (License): Likewise.
67986         * modules/time (License): Likewise.
67987         * modules/time_r (License): Likewise.
67988         * modules/timegm (License): Likewise.
67989         * modules/unistd (License): Likewise.
67990         * modules/vsnprintf (License): Likewise.
67991         * modules/wctype (License): Likewise.
67992
67993 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67994
67995         * modules/argz (License): LGPLv2+.
67996
67997 2007-07-15  Karl Berry  <karl@gnu.org>
67998
67999         * doc/gnulib.texi: revise node structure per new fdl.texi.
68000
68001 2007-07-14  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68004         the output file.
68005         * lib/uniname/uninames.h: Regenerated.
68006
68007 2007-07-14  Karl Berry  <karl@gnu.org>
68008
68009         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68010         omitting sectioning and index commands.
68011
68012 2007-07-13  Bruno Haible  <bruno@clisp.org>
68013
68014         New gnulib-tool option --more-symlinks.
68015         * gnulib-tool (func_usage): Document --more-symlinks.
68016         (do_copyrights): New variable.
68017         Recognize option --more-symlinks.
68018         (func_import): Don't add a copyright notice transform to
68019         sed_transform_lib_file if do_copyrights is empty.
68020
68021 2007-07-13  Bruno Haible  <bruno@clisp.org>
68022
68023         * lib/vasnprintf.c (decimal_point_char): Define also if
68024         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68025         && !NEED_PRINTF_DIRECTIVE_A.
68026         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68027         Gary V. Vaughan <gary@gnu.org>.
68028
68029 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         * lib/inttypes_.h: Undo previous change, since it was fixed
68032         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68033
68034 2007-07-13  Bruno Haible  <bruno@clisp.org>
68035
68036         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68037         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68038
68039 2007-07-13  Jim Meyering  <jim@meyering.net>
68040
68041         df: Don't fail for Tru64's "file-on-file mount".
68042         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68043         so we fall through and use statfs instead.  Details here:
68044         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68045         Reported by Albert Chin.
68046
68047 2007-07-13  Bruno Haible  <bruno@clisp.org>
68048
68049         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68050         * modules/configmake (License): Likewise.
68051         * modules/gettext (License): Likewise.
68052         * modules/gettext-h (License): Likewise.
68053         * modules/include_next (License): Likewise.
68054         * modules/link-warning (License): Likewise.
68055         * modules/localcharset (License): Likewise.
68056         * modules/localename (License): Likewise.
68057         * modules/lock (License): Likewise.
68058         * modules/relocatable-lib-lgpl (License): Likewise.
68059         * modules/size_max (License): Likewise.
68060         * modules/vasnprintf (License): Likewise.
68061         * modules/wchar (License): Likewise.
68062         * modules/xsize (License): Likewise.
68063
68064 2007-07-13  Bruno Haible  <bruno@clisp.org>
68065
68066         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68067         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68068
68069 2007-07-12  Bruno Haible  <bruno@clisp.org>
68070
68071         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68072         in the modules files.
68073
68074 2007-07-11  Karl Berry  <karl@gnu.org>
68075
68076         * MODULES.html.sh (func_module): use
68077          sed -e '\|^'"${includefile}"'$|d'
68078          instead of /.../d, to avoid errors on $includefile's containing /.
68079
68080 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68081
68082         * gnulib-tool (func_import): Avoid duplication of --avoid
68083         statements
68084         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68085         names to `_' in variable names.
68086
68087 2007-07-10  Eric Blake  <ebb9@byu.net>
68088
68089         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68090         * NEWS: Document this change.
68091
68092 2007-07-08  Bruno Haible  <bruno@clisp.org>
68093
68094         Update to Unicode 5.0.
68095         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68096         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68097         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68098         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68099         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68100         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68101         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68102         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68103         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68104         U+10A3F, U+1D242..U+1D244.
68105         (nonspacing_table_ind): Update.
68106         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68107         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68108
68109 2007-07-08  Bruno Haible  <bruno@clisp.org>
68110
68111         Update to Unicode 5.0.
68112         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68113         code transform. Extend the name index field of unicode_name_to_code and
68114         unicode_code_to_name from 16 to 24 bits.
68115         * lib/uniname/uniname.c (unicode_character_name,
68116         unicode_name_character): Add the range 0x12xxx to the code transform.
68117         * lib/uniname/uninames.h: Regenerated.
68118         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68119
68120 2007-07-07  Bruno Haible  <bruno@clisp.org>
68121
68122         * modules/wcwidth-tests: New file.
68123         * tests/test-wcwidth.c: New file.
68124
68125         Work around MacOS X wcwidth() bug.
68126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68127         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68128         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68129         original wcwidth in non-UTF-8 locales.
68130         * modules/wcwidth (Depends-on): Add localcharset, streq,
68131         uniwidth/width.
68132         * doc/functions/wcwidth.texi: Update.
68133
68134 2007-07-07  Bruno Haible  <bruno@clisp.org>
68135
68136         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68137         (wcwidth): New declaration.
68138         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68139         macros.
68140         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68141         here. Prepare for creating <wchar.h> unconditionally.
68142         * modules/wchar (Depends-on): Add link-warning.
68143         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68144         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68145         * lib/wcwidth.h: Remove file.
68146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68147         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68148         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68149         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68150         (Include): Replace wcwidth.h with <wchar.h>.
68151         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68152         * lib/mbchar.h: Don't include wcwidth.h.
68153         * lib/mbswidth.c: Likewise.
68154         * NEWS: Mention the change.
68155
68156 2007-07-07  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68159         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68160         definition with an external declaration.
68161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68162         defined as a function. Remove AC_C_INLINE requirement.
68163         * modules/wcwidth (Files): Add lib/wcwidth.c.
68164         (Makefile.am): Remove redundant statement.
68165
68166 2007-07-07  Bruno Haible  <bruno@clisp.org>
68167
68168         * MODULES.html.sh (Unicode string functions): Add the new modules.
68169
68170         * tests/uniwidth/test-u32-strwidth.c: New file.
68171         * modules/uniwidth/u32-strwidth-tests: New file.
68172
68173         * lib/uniwidth/u32-strwidth.c: New file.
68174         * modules/uniwidth/u32-strwidth: New file.
68175
68176         * tests/uniwidth/test-u16-strwidth.c: New file.
68177         * modules/uniwidth/u16-strwidth-tests: New file.
68178
68179         * lib/uniwidth/u16-strwidth.c: New file.
68180         * modules/uniwidth/u16-strwidth: New file.
68181
68182         * tests/uniwidth/test-u8-strwidth.c: New file.
68183         * modules/uniwidth/u8-strwidth-tests: New file.
68184
68185         * lib/uniwidth/u8-strwidth.c: New file.
68186         * modules/uniwidth/u8-strwidth: New file.
68187
68188         * tests/uniwidth/test-u32-width.c: New file.
68189         * modules/uniwidth/u32-width-tests: New file.
68190
68191         * lib/uniwidth/u32-width.c: New file.
68192         * modules/uniwidth/u32-width: New file.
68193
68194         * tests/uniwidth/test-u16-width.c: New file.
68195         * modules/uniwidth/u16-width-tests: New file.
68196
68197         * lib/uniwidth/u16-width.c: New file.
68198         * modules/uniwidth/u16-width: New file.
68199
68200         * tests/uniwidth/test-u8-width.c: New file.
68201         * modules/uniwidth/u8-width-tests: New file.
68202
68203         * lib/uniwidth/u8-width.c: New file.
68204         * modules/uniwidth/u8-width: New file.
68205
68206         * tests/uniwidth/test-uc_width.c: New file.
68207         * modules/uniwidth/width-tests: New file.
68208
68209         * lib/uniwidth/width.c: New file, from GNU libiconv.
68210         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68211         * modules/uniwidth/width: New file.
68212
68213         * lib/uniwidth.h: New file, from GNU libiconv.
68214         * modules/uniwidth/base: New file.
68215
68216 2007-07-07  Bruno Haible  <bruno@clisp.org>
68217
68218         * lib/uniname.h: New file, from GNU gettext.
68219         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68220         * lib/uniname/uninames.h: New file, from GNU gettext.
68221         * lib/uniname/uniname.c: New file, from GNU gettext.
68222         * tests/uniname/test-uninames.sh: New file.
68223         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68224         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68225         * modules/uniname/base: New file.
68226         * modules/uniname/uniname: New file.
68227         * modules/uniname/uniname-tests: New file.
68228         * MODULES.html.sh (Unicode string functions): Add the new modules.
68229
68230 2007-07-06  Bruno Haible  <bruno@clisp.org>
68231
68232         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68233
68234 2007-07-06  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68237         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68238         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68239         include <sys/time.h>.
68240         Reported by Eric Blake.
68241
68242 2007-07-06  Eric Blake  <ebb9@byu.net>
68243
68244         Fix testing canonicalize on cygwin.
68245         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68246         Revert patch from 2007-06-19.
68247         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68248         canonicalize module is also in use.
68249         * tests/test-canonicalize.c: New file.
68250         * tests/test-canonicalize.sh: Likewise.
68251         * modules/canonicalize-tests: Likewise.
68252
68253 2007-07-06  Jim Meyering  <jim@meyering.net>
68254
68255         * lib/getugroups.c (getugroups): Detect getgrent failure.
68256         Adjust comment to reflect reality: this function may return -1.
68257
68258 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68259
68260         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68261         the new TP address.
68262         (usage): Fix typo
68263         (gnulib_mk): New variable.
68264
68265 2007-07-05  Jim Meyering  <jim@meyering.net>
68266
68267         Don't let endgrent clobber errno, no matter how improbable.
68268         * lib/getugroups.c (getugroups): Save and restore errno around
68269         endgrent call.
68270
68271         Close the group DB even when failing with 2^31 or more members.
68272         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68273
68274 2007-07-04  Jim Meyering  <jim@meyering.net>
68275
68276         * lib/getugroups.h: New file.
68277         * lib/getugroups.c: Include "getugroups.h".
68278         Remove uses of "register" keyword.
68279         Move local variable, "cp", down into scope where used.
68280         Give "username" parameter the "const" attribute.
68281         * modules/getugroups (Files): Add lib/getugroups.h
68282
68283 2007-07-04  Karl Berry  <karl@gnu.org>
68284
68285         * MODULES.html.sh (func_all_modules): Complete rename of
68286         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68287
68288 2007-07-02  Bruno Haible  <bruno@clisp.org>
68289
68290         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68291         mode, when inttypes.h comes from gnulib.
68292         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68293
68294 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68295
68296         * NEWS: Mention lgpl module name change.
68297
68298         * modules/lgpl-2.1: Renamed from lgpl.
68299
68300         * NEWS: Mention gpl module name change.
68301
68302         * modules/gpl-3.0: New file, based on gpl-2.0.
68303
68304         * modules/gpl-2.0: Renamed from gpl.
68305
68306         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68307         doc/gpl-2.0.texi.
68308
68309 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68312         #define __STDC_LIMIT_MACROS temporarily while including
68313         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68314         Problem reported by Joel E. Denny in
68315         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68316
68317 2007-07-01  Bruno Haible  <bruno@clisp.org>
68318
68319         * lib/unistdio.h: New file.
68320         * lib/unistdio/u-asnprintf.h: New file.
68321         * lib/unistdio/u-asprintf.h: New file.
68322         * lib/unistdio/u-printf-args.c: New file.
68323         * lib/unistdio/u-printf-args.h: New file.
68324         * lib/unistdio/u-printf-parse.h: New file.
68325         * lib/unistdio/u-snprintf.h: New file.
68326         * lib/unistdio/u-sprintf.h: New file.
68327         * lib/unistdio/u-vasprintf.h: New file.
68328         * lib/unistdio/u-vsnprintf.h: New file.
68329         * lib/unistdio/u-vsprintf.h: New file.
68330         * lib/unistdio/ulc-asnprintf.c: New file.
68331         * lib/unistdio/ulc-asprintf.c: New file.
68332         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68333         * lib/unistdio/ulc-printf-parse.c: New file.
68334         * lib/unistdio/ulc-snprintf.c: New file.
68335         * lib/unistdio/ulc-sprintf.c: New file.
68336         * lib/unistdio/ulc-vasnprintf.c: New file.
68337         * lib/unistdio/ulc-vasprintf.c: New file.
68338         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68339         * lib/unistdio/ulc-vsnprintf.c: New file.
68340         * lib/unistdio/ulc-vsprintf.c: New file.
68341         * lib/unistdio/u8-asnprintf.c: New file.
68342         * lib/unistdio/u8-asprintf.c: New file.
68343         * lib/unistdio/u8-printf-parse.c: New file.
68344         * lib/unistdio/u8-snprintf.c: New file.
68345         * lib/unistdio/u8-sprintf.c: New file.
68346         * lib/unistdio/u8-vasnprintf.c: New file.
68347         * lib/unistdio/u8-vasprintf.c: New file.
68348         * lib/unistdio/u8-vsnprintf.c: New file.
68349         * lib/unistdio/u8-vsprintf.c: New file.
68350         * lib/unistdio/u8-u8-asnprintf.c: New file.
68351         * lib/unistdio/u8-u8-asprintf.c: New file.
68352         * lib/unistdio/u8-u8-snprintf.c: New file.
68353         * lib/unistdio/u8-u8-sprintf.c: New file.
68354         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68355         * lib/unistdio/u8-u8-vasprintf.c: New file.
68356         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68357         * lib/unistdio/u8-u8-vsprintf.c: New file.
68358         * lib/unistdio/u16-asnprintf.c: New file.
68359         * lib/unistdio/u16-asprintf.c: New file.
68360         * lib/unistdio/u16-printf-parse.c: New file.
68361         * lib/unistdio/u16-snprintf.c: New file.
68362         * lib/unistdio/u16-sprintf.c: New file.
68363         * lib/unistdio/u16-vasnprintf.c: New file.
68364         * lib/unistdio/u16-vasprintf.c: New file.
68365         * lib/unistdio/u16-vsnprintf.c: New file.
68366         * lib/unistdio/u16-vsprintf.c: New file.
68367         * lib/unistdio/u16-u16-asnprintf.c: New file.
68368         * lib/unistdio/u16-u16-asprintf.c: New file.
68369         * lib/unistdio/u16-u16-snprintf.c: New file.
68370         * lib/unistdio/u16-u16-sprintf.c: New file.
68371         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68372         * lib/unistdio/u16-u16-vasprintf.c: New file.
68373         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68374         * lib/unistdio/u16-u16-vsprintf.c: New file.
68375         * lib/unistdio/u32-asnprintf.c: New file.
68376         * lib/unistdio/u32-asprintf.c: New file.
68377         * lib/unistdio/u32-printf-parse.c: New file.
68378         * lib/unistdio/u32-snprintf.c: New file.
68379         * lib/unistdio/u32-sprintf.c: New file.
68380         * lib/unistdio/u32-vasnprintf.c: New file.
68381         * lib/unistdio/u32-vasprintf.c: New file.
68382         * lib/unistdio/u32-vsnprintf.c: New file.
68383         * lib/unistdio/u32-vsprintf.c: New file.
68384         * lib/unistdio/u32-u32-asnprintf.c: New file.
68385         * lib/unistdio/u32-u32-asprintf.c: New file.
68386         * lib/unistdio/u32-u32-snprintf.c: New file.
68387         * lib/unistdio/u32-u32-sprintf.c: New file.
68388         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68389         * lib/unistdio/u32-u32-vasprintf.c: New file.
68390         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68391         * lib/unistdio/u32-u32-vsprintf.c: New file.
68392         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68393         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68394         * tests/unistdio/test-ulc-printf1.h: New file.
68395         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68396         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68397         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68398         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68399         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68400         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68401         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68402         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68403         * tests/unistdio/test-u8-asnprintf1.c: New file.
68404         * tests/unistdio/test-u8-asnprintf1.h: New file.
68405         * tests/unistdio/test-u8-printf1.h: New file.
68406         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68407         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68408         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68409         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68410         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68411         * tests/unistdio/test-u8-vasprintf1.c: New file.
68412         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68413         * tests/unistdio/test-u8-vsprintf1.c: New file.
68414         * tests/unistdio/test-u16-asnprintf1.c: New file.
68415         * tests/unistdio/test-u16-asnprintf1.h: New file.
68416         * tests/unistdio/test-u16-printf1.h: New file.
68417         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68418         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68419         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68420         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68421         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68422         * tests/unistdio/test-u16-vasprintf1.c: New file.
68423         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68424         * tests/unistdio/test-u16-vsprintf1.c: New file.
68425         * tests/unistdio/test-u32-asnprintf1.c: New file.
68426         * tests/unistdio/test-u32-asnprintf1.h: New file.
68427         * tests/unistdio/test-u32-printf1.h: New file.
68428         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68429         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68430         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68431         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68432         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68433         * tests/unistdio/test-u32-vasprintf1.c: New file.
68434         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68435         * tests/unistdio/test-u32-vsprintf1.c: New file.
68436         * modules/unistdio/base: New file.
68437         * modules/unistdio/u-printf-args: New file.
68438         * modules/unistdio/ulc-asnprintf: New file.
68439         * modules/unistdio/ulc-asprintf: New file.
68440         * modules/unistdio/ulc-fprintf: New file.
68441         * modules/unistdio/ulc-printf-parse: New file.
68442         * modules/unistdio/ulc-snprintf: New file.
68443         * modules/unistdio/ulc-sprintf: New file.
68444         * modules/unistdio/ulc-vasnprintf: New file.
68445         * modules/unistdio/ulc-vasprintf: New file.
68446         * modules/unistdio/ulc-vfprintf: New file.
68447         * modules/unistdio/ulc-vsnprintf: New file.
68448         * modules/unistdio/ulc-vsprintf: New file.
68449         * modules/unistdio/u8-asnprintf: New file.
68450         * modules/unistdio/u8-asprintf: New file.
68451         * modules/unistdio/u8-printf-parse: New file.
68452         * modules/unistdio/u8-snprintf: New file.
68453         * modules/unistdio/u8-sprintf: New file.
68454         * modules/unistdio/u8-vasnprintf: New file.
68455         * modules/unistdio/u8-vasprintf: New file.
68456         * modules/unistdio/u8-vsnprintf: New file.
68457         * modules/unistdio/u8-vsprintf: New file.
68458         * modules/unistdio/u8-u8-asnprintf: New file.
68459         * modules/unistdio/u8-u8-asprintf: New file.
68460         * modules/unistdio/u8-u8-snprintf: New file.
68461         * modules/unistdio/u8-u8-sprintf: New file.
68462         * modules/unistdio/u8-u8-vasnprintf: New file.
68463         * modules/unistdio/u8-u8-vasprintf: New file.
68464         * modules/unistdio/u8-u8-vsnprintf: New file.
68465         * modules/unistdio/u8-u8-vsprintf: New file.
68466         * modules/unistdio/u16-asnprintf: New file.
68467         * modules/unistdio/u16-asprintf: New file.
68468         * modules/unistdio/u16-printf-parse: New file.
68469         * modules/unistdio/u16-snprintf: New file.
68470         * modules/unistdio/u16-sprintf: New file.
68471         * modules/unistdio/u16-vasnprintf: New file.
68472         * modules/unistdio/u16-vasprintf: New file.
68473         * modules/unistdio/u16-vsnprintf: New file.
68474         * modules/unistdio/u16-vsprintf: New file.
68475         * modules/unistdio/u16-u16-asnprintf: New file.
68476         * modules/unistdio/u16-u16-asprintf: New file.
68477         * modules/unistdio/u16-u16-snprintf: New file.
68478         * modules/unistdio/u16-u16-sprintf: New file.
68479         * modules/unistdio/u16-u16-vasnprintf: New file.
68480         * modules/unistdio/u16-u16-vasprintf: New file.
68481         * modules/unistdio/u16-u16-vsnprintf: New file.
68482         * modules/unistdio/u16-u16-vsprintf: New file.
68483         * modules/unistdio/u32-asnprintf: New file.
68484         * modules/unistdio/u32-asprintf: New file.
68485         * modules/unistdio/u32-printf-parse: New file.
68486         * modules/unistdio/u32-snprintf: New file.
68487         * modules/unistdio/u32-sprintf: New file.
68488         * modules/unistdio/u32-vasnprintf: New file.
68489         * modules/unistdio/u32-vasprintf: New file.
68490         * modules/unistdio/u32-vsnprintf: New file.
68491         * modules/unistdio/u32-vsprintf: New file.
68492         * modules/unistdio/u32-u32-asnprintf: New file.
68493         * modules/unistdio/u32-u32-asprintf: New file.
68494         * modules/unistdio/u32-u32-snprintf: New file.
68495         * modules/unistdio/u32-u32-sprintf: New file.
68496         * modules/unistdio/u32-u32-vasnprintf: New file.
68497         * modules/unistdio/u32-u32-vasprintf: New file.
68498         * modules/unistdio/u32-u32-vsnprintf: New file.
68499         * modules/unistdio/u32-u32-vsprintf: New file.
68500         * modules/unistdio/ulc-asnprintf-tests: New file.
68501         * modules/unistdio/ulc-vasnprintf-tests: New file.
68502         * modules/unistdio/ulc-vasprintf-tests: New file.
68503         * modules/unistdio/ulc-vsnprintf-tests: New file.
68504         * modules/unistdio/ulc-vsprintf-tests: New file.
68505         * modules/unistdio/u8-asnprintf-tests: New file.
68506         * modules/unistdio/u8-vasnprintf-tests: New file.
68507         * modules/unistdio/u8-vasprintf-tests: New file.
68508         * modules/unistdio/u8-vsnprintf-tests: New file.
68509         * modules/unistdio/u8-vsprintf-tests: New file.
68510         * modules/unistdio/u16-asnprintf-tests: New file.
68511         * modules/unistdio/u16-vasnprintf-tests: New file.
68512         * modules/unistdio/u16-vasprintf-tests: New file.
68513         * modules/unistdio/u16-vsnprintf-tests: New file.
68514         * modules/unistdio/u16-vsprintf-tests: New file.
68515         * modules/unistdio/u32-asnprintf-tests: New file.
68516         * modules/unistdio/u32-vasnprintf-tests: New file.
68517         * modules/unistdio/u32-vasprintf-tests: New file.
68518         * modules/unistdio/u32-vsnprintf-tests: New file.
68519         * modules/unistdio/u32-vsprintf-tests: New file.
68520         * MODULES.html.sh (Unicode string functions): Add the new modules.
68521
68522 2007-07-01  Bruno Haible  <bruno@clisp.org>
68523
68524         * lib/sprintf.c (sprintf): Limit the available length estimation,
68525         to avoid address wraparound.
68526         * lib/vsprintf.c (vsprintf): Likewise.
68527         * modules/sprintf-posix (Dependencies): Add stdint.
68528         * modules/vsprintf-posix (Dependencies): Likewise.
68529
68530 2007-07-01  Bruno Haible  <bruno@clisp.org>
68531
68532         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68533         Windows PATH as well. Conservative double-quoting. Comments.
68534
68535 2007-07-01  Bruno Haible  <bruno@clisp.org>
68536             Eric Blake  <ebb9@byu.net>
68537             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68538
68539         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68540         empty components in $PATH, denoting '.'.
68541
68542 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68543
68544         * gnulib-tool: Fix indentation.
68545         (func_create_megatestdir): Likewise.
68546         Report by Bruno Haible.
68547
68548 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68549
68550         Sync from Automake.
68551         * build-aux/gnupload: Fix shell portability issues with for loops.
68552         Report by Karl Berry.
68553
68554 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68555
68556         * build-aux/maint.mk (POURL): Use translationproject.org.
68557
68558 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68559             Bruno Haible  <bruno@clisp.org>
68560
68561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68562         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68563         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68564         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68565         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68566
68567 2007-06-27  Bruno Haible  <bruno@clisp.org>
68568
68569         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68570         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68571
68572 2007-06-26  Karl Berry  <karl@gnu.org>
68573
68574         * MODULES.html.sh: remove xreadlink-with-size.
68575
68576 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68579         method that I hope also handles the double-include problem noted
68580         by Bruno Haible in
68581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68582
68583 2007-06-23  Bruno Haible  <bruno@clisp.org>
68584
68585         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68586         Don't let the 'mostlyclean' target fail if the last subdirectory could
68587         not be removed.
68588         Reported by Karl Berry.
68589
68590 2007-06-23  Bruno Haible  <bruno@clisp.org>
68591
68592         * gnulib-tool (echo): Add a speedier workaround for ksh.
68593         * tests/test-echo.sh: Likewise.
68594
68595 2007-06-23  Bruno Haible  <bruno@clisp.org>
68596
68597         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68598         * tests/test-echo.sh: Likewise.
68599
68600 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68601
68602         * gnulib-tool (IFS): Initialize early, so we don't set it to
68603         empty later.
68604         (self_abspathname): Rewrite algorithm to set it, reindent.
68605         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68606         (func_create_megatestdir): Merge some sed scripts.
68607
68608 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68611         exposed by Sun Studio 11 cc on Solaris 8.
68612
68613 2007-06-22  Bruno Haible  <bruno@clisp.org>
68614
68615         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68616         backslashes.
68617         * tests/test-echo.sh: New file.
68618
68619 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68620
68621         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68622         simplify `sed_replace_build_aux' scripts, they are portable but
68623         echoing them with `echo' is not.
68624         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68625
68626 2007-06-21  Karl Berry  <karl@gnu.org>
68627
68628         * config/srclist.txt: guess we can't handle the licenses via
68629         srclist at the moment.
68630
68631 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * MODULES.html.sh: Add include_next.
68634         * modules/include_next: New file.
68635
68636 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68639         INCLUDE_NEXT.
68640         (gl_CHECK_NEXT_HEADERS): New macro.
68641         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68642         the obsolescent gl_ABSOLUTE_HEADER.
68643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68644         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68645         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68646         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68647         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68648         * m4/math_h.m4 (gl_MATH_H): Likewise.
68649         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68650         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68651         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68652         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68653         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68654         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68655         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68656         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68659         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68660         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68661         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68662         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68663         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68664         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68665         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68666         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68667         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68668         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68669         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68670         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68671         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68672         * lib/float_.h: Likewise.
68673         * lib/inttypes_.h: Likewise.
68674         * lib/math_.h: Likewise.
68675         * lib/search_.h: Likewise.
68676         * lib/signal_.h: Likewise.
68677         * lib/stdint_.h: Likewise.
68678         * lib/stdio_.h: Likewise.
68679         * lib/stdlib_.h: Likewise.
68680         * lib/string_.h: Likewise.
68681         * lib/sys_stat_.h: Likewise.
68682         * lib/sys_time_.h: Likewise.
68683         * lib/time_.h: Likewise.
68684         * lib/unistd_.h: Likewise.
68685         * lib/wchar_.h: Likewise.
68686         * lib/wctype_.h: Likewise.
68687         * lib/dirent_.h: Likewise.
68688         * lib/iconv_.h: Likewise.
68689         * lib/locale_.h: Likewise.
68690         * lib/netinet_in_.h: Likewise.
68691         * lib/sys_select_.h: Likewise.
68692         * lib/sys_socket_.h: Likewise.
68693         * lib/sysexits_.h: Likewise.
68694         * modules/fcntl (Depends-on): Depend on include_next, not
68695         absolute_header.
68696         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68697         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68698         * modules/fchdir: Likewise.
68699         * modules/float: Likewise.
68700         * modules/iconv_open: Likewise.
68701         * modules/inttypes: Likewise.
68702         * modules/locale: Likewise.
68703         * modules/math: Likewise.
68704         * modules/netinet_in: Likewise.
68705         * modules/search: Likewise.
68706         * modules/signal: Likewise.
68707         * modules/stdint: Likewise.
68708         * modules/stdio: Likewise.
68709         * modules/stdlib: Likewise.
68710         * modules/string: Likewise.
68711         * modules/sys_select: Likewise.
68712         * modules/sys_socket: Likewise.
68713         * modules/sys_stat: Likewise.
68714         * modules/sys_time: Likewise.
68715         * modules/sysexits: Likewise.
68716         * modules/time: Likewise.
68717         * modules/unistd: Likewise.
68718         * modules/wchar: Likewise.
68719         * modules/wctype: Likewise.
68720         * modules/sys_stat: Change maintainer to "all".
68721         * modules/unistd: Likewise.
68722
68723 2007-06-20  Karl Berry  <karl@gnu.org>
68724
68725         * config/srclist.txt: track www changes in license files.
68726
68727 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68728
68729         * build-aux/bootstrap: Remove stray dot.
68730         Make sure build_aux settings are honored when linking
68731         gnulib_extra_files.
68732
68733 2007-06-19  Eric Blake  <ebb9@byu.net>
68734
68735         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68736         Allow compilation on cygwin.
68737
68738 2007-06-19  Jim Meyering  <jim@meyering.net>
68739
68740         xreadlink-with-size: Remove module.  No longer used.
68741         Ex-callers now use xreadlink or mreadlink-with-size.
68742         * modules/xreadlink-with-size: Remove module.
68743         * lib/xreadlink-with-size.c: Remove file.
68744         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68745         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68746         just before the function definition *is* accurate.
68747
68748         Eliminate one way canonicalize_filename_mode could exit.
68749         * lib/canonicalize.c (canonicalize_filename_mode):
68750         Use mreadlink_with_size, not xreadlink_with_size.
68751
68752 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         Detect porting problems to FreeBSD/arm, which has time_t wider than
68755         long int.  Original problem reported for GNU diff by Xin Li in
68756         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68757         * modules/getdate (Depends-on): Add intprops, verify.
68758         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68759         is an integer type no wider than long int.
68760
68761 2007-06-18  Jim Meyering  <jim@meyering.net>
68762
68763         New module: mreadlink-with-size.
68764         * MODULES.html.sh: Add mreadlink-with-size.
68765         * modules/mreadlink-with-size: New module
68766         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68767         not xreadlink-with-size.
68768         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68769
68770 2007-06-16  Bruno Haible  <bruno@clisp.org>
68771
68772         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68773         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68774         Reported by Gary V. Vaughan <gary@gnu.org>.
68775
68776 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68777
68778         Revamp lchown so that it lives in unistd.h where it belongs.
68779         * lib/lchown.h: Remove.
68780         * lib/dirchownmod.c: Don't include lib/lchown.h.
68781         * lib/fchownat.c: Likewise.
68782         * lib/openat.c: Likewise.
68783         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68784         does not follow symlinks.
68785         (EOPNOTSUPP): Define if not defined.
68786         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68787         is defined to 0.
68788         (lchown): New decl.
68789         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68790         Do not check for lchown decl.
68791         Set REPLACE_LCHOWN.
68792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68793         REPLACE_LCHOWN.
68794         * modules/chown: Make it clear it follows symlinks.
68795         * modules/lchown: Make it clear it doesn't follow symlinks.
68796         (Files): Remove lib/lchown.h
68797         (Depends-on): Add unistd.
68798         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68799         (Include): Include <unistd.h>, not "lchown.h".
68800         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68801         REPLACE_LCHOWN.
68802
68803 2007-06-15  Jim Meyering  <jim@meyering.net>
68804
68805         Change license (GPL to LGPL) of fsusage and dependents.
68806         * modules/fsusage (License): Change to LGPL.
68807         * modules/full-read (License): Likewise.
68808         * modules/full-write (License): Likewise.
68809         * modules/safe-read (License): Likewise.
68810         * modules/safe-write (License): Likewise.
68811
68812 2007-06-14  Ben Pfaff  <blp@gnu.org>
68813
68814         Missing part of allocsa -> malloca transition.
68815         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68816         gl_MALLOCA.
68817
68818 2007-06-12  Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68821         to ia64, x86_64, i386.
68822         Reported by Eric Blake.
68823
68824 2007-06-12  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68827         cross-compiling to x86_64.
68828
68829 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68832         glitch reported by Ralf Wildenhues in
68833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68834
68835         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68836         Vin Shelton.
68837
68838 2007-06-11  Bruno Haible  <bruno@clisp.org>
68839
68840         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68841         replacement string.
68842         Reported by Eric Blake.
68843
68844 2007-06-10  Bruno Haible  <bruno@clisp.org>
68845
68846         Prepare vasnprintf code for use with Unicode strings.
68847         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68848         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68849         TYPE_U32_STRING.
68850         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68851         a_u32_string variants.
68852         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68853         * lib/printf-args.c: Don't include config.h and the specification
68854         header if PRINTF_FETCHARGS is already defined.
68855         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68856         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68857         TYPE_U16_STRING, TYPE_U32_STRING.
68858         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68859         u16_directive, u16_directives, u32_directive, u32_directives): New
68860         types.
68861         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68862         New declarations.
68863         * lib/printf-parse.c: Don't include config.h and the specification
68864         header if PRINTF_PARSE is already defined. Eliminate the set of
68865         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68866         them now. Include c-ctype.h.
68867         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68868         directive and CHAR_T_ONLY_ASCII.
68869         * lib/vasnprintf.c: Don't include config.h and the specification header
68870         if VASNPRINTF is already defined.
68871         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68872         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68873         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68874         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68875         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68876         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68877         code accordingly.
68878         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68879         pad_ourselves also in this case, with the 'c' and 's' directives, and
68880         with a different notion of "width".
68881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68882
68883 2007-06-10  Bruno Haible  <bruno@clisp.org>
68884
68885         * modules/unistr/u32-mbsnlen: New file.
68886         * lib/unistr/u32-mbsnlen.c: New file.
68887
68888         * modules/unistr/u16-mbsnlen: New file.
68889         * lib/unistr/u16-mbsnlen.c: New file.
68890
68891         * modules/unistr/u8-mbsnlen: New file.
68892         * lib/unistr/u8-mbsnlen.c: New file.
68893
68894         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68895         declarations.
68896
68897 2007-06-10  Bruno Haible  <bruno@clisp.org>
68898
68899         * lib/string_.h (mbsnlen): New declaration.
68900         * lib/mbsnlen.c: New file.
68901         * m4/mbsnlen.m4: New file.
68902         * modules/mbsnlen: New file.
68903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68904         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68905         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68906
68907 2007-06-10  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68910
68911 2007-06-10  Bruno Haible  <bruno@clisp.org>
68912
68913         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68914         * lib/mbuiter.h: Likewise.
68915
68916 2007-06-10  Bruno Haible  <bruno@clisp.org>
68917
68918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68919         declaration.
68920
68921 2007-06-10  Karl Berry  <karl@gnu.org>
68922
68923         * config/srclist.txt: remove gettext entries, Bruno prefers
68924         to update individually.
68925
68926 2007-06-10  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68929         'maxlen'. Ensure only length + width bytes are allocated, not
68930         length + 1 + width.
68931
68932 2007-06-09  Bruno Haible  <bruno@clisp.org>
68933
68934         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68935         (CHAR_T): Remove macro.
68936         (VASNPRINTF): Update.
68937
68938 2007-06-09  Bruno Haible  <bruno@clisp.org>
68939
68940         * MODULES.html.sh (Unicode string functions): Add the new modules.
68941
68942         * modules/uniconv/u32-conv-to-enc: New file.
68943         * lib/uniconv/u32-conv-to-enc.c: New file.
68944         * modules/uniconv/u32-conv-to-enc-tests: New file.
68945         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68946
68947         * modules/uniconv/u16-conv-to-enc: New file.
68948         * lib/uniconv/u16-conv-to-enc.c: New file.
68949         * lib/uniconv/u-conv-to-enc.h: New file.
68950         * modules/uniconv/u16-conv-to-enc-tests: New file.
68951         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68952
68953         * modules/uniconv/u8-conv-to-enc: New file.
68954         * lib/uniconv/u8-conv-to-enc.c: New file.
68955         * modules/uniconv/u8-conv-to-enc-tests: New file.
68956         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68957
68958         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68959         u32_conv_to_encoding): New declarations.
68960
68961 2007-06-09  Bruno Haible  <bruno@clisp.org>
68962
68963         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68964
68965 2007-06-09  Bruno Haible  <bruno@clisp.org>
68966
68967         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68968         * modules/malloca: Renamed from modules/allocsa, updated.
68969         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68970         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68971         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68972         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68973         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68974         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68975         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68976         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68977         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68978         * modules/c-strcasestr (Depends-on): Update.
68979         * lib/c-strcasestr.c: Update.
68980         * modules/c-strstr (Depends-on): Update.
68981         * lib/c-strstr.c: Update.
68982         * modules/canonicalize-lgpl (Depends-on): Update.
68983         * lib/canonicalize-lgpl.c: Update.
68984         * modules/clean-temp (Depends-on): Update.
68985         * lib/clean-temp.c: Update.
68986         * modules/csharpcomp (Depends-on): Update.
68987         * lib/csharpcomp.c: Update.
68988         * modules/csharpexec (Depends-on): Update.
68989         * lib/csharpexec.c: Update.
68990         * modules/javacomp (Depends-on): Update.
68991         * lib/javacomp.c: Update.
68992         * modules/javaexec (Depends-on): Update.
68993         * lib/javaexec.c: Update.
68994         * modules/mbscasestr (Depends-on): Update.
68995         * lib/mbscasestr.c: Update.
68996         * modules/mbsstr (Depends-on): Update.
68997         * lib/mbsstr.c: Update.
68998         * modules/setenv (Depends-on): Update.
68999         * lib/setenv.c: Update.
69000         * modules/strcasestr (Depends-on): Update.
69001         * lib/strcasestr.c: Update.
69002         * modules/striconveha (Depends-on): Update.
69003         * lib/striconveha.c: Update.
69004         * modules/relocatable-prog-wrapper (Files): Update.
69005         * lib/relocwrapper.c: Update.
69006         * build-aux/install-reloc: Update.
69007         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69008
69009 2007-06-08  Bruno Haible  <bruno@clisp.org>
69010
69011         Port to uClibc.
69012         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69013         * lib/fpurge.c (fpurge): Likewise.
69014         * lib/freading.c (freading): Likewise.
69015         * lib/fseeko.c (rpl_fseeko): Likewise.
69016         * lib/fseterr.c (fseterr): Likewise.
69017         * lib/fwriting.c (fwriting): Likewise.
69018         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69019
69020 2007-06-08  Bruno Haible  <bruno@clisp.org>
69021
69022         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69023         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69024         * modules/gettext (Files): Add m4/intlmacosx.m4.
69025
69026 2007-06-07  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/localename-tests: New file.
69029         * tests/test-localename.c: New file.
69030
69031         New module 'localename'.
69032         * lib/localename.h: New file.
69033         * lib/localename.c: New file, from GNU gettext.
69034         * m4/localename.m4: New file.
69035         * modules/localename: New file.
69036
69037 2007-06-07  Bruno Haible  <bruno@clisp.org>
69038
69039         Work around the lack of <wchar.h> on some builds of uClibc.
69040         * doc/headers/wchar.texi: Update.
69041         * lib/wchar_.h: Include <wchar.h> only if it exists.
69042         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69043         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69044         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69045         doesn't exist.
69046         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69047         * modules/mbfile (Depends-on): Add wchar.
69048         * modules/mbiter (Depends-on): Likewise.
69049         * modules/mbuiter (Depends-on): Likewise.
69050         Reported by Simon Josefsson.
69051
69052 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         Work around problem reported by Steven M. Schweda in
69055         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69056         Tru64 5.1B with the Compaq compiler environment installed declares
69057         an 'isblank' function but does not define it in the C library.
69058         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69059         * lib/regex_internal.h (isblank): Likewise.
69060         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69061         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69062
69063 2007-06-05  Bruno Haible  <bruno@clisp.org>
69064
69065         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69066         ia64.
69067         * modules/printf-safe: New file.
69068         * modules/fprintf-posix (Depends-on): Add printf-safe.
69069         * modules/printf-posix (Depends-on): Likewise.
69070         * modules/snprintf-posix (Depends-on): Likewise.
69071         * modules/sprintf-posix (Depends-on): Likewise.
69072         * modules/vasnprintf-posix (Depends-on): Likewise.
69073         * modules/vasprintf-posix (Depends-on): Likewise.
69074         * modules/vfprintf-posix (Depends-on): Likewise.
69075         * modules/vprintf-posix (Depends-on): Likewise.
69076         * modules/vsnprintf-posix (Depends-on): Likewise.
69077         * modules/vsprintf-posix (Depends-on): Likewise.
69078         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69079         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69080         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69081         "no" on i386, x86_64, ia64.
69082         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69083         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69084         on i386, x86_64, ia64.
69085         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69086         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69087         on i386, x86_64, ia64.
69088         * tests/test-vasnprintf-posix.c: Include float.h.
69089         (LDBL80_WORDS): New macro.
69090         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69091         on i386, x86_64, ia64.
69092         * tests/test-vasprintf-posix.c: Include float.h.
69093         (LDBL80_WORDS): New macro.
69094         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69095         on i386, x86_64, ia64.
69096         * tests/test-snprintf-posix.c: Include float.h.
69097         * tests/test-sprintf-posix.c: Likewise.
69098         * tests/test-vsnprintf-posix.c: Likewise.
69099         * tests/test-vsprintf-posix.c: Likewise.
69100
69101 2007-06-05  Bruno Haible  <bruno@clisp.org>
69102
69103         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69104         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69105         non-IEEE numbers on i386, x86_64, ia64.
69106         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69107         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69108         * tests/test-isnanl.h: Include float.h.
69109         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69110
69111 2007-06-05  Bruno Haible  <bruno@clisp.org>
69112
69113         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69114         also the %a / %A. Handle the %a / %A code before this extra handling.
69115
69116 2007-06-05  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69119         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69120
69121 2007-06-05  Bruno Haible  <bruno@clisp.org>
69122
69123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69124         typo in variable name.
69125
69126 2007-06-05  Eric Blake  <ebb9@byu.net>
69127
69128         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69129         Reported by Simon Josefsson.
69130
69131 2007-06-04  Bruno Haible  <bruno@clisp.org>
69132
69133         Avoid test failures on some PowerPC platforms.
69134         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69135         Define differently for PowerPC.
69136         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69137         Reported by Gary V. Vaughan <gary@gnu.org>.
69138
69139 2007-06-02  Bruno Haible  <bruno@clisp.org>
69140
69141         Fix test-stdint failure on FreeBSD/ia64.
69142         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69143         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69144         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69145         * doc/headers/stdint.texi: Update.
69146
69147 2007-06-01  Bruno Haible  <bruno@clisp.org>
69148
69149         * tests/test-binary-io.c (main): Pass a third argument to open().
69150         Reported by Gary V. Vaughan <gary@gnu.org>.
69151
69152 2007-06-01  Bruno Haible  <bruno@clisp.org>
69153
69154         * doc/functions/frexpl.texi: Update for mingw.
69155
69156 2007-06-01  Bruno Haible  <bruno@clisp.org>
69157
69158         * tests/test-lseek.c (main): Disable test of errno for invalid third
69159         argument.
69160         * doc/functions/lseek.texi: Update.
69161         Reported by Gary V. Vaughan <gary@gnu.org>.
69162
69163 2007-05-28  Bruno Haible  <bruno@clisp.org>
69164
69165         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69166
69167 2007-05-31  Eric Blake  <ebb9@byu.net>
69168
69169         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69170         cross compiling.
69171
69172 2007-05-30  Eric Blake  <ebb9@byu.net>
69173         and Bruno Haible  <bruno@clisp.org>
69174
69175         Work around mingw test failures exposed by m4-1.4.9b.
69176         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69177         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69178         moment.
69179
69180 2007-05-30  Bruno Haible  <bruno@clisp.org>
69181
69182         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69183         assuming that they are closed. Needed on HP-UX 11.
69184
69185 2007-05-29  Bruno Haible  <bruno@clisp.org>
69186
69187         Fix a problem with #include_next.
69188         * lib/dirent_.h: Split the double-inclusion guard.
69189         * lib/fcntl_.h: Likewise.
69190         * lib/float_.h: Likewise.
69191         * lib/iconv_.h: Likewise.
69192         * lib/inttypes_.h: Likewise.
69193         * lib/locale_.h: Likewise.
69194         * lib/math_.h: Likewise.
69195         * lib/netinet_in_.h: Likewise.
69196         * lib/search_.h: Likewise.
69197         * lib/signal_.h: Likewise.
69198         * lib/stdint_.h: Likewise.
69199         * lib/stdio_.h: Likewise.
69200         * lib/stdlib_.h: Likewise.
69201         * lib/string_.h: Likewise.
69202         * lib/sys_select_.h: Likewise.
69203         * lib/sys_socket_.h: Likewise.
69204         * lib/sys_stat_.h: Likewise.
69205         * lib/sys_time_.h: Likewise.
69206         * lib/sysexits_.h: Likewise.
69207         * lib/time_.h: Likewise.
69208         * lib/unistd_.h: Likewise.
69209         * lib/wchar_.h: Likewise.
69210         * lib/wctype_.h: Likewise.
69211
69212 2007-05-29  Bruno Haible  <bruno@clisp.org>
69213
69214         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69215         for the moment.
69216
69217 2007-05-29  Bruno Haible  <bruno@clisp.org>
69218
69219         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69220         invocation.
69221         Reported by Eric Blake.
69222
69223 2007-05-29  Bruno Haible  <bruno@clisp.org>
69224
69225         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69226         compiling case.
69227
69228 2007-05-29  Eric Blake  <ebb9@byu.net>
69229             Bruno Haible  <bruno@clisp.org>
69230
69231         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69232         cross compiles.
69233
69234 2007-05-28  Eric Blake  <ebb9@byu.net>
69235
69236         * modules/closein-tests (test_closein_LDADD): Support test on
69237         cygwin with libtool.
69238
69239 2007-05-28  Bruno Haible  <bruno@clisp.org>
69240
69241         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69242         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69243         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69244         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69245         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69246         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69247         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69248         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69249         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69250
69251 2007-05-28  Eric Blake  <ebb9@byu.net>
69252
69253         Unconditionally include <config.h> in unit tests.
69254         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69255         * tests/test-allocsa.c, tests/test-arcfour.c,
69256         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69257         tests/test-array_list.c, tests/test-array_oset.c,
69258         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69259         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69260         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69261         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69262         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69263         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69264         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69265         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69266         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69267         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69268         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69269         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69270         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69271         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69272         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69273         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69274         test-md5.c, test-memmem.c, test-printf-posix.c,
69275         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69276         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69277         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69278         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69279         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69280         test-vasnprintf-posix2.c, test-vasnprintf.c,
69281         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69282         test-vfprintf-posix.c, test-vprintf-posix.c,
69283         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69284         test-xvasprintf.c: Likewise.
69285
69286 2007-05-28  Bruno Haible  <bruno@clisp.org>
69287
69288         * gnulib-tool (func_import): Remember the --with-tests command-line
69289         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69290         Reported by Eric Blake.
69291
69292 2007-05-28  Bruno Haible  <bruno@clisp.org>
69293
69294         * modules/ftell-tests: New file.
69295         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69296         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69297
69298         * lib/ftell.c: New file.
69299         * modules/ftell: New file.
69300         * m4/ftell.m4: New file.
69301         * doc/functions/ftell.texi: Update.
69302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69303         REPLACE_FTELL.
69304         * lib/stdio_.h (rpl_ftell): New declaration.
69305         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69306         REPLACE_FTELL.
69307
69308 2007-05-28  Eric Blake  <ebb9@byu.net>
69309
69310         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69311
69312 2007-05-28  Bruno Haible  <bruno@clisp.org>
69313
69314         * modules/fseek-tests: New file.
69315         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69316         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69317
69318         * lib/fseek.c: New file.
69319         * modules/fseek: New file.
69320         * m4/fseek.m4: New file.
69321         * doc/functions/fseek.texi: Update.
69322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69323         REPLACE_FSEEK.
69324         * lib/stdio_.h (rpl_fseek): New declaration.
69325         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69326         REPLACE_FSEEK.
69327
69328 2007-05-28  Bruno Haible  <bruno@clisp.org>
69329
69330         * lib/stdio_.h (fflush): More comments.
69331
69332 2007-05-28  Bruno Haible  <bruno@clisp.org>
69333
69334         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69335         runtime test.
69336
69337 2007-05-28  Eric Blake  <ebb9@byu.net>
69338
69339         Improve lseek module.
69340         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69341         * lib/unistd_.h (lseek): Scale back link warning message.
69342         * tests/test-lseek.c: Beef up test.
69343         * tests/test-lseek.sh: Exercise more facets of lseek.
69344         Reported by Bruno Haible.
69345
69346 2007-05-28  Bruno Haible  <bruno@clisp.org>
69347
69348         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69349         to define.
69350
69351 2007-05-27  Bruno Haible  <bruno@clisp.org>
69352
69353         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69354
69355 2007-05-27  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/openmp: New file.
69358         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69359         Noah Misch.
69360
69361 2007-05-26  Bruno Haible  <bruno@clisp.org>
69362
69363         * modules/chdir-long (Depends-on): Add fchdir.
69364         * modules/chdir-safer (Depends-on): Likewise.
69365         * modules/fts (Depends-on): Likewise.
69366         * modules/fts-lgpl (Depends-on): Likewise.
69367         * modules/openat (Depends-on): Likewise.
69368         * modules/savewd (Depends-on): Likewise.
69369
69370 2007-05-24  Eric Blake  <ebb9@byu.net>
69371
69372         Fix lseek on mingw.
69373         * modules/lseek: New module.
69374         * m4/lseek.m4: New file.
69375         * lib/lseek.c: New file.
69376         * modules/lseek-tests: New file.
69377         * tests/test-lseek.c: New file.
69378         * tests/test-lseek.sh: New file.
69379         * MODULES.html.sh: Document lseek module.
69380         * modules/fflush (Depends-on): Add lseek, fseeko.
69381         * modules/fseeko (Depends-on): Likewise.
69382         * modules/ftello (Depends-on): Likewise.
69383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69384         broken.
69385         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69386         broken.
69387         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69388         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69389         * lib/ftello.c (rpl_ftello): Likewise.
69390         * tests/test-fseeko.c (main): Test this.
69391         * tests/test-fseeko.sh: Likewise.
69392         * tests/test-ftello.c (main): Likewise.
69393         * tests/test-ftello.sh: Likewise.
69394         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69395         implies replacing fseek.
69396         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69397         HAVE_FTELLO.
69398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69399         * modules/unistd (Makefile.am): Likewise.
69400         * lib/unistd_.h (lseek): Declare a replacement.
69401         * doc/functions/lseek.texi (lseek): Document this fix.
69402         * doc/functions/fseek.texi (fseek): Likewise.
69403         * doc/functions/ftell.texi (ftell): Likewise.
69404
69405 2007-05-24  Bruno Haible  <bruno@clisp.org>
69406
69407         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69408         in the printed representation of a NaN.
69409         * tests/test-vasprintf-posix.c (test_function): Likewise.
69410         * tests/test-snprintf-posix.h (test_function): Likewise.
69411         * tests/test-sprintf-posix.h (test_function): Likewise.
69412         Reported by Eric Blake.
69413
69414 2007-05-23  Eric Blake  <ebb9@byu.net>
69415
69416         Fix fseeko/ftello on cygwin 1.5.24.
69417         * doc/functions/fseeko.texi (fseeko): Document the fix.
69418         * doc/functions/ftello.texi (ftello): Document the fix.
69419         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69420         * doc/functions/stdout.text (stdout): New file.
69421         * doc/functions/stderr.text (stderr): New file.
69422         * doc/gnulib.texi (Function Substitutes): Use new files.
69423         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69424         prior to 1.7.0.
69425         * tests/test-ftello.c (main): Likewise for ftello.
69426         * tests/test-fseeko.sh: New file.
69427         * tests/test-ftello.sh: New file.
69428         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69429         with seekable stdin.
69430         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69431         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69432         (gl_REPLACE_FSEEKO): New macro.
69433         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69434         * modules/fseeko (Files): Distribute fseeko.c.
69435         * modules/ftello (Files): Distribute ftello.c.
69436         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69437         mode.
69438         * lib/ftello.c (rpl_ftello): New file.
69439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69440         fseeko, ftello.
69441         (gl_STDIN_LARGE_OFFSET): New macro.
69442         * modules/stdio (Makefile.am): Perform the replacement.
69443         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69444
69445 2007-05-23  Bruno Haible  <bruno@clisp.org>
69446
69447         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69448         GNULIB_POSIXCHECK is defined.
69449
69450 2007-05-21  Bruno Haible  <bruno@clisp.org>
69451
69452         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69453         Check also the output for NaN arguments. When cross-compiling, guess
69454         no on IRIX.
69455         * lib/vasnprintf.c: Update comments.
69456         * tests/test-vasnprintf-posix.c (strisnan): New function.
69457         (test_function): Use it.
69458         * tests/test-vasprintf-posix.c (strisnan): New function.
69459         (test_function): Use it.
69460         * tests/test-snprintf-posix.h (strisnan): New function.
69461         (test_function): Use it.
69462         * tests/test-sprintf-posix.h (strisnan): New function.
69463         (test_function): Use it.
69464         Reported by Eric Blake.
69465
69466 2007-05-20  Bruno Haible  <bruno@clisp.org>
69467
69468         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69469         numbers that fails on BeOS.
69470         * doc/functions/frexpl.texi: Update.
69471
69472 2007-05-20  Jim Meyering  <jim@meyering.net>
69473
69474         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69475         forced upon us by glibc-2.6.
69476
69477 2007-05-20  Bruno Haible  <bruno@clisp.org>
69478
69479         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69480         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69481         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69482         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69483         NEED_PRINTF_INFINITE.
69484         (is_infinitel): New function.
69485         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69487         gl_PREREQ_VASNPRINTF_INFINITE.
69488         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69490         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69491         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69492         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69493         gl_PREREQ_VASNPRINTF_INFINITE.
69494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69497         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69498         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69501         * doc/functions/fprintf.texi: Update.
69502         * doc/functions/printf.texi: Update.
69503         * doc/functions/snprintf.texi: Update.
69504         * doc/functions/sprintf.texi: Update.
69505         * doc/functions/vfprintf.texi: Update.
69506         * doc/functions/vprintf.texi: Update.
69507         * doc/functions/vsnprintf.texi: Update.
69508         * doc/functions/vsprintf.texi: Update.
69509
69510 2007-05-20  Bruno Haible  <bruno@clisp.org>
69511
69512         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69513         was not found in libc.
69514         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69515
69516 2007-05-20  Bruno Haible  <bruno@clisp.org>
69517
69518         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69519         printed as "-nan" instead of "nan".
69520         * tests/test-vasprintf-posix.c (test_function): Likewise.
69521         * tests/test-snprintf-posix.h (test_function): Likewise.
69522         * tests/test-sprintf-posix.h (test_function): Likewise.
69523         Needed for HP-UX 11.
69524
69525 2007-05-20  Jim Meyering  <jim@meyering.net>
69526
69527         Fix buggy test for the fchownat-deref bug.
69528         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69529         symlink required for the run-test.  Without it, this test would
69530         always declare that fchownat doesn't work, and client code would
69531         unnecessarily use the replacement function with fixed libc.
69532         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69533         Reported by Greg Schafer.
69534
69535 2007-05-19  Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69538         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69539         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69540         Needed for IRIX 6.5 and Solaris 2.5.1.
69541
69542 2007-05-19  Bruno Haible  <bruno@clisp.org>
69543
69544         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69545         (test_function): Skip tests involving -0.0 on platforms where
69546         -0.0 = 0.0.
69547         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69548         (test_function): Skip tests involving -0.0 on platforms where
69549         -0.0 = 0.0.
69550         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69551         (test_function): Skip tests involving -0.0 on platforms where
69552         -0.0 = 0.0.
69553         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69554         (test_function): Skip tests involving -0.0 on platforms where
69555         -0.0 = 0.0.
69556         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69557         tests.
69558         * tests/test-printf-posix.h (test_function): Likewise.
69559         * tests/test-printf-posix.output: Remove all -0.0 related results.
69560         Needed for IRIX 6.5.
69561
69562 2007-05-19  Bruno Haible  <bruno@clisp.org>
69563
69564         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69565         printed as "nan0x7fffffff" instead of "nan".
69566         * tests/test-vasprintf-posix.c (test_function): Likewise.
69567         * tests/test-snprintf-posix.h (test_function): Likewise.
69568         * tests/test-sprintf-posix.h (test_function): Likewise.
69569         * tests/test-fprintf-posix.h (NaN): Remove macro.
69570         (test_function): Remove all NaN related tests.
69571         * tests/test-printf-posix.h (NaN): Remove macro.
69572         (test_function): Remove all NaN related tests.
69573         * tests/test-printf-posix.output: Remove all NaN related results.
69574         Needed for IRIX 6.5.
69575
69576 2007-05-19  Bruno Haible  <bruno@clisp.org>
69577
69578         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69579         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69580
69581 2007-05-19  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/float_.h: New file.
69584         * m4/float_h.m4: New file.
69585         * modules/float: New file.
69586         * modules/isnanl (Dependencies): Add float.
69587         * modules/isnanl-nolibm (Dependencies): Likewise.
69588         * modules/mathl (Dependencies): Likewise.
69589         * modules/printf-frexpl (Dependencies): Likewise.
69590         * modules/signbit (Dependencies): Likewise.
69591         * modules/vasnprintf (Dependencies): Likewise.
69592         * doc/headers/float.texi: Update.
69593
69594 2007-05-19  Jim Meyering  <jim@meyering.net>
69595
69596         * lib/utimens.c (gl_futimens): Rename from futimens,
69597         now that glibc-2.6 declares futimens.
69598         * lib/utimens.h: Likewise.
69599
69600 2007-05-19  Bruno Haible  <bruno@clisp.org>
69601
69602         Avoid test failures on mingw.
69603         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69604         * tests/test-printf-posix.sh: Likewise.
69605         * tests/test-vfprintf-posix.sh: Likewise.
69606         * tests/test-vprintf-posix.sh: Likewise.
69607
69608 2007-05-19  Bruno Haible  <bruno@clisp.org>
69609
69610         Fix *printf result for NaN, Inf, -0.0 on mingw.
69611         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69612         * lib/vasnprintf.c: Include math.h and isnan.h.
69613         (is_infinite_or_zero): New function.
69614         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69615         values in the %f, %F, %e, %E, %g, %G directives.
69616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69617         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69618         gl_PRINTF_INFINITE and test its result. Invoke
69619         gl_PREREQ_VASNPRINTF_INFINITE.
69620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69621         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69622         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69627         * doc/functions/fprintf.texi: Update.
69628         * doc/functions/printf.texi: Update.
69629         * doc/functions/snprintf.texi: Update.
69630         * doc/functions/sprintf.texi: Update.
69631         * doc/functions/vfprintf.texi: Update.
69632         * doc/functions/vprintf.texi: Update.
69633         * doc/functions/vsnprintf.texi: Update.
69634         * doc/functions/vsprintf.texi: Update.
69635
69636 2007-05-19  Bruno Haible  <bruno@clisp.org>
69637
69638         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69639         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69640         Instead of multiplying with 10^k, set extra_zeroes to k.
69641         (scale10_round_long_double): Remove function.
69642
69643 2007-05-18  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69646         introduced on 2007-05-06.
69647
69648 2007-05-18  Bruno Haible  <bruno@clisp.org>
69649
69650         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69651         %g directives.
69652         * tests/test-vasprintf-posix.c (test_function): Likewise.
69653         * tests/test-snprintf-posix.h (test_function): Likewise.
69654         * tests/test-sprintf-posix.h (test_function): Likewise.
69655
69656 2007-05-18  Bruno Haible  <bruno@clisp.org>
69657
69658         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69659         (strmatch): New function.
69660         (test_function): Test the %f directive on numbers of various exponents.
69661         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69662         (strmatch): New function.
69663         (test_function): Test the %f directive on numbers of various exponents.
69664         * tests/test-snprintf-posix.h (strmatch): New function.
69665         (test_function): Test the %f directive on numbers of various exponents.
69666         * tests/test-sprintf-posix.h (strmatch): New function.
69667         (test_function): Test the %f directive on numbers of various exponents.
69668         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69669         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69670         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69671         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69672
69673 2007-05-18  Bruno Haible  <bruno@clisp.org>
69674
69675         Add support for 'long double' number output.
69676         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69677         * lib/vasnprintf.c: Include math.h and float+.h.
69678         (mp_limb_t): New type.
69679         (GMP_LIMB_BITS): New macro.
69680         (mp_twolimb_t): New type.
69681         (GMP_TWOLIMB_BITS): New macro.
69682         (mpn_t): New type.
69683         (multiply, divide, convert_to_decimal, decode_long_double,
69684         scale10_round_long_double, scale10_round_decimal_long_double,
69685         floorlog10l): New functions.
69686         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69687         for the %f, %F, %e, %E, %g, %G directives.
69688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69690         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69691         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69699         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69700         * modules/snprintf-posix (Depends-on): Likewise.
69701         * modules/sprintf-posix (Depends-on): Likewise.
69702         * modules/vasnprintf-posix (Depends-on): Likewise.
69703         * modules/vasprintf-posix (Depends-on): Likewise.
69704         * modules/vfprintf-posix (Depends-on): Likewise.
69705         * modules/vsnprintf-posix (Depends-on): Likewise.
69706         * modules/vsprintf-posix (Depends-on): Likewise.
69707         * modules/vasnprintf (Files): Add lib/float+.h.
69708         * doc/functions/fprintf.texi: Update.
69709         * doc/functions/printf.texi: Update.
69710         * doc/functions/snprintf.texi: Update.
69711         * doc/functions/sprintf.texi: Update.
69712         * doc/functions/vfprintf.texi: Update.
69713         * doc/functions/vprintf.texi: Update.
69714         * doc/functions/vsnprintf.texi: Update.
69715         * doc/functions/vsprintf.texi: Update.
69716
69717 2007-05-18  Bruno Haible  <bruno@clisp.org>
69718
69719         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69720
69721 2007-05-18  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69724         for printing 64-bit integers. Needed for mingw.
69725
69726 2007-05-18  Bruno Haible  <bruno@clisp.org>
69727
69728         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69729         gl_FUNC_FREXPL_WORKS.
69730         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69731
69732 2007-05-18  Bruno Haible  <bruno@clisp.org>
69733
69734         * modules/frexpl-nolibm-tests: New file.
69735
69736         * modules/frexpl-nolibm: New file.
69737         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69738
69739 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69742         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69743         GCC 4.2, which otherwise issues a lot of warnings.
69744         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69745         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69746         Likewise.
69747         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69748         * modules/iconv_open (iconv.h): Likewise.
69749         * modules/locale (locale.h): Likewise.
69750         * modules/netinet_in (netinet/in.h): Likewise.
69751         * modules/sys_select (sys_select.h): Likewise.
69752         * modules/sys_socket (sys/socket.h): Likewise.
69753         * modules/sys_stat (sys/stat.h): Likewise.
69754         * modules/sysexits (sysexits.h): Likewise.
69755         * modules/unistd (unistd.h): Likewise.
69756
69757 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69758
69759         * modules/closein-tests (Makefile.am): Distribute
69760         `test-closein.sh'.
69761
69762 2007-05-17  Bruno Haible  <bruno@clisp.org>
69763
69764         * tests/test-printf-posix.output: Renamed from
69765         tests/test-fprintf-posix.out.
69766         * modules/fprintf-posix-tests: Update.
69767         * modules/printf-posix-tests: Update.
69768         * modules/vfprintf-posix-tests: Update.
69769         * modules/vprintf-posix-tests: Update.
69770         * tests/test-fprintf-posix.sh: Update.
69771         * tests/test-printf-posix.sh: Update.
69772         * tests/test-vfprintf-posix.sh: Update.
69773         * tests/test-vprintf-posix.sh: Update.
69774         Reported by Ralf Wildenhues.
69775
69776 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69779         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69780         GCC 4.2, which otherwise issues a lot of warnings.
69781         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69782         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69783         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69784         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69785         it should no longer be needed.
69786         * lib/string_.h: Likewise.
69787         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69788         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69789         * modules/inttypes (inttypes.h): Likewise.
69790         * modules/math (math.h): Likewise.
69791         * modules/search (search.h): Likewise.
69792         * modules/signal (signal.h): Likewise.
69793         * modules/stdint (stdint.h): Likewise.
69794         * modules/stdio (stdio.h): Likewise.
69795         * modules/stdlib (stdlib.h): Likewise.
69796         * modules/string (string.h): Likewise.
69797         * modules/sys_time (sys/time.h): Likewise.
69798         * modules/time (time.h): Likewise.
69799         * modules/wchar (wchar.h): Likewise.
69800         * modules/wctype (wtype.h): Likewise.
69801
69802 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69803
69804         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69805
69806 2007-05-13  Bruno Haible  <bruno@clisp.org>
69807
69808         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69809         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69810         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69811         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69812         (gl_PREREQ_STRTOK_R): Don't require it here.
69813
69814 2007-05-13  Bruno Haible  <bruno@clisp.org>
69815
69816         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69817         when used in C++ mode.
69818
69819 2007-05-12  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/linebuffer.h: Tweak doc.
69822         * lib/linebuffer.c: Likewise.
69823
69824 2007-05-12  James Youngman  <jay@gnu.org>
69825
69826         * lib/linebuffer.c (readlinebuffer_delim): New function,
69827         like readlinebuffer, but use a caller-specified delimiter.
69828         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69829         as the delimiter.
69830         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69831
69832 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69833
69834         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69835         * modules/openat (Files): Remove openat-die.c.
69836         (Depends-on): Add openat-die.
69837         * modules/openat-die: New module.
69838
69839 2007-05-06  Bruno Haible  <bruno@clisp.org>
69840
69841         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69842         Update with info about Cygwin.
69843         * doc/functions/fprintf.texi: Update.
69844         * doc/functions/printf.texi: Update.
69845         * doc/functions/snprintf.texi: Update.
69846         * doc/functions/sprintf.texi: Update.
69847         * doc/functions/vfprintf.texi: Update.
69848         * doc/functions/vprintf.texi: Update.
69849         * doc/functions/vsnprintf.texi: Update.
69850         * doc/functions/vsprintf.texi: Update.
69851         Reported by Eric Blake.
69852
69853 2007-05-06  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69856         padding ourselves for the floating-point directives.
69857         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69859         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69860         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69861         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69865         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69869         * tests/test-snprintf-posix.h (test_function): Also check the width
69870         and some flags in the %f directive.
69871         * tests/test-sprintf-posix.h (test_function): Likewise.
69872         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69873         * tests/test-vasprintf-posix.c (test_function): Likewise.
69874         * doc/functions/fprintf.texi: Update.
69875         * doc/functions/printf.texi: Update.
69876         * doc/functions/snprintf.texi: Update.
69877         * doc/functions/sprintf.texi: Update.
69878         * doc/functions/vfprintf.texi: Update.
69879         * doc/functions/vprintf.texi: Update.
69880         * doc/functions/vsnprintf.texi: Update.
69881         * doc/functions/vsprintf.texi: Update.
69882
69883 2007-05-06  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69886         pass the ' flag character to sprintf or snprintf.
69887         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69890         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69891         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69899         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69900         flag.
69901         * tests/test-sprintf-posix.h (test_function): Likewise.
69902         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69903         * tests/test-vasprintf-posix.c (test_function): Likewise.
69904         * doc/functions/fprintf.texi: Update.
69905         * doc/functions/printf.texi: Update.
69906         * doc/functions/snprintf.texi: Update.
69907         * doc/functions/sprintf.texi: Update.
69908         * doc/functions/vfprintf.texi: Update.
69909         * doc/functions/vprintf.texi: Update.
69910         * doc/functions/vsnprintf.texi: Update.
69911         * doc/functions/vsprintf.texi: Update.
69912
69913 2007-05-01  Bruno Haible  <bruno@clisp.org>
69914
69915         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69916
69917 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69920         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69921
69922 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69923
69924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69925         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69926         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69927
69928 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69929
69930         * lib/argp-help.c (struct hol_entry): New member `ord'.
69931         (HOL_ENTRY_PTRCMP): Use ord for comparison
69932         (hol_sort): Initialize ord.
69933
69934 2007-05-01  Bruno Haible  <bruno@clisp.org>
69935
69936         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69937         Reported by Eric Blake.
69938         * doc/gnulib.texi (Function Substitutes): Update.
69939
69940 2007-05-01  Bruno Haible  <bruno@clisp.org>
69941
69942         * doc/functions.texi: Remove file, now redundant through
69943         doc/functions/*.texi.
69944
69945 2007-05-01  Bruno Haible  <bruno@clisp.org>
69946
69947         * modules/argp (Depends-on): Add sleep.
69948
69949 2007-05-01  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/sleep-tests: New file.
69952         * tests/test-sleep.c: New file.
69953
69954         * modules/sleep: New file.
69955         * lib/sleep.c: New file.
69956         * m4/sleep.m4: New file.
69957         * lib/unistd_.h (sleep): New declaration.
69958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69959         HAVE_SLEEP.
69960         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69961         * doc/functions/sleep.texi: Document the sleep module.
69962
69963 2007-05-01  Bruno Haible  <bruno@clisp.org>
69964
69965         * lib/sigprocmask.h: Remove file.
69966         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69967         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69968         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69969         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69970         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69971         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69972         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69973         HAVE_SIGSET_T as a shell variable.
69974         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69975         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69976         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69977         (Depends-on): Add signal. Remove verify.
69978         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69979         (Include): Mention <signal.h> instead of sigprocmask.h.
69980         * NEWS: Mention the change.
69981         * lib/fatal-signal.c: Don't include sigprocmask.h.
69982
69983 2007-05-01  Bruno Haible  <bruno@clisp.org>
69984
69985         * modules/signal: New file.
69986         * lib/signal_.h: New file.
69987         * m4/signal_h.m4: New file.
69988
69989 2007-05-01  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69992         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69993         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69994         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69995
69996 2007-05-01  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69999         configure time.
70000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70001         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70002         * modules/sys_stat (Makefile.am): Substitute their values into
70003         sys/stat.h.
70004
70005 2007-05-01  Bruno Haible  <bruno@clisp.org>
70006
70007         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70008         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70009         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70010
70011 2007-05-01  Bruno Haible  <bruno@clisp.org>
70012
70013         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70014         'assert' module here.
70015
70016 2007-05-01  Bruno Haible  <bruno@clisp.org>
70017
70018         * doc/functions/*.texi: New files.
70019         * doc/functions/google-ranking.txt: New file.
70020         * doc/gnulib.texi (Function Substitutes): New chapter.
70021         (ctime, inet_ntoa): Remove sections.
70022         * doc/ctime.texi: Remove file.
70023         * doc/inet_ntoa.texi: Remove file.
70024         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70025         dependencies.
70026         (%.info): New rule, specifying a --reference-limit.
70027
70028 2007-05-01  Bruno Haible  <bruno@clisp.org>
70029
70030         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70031
70032 2007-05-01  Bruno Haible  <bruno@clisp.org>
70033
70034         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70035         the portability of 'mkdir' to mingw systems.
70036
70037 2007-05-01  Bruno Haible  <bruno@clisp.org>
70038
70039         * doc/headers/google-ranking.txt: New file.
70040
70041 2007-04-30  Eric Blake  <ebb9@byu.net>
70042
70043         Prefer fseeko to fseek.
70044         * modules/getpass (Depends-on): Add fseeko.
70045         * lib/getpass.c (getpass): Use fseeko, not fseek.
70046
70047 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70048
70049         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70050         assumes the sorting is stable, while most qsort implementations
70051         are not.  Use argument addresses to ensure they never compare as
70052         equal.
70053
70054         * tests/test-argp-2.sh (usage-indent test): Fix output
70055         (func_compare): Restore diff options
70056         * tests/test-argp.c: Restore #include "progname.h"
70057
70058 2007-04-29  Bruno Haible  <bruno@clisp.org>
70059
70060         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70062         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70064         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70065         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70066         (TESTS, check_PROGRAMS): Add test-snprintf.
70067         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70068         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70069         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70070         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70071         assertions that fail on HP-UX, OSF/1, or IRIX.
70072         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70073
70074 2007-04-29  Bruno Haible  <bruno@clisp.org>
70075
70076         * MODULES.html.sh (posix_functions): Remove 'contents'.
70077
70078 2007-04-29  Karl Berry  <karl@gnu.org>
70079
70080         * config/srclist.txt (gendocs_template_min): new entry.
70081
70082 2007-04-29  Bruno Haible  <bruno@clisp.org>
70083
70084         Work around fpurge bug on BSD systems.
70085         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70086         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70087         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70088         fpurge to rpl_fpurge if the system already has this function.
70089         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70090         the case where the system already has this function. Correct invariants
70091         on BSD systems.
70092         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70093         BSD systems.
70094
70095 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70096
70097         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70098         proposed by Sven Verdoolaege.
70099
70100         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70101         options.
70102         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70103         (usage and help tests): Update
70104
70105 2007-04-29  Bruno Haible  <bruno@clisp.org>
70106
70107         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70108         Print more information in case of failure. Disable a test on BeOS.
70109
70110 2007-04-29  Bruno Haible  <bruno@clisp.org>
70111
70112         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70113         This helps debugging on systems on which no gdb is available.
70114
70115 2007-04-29  Bruno Haible  <bruno@clisp.org>
70116
70117         * lib/freading.h: Improve comments.
70118         * lib/fwriting.h: Likewise.
70119         * tests/test-freading.c (main): Don't check freading immediately after
70120         repositioning. Needed for glibc.
70121
70122 2007-04-29  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/freading.c (freading): Trivial simplification.
70125
70126 2007-04-28  Bruno Haible  <bruno@clisp.org>
70127
70128         * tests/test-fwriting.c (main): Also test the interaction between
70129         fflush and fwriting.
70130         * modules/fwriting-tests (Depends-on): Add fflush.
70131
70132         * tests/test-freading.c (main): Also test the interaction between
70133         fflush and freading.
70134         * modules/freading-tests (Depends-on): Add fflush.
70135
70136 2007-04-28  Bruno Haible  <bruno@clisp.org>
70137
70138         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70139         fseeko and ftello.
70140         Suggested by Eric Blake.
70141
70142 2007-04-28  Jim Meyering  <jim@meyering.net>
70143
70144         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70145         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70146         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70147
70148 2007-04-27  Eric Blake  <ebb9@byu.net>
70149
70150         * doc/headers/assert.texi (assert.h): Document assert module use.
70151
70152 2007-04-27  Bruno Haible  <bruno@clisp.org>
70153
70154         * doc/headers/*.texi: New files.
70155         * doc/gnulib.texi (Header File Substitutes): New chapter.
70156         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70157         dependencies.
70158         (standards.info ,standards.html, standards.dvi): Update dependencies.
70159         (mostlyclean, clean): New targets.
70160
70161 2007-04-27  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70164         * modules/sysexits (Files, Makefile.am): Update.
70165
70166         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70167         * modules/sys_socket (Files, Makefile.am): Update.
70168
70169         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70170         * modules/sys_stat (Files, Makefile.am): Update.
70171
70172 2007-04-27  Eric Blake  <ebb9@byu.net>
70173
70174         * lib/freading.h: Improve comments.
70175         * lib/fwriting.h: Likewise.
70176         * lib/fflush.c: Likewise.
70177
70178         Fix closein for mingw.
70179         * modules/closein-tests: Add tests for closein.
70180         * tests/test-closein.c: New file.
70181         * tests/test-closein.sh: Likewise.
70182         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70183         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70184
70185 2007-04-27  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70188         version is < 6.
70189         * lib/math_.h [__DECC]: Likewise.
70190         * lib/stdio_.h [__DECC]: Likewise.
70191         * lib/stdlib_.h [__DECC]: Likewise.
70192         * lib/string_.h [__DECC]: Likewise.
70193         * lib/time_.h [__DECC]: Likewise.
70194         * lib/wchar_.h [__DECC]: Likewise.
70195         * lib/wctype_.h [__DECC]: Likewise.
70196
70197 2007-04-27  Bruno Haible  <bruno@clisp.org>
70198
70199         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70200
70201 2007-04-27  Bruno Haible  <bruno@clisp.org>
70202
70203         * lib/fflush.c: Add comments.
70204         * modules/fpurge-tests (Depends-on): Add fflush.
70205         * modules/freadable-tests (Depends-on): Likewise.
70206         * modules/fwritable-tests (Depends-on): Likewise.
70207
70208 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70209
70210         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70211         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70212         Report by Bruno Haible <bruno@clisp.org>.
70213
70214 2007-04-26  Eric Blake  <ebb9@byu.net>
70215
70216         Fix fflush on mingw.
70217         * modules/fflush (Depends-on): Add freading.
70218         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70219         but unread data.
70220
70221 2007-04-26  Eric Blake  <ebb9@byu.net>
70222         and Bruno Haible  <bruno@clisp.org>
70223
70224         Implement freading and fwriting.
70225         * lib/freading.c: New file.
70226         * lib/freading.h: Likewise.
70227         * m4/freading.m4: Likewise.
70228         * modules/freading: Likewise.
70229         * modules/freading-tests: Likewise.
70230         * tests/test-freading.c: Likewise.
70231         * lib/fwriting.c: New file.
70232         * lib/fwriting.h: Likewise.
70233         * m4/fwriting.m4: Likewise.
70234         * modules/fwriting: Likewise.
70235         * modules/fwriting-tests: Likewise.
70236         * tests/test-fwriting.c: Likewise.
70237         * MODULES.html.sh (File stream based Input/Output): Mention them.
70238
70239 2007-04-26  Bruno Haible  <bruno@clisp.org>
70240
70241         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70242         'long' when we assume it.
70243         Suggested by Eric Blake.
70244
70245 2007-04-26  Bruno Haible  <bruno@clisp.org>
70246
70247         Ensure fseeko, ftello are declared on glibc systems.
70248         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70249         * modules/fseeko (configure.ac-early): Likewise.
70250         * modules/ftello (configure.ac-early): Likewise.
70251         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70252         AC_FUNC_FSEEKO for this.
70253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70254         (gl_CHECK_FSEEKO): Remove macro.
70255
70256 2007-04-26  Bruno Haible  <bruno@clisp.org>
70257
70258         * tests/test-fflush.c (main): Also check the ftell result after
70259         fflush and fseek/fseeko.
70260         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70261         file descriptor position cache in the stream.
70262         * lib/fseeko.c (rpl_fseeko): Likewise.
70263
70264 2007-04-26  Bruno Haible  <bruno@clisp.org>
70265
70266         * modules/fflush-tests (Depends-on): Add fseeko.
70267
70268 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70269             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70270
70271         * lib/argz_.h: ensure error_t definition is obtained in same
70272         mechanism system argz.h would have.
70273         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70274         argz facilities are known bad.  Err on the side of caution if
70275         cross-compiling.
70276
70277 2007-04-25  Eric Blake  <ebb9@byu.net>
70278
70279         * lib/fpurge.c (includes): Use stdlib.h for free.
70280         * tests/test-fflush.c (main): Also test fflush-fseeko.
70281
70282 2007-04-25  Bruno Haible  <bruno@clisp.org>
70283
70284         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70285         * lib/fseeko.c: New file.
70286         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70287         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70288         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70289         gl_FUNC_FSEEKO.
70290         (gl_FUNC_FSEEKO): Invoke it.
70291         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70292         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70293         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70294
70295 2007-04-25  Bruno Haible  <bruno@clisp.org>
70296
70297         * modules/fflush (Depends-on): Add ftello.
70298
70299 2007-04-25  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/ftello-tests: New file.
70302         * tests/test-ftello.c: New file.
70303
70304         * modules/ftello: New file.
70305         * m4/ftello.m4: New file.
70306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70307         HAVE_FTELLO.
70308         * lib/stdio_.h (ftello): New declaration.
70309         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70310         HAVE_FTELLO.
70311
70312 2007-04-25  Bruno Haible  <bruno@clisp.org>
70313
70314         * modules/fseeko-tests: New file.
70315         * tests/test-fseeko.c: New file.
70316
70317         * modules/fseeko: New file.
70318         * m4/fseeko.m4: New file.
70319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70320         HAVE_FSEEKO.
70321         * lib/stdio_.h (fseeko): New declaration.
70322         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70323         HAVE_FSEEKO.
70324
70325 2007-04-25  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70328
70329 2007-04-25  Bruno Haible  <bruno@clisp.org>
70330
70331         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70332         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70333         * tests/test-unistd.c: Likewise.
70334         * tests/test-fcntl.c: Likewise.
70335
70336 2007-04-23  Eric Blake  <ebb9@byu.net>
70337
70338         * lib/fflush.c: Fix missing include.
70339         Reported by Bruno Haible.
70340
70341 2007-04-23  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70344         Reported by Eric Blake.
70345
70346 2007-04-23  Bruno Haible  <bruno@clisp.org>
70347
70348         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70349
70350 2007-04-23  Bruno Haible  <bruno@clisp.org>
70351
70352         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70353
70354 2007-04-23  Bruno Haible  <bruno@clisp.org>
70355
70356         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70357         Needed on HP-UX 11.
70358
70359 2007-04-16  Eric Blake  <ebb9@byu.net>
70360
70361         Make fflush rely on fpurge.
70362         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70363         open coding all variants.
70364         * modules/fflush (Depends-on): Add fpurge and unistd.
70365         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70366         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70367
70368         Fix --with-tests compilation on cygwin.
70369         * modules/argmatch-tests (Makefile.am): List gnulib library first
70370         in LDADD.
70371         * modules/argp-tests (Makefile.am): Likewise.
70372         * modules/array-list-tests (Makefile.am): Likewise.
70373         * modules/array-oset-tests (Makefile.am): Likewise.
70374         * modules/avltree-list-tests (Makefile.am): Likewise.
70375         * modules/avltree-oset-tests (Makefile.am): Likewise.
70376         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70377         * modules/carray-list-tests (Makefile.am): Likewise.
70378         * modules/dirname-tests (Makefile.am): Likewise.
70379         * modules/frexp-tests (Makefile.am): Likewise.
70380         * modules/isnanl-tests (Makefile.am): Likewise.
70381         * modules/linked-list-tests (Makefile.am): Likewise.
70382         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70383         * modules/lock-tests (Makefile.am): Likewise.
70384         * modules/rbtree-list-tests (Makefile.am): Likewise.
70385         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70386         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70387         * modules/tls-tests (Makefile.am): Likewise.
70388         * modules/tsearch-tests (Makefile.am): Likewise.
70389         * modules/xvasprintf-tests (Makefile.am): Likewise.
70390
70391         Fix fpurge for cygwin.
70392         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70393         value.
70394         * modules/fpurge-tests (Depends-on): Clean up trash.
70395
70396 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70397
70398         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70399
70400         * m4/autobuild.m4: Re-indent.
70401
70402 2007-04-13  Bruno Haible  <bruno@clisp.org>
70403
70404         * modules/fpurge-tests: New file.
70405         * tests/test-fpurge.c: New file.
70406
70407         * modules/fpurge: New file.
70408         * lib/fpurge.h: New file.
70409         * lib/fpurge.c: New file.
70410         * m4/fpurge.m4: New file.
70411
70412 2007-04-13  Bruno Haible  <bruno@clisp.org>
70413
70414         * modules/fbufmode-tests: New file.
70415         * tests/test-fbufmode.c: New file.
70416
70417         * modules/fbufmode: New file.
70418         * lib/fbufmode.h: New file.
70419         * lib/fbufmode.c: New file.
70420         * m4/fbufmode.m4: New file.
70421
70422 2007-04-13  Bruno Haible  <bruno@clisp.org>
70423
70424         * modules/fwritable-tests: New file.
70425         * tests/test-fwritable.c: New file.
70426
70427         * modules/fwritable: New file.
70428         * lib/fwritable.h: New file.
70429         * lib/fwritable.c: New file.
70430         * m4/fwritable.m4: New file.
70431
70432 2007-04-13  Bruno Haible  <bruno@clisp.org>
70433
70434         * modules/freadable-tests: New file.
70435         * tests/test-freadable.c: New file.
70436
70437         * modules/freadable: New file.
70438         * lib/freadable.h: New file.
70439         * lib/freadable.c: New file.
70440         * m4/freadable.m4: New file.
70441
70442 2007-04-13  Bruno Haible  <bruno@clisp.org>
70443
70444         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70445         MOSTLYCLEANFILES.
70446
70447 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70450         gzip bootstrap.conf to avoid dragging in i18n machinery.
70451         (gnulib_tool_option): Use it.
70452
70453 2007-04-13  Bruno Haible  <bruno@clisp.org>
70454
70455         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70456         %F directives.
70457         * tests/test-vasprintf-posix.c (test_function): Likewise.
70458         * tests/test-snprintf-posix.h (test_function): Likewise.
70459         * tests/test-sprintf-posix.h (test_function): Likewise.
70460         * tests/test-fprintf-posix.h (test_function): Likewise.
70461         * tests/test-printf-posix.h (test_function): Likewise.
70462         * tests/test-fprintf-posix.out: Likewise.
70463
70464 2007-04-13  Bruno Haible  <bruno@clisp.org>
70465
70466         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70467         * modules/tls-tests (configure.ac): Likewise.
70468         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70469
70470 2007-04-13  Bruno Haible  <bruno@clisp.org>
70471
70472         * lib/tls.c (glthread_tls_get): Fix return type.
70473         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70474
70475 2007-04-12  Eric Blake  <ebb9@byu.net>
70476
70477         * modules/gettime (Depends-on): Remove gettime.
70478         Reported by Dmitry V. Levin.
70479
70480 2007-04-12  Bruno Haible  <bruno@clisp.org>
70481
70482         * modules/fflush (Include): Mention <stdio.h>.
70483         * modules/strtoimax (Include): Mention <inttypes.h>.
70484         * modules/strtoumax (Include): Likewise.
70485
70486 2007-04-12  Eric Blake  <ebb9@byu.net>
70487
70488         * .cvsignore: New file.
70489         * .gitignore: Likewise.
70490
70491 2007-04-12  Bruno Haible  <bruno@clisp.org>
70492
70493         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70494         not before, since $(LDADD) often contains libgnu.a.
70495         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70496         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70497         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70498         Needed on Cygwin.
70499
70500 2007-04-12  Eric Blake  <ebb9@byu.net>
70501
70502         Work around glibc's failure to flush stdin on fclose.
70503         * lib/closein.c (close_stdin): Flush stdin before closing.
70504
70505         Work around glibc's failure to reset seekable stdin on exit.
70506         * modules/closein: New module.
70507         * lib/closein.c: New file.
70508         * lib/closein.h: Likewise.
70509         * m4/closein.m4: Likewise.
70510         * MODULES.html.sh (File stream based Input/Output): Document it.
70511
70512 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70513
70514         * gnulib-tool: Rename generated 'autobuild' script to
70515         'do-autobuild' in --create-megatestdir output.
70516
70517         * doc/gnulib.texi (Build robot for gnulib): Fix.
70518
70519 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70520
70521         * modules/sysexits (Depends-on): Add absolute-header.
70522
70523 2007-04-12  Eric Blake  <ebb9@byu.net>
70524
70525         No need to preserve errno on success.
70526         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70527         Reported by Bruno Haible.
70528
70529 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70530
70531         * MODULES.html.sh (Support for maintaining and releasing
70532         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70533
70534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70535
70536         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70537
70538 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70539
70540         * modules/autobuild: New module.
70541
70542         * m4/autobuild.m4: New file.
70543
70544 2007-04-11  Bruno Haible  <bruno@clisp.org>
70545
70546         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70547         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70551         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70552         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70554         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70555         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70557         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70558         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70560         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70561         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70563         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70564         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70566         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70567         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70569         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70570         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70572         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70573         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70574         Reported by Eric Blake.
70575
70576 2007-04-11  Bruno Haible  <bruno@clisp.org>
70577
70578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70579
70580 2007-04-10  Bruno Haible  <bruno@clisp.org>
70581
70582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70583         for NaN and Infinity. Needed on FreeBSD 6.1.
70584         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70585         regarding results for "%010a" of Infinity and NaN.
70586         * tests/test-vasprintf-posix.c (test_function): Likewise.
70587         * tests/test-snprintf-posix.h (test_function): Likewise.
70588         * tests/test-sprintf-posix.h (test_function): Likewise.
70589         * tests/test-fprintf-posix.h (test_function): Likewise.
70590         * tests/test-printf-posix.h (test_function): Likewise.
70591         * tests/test-fprintf-posix.out: Likewise.
70592
70593 2007-04-10  Bruno Haible  <bruno@clisp.org>
70594
70595         * modules/locale-tests: New file.
70596         * tests/test-locale.c: New file.
70597
70598         * modules/locale: New file.
70599         * lib/locale_.h: New file.
70600         * m4/locale_h.m4: New file.
70601
70602 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70603             Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70606         be determined, test for availability of the copysignf, copysign,
70607         copysignl functions.
70608         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70609         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70610         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70611
70612 2007-04-09  Eric Blake  <ebb9@byu.net>
70613
70614         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70615         * modules/stdio (Makefile.am): Support fflush.
70616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70617         * modules/fflush: New file.
70618         * lib/fflush.c: Likewise.
70619         * m4/fflush.m4: Likewise.
70620         * modules/fflush-tests: New test.
70621         * tests/test-fflush.c: Likewise.
70622         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70623
70624 2007-04-06  Bruno Haible  <bruno@clisp.org>
70625
70626         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70627         (VASNPRINTF): Use signbit for faster determination whether to print a
70628         minus sign.
70629         * modules/vasnprintf (Files): Remove lib/float+.h.
70630         * modules/fprintf-posix (Depends-on): Add signbit.
70631         * modules/snprintf-posix (Depends-on): Likewise.
70632         * modules/sprintf-posix (Depends-on): Likewise.
70633         * modules/vasnprintf-posix (Depends-on): Likewise.
70634         * modules/vasprintf-posix (Depends-on): Likewise.
70635         * modules/vfprintf-posix (Depends-on): Likewise.
70636         * modules/vsnprintf-posix (Depends-on): Likewise.
70637         * modules/vsprintf-posix (Depends-on): Likewise.
70638
70639 2007-04-06  Bruno Haible  <bruno@clisp.org>
70640
70641         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70642         * tests/test-frexpl.c (main): Likewise.
70643         * tests/test-ldexpl.c (main): Likewise.
70644         * modules/frexp-tests (Depends-on): Add signbit.
70645         * modules/frexpl-tests (Depdends-on): Likewise.
70646         * modules/ldexpl-tests (Depdends-on): Likewise.
70647
70648 2007-04-06  Bruno Haible  <bruno@clisp.org>
70649
70650         * modules/signbit-tests: New file.
70651         * tests/test-signbit.c: New file.
70652
70653         * modules/signbit: New file.
70654         * lib/signbitf.c: New file.
70655         * lib/signbitd.c: New file.
70656         * lib/signbitl.c: New file.
70657         * m4/signbit.m4: New file.
70658         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70659         (signbit): New macro.
70660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70661         REPLACE_SIGNBIT.
70662         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70663         REPLACE_FREXPL into math.h.
70664
70665 2007-04-06  Bruno Haible  <bruno@clisp.org>
70666
70667         * modules/isnanf-nolibm-tests: New file.
70668         * tests/test-isnanf.c: New file.
70669
70670         * modules/isnanf-nolibm: New file.
70671         * lib/isnanf.h: New file.
70672         * lib/isnanf.c: New file.
70673         * lib/isnan.c: Consider the USE_FLOAT macro.
70674         * m4/isnanf.m4: New file.
70675
70676 2007-04-06  Bruno Haible  <bruno@clisp.org>
70677
70678         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70679         (Link): New section.
70680
70681         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70682
70683 2007-04-06  Bruno Haible  <bruno@clisp.org>
70684
70685         Assume the 'long double' type.
70686         * m4/longdouble.m4: Remove file.
70687         * config/srclist.txt: Don't mention longdouble.m4.
70688         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70689         * lib/float+.h: Likewise.
70690         * lib/frexp.c: Likewise.
70691         * lib/printf-args.h: Likewise.
70692         * lib/printf-args.c: Likewise.
70693         * lib/printf-frexp.c: Likewise.
70694         * lib/printf-parse.c: Likewise.
70695         * lib/vasnprintf.c: Likewise.
70696         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70697         * m4/intl.m4: Likewise.
70698         * m4/isnanl.m4: Likewise.
70699         * m4/printf.m4: Likewise.
70700         * m4/printf-frexpl.m4: Likewise.
70701         * m4/vasnprintf.m4: Likewise.
70702         * modules/allocsa (Files): Remove m4/longdouble.m4.
70703         * modules/gettext (Files): Likewise.
70704         * modules/relocatable-prog-wrapper (Files): Likewise.
70705         * modules/vasnprintf (Files): Likewise.
70706         * modules/isnanl (Files): Likewise.
70707         (Include): Simplify.
70708         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70709         (Include): Simplify.
70710         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70711         (Include): Simplify.
70712         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70713         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70714         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70716         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70717         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70718         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70719         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70720         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70721         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70722         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70723         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70724         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70725         * tests/test-isnanl.c: Likewise.
70726         * tests/test-snprintf-posix.h: Likewise.
70727         * tests/test-sprintf-posix.h: Likewise.
70728         * tests/test-vasnprintf-posix.c: Likewise.
70729         * tests/test-vasnprintf-posix2.c: Likewise.
70730         * tests/test-vasprintf-posix.c: Likewise.
70731
70732 2007-04-06  Bruno Haible  <bruno@clisp.org>
70733
70734         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70735         * lib/math_.h [__DECC]: Include the overridden include file through
70736         #include_next, outside the double-inclusion guard.
70737         * lib/stdio_.h [__DECC]: Likewise.
70738         * lib/stdlib_.h [__DECC]: Likewise.
70739         * lib/string_.h [__DECC]: Likewise.
70740         * lib/time_.h [__DECC]: Likewise.
70741         * lib/wchar_.h [__DECC]: Likewise.
70742         * lib/wctype_.h [__DECC]: Likewise.
70743         * lib/inttypes_.h [__DECC]: Likewise.
70744         Reported by Albert Chin <china@thewrittenword.com> in
70745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70746
70747 2007-04-04  Eric Blake  <ebb9@byu.net>
70748
70749         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70750         1.5.x.
70751
70752 2007-04-04  Bruno Haible  <bruno@clisp.org>
70753
70754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70755         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70756
70757 2007-04-04  Bruno Haible  <bruno@clisp.org>
70758
70759         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70760         results for "%010a" of Infinity and NaN.
70761         * tests/test-vasprintf-posix.c (test_function): Likewise.
70762         * tests/test-snprintf-posix.h (test_function): Likewise.
70763         * tests/test-sprintf-posix.h (test_function): Likewise.
70764         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70765         * tests/test-printf-posix.h (test_function): Likewise.
70766         * tests/test-fprintf-posix.out: Update.
70767         Needed for FreeBSD 6.1.
70768
70769 2007-04-04  Bruno Haible  <bruno@clisp.org>
70770
70771         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70772         directly used by the gnulib modules nor by gnulib-tool.
70773
70774 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * DEPENDENCIES: Give overall description of version dependency
70777         desirability.  Use more-typical names for apps.
70778         Add shell, coreutils, diffutils, grep, tar, gzip.
70779
70780 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70781
70782         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70783
70784 2007-04-04  Karl Berry  <karl@gnu.org>
70785
70786         * MODULES.html.sh (func_module): missing '.
70787
70788 2007-04-03  Bruno Haible  <bruno@clisp.org>
70789
70790         * modules/argmatch-tests (Makefile.am): New variable
70791         test_argmatch_LDADD.
70792         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70793         * modules/array-list-tests (Makefile.am): New variable
70794         test_array_list_LDADD.
70795         * modules/array-oset-tests (Makefile.am): New variable
70796         test_array_oset_LDADD.
70797         * modules/avltree-list-tests (Makefile.am): New variable
70798         test_avltree_list_LDADD.
70799         * modules/avltree-oset-tests (Makefile.am): New variable
70800         test_avltree_oset_LDADD.
70801         * modules/avltreehash-list-tests (Makefile.am): New variable
70802         test_avltreehash_list_LDADD.
70803         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70804         test_canonicalize_lgpl_LDADD.
70805         * modules/carray-list-tests (Makefile.am): New variable
70806         test_carray_list_LDADD.
70807         * modules/dirname-tests (Makefile.am): New variable
70808         test_dirname_LDADD.
70809         * modules/linked-list-tests (Makefile.am): New variable
70810         test_linked_list_LDADD.
70811         * modules/linkedhash-list-tests (Makefile.am): New variable
70812         test_linkedhash_list_LDADD.
70813         * modules/rbtree-list-tests (Makefile.am): New variable
70814         test_rbtree_list_LDADD.
70815         * modules/rbtree-oset-tests (Makefile.am): New variable
70816         test_rbtree_oset_LDADD.
70817         * modules/rbtreehash-list-tests (Makefile.am): New variable
70818         test_rbtreehash_list_LDADD.
70819         * modules/xvasprintf-tests (Makefile.am): New variable
70820         test_xvasprintf_LDADD.
70821         Reported by Eric Blake.
70822
70823 2007-04-03  Eric Blake  <ebb9@byu.net>
70824
70825         * DEPENDENCIES: Weaken m4 requirements.
70826
70827 2007-04-03  Bruno Haible  <bruno@clisp.org>
70828
70829         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70830         * modules/isnanl-tests (configure.ac): Likewise.
70831
70832 2007-04-03  Ben Pfaff  <blp@gnu.org>
70833
70834         * modules/iconv_open: Add $(srcdir)/ to source directory
70835         references in Makefile fragments that call gperf, to fix VPATH
70836         builds.
70837
70838 2007-04-03  Bruno Haible  <bruno@clisp.org>
70839
70840         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70841         * lib/ldexpl.c: Undo last change.
70842
70843 2007-04-03  Bruno Haible  <bruno@clisp.org>
70844
70845         * modules/printf-frexpl (Depends-on): Undo last change.
70846         (Files): Add m4/ldexpl.m4.
70847
70848 2007-04-03  Bruno Haible  <bruno@clisp.org>
70849
70850         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70851         * modules/isnanl (Link): New section.
70852
70853         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70854         * modules/frexp (Link): New section.
70855
70856         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70857         * modules/frexpl (Link): New section.
70858
70859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70860         * modules/ldexpl (Link): New section.
70861
70862 2007-04-03  Bruno Haible  <bruno@clisp.org>
70863
70864         * modules/TEMPLATE-EXTENDED: New file.
70865         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70866
70867 2007-04-03  Bruno Haible  <bruno@clisp.org>
70868
70869         * DEPENDENCIES: New file.
70870         Suggested by Simon Josefsson.
70871
70872 2007-04-03  Bruno Haible  <bruno@clisp.org>
70873
70874         * doc/gnulib.texi: Escape @.
70875
70876 2007-04-03  James Youngman  <jay@gnu.org>
70877         and Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70880         birthtime on all systems that have birthtime, not just those which
70881         use st_birthtimensec rather than st_birthtim.  Putting zero in
70882         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70883         that the birth time is not available for files on an NFS mount.
70884
70885 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70886
70887         * modules/memxor: Move back from crypto/, suggested by Bruno.
70888         * modules/crypto/hmac-sha1: Fix memxor dependency.
70889
70890         * modules/crypto/gc: Moved from ../.
70891
70892 2007-04-02  Eric Blake  <ebb9@byu.net>
70893
70894         * lib/ldexpl.c (includes): Avoid libm.
70895
70896         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70897
70898 2007-04-02  Bruno Haible  <bruno@clisp.org>
70899
70900         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70901         on IRIX.
70902
70903 2007-04-02  Bruno Haible  <bruno@clisp.org>
70904
70905         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70906         x86 or x86_64 platforms running MacOS X.
70907         Reported by Ryan Schmidt <@ryandesign.com>.
70908
70909 2007-04-02  Bruno Haible  <bruno@clisp.org>
70910
70911         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70912         i386.
70913
70914 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70915
70916         * modules/crypto/arcfour: Moved from ../.
70917         * modules/crypto/arcfour-tests: Moved from ../.
70918         * modules/crypto/arctwo: Moved from ../.
70919         * modules/crypto/arctwo-tests: Moved from ../.
70920         * modules/crypto/des: Moved from ../.
70921         * modules/crypto/des-tests: Moved from ../.
70922         * modules/crypto/gc-arcfour: Moved from ../.
70923         * modules/crypto/gc-arcfour-tests: Moved from ../.
70924         * modules/crypto/gc-arctwo: Moved from ../.
70925         * modules/crypto/gc-arctwo-tests: Moved from ../.
70926         * modules/crypto/gc-des: Moved from ../.
70927         * modules/crypto/gc-des-tests: Moved from ../.
70928         * modules/crypto/gc-hmac-md5: Moved from ../.
70929         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70930         * modules/crypto/gc-hmac-sha1: Moved from ../.
70931         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70932         * modules/crypto/gc-md2: Moved from ../.
70933         * modules/crypto/gc-md2-tests: Moved from ../.
70934         * modules/crypto/gc-md4: Moved from ../.
70935         * modules/crypto/gc-md4-tests: Moved from ../.
70936         * modules/crypto/gc-md5: Moved from ../.
70937         * modules/crypto/gc-md5-tests: Moved from ../.
70938         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70939         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70940         * modules/crypto/gc-random: Moved from ../.
70941         * modules/crypto/gc-rijndael: Moved from ../.
70942         * modules/crypto/gc-rijndael-tests: Moved from ../.
70943         * modules/crypto/gc-sha1: Moved from ../.
70944         * modules/crypto/gc-sha1-tests: Moved from ../.
70945         * modules/crypto/gc-tests: Moved from ../.
70946         * modules/crypto/hmac-md5: Moved from ../.
70947         * modules/crypto/hmac-md5-tests: Moved from ../.
70948         * modules/crypto/hmac-sha1: Moved from ../.
70949         * modules/crypto/hmac-sha1-tests: Moved from ../.
70950         * modules/crypto/md2: Moved from ../.
70951         * modules/crypto/md2-tests: Moved from ../.
70952         * modules/crypto/md4: Moved from ../.
70953         * modules/crypto/md4-tests: Moved from ../.
70954         * modules/crypto/md5: Moved from ../.
70955         * modules/crypto/md5-tests: Moved from ../.
70956         * modules/crypto/memxor: Moved from ../.
70957         * modules/crypto/rijndael: Moved from ../.
70958         * modules/crypto/rijndael-tests: Moved from ../.
70959         * modules/crypto/sha1: Moved from ../.
70960
70961 2007-03-30  James Youngman  <jay@gnu.org>
70962
70963         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70964         rename() to change the ctime of a file (because ctime is unaffected
70965         by rename on jfs2 on AIX 5.1).
70966         (main): Start by doing cleanup, in case a previous run failed leaving
70967         test files behind.
70968
70969 2007-03-31  Bruno Haible  <bruno@clisp.org>
70970
70971         Support old proprietary implementations of iconv.
70972         * modules/iconv_open: New file.
70973         * lib/iconv_.h: New file.
70974         * m4/iconv_h.m4: New file.
70975         * lib/iconv_open.c: New file.
70976         * lib/iconv_open-aix.gperf: New file.
70977         * lib/iconv_open-hpux.gperf: New file.
70978         * lib/iconv_open-irix.gperf: New file.
70979         * lib/iconv_open-osf.gperf: New file.
70980         * m4/iconv_open.m4: New file.
70981         * modules/linebreak (Depends-on): Add iconv_open.
70982         * modules/striconv (Depends-on): Likewise.
70983         * modules/striconveh (Depends-on): Likewise.
70984         * modules/unicodeio (Depends-on): Likewise.
70985         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70986         (iconv_t)(-1).
70987         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70988         conversion if cd is (iconv_t)(-1).
70989         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70990         is not possible.
70991
70992 2007-03-31  Bruno Haible  <bruno@clisp.org>
70993
70994         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70995         work on Solaris either. Protect also second use of "autodetect_jp".
70996
70997 2007-03-31  Bruno Haible  <bruno@clisp.org>
70998
70999         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71000         the function is not present.
71001
71002 2007-03-31  Bruno Haible  <bruno@clisp.org>
71003
71004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71005         the function is not present.
71006
71007 2007-03-31  Bruno Haible  <bruno@clisp.org>
71008
71009         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71010         a bug in HP-UX iconv_open().
71011
71012 2007-03-31  Bruno Haible  <bruno@clisp.org>
71013
71014         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71015         (Mathematics <math.h>): New section, add fpieee.
71016         (Input/output <stdio.h>): Add fseterr.
71017         (Mathematics <math.h>): New section, add printf-frexp.
71018         (Container data structures): Add sublist.
71019         (Core language properties): Add fpucw, inline.
71020         (Functions for greatest-width integer types <inttypes.h>): Add
71021         imaxabs, imaxdiv, inttypes.
71022         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71023         isnanl-nolibm, ldexp.
71024         (Mathematics <math.h>): New section, add printf-frexpl.
71025         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71026         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71027         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71028         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71029         (Unicode string functions): Add unistr/u*-mbtoucr.
71030         (Java): Add javacomp-script, javaexec-script.
71031         (C#): Add csharpcomp-script, csharpexec-script.
71032         (Support for building libraries and executables): Add havelib,
71033         relocatable-*.
71034         (Support for maintaining and releasing projects): Renamed from
71035         'Support for maintaining and release projects'. Add announce-gen.
71036
71037 2007-03-31  Bruno Haible  <bruno@clisp.org>
71038
71039         * README: Talk primarily about git.
71040         (git and CVS): Renamed from CVS.
71041         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71042         gnulib is available through git.
71043         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71044
71045 2007-03-30  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71048         * lib/poll_.h: Likewise.
71049         * lib/stat_.h: Likewise.
71050         * lib/sys_time_.h: Likewise.
71051         * lib/sysexit_.h: Likewise.
71052         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71053         * lib/stdbool_.h: Likewise.
71054         * lib/byteswap_.h: Add double-inclusion guard.
71055
71056 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71057
71058         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71059
71060 2007-03-30  Karl Berry  <karl@gnu.org>
71061
71062         * config/srclist-update: double space after USA in the license
71063         substitution, since that's how it's usually (?) written.
71064
71065 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71068         reported by Bruno Haible.
71069
71070 2007-03-29  Bruno Haible  <bruno@clisp.org>
71071
71072         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71073         a bug in AIX iconv().
71074
71075 2007-03-29  Bruno Haible  <bruno@clisp.org>
71076
71077         * modules/ldexpl-tests: New file.
71078         * tests/test-ldexpl.c: New file.
71079
71080 2007-03-29  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/ldexpl.c: Include fpucw.h.
71083         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71084         multiplication.
71085         * modules/ldexpl (Depends-on): Add fpucw.
71086
71087 2007-03-29  Bruno Haible  <bruno@clisp.org>
71088
71089         * modules/ldexpl: New file.
71090         * m4/ldexpl.m4: New file.
71091         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71092         set.
71093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71094         REPLACE_LDEXPL.
71095         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71096         REPLACE_LDEXPL.
71097         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71098         gl_FUNC_LDEXPL_WORKS.
71099         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71100         * modules/mathl (Files): Remove lib/ldexpl.c.
71101         (Depends-on): Add ldexpl.
71102
71103 2007-03-29  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71106
71107 2007-03-29  Bruno Haible  <bruno@clisp.org>
71108
71109         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71110         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71111         and possibly also HP-UX.
71112         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71113         work on AIX, IRIX, HP-UX, OSF/1.
71114         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71115         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71116         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71117         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71118         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71119         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71120
71121 2007-03-29  Bruno Haible  <bruno@clisp.org>
71122
71123         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71124
71125 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71128         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71129
71130 2007-03-29  Eric Blake  <ebb9@byu.net>
71131
71132         * lib/acl-internal.h: Remove redundant include.
71133         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71134         Cygwin when a file is locked.
71135
71136 2007-03-29  Bruno Haible  <bruno@clisp.org>
71137
71138         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71139         file.
71140         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71141
71142 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71145         try to remove a parent directory if the child couldn't be removed
71146         (except for the first rmdir, which could fail because the child
71147         doesn't exist).  Problem reported by Jeff Blaine in
71148         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71149
71150 2007-03-28  Bruno Haible  <bruno@clisp.org>
71151
71152         * lib/striconveh.c (utf8conv_carefully): New function.
71153         (mem_cd_iconveh_internal): Invoke it.
71154
71155 2007-03-28  Bruno Haible  <bruno@clisp.org>
71156
71157         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71158         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71159         input.
71160         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71161         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71162         unistr/u8-uctomb.
71163
71164 2007-03-28  Bruno Haible  <bruno@clisp.org>
71165
71166         * modules/unistr/u8-mbtoucr: New file.
71167         * lib/unistr/u8-mbtoucr.c: New file.
71168         * modules/unistr/u16-mbtoucr: New file.
71169         * lib/unistr/u16-mbtoucr.c: New file.
71170         * modules/unistr/u16-mbtoucr: New file.
71171         * lib/unistr/u16-mbtoucr.c: New file.
71172         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71173
71174 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71175             Bruno Haible  <bruno@clisp.org>
71176
71177         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71178         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71179         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71180
71181         * m4/stdio_h.m4: Add stubs for vasprintf too.
71182
71183         * modules/stdio: Support vasprintf in sed command.
71184
71185         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71186         vasprintf.h.  Add stdio module indicator.
71187
71188         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71189         vasprintf.h.
71190
71191         * lib/vasprintf.h: File removed.
71192
71193         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71194         * lib/vasprintf.c: Ditto.
71195         * lib/xvasprintf.c: Ditto.
71196         * tests/test-vasprintf-posix.c: Ditto.
71197         * tests/test-vasprintf.c: Ditto.
71198
71199 2007-03-27  Bruno Haible  <bruno@clisp.org>
71200
71201         Make vasnprintf multithread-safe.
71202         * lib/vasnprintf.c (decimal_point_char): New function.
71203         (VASNPRINTF): Use it.
71204         Suggested by Simon Josefsson.
71205
71206 2007-03-27  Eric Blake  <ebb9@byu.net>
71207
71208         Support sub-second birthtime on cygwin.
71209         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71210         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71211         (get_stat_birthtime): Also work with st_birthtim.
71212
71213 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71216         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71217         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71218         (get_stat_birthtime_ns): Simplify compile-time tests.
71219         (get_stat_birthtime): Change the API to look like
71220         get_stat_mtime etc., except return a negative tv_nsec on error.
71221         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71222         Don't check for "spare" fields.
71223         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71224         or for struct stat.st_birthtime, as these tests aren't used.
71225         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71226
71227 2007-03-27  Bruno Haible  <bruno@clisp.org>
71228
71229         * lib/stat-time.h: Include <sys/stat.h>.
71230
71231 2007-03-27  James Youngman  <jay@gnu.org>
71232
71233         * lib/stat-time.h (get_stat_birthtime): New function for
71234           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71235         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71236           and its variants.
71237         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71238         * modules/stat-time-test: New file.
71239         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71240
71241 2007-03-26  Bruno Haible  <bruno@clisp.org>
71242
71243         Better support of signalling NaNs.
71244         * lib/atanl.c: Include isnanl.h.
71245         (atanl): Perform test for NaN at the beginning of the function and
71246         through a call to isnanl.
71247         * lib/cosl.c: Include isnanl.h.
71248         (cosl): Perform test for NaN at the beginning of the function and
71249         through a call to isnanl.
71250         * lib/ldexpl.c: Include isnanl.h.
71251         (ldexpl): Perform test for NaN through a call to isnanl.
71252         * lib/logl.c: Include isnanl.h.
71253         (logl): Perform test for NaN at the beginning of the function and
71254         through a call to isnanl.
71255         * lib/sinl.c: Include isnanl.h.
71256         (sinl): Perform test for NaN at the beginning of the function and
71257         through a call to isnanl.
71258         * lib/sqrtl.c: Include isnanl.h.
71259         (sqrtl): Perform test for NaN at the beginning of the function and
71260         through a call to isnanl.
71261         * lib/tanl.c: Include isnanl.h.
71262         (tanl): Perform test for NaN at the beginning of the function and
71263         through a call to isnanl.
71264         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71265         * modules/mathl (Depends-on): Add isnanl.
71266
71267 2007-03-26  Eric Blake  <ebb9@byu.net>
71268
71269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71270         regression in logic sense of previous patch.
71271
71272 2007-03-26  Bruno Haible  <bruno@clisp.org>
71273
71274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71275         unportable shell command "if ! ...".
71276         Reported by Ralf Wildenhues.
71277
71278 2007-03-25  Bruno Haible  <bruno@clisp.org>
71279
71280         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71281         <sysexits.h> file, and only add EX_CONFIG.
71282         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71283         absolute file name and whether it is sufficient. Substitute also
71284         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71285         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71286         ABSOLUTE_SYSEXITS_H into sysexits.h.
71287
71288 2007-03-25  Bruno Haible  <bruno@clisp.org>
71289
71290         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71291         hints is NULL.
71292
71293 2007-03-25  Bruno Haible  <bruno@clisp.org>
71294
71295         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71296         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71297
71298 2007-03-25  Bruno Haible  <bruno@clisp.org>
71299
71300         * lib/vasnprintf.c: Include langinfo.h.
71301         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71302         multithread-safe.
71303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71309         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71310         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71311         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71312         Reported by Simon Josefsson.
71313
71314 2007-03-25  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71317         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71318         * modules/vasnprintf (Depends-on): Add stdint.
71319
71320 2007-03-25  Bruno Haible  <bruno@clisp.org>
71321
71322         * modules/fpieee: New file.
71323         * m4/fpieee.m4: New file.
71324         * modules/isnan-nolibm (Depends-on): Add fpieee.
71325         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71326         * modules/isnanl (Depends-on): Add fpieee.
71327
71328 2007-03-25  Bruno Haible  <bruno@clisp.org>
71329
71330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71331
71332 2007-03-25  Bruno Haible  <bruno@clisp.org>
71333
71334         Avoid test failures on IRIX 6.5.
71335         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71336         (main): Use it.
71337         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71338         macros.
71339         (main): Use them.
71340
71341 2007-03-25  Bruno Haible  <bruno@clisp.org>
71342
71343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71344         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71345         exists but doesn't work.
71346         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71347         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71349         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71350         math.h.
71351
71352 2007-03-25  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71355         returns inf. Needed on IRIX 6.5.
71356
71357 2007-03-25  Bruno Haible  <bruno@clisp.org>
71358
71359         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71360         (main): Use isnanl instead of x != x idiom.
71361         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71362
71363         * tests/test-frexp.c: Include isnan.h.
71364         (main): Use isnan instead of x != x idiom.
71365         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71366
71367 2007-03-25  Bruno Haible  <bruno@clisp.org>
71368
71369         * tests/test-frexp.c (NaN): New function/macro.
71370         (main): Use it instead of 0.0 / 0.0.
71371         * tests/test-isnan.c (NaN): New function/macro.
71372         (main): Use it instead of 0.0 / 0.0.
71373         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71374         (test_function): Use it instead of 0.0 / 0.0.
71375         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71376         (test_function): Use it instead of 0.0 / 0.0.
71377         * tests/test-snprintf-posix.h (NaN): New function/macro.
71378         (test_function): Use it instead of 0.0 / 0.0.
71379         * tests/test-sprintf-posix.h (NaN): New function/macro.
71380         (test_function): Use it instead of 0.0 / 0.0.
71381         * tests/test-fprintf-posix.h (NaN): New function/macro.
71382         (test_function): Use it instead of 0.0 / 0.0.
71383         * tests/test-printf-posix.h (NaN): New function/macro.
71384         (test_function): Use it instead of 0.0 / 0.0.
71385
71386         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71387
71388 2007-03-25  Bruno Haible  <bruno@clisp.org>
71389
71390         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71391
71392 2007-03-25  Bruno Haible  <bruno@clisp.org>
71393
71394         * lib/regexec.c (merge_state_with_log): Make static.
71395
71396 2007-03-25  Bruno Haible  <bruno@clisp.org>
71397
71398         * lib/trigl.c (kernel_rem_pio2): Make static.
71399
71400 2007-03-25  Bruno Haible  <bruno@clisp.org>
71401
71402         * lib/sincosl.c (sincosl_table): Make static.
71403
71404 2007-03-25  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71407         if the compiler does not support C99.
71408
71409 2007-03-25  Bruno Haible  <bruno@clisp.org>
71410
71411         * modules/time (Makefile.am): Ensure all rule action lines start with a
71412         tab.
71413
71414 2007-03-24  Bruno Haible  <bruno@clisp.org>
71415
71416         * modules/tsearch-tests: New file.
71417         * tests/test-tsearch.sh: New file.
71418         * tests/test-tsearch.c: New file, mostly copied from glibc.
71419
71420         * modules/search-tests: New file.
71421         * tests/test-search.c: New file.
71422
71423         * modules/search: New file.
71424         * lib/search_.h: New file, incorporating lib/tsearch.h.
71425         * m4/search_h.m4: New file.
71426         * lib/tsearch.h: Remove file.
71427         * lib/tsearch.c: Include search.h instead of tsearch.h.
71428         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71429         HAVE_TSEARCH.
71430         * modules/tsearch (Files): Remove lib/tsearch.h.
71431         (Depends-on): Add search.
71432         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71433         (Include): Change tsearch.h into search.h.
71434
71435 2007-03-24  Bruno Haible  <bruno@clisp.org>
71436
71437         * modules/fpucw: New file.
71438         * lib/fpucw.h: New file.
71439         * lib/frexp.c: Include fpucw.h.
71440         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71441         (FUNC): Use them.
71442         * lib/printf-frexp.c: Include fpucw.h.
71443         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71444         (FUNC): Use them.
71445         * lib/vasnprintf.c: Include fpucw.h.
71446         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71447         'long double' calculations.
71448         * tests/test-frexpl.c: Include fpucw.h.
71449         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71450         * tests/test-printf-frexpl.c: Include fpucw.h.
71451         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71452         * modules/frexpl (Depends-on): Add fpucw.
71453         * modules/printf-frexpl (Depends-on): Likewise.
71454         * modules/fprintf-posix (Depends-on): Likewise.
71455         * modules/snprintf-posix (Depends-on): Likewise.
71456         * modules/sprintf-posix (Depends-on): Likewise.
71457         * modules/vasnprintf-posix (Depends-on): Likewise.
71458         * modules/vasprintf-posix (Depends-on): Likewise.
71459         * modules/vfprintf-posix (Depends-on): Likewise.
71460         * modules/vsnprintf-posix (Depends-on): Likewise.
71461         * modules/vsprintf-posix (Depends-on): Likewise.
71462         * modules/frexpl-tests (Depends-on): Likewise.
71463         * modules/printf-frexpl-tests (Depends-on): Likewise.
71464
71465 2007-03-24  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/float+.h: New file.
71468         * lib/isnan.c: Include float+.h.
71469         (SIZE): New macro.
71470         (FUNC): Compare only SIZE bytes of the value.
71471         * lib/vasnprintf.c: Include float+.h.
71472         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71473         SIZEOF_LDBL or SIZEOF_DBL bytes.
71474         * modules/isnan-nolibm (Files): Add lib/float+.h.
71475         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71476         * modules/isnanl (Files): Add lib/float+.h.
71477         * modules/vasnprintf (Files): Add lib/float+.h.
71478
71479 2007-03-24  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71482         include isnanl-nolibm.h.
71483
71484 2007-03-24  Bruno Haible  <bruno@clisp.org>
71485
71486         * tests/test-read-file.c (main): Don't produce spurious output for
71487         expected situations. Make the test fail if it encountered unexpected
71488         results.
71489
71490 2007-03-24  Bruno Haible  <bruno@clisp.org>
71491
71492         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71493         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71494
71495 2007-03-24  Bruno Haible  <bruno@clisp.org>
71496
71497         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71498
71499 2007-03-24  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71502         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71503
71504         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71505         * modules/utf8-ucs4: Turn into a symbolic link to module
71506         unistr/u8-mbtouc.
71507
71508         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71509         utf8-ucs4-unsafe.
71510         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71511         unistr/u8-mbtouc-unsafe.
71512
71513         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71514         * modules/utf16-ucs4: Turn into a symbolic link to module
71515         unistr/u16-mbtouc.
71516
71517         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71518         utf16-ucs4-unsafe.
71519         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71520         unistr/u16-mbtouc-unsafe.
71521
71522         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71523         * modules/ucs4-utf8: Turn into a symbolic link to module
71524         unistr/u8-ubtomb.
71525
71526         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71527         * modules/ucs4-utf16: Turn into a symbolic link to module
71528         unistr/u16-ubtomb.
71529
71530 2007-03-24  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71533         Enable the function only if HAVE_INLINE.
71534         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71535         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71536         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71537         Enable the function only if HAVE_INLINE.
71538         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71539         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71540         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71541         Enable the function only if HAVE_INLINE.
71542         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71543         Enable the function only if HAVE_INLINE.
71544         * modules/utf8-ucs4: Update.
71545         * modules/utf8-ucs4-unsafe: Update.
71546         * modules/utf16-ucs4: Update.
71547         * modules/utf16-ucs4-unsafe: Update.
71548         * modules/ucs4-utf8: Update.
71549         * modules/ucs4-utf16: Update.
71550
71551 2007-03-24  Bruno Haible  <bruno@clisp.org>
71552
71553         * lib/utf8-ucs4.h: Remove file.
71554         * lib/utf8-ucs4-unsafe.h: Remove file.
71555         * lib/utf16-ucs4.h: Remove file.
71556         * lib/utf16-ucs4-unsafe.h: Remove file.
71557         * lib/ucs4-utf8.h: Remove file.
71558         * lib/ucs4-utf16.h: Remove file.
71559         * lib/unistr.h: Include their previous contents.
71560         * m4/utf-ucs4.m4: Remove file.
71561         * m4/ucs4-utf.m4: Remove file.
71562         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71563         (Depends-on): Add unistr/base.
71564         (configure.ac): Remove gl_UTF_UCS4.
71565         (Makefile.am): Update.
71566         (Include): Change to unistr.h.
71567         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71568         (Depends-on): Add unistr/base.
71569         (configure.ac): Remove gl_UTF_UCS4.
71570         (Makefile.am): Update.
71571         (Include): Change to unistr.h.
71572         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71573         (Depends-on): Add unistr/base.
71574         (configure.ac): Remove gl_UTF_UCS4.
71575         (Makefile.am): Update.
71576         (Include): Change to unistr.h.
71577         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71578         (Depends-on): Add unistr/base.
71579         (configure.ac): Remove gl_UTF_UCS4.
71580         (Makefile.am): Update.
71581         (Include): Change to unistr.h.
71582         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71583         (Depends-on): Add unistr/base.
71584         (configure.ac): Remove gl_UCS4_UTF.
71585         (Makefile.am): Update.
71586         (Include): Change to unistr.h.
71587         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71588         (Depends-on): Add unistr/base.
71589         (configure.ac): Remove gl_UCS4_UTF.
71590         (Makefile.am): Update.
71591         (Include): Change to unistr.h.
71592         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71593         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71594         utf8-ucs4-unsafe.h.
71595         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71596         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71597         utf16-ucs4-unsafe.h.
71598         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71599         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71600         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71601         * lib/unistr/u8-strchr.c: Likewise.
71602         * lib/unistr/u8-strrchr.c: Likewise.
71603         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71604         * lib/unistr/u16-strchr.c: Likewise.
71605         * lib/unistr/u16-strrchr.c: Likewise.
71606         * lib/striconveh.c: Update.
71607         * lib/linebreak.c: Update.
71608
71609 2007-03-24  Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71612         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71613
71614 2007-03-22  Bruno Haible  <bruno@clisp.org>
71615
71616         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71617
71618 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * MODULES.html.sh (File system functions): New module write-any-file.
71621         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71622         * m4/write-any-file.m4: New files.
71623
71624 2007-03-23  Eric Blake  <ebb9@byu.net>
71625
71626         * gnulib-tool: Rearrange space-tab sequences, since some editors
71627         like to eat them.
71628
71629 2007-03-23  Eric Blake  <ebb9@byu.net>
71630
71631         * lib/version-etc.c (version_etc_va): Update license wording to
71632         be more concise.  Recommended by Richard Stallman.
71633
71634 2007-03-22  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/poll.c (MSG_PEEK): New fallback definition.
71637
71638 2007-03-22  Bruno Haible  <bruno@clisp.org>
71639
71640         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71641         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71642         (main): Update.
71643         Fixes a compilation error on BeOS.
71644
71645 2007-03-22  Bruno Haible  <bruno@clisp.org>
71646
71647         * modules/frexpl-tests: New file.
71648         * tests/test-frexpl.c: New file.
71649
71650         * modules/frexpl: New file.
71651         * m4/frexpl.m4: New file.
71652         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71653         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71655         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71656         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71657         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71658
71659 2007-03-22  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/frexpl.c: Share code with lib/frexp.c.
71662         * modules/mathl (Files): Add lib/frexp.c.
71663         (Depends-on): Add isnanl-nolibm.
71664
71665 2007-03-22  Bruno Haible  <bruno@clisp.org>
71666
71667         * modules/printf-frexp (Files): Add m4/frexp.m4.
71668         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71669         only if the found frexp function actually works.
71670
71671 2007-03-22  Bruno Haible  <bruno@clisp.org>
71672
71673         * lib/frexp.c: Remove older implementation that uses divisions.
71674
71675 2007-03-21  Bruno Haible  <bruno@clisp.org>
71676
71677         * modules/frexp-tests: New file.
71678         * tests/test-frexp.c: New file.
71679
71680         * modules/frexp: New file.
71681         * lib/frexp.c: New file.
71682         * m4/frexp.m4: New file.
71683         * lib/math_.h (frexp): New declaration.
71684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71685         REPLACE_FREXP.
71686         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71687
71688 2007-03-21  Bruno Haible  <bruno@clisp.org>
71689
71690         * modules/isnanl-tests: New file.
71691         * tests/test-isnanl.c: New file.
71692
71693         * modules/isnanl: New file.
71694         * lib/isnanl.h: New file.
71695         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71696         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71697         gl_FUNC_ISNANL_WORKS.
71698         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71699         New macros.
71700
71701 2007-03-21  Bruno Haible  <bruno@clisp.org>
71702
71703         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71704         lib/isnanl.h.
71705         (Include): Update.
71706         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71707         * lib/vasnprintf.c: Update.
71708         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71709         tests/test-isnanl.h, remove tests/test-isnanl.c.
71710         (Makefile.am): Update.
71711         * tests/test-isnanl-nolibm.c: New file.
71712         * tests/test-isnanl.h: New file.
71713         * tests/test-isnanl.c: Remove file.
71714
71715 2007-03-21  Jim Meyering  <jim@meyering.net>
71716
71717         When trying to open ".", treat ESTALE like EACCES.
71718         * lib/savewd.c (savewd_save): Resort to forking not just upon
71719         failure with EACCES, but also when errno is ESTALE.
71720
71721 2007-03-20  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71724         Needed on AIX 5.1. Reported by Matthew Woehlke.
71725
71726 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71727
71728         Suggestions by Bruno Haible:
71729         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71730         our own.
71731         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71732         * modules/acl (Depends-on): Add gettext.
71733
71734 2007-03-19  Bruno Haible  <bruno@clisp.org>
71735
71736         * modules/iconvme: Remove file.
71737         * lib/iconvme.h: Remove file.
71738         * lib/iconvme.c: Remove file.
71739         * m4/iconvme.m4: Remove file.
71740
71741 2007-03-19  Bruno Haible  <bruno@clisp.org>
71742
71743         * doc/relocatable-maint.texi: Break long shell script line.
71744         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71745
71746 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71749         handle file_has_acl.
71750         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71751         * lib/acl.c: Move header inclusions and related macro defns into
71752         lib/acl-internal.h.
71753         (S_ISLNK): Remove defn, since that's now done for us.
71754         (file_has_acl): Move to lib/file-has-acl.c.
71755         Call acl_trivial if available.  This is the crucial part of the fix.
71756         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71757         shared within the library.  Rewrite a bit, partly to make it compatible
71758         with the GNU coding style.
71759         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71760         Remove unnecessary double-quotes.
71761         Don't test for acl_to_text; the build will catch that.
71762         Replace acl_entries if it doesn't exist and it is needed.
71763         Check for -lsec and acl_trivial (as used on Solaris 10).
71764         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71765         lib/file-has-acl.c.
71766         (Depends-on): Add sys_stat, for S_ISLNK.
71767
71768 2007-03-19  Ben Pfaff  <blp@gnu.org>
71769
71770         * doc/gnulib.texi: Fix typos.
71771         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71772
71773 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71776         If size is zero here, buf must be zero.
71777
71778 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71779
71780         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71781         <bruno@clisp.org>.
71782
71783 2007-03-18  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71786         Suggested by Eric Blake.
71787
71788 2007-03-18  Ben Pfaff  <blp@gnu.org>
71789
71790         * doc/relocatable.texi: Recommend using as prefix a directory
71791         that does not exist and will never be created.  Based on
71792         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71793         and others.
71794
71795 2007-03-17  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/fchownat.c: Include lchown.h.
71798
71799 2007-03-17  Bruno Haible  <bruno@clisp.org>
71800
71801         Fix endless loop when the given allocated size was > INT_MAX.
71802         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71803         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71804         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71805         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71806         * lib/sprintf.c (sprintf): Likewise.
71807
71808 2007-03-17  Bruno Haible  <bruno@clisp.org>
71809
71810         * tests/test-argp-2.sh (func_compare): Output a context diff.
71811
71812 2007-03-17  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71815         locale's decimal-point character.
71816
71817 2007-03-17  Bruno Haible  <bruno@clisp.org>
71818
71819         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71820         before comparing it. Needed because on some platforms (e.g. x86) a
71821         'long double' occupies less bytes than sizeof (long double).
71822
71823 2007-03-17  Bruno Haible  <bruno@clisp.org>
71824
71825         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71826         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71827         * tests/test-getaddrinfo.c (simple): Likewise.
71828         * tests/test-read-file.c (main): Likewise.
71829
71830 2007-03-17  Bruno Haible  <bruno@clisp.org>
71831
71832         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71833
71834 2007-03-17  Bruno Haible  <bruno@clisp.org>
71835
71836         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71837         unused variable.
71838
71839 2007-03-17  Bruno Haible  <bruno@clisp.org>
71840
71841         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71842         * tests/test-c-strncasecmp.c: Likewise.
71843
71844 2007-03-17  Bruno Haible  <bruno@clisp.org>
71845
71846         * modules/stdlib (Depends-on): Add unistd.
71847         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71848         Needed for MacOS X 10.3.
71849
71850 2007-03-17  Bruno Haible  <bruno@clisp.org>
71851
71852         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71853
71854 2007-03-17  Bruno Haible  <bruno@clisp.org>
71855
71856         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71857
71858 2007-03-17  Bruno Haible  <bruno@clisp.org>
71859
71860         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71861         to reflect files copied from gnulib (with or without modifications).
71862         Suggested by Jim Meyering.
71863
71864 2007-03-17  Eric Blake  <ebb9@byu.net>
71865
71866         * NEWS: Document stdlib change from 2007-02-18.
71867
71868 2007-03-17  Jim Meyering  <jim@meyering.net>
71869
71870         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71871         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71872         someone uses a name containing shell meta-characters.
71873         Reported by Alfred M. Szmidt.
71874
71875         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71876
71877 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71878
71879         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71880         and copy gettext configuration files only if configure.ac contains
71881         a use of AM_GNU_GETTEXT_VERSION.
71882
71883 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71884
71885         * build-aux/bootstrap (gnulib_name): New variable.
71886         (gnulib_tool_options): Use it.
71887
71888 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71889
71890         * tests/test-des.c: Use new namespace.
71891
71892 2007-03-15  Bruno Haible  <bruno@clisp.org>
71893
71894         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71895         Reported by James Youngman <jay@gnu.org>.
71896
71897 2007-03-15  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71900         declared prototype. Needed with cc on OSF/1 5.1.
71901
71902 2007-03-15  Bruno Haible  <bruno@clisp.org>
71903
71904         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71905         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71906         (struct gl_list_implementation): Add dispose_fn argument to the
71907         'create_empty', 'create' methods.
71908         (struct gl_list_impl_base): Add field 'dispose_fn'.
71909         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71910         argument.
71911         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71912         dispose_fn argument.
71913         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71914         dispose_fn on the dropped values.
71915         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71916         dispose_fn argument.
71917         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71918         dropped values.
71919         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71920         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71921         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71922         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71923         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71924         argument.
71925         (gl_tree_list_free): Call dispose_fn on the dropped values.
71926         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71927         the dropped values.
71928         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71929         Add dispose_fn argument.
71930         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71931         Call dispose_fn on the dropped values.
71932         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71933         Add dispose_fn argument.
71934         (gl_sublist_create): Initialize the 'dispose_fn' field.
71935         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71936         * tests/test-array_list.c (main): Update.
71937         * tests/test-carray_list.c (main): Update.
71938         * tests/test-avltree_list.c (main): Update.
71939         * tests/test-rbtree_list.c (main): Update.
71940         * tests/test-avltreehash_list.c (main): Update.
71941         * tests/test-rbtreehash_list.c (main): Update.
71942         * tests/test-linked_list.c (main): Update.
71943         * tests/test-linkedhash_list.c (main): Update.
71944         * tests/test-array_oset.c (main): Update.
71945
71946 2007-03-15  Bruno Haible  <bruno@clisp.org>
71947
71948         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71949         (gl_oset_create_empty): Add dispose_fn argument.
71950         (struct gl_oset_implementation): Add dispose_fn argument to
71951         'create_empty' method.
71952         (struct gl_oset_impl_base): Add dispose_fn field.
71953         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71954         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71955         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71956         values.
71957         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71958         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71959         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71960         dropped value.
71961         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71962         dropped value.
71963         * tests/test-array_oset.c (main): Update.
71964         * tests/test-avltree_oset.c (main): Update.
71965         * tests/test-rbtree_oset.c (main): Update.
71966         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71967
71968 2007-03-13  Bruno Haible  <bruno@clisp.org>
71969
71970         * tests/test-stdbool.c (i): Update after last patch.
71971
71972 2007-03-12  Bruno Haible  <bruno@clisp.org>
71973
71974         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71975         the iswprint macro. Needed on Solaris 2.5.1.
71976
71977 2007-03-12  Bruno Haible  <bruno@clisp.org>
71978
71979         * tests/test-printf-frexp.c (main): Declare x as volatile.
71980
71981 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71982
71983         * doc/gnulib.texi (Build robot for gnulib): New section.
71984
71985 2007-03-12  Jim Meyering  <jim@meyering.net>
71986
71987         * build-aux/bootstrap: New file.
71988         * build-aux/bootstrap.conf: New file, from coreutils.
71989
71990 2007-03-11  Bruno Haible  <bruno@clisp.org>
71991
71992         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71993
71994 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71995
71996         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71997         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71998         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71999
72000 2007-03-11  Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72003         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72004
72005 2007-03-11  Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72008         formula. Needed for SunPRO C 5.0.
72009
72010 2007-03-11  Bruno Haible  <bruno@clisp.org>
72011
72012         * modules/long-options (Depends-on): Add getopt.
72013
72014 2007-03-11  Bruno Haible  <bruno@clisp.org>
72015
72016         * modules/modechange (Depends-on): Add stdbool.
72017
72018 2007-03-11  Bruno Haible  <bruno@clisp.org>
72019
72020         * modules/i-ring (Depends-on): Add stdbool.
72021
72022 2007-03-11  Bruno Haible  <bruno@clisp.org>
72023
72024         * modules/gc-des (Depends-on): Add stdbool.
72025
72026 2007-03-11  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72029
72030 2007-03-11  Bruno Haible  <bruno@clisp.org>
72031
72032         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72033
72034 2007-03-11  Bruno Haible  <bruno@clisp.org>
72035
72036         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72037
72038 2007-03-11  Bruno Haible  <bruno@clisp.org>
72039
72040         * lib/vasnprintf.c (sprintf): Undefine.
72041
72042 2007-03-11  Bruno Haible  <bruno@clisp.org>
72043
72044         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72045         initializers in SunPRO C and Compaq C compilers.
72046
72047 2007-03-11  Bruno Haible  <bruno@clisp.org>
72048
72049         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72050         decrementing code ANSI C compliant.
72051
72052 2007-03-11  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72055         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72056
72057 2007-03-11  Bruno Haible  <bruno@clisp.org>
72058
72059         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72060         <stdbool.h> substitute doesn't pass.
72061
72062 2007-03-11  Bruno Haible  <bruno@clisp.org>
72063
72064         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72065
72066 2007-03-11  Bruno Haible  <bruno@clisp.org>
72067
72068         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72069         script, for submission to autobuild.josefsson.org.
72070
72071 2007-03-10  Bruno Haible  <bruno@clisp.org>
72072
72073         * modules/canonicalize-lgpl-tests: New file.
72074         * tests/test-canonicalize-lgpl.sh: New file.
72075         * tests/test-canonicalize-lgpl.c: New file.
72076
72077         * modules/c-strcase-tests: New file.
72078         * tests/test-c-strcase.sh: New file.
72079         * tests/test-c-strcasecmp.c: New file.
72080         * tests/test-c-strncasecmp.c: New file.
72081
72082         * modules/atexit-tests: New file.
72083         * tests/test-atexit.sh: New file.
72084         * tests/test-atexit.c: New file.
72085
72086 2007-03-10  Bruno Haible  <bruno@clisp.org>
72087
72088         * tests/test-binary-io.sh: Use temporary filenames that are not so
72089         likely to clash with those of other tests (in a parallel make).
72090         * tests/test-binary-io.c: Likewise.
72091
72092 2007-03-10  Bruno Haible  <bruno@clisp.org>
72093
72094         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72095         fallback; use #error instead.
72096         Suggested by Simon Josefsson.
72097
72098 2007-03-10  Bruno Haible  <bruno@clisp.org>
72099
72100         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72101         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72102         first and the last.
72103
72104 2007-03-10  Bruno Haible  <bruno@clisp.org>
72105
72106         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72107
72108 2007-03-10  Bruno Haible  <bruno@clisp.org>
72109
72110         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72111         "make distcheck".
72112         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72113         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72114         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72115
72116 2007-03-10  Bruno Haible  <bruno@clisp.org>
72117
72118         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72119         variable.
72120         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72121         variable.
72122
72123 2007-03-09  Eric Blake  <ebb9@byu.net>
72124         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72125
72126         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72127         types are not being provided by gnulib.
72128         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72129         types are supported.
72130
72131 2007-03-10  Bruno Haible  <bruno@clisp.org>
72132
72133         * lib/stdio_.h (__attribute__): New macro.
72134         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72135         vsprintf): Specify __attribute__ __format__ for GCC.
72136         Suggested by Eric Blake.
72137
72138 2007-03-09  Bruno Haible  <bruno@clisp.org>
72139
72140         * modules/printf-posix-tests: New file.
72141         * tests/test-printf-posix.sh: New file.
72142         * tests/test-printf-posix.c: New file.
72143
72144         * modules/printf-posix: New file.
72145         * lib/printf.c: New file.
72146         * m4/printf-posix-rpl.m4: New file.
72147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72148         REPLACE_PRINTF.
72149         * lib/stdio_.h (printf): New declaration.
72150         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72151         ____strfmon____): New macros.
72152         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72153         REPLACE_PRINTF.
72154
72155 2007-03-09  Bruno Haible  <bruno@clisp.org>
72156
72157         * tests/test-vasnprintf-posix2.sh: New file.
72158         * tests/test-vasnprintf-posix2.c: New file.
72159         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72160         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72161         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72162
72163         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72164         a locale dependent decimal point, rather than always '.'.
72165
72166 2007-03-09  Eric Blake  <ebb9@byu.net>
72167
72168         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72169         spite of platforms like Tandem/NSK that define it to -1.
72170
72171 2007-03-08  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/vprintf-posix-tests: New file.
72174         * tests/test-vprintf-posix.sh: New file.
72175         * tests/test-vprintf-posix.c: New file.
72176         * tests/test-printf-posix.h: New file.
72177
72178         * modules/vprintf-posix: New file.
72179         * lib/vprintf.c: New file.
72180         * m4/vprintf-posix.m4: New file.
72181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72182         REPLACE_VPRINTF.
72183         * lib/stdio_.h (vprintf): New declaration.
72184         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72185         REPLACE_VPRINTF.
72186
72187 2007-03-08  Bruno Haible  <bruno@clisp.org>
72188
72189         * modules/fprintf-posix-tests: New file.
72190         * tests/test-fprintf-posix.sh: New file.
72191         * tests/test-fprintf-posix.c: New file.
72192
72193         * modules/fprintf-posix: New file.
72194         * lib/fprintf.c: New file.
72195         * m4/fprintf-posix.m4: New file.
72196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72197         REPLACE_FPRINTF.
72198         * lib/stdio_.h (fprintf): New declaration.
72199         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72200         REPLACE_FPRINTF.
72201
72202 2007-03-08  Bruno Haible  <bruno@clisp.org>
72203
72204         * modules/vfprintf-posix-tests: New file.
72205         * tests/test-vfprintf-posix.sh: New file.
72206         * tests/test-vfprintf-posix.c: New file.
72207         * tests/test-fprintf-posix.h: New file.
72208         * tests/test-fprintf-posix.out: New file.
72209
72210         * modules/vfprintf-posix: New file.
72211         * lib/vfprintf.c: New file.
72212         * m4/vfprintf-posix.m4: New file.
72213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72214         REPLACE_VFPRINTF.
72215         * lib/stdio_.h (vfprintf): New declaration.
72216         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72217         REPLACE_VFPRINTF.
72218
72219 2007-03-08  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72222
72223 2007-03-08  Bruno Haible  <bruno@clisp.org>
72224
72225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72226         instead of 'expr' invocations.
72227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72230         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72231         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72232         Suggested by Paul Eggert.
72233
72234 2007-03-08  Bruno Haible  <bruno@clisp.org>
72235
72236         * modules/fseterr-tests: New file.
72237         * tests/test-fseterr.c: New file.
72238
72239         * modules/fseterr: New file.
72240         * lib/fseterr.h: New file.
72241         * lib/fseterr.c: New file.
72242
72243 2007-03-08  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72246         * lib/getopt_.h: Likewise.
72247         * lib/mbswidth.h: Likewise.
72248         * lib/setenv.h: Likewise.
72249         * lib/vasnprintf.h: Likewise.
72250         * lib/vasprintf.h: Likewise.
72251         * lib/verror.h: Likewise.
72252         * lib/xsetenv.h: Likewise.
72253         * lib/xvasprintf.h: Likewise.
72254
72255 2007-03-08  Jim Meyering  <jim@meyering.net>
72256
72257         * users.txt: Add parted.
72258
72259         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72260
72261 2007-03-07  Bruno Haible  <bruno@clisp.org>
72262
72263         * m4/printf.m4: Make the shell script snippets copy&pastable.
72264
72265 2007-03-02  Bruno Haible  <bruno@clisp.org>
72266
72267         * lib/netinet_in_.h: New file.
72268         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72269         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72270         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72271         (Depends-on): Add absolute-header.
72272         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72273         into netinet/in.h.
72274
72275 2007-03-03  Bruno Haible  <bruno@clisp.org>
72276
72277         * lib/sys_select_.h: New file.
72278         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72279         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72280         * modules/sys_select (Files): Add lib/sys_select_.h.
72281         (Depends-on): Add absolute-header.
72282         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72283         into sys/select.h.
72284
72285 2007-03-02  Bruno Haible  <bruno@clisp.org>
72286
72287         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72288         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72289         values.
72290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72291         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72292         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72293         * modules/sys_socket (Depends-on): Add absolute-header.
72294         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72295         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72296         (Include): Remove requirement of inclusion of <sys/types.h>.
72297
72298 2007-03-02  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/byteswap_.h (bswap_32): Fix formula.
72301
72302 2007-03-06  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/sprintf-posix-tests: New file.
72305         * tests/test-sprintf-posix.c: New file.
72306
72307         * modules/sprintf-posix: New file.
72308         * lib/sprintf.c: New file.
72309         * m4/sprintf-posix.m4: New file.
72310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72311         REPLACE_SPRINTF.
72312         * lib/stdio_.h (sprintf): New declaration.
72313         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72314         REPLACE_SPRINTF.
72315
72316 2007-03-06  Bruno Haible  <bruno@clisp.org>
72317
72318         * modules/vsprintf-posix-tests: New file.
72319         * tests/test-vsprintf-posix.c: New file.
72320         * tests/test-sprintf-posix.h: New file.
72321
72322         * modules/vsprintf-posix: New file.
72323         * lib/vsprintf.c: New file.
72324         * m4/vsprintf-posix.m4: New file.
72325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72326         REPLACE_VSPRINTF.
72327         * lib/stdio_.h (vsprintf): New declaration.
72328         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72329         REPLACE_VSPRINTF.
72330
72331 2007-03-06  Bruno Haible  <bruno@clisp.org>
72332
72333         * modules/vsnprintf (Depend-on): Remove minmax.
72334
72335 2007-03-06  Bruno Haible  <bruno@clisp.org>
72336
72337         * modules/snprintf-posix-tests: New file.
72338         * tests/test-snprintf-posix.c: New file.
72339
72340         * modules/snprintf-posix: New file.
72341         * m4/snprintf-posix.m4: New file.
72342         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72343         gl_FUNC_SNPRINTF.
72344         (gl_FUNC_SNPRINTF): Invoke it.
72345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72346         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72347         is set.
72348         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72349
72350 2007-03-06  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/vsnprintf-posix-tests: New file.
72353         * tests/test-vsnprintf-posix.c: New file.
72354         * tests/test-snprintf-posix.h: New file.
72355
72356         * modules/vsnprintf-posix: New file.
72357         * m4/vsnprintf-posix.m4: New file.
72358         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72359         gl_FUNC_VSNPRINTF.
72360         (gl_FUNC_VSNPRINTF): Invoke it.
72361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72362         * lib/stdio_.h (vsnprintf): Define as a replacement if
72363         REPLACE_VSNPRINTF is set.
72364         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72365
72366 2007-03-06  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72370
72371 2007-03-06  Bruno Haible  <bruno@clisp.org>
72372
72373         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72374         (asinl): Declare also if HAVE_DECL_ASINL is set.
72375         (atanl): Declare also if HAVE_DECL_ATANL is set.
72376         (ceill): Declare also if HAVE_DECL_CEILL is set.
72377         (cosl): Declare also if HAVE_DECL_COSL is set.
72378         (expl): Declare also if HAVE_DECL_EXPL is set.
72379         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72380         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72381         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72382         (logl): Declare also if HAVE_DECL_LOGL is set.
72383         (sinl): Declare also if HAVE_DECL_SINL is set.
72384         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72385         (tanl): Declare also if HAVE_DECL_TANL is set.
72386         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72388         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72389         declaration of frexpl, ldexpl.
72390         * modules/printf-frexpl (Depends-on): Add math.
72391         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72392
72393 2007-03-05  Bruno Haible  <bruno@clisp.org>
72394
72395         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72396         frexpl and ldexpl are declared.
72397         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72398
72399 2007-03-05  Bruno Haible  <bruno@clisp.org>
72400
72401         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72402         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72403
72404 2007-03-05  Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/stdio_.h: Include <stddef.h>.
72407
72408 2007-03-05  Bruno Haible  <bruno@clisp.org>
72409
72410         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72411
72412 2007-03-05  Bruno Haible  <bruno@clisp.org>
72413
72414         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72415         NetBSD 4, from Ralf Wildenhues.
72416
72417 2007-03-04  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/vasprintf.h: Update #if logic for the case when the functions
72420         exist but are overridden.
72421
72422 2007-03-04  Bruno Haible  <bruno@clisp.org>
72423
72424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72425         implementations: glibc-2.4 and MacOS X 10.3.
72426         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72427         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72428         * tests/test-vasprintf-posix.c (test_function): Likewise.
72429
72430 2007-03-04  Bruno Haible  <bruno@clisp.org>
72431
72432         * modules/vasprintf-posix-tests: New file.
72433         * tests/test-vasprintf-posix.c: New file.
72434
72435         * modules/vasprintf-posix: New file.
72436         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72437         defined.
72438         * m4/vasprintf-posix.m4: New file.
72439         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72440         gl_FUNC_VASPRINTF.
72441         (gl_FUNC_VASPRINTF): Invoke it.
72442         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72443         here.
72444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72445
72446 2007-03-04  Bruno Haible  <bruno@clisp.org>
72447
72448         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72449         REPLACE_GETTIMEOFDAY.
72450         * modules/sys_time (Makefile.am): Likewise.
72451         * m4/sys_time_h.m4: Likewise.
72452         * m4/gettimeofday.m4: Likewise.
72453
72454 2007-03-04  Bruno Haible  <bruno@clisp.org>
72455
72456         * modules/vasnprintf-posix-tests: New file.
72457         * tests/test-vasnprintf-posix.c: New file.
72458
72459         * modules/vasnprintf-posix: New file.
72460         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72461         printf-frexpl.h.
72462         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72463         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72464         REPLACE_VASNPRINTF is defined.
72465         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72466         gl_FUNC_VASNPRINTF.
72467         (gl_FUNC_VASNPRINTF): Invoke it.
72468         * m4/vasnprintf-posix.m4: New file.
72469         * m4/printf.m4: New file.
72470
72471 2007-03-04  Bruno Haible  <bruno@clisp.org>
72472
72473         Compile progreloc.c only if --enable-relocatable is specified.
72474         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72475         if --enable-relocatable was specified.
72476         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72477         lib_SOURCES.
72478
72479 2007-03-04  Jim Meyering  <jim@meyering.net>
72480
72481         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72482         Use it consistently, rather than enumerating errno constants.
72483
72484 2007-03-04  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/xvasprintf-tests: New file.
72487         * tests/test-xvasprintf.c: New file.
72488
72489         * modules/vasprintf-tests: New file.
72490         * tests/test-vasprintf.c: New file.
72491
72492         * modules/vasnprintf-tests: New file.
72493         * tests/test-vasnprintf.c: New file.
72494
72495         * modules/vsnprintf-tests: New file.
72496         * tests/test-vsnprintf.c: New file.
72497
72498         * modules/snprintf-tests: New file.
72499         * tests/test-snprintf.c: New file.
72500
72501 2007-03-04  Bruno Haible  <bruno@clisp.org>
72502
72503         Compile relocatable.c only if --enable-relocatable is specified.
72504         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72505         gl_RELOCATABLE_LIBRARY.
72506         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72507         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72508         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72509         gl_RELOCATABLE_LIBRARY.
72510         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72511         (Makefile.am): Remove lib_SOURCES.
72512         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72513         gl_RELOCATABLE_LIBRARY.
72514         (Makefile.am): Remove lib_SOURCES.
72515         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72516         always.
72517         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72518         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72519
72520 2007-03-04  Bruno Haible  <bruno@clisp.org>
72521
72522         * modules/argmatch-tests: New file.
72523         * tests/test-argmatch.c: New file.
72524
72525         * tests/test-allocsa.c (main): Halve the number of loop runs.
72526
72527         * modules/alloca-opt-tests: New file.
72528         * tests/test-alloca-opt.c: New file.
72529
72530 2007-03-04  Jim Meyering  <jim@meyering.net>
72531
72532         Work around difference between Linux ACLs and Solaris 10 ZFS.
72533         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72534         for EINVAL.
72535
72536 2007-03-03  Bruno Haible  <bruno@clisp.org>
72537
72538         * modules/relocatable-prog (Depends-on): Add back progreloc's
72539         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72540
72541 2007-03-03  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72544         * modules/relocatable-lib: New file.
72545
72546 2007-03-03  Bruno Haible  <bruno@clisp.org>
72547
72548         * modules/relocatable-prog: Renamed from modules/relocatable.
72549         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72550
72551 2007-03-03  Bruno Haible  <bruno@clisp.org>
72552
72553         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72554         m4/relocatable-lib.m4.
72555         (Depends-on): Remove 'relocatable'.
72556         (configure.ac): Add gl_RELOCATABLE_NOP.
72557
72558 2007-03-03  Bruno Haible  <bruno@clisp.org>
72559
72560         * modules/relocatable-prog-wrapper: New file.
72561         * modules/relocatable (Depends-on): Add it. Remove all other
72562         dependencies except progname.
72563         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72564
72565         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72566         (gl_FUNC_STRERROR): Nop.
72567         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72568
72569         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72570         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72571
72572         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72573         (gl_FUNC_READLINK): Update.
72574
72575         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72576
72577 2007-03-03  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72580         * modules/xreadlink (Depends-on): Add unistd.
72581         * modules/xreadlink-with-size (Depends-on): Likewise.
72582
72583 2007-03-03  Bruno Haible  <bruno@clisp.org>
72584
72585         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72586         extracted from gt_FUNC_SETENV.
72587         (gt_FUNC_SETENV): Remove macro.
72588         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72589         remove gt_FUNC_SETENV.
72590
72591 2007-03-03  Bruno Haible  <bruno@clisp.org>
72592
72593         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72594         ENABLE_RELOCATABLE here.
72595         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72596
72597 2007-03-03  Bruno Haible  <bruno@clisp.org>
72598
72599         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72600         * tests/test-rbtreehash_list.c: Include progname.h.
72601         (main): Call set_program_name.
72602
72603         * modules/rbtree-oset-tests (Depends-on): Add progname.
72604         * tests/test-rbtree_oset.c: Include progname.h.
72605         (main): Call set_program_name.
72606
72607         * modules/rbtree-list-tests (Depends-on): Add progname.
72608         * tests/test-rbtree_list.c: Include progname.h.
72609         (main): Call set_program_name.
72610
72611         * modules/linked-list-tests (Depends-on): Add progname.
72612         * tests/test-linked_list.c: Include progname.h.
72613         (main): Call set_program_name.
72614
72615 2007-03-03  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72618         All uses of __restrict changed to _Restrict_.
72619         * lib/glob_.h (__restrict): Remove macro.
72620
72621 2007-03-02  Bruno Haible  <bruno@clisp.org>
72622
72623         * modules/gettext (configure.ac): Require gettext infrastructure
72624         from version 0.16.1.
72625
72626 2007-03-02  Bruno Haible  <bruno@clisp.org>
72627
72628         * modules/linkedhash-list-tests (Depends-on): Add progname.
72629         * tests/test-linkedhash_list.c: Include progname.h.
72630         (main): Call set_program_name.
72631
72632         * modules/carray-list-tests (Depends-on): Add progname.
72633         * tests/test-carray_list.c: Include progname.h.
72634         (main): Call set_program_name.
72635
72636         * modules/avltreehash-list-tests (Depends-on): Add progname.
72637         * tests/test-avltreehash_list.c: Include progname.h.
72638         (main): Call set_program_name.
72639
72640         * modules/avltree-oset-tests (Depends-on): Add progname.
72641         * tests/test-avltree_oset.c: Include progname.h.
72642         (main): Call set_program_name.
72643
72644         * modules/avltree-list-tests (Depends-on): Add progname.
72645         * tests/test-avltree_list.c: Include progname.h.
72646         (main): Call set_program_name.
72647
72648         * modules/array-oset-tests (Depends-on): Add progname.
72649         * tests/test-array_oset.c: Include progname.h.
72650         (main): Call set_program_name.
72651
72652         * modules/array-list-tests (Depends-on): Add progname.
72653         * tests/test-array_list.c: Include progname.h.
72654         (main): Call set_program_name.
72655
72656         * modules/argp-tests (Depends-on): Add progname.
72657         * tests/test-argp.c: Include argp.h first. Include progname.h.
72658         (main): Call set_program_name.
72659
72660 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * doc/gnulib-tool.texi (Initial import): Reword description of
72663         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72664         limited effect even if defined after the first system include.
72665
72666 2007-03-01  Bruno Haible  <bruno@clisp.org>
72667
72668         * build-aux/config.libpath: Update to libtool-1.5.22.
72669         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72670
72671 2007-03-01  Bruno Haible  <bruno@clisp.org>
72672
72673         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72674         foo_CFLAGS.
72675         Reported by Ralf Wildenhues.
72676
72677 2007-03-01  Bruno Haible  <bruno@clisp.org>
72678
72679         * build-aux/install-reloc: Remove object files left over by some
72680         compilers.
72681         Reported by Ralf Wildenhues.
72682
72683 2007-03-01  Bruno Haible  <bruno@clisp.org>
72684
72685         * build-aux/install-reloc: Break long lines.
72686
72687 2007-03-01  Bruno Haible  <bruno@clisp.org>
72688
72689         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72690         Reported by Ralf Wildenhues.
72691
72692 2007-03-01  Bruno Haible  <bruno@clisp.org>
72693
72694         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72695         include ordering constraints.
72696
72697 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72698
72699         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72701         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72702         as another example.
72703         * lib/time_.h: Fix misspelling.
72704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72705         Require gl_HEADER_TIME_H_DEFAULTS.
72706         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72707         * m4/time_r.m4 (gl_TIME_R): Likewise.
72708         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72709
72710 2007-03-01  Bruno Haible  <bruno@clisp.org>
72711
72712         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72713         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72714
72715 2007-03-01  Jim Meyering  <jim@meyering.net>
72716
72717         * modules/xreadlink (Maintainer): Add my name.
72718         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72719
72720 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72721             Bruno Haible  <bruno@clisp.org>
72722
72723         * build-aux/install-reloc: Compile also c-ctype.c.
72724         * build-aux/relocatable.sh.in: New file.
72725         * doc/relocatable.texi: New file.
72726         * doc/relocatable-maint.texi: New file.
72727         * doc/gnulib.texi: Include relocatable-maint.texi.
72728         * lib/progreloc.c: Include unistd.h unconditionally.
72729         * lib/relocwrapper.c: Include unistd.h unconditionally.
72730         Include c-ctype.h.
72731         (add_dotbin): Use c_tolower.
72732         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72733         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72734         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72735         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72736         to m4/relocatable-lib.m4.
72737         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72738         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72739         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72740         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72741         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72742         * modules/relocatable: New file.
72743         * modules/relocatable-lib: New file.
72744         * modules/relocatable-script: New file.
72745
72746 2007-02-28  Bruno Haible  <bruno@clisp.org>
72747
72748         Import --enable-relocatable infrastructure.
72749         * build-aux/config.libpath: New file, from GNU gettext.
72750         * build-aux/install-reloc: New file, from GNU gettext.
72751         * build-aux/reloc-ldflags: New file, from GNU gettext.
72752         * lib/relocatable.h: New file, from GNU gettext.
72753         * lib/relocatable.c: New file, from GNU gettext.
72754         * lib/relocwrapper.c: New file, from GNU gettext.
72755         * m4/relocatable.m4: New file, from GNU gettext.
72756
72757 2007-02-28  Bruno Haible  <bruno@clisp.org>
72758
72759         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72760
72761         * modules/xreadlink: New file, from GNU gettext with modifications.
72762         * lib/xreadlink.c: New file, from GNU gettext.
72763         * lib/xreadlink.h: Add comments.
72764         (xreadlink): New declaration.
72765
72766         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72767         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72768         lib/xreadlink-with-size.c.
72769         (configure.ac): Remove gl_XREADLINK invocation.
72770         (Makefile.am): Augment lib_SOURCES.
72771         * m4/xreadlink.m4: Remove file.
72772         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72773         (xreadlink_with_size): Renamed from xreadink.
72774         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72775         * modules/canonicalize (Depends-on): Replace xreadlink with
72776         xreadlink-with-size.
72777         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72778
72779 2007-02-25  Jim Meyering  <jim@meyering.net>
72780
72781         * build-aux/announce-gen: When complaining about excess arguments,
72782         list them.
72783
72784 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         * README: Document signed integer overflow situation more
72787         accurately.
72788
72789 2007-02-25  Bruno Haible  <bruno@clisp.org>
72790
72791         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72792         'a' or 'A' conversion.
72793
72794 2007-02-25  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/filename: Renamed from modules/pathname.
72797         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72798         lib/concatpath.c with lib/concat-filename.c.
72799         (Makefile.am): Update.
72800         (Include): Replace pathname.h with filename.h.
72801         * lib/filename.h: Renamed from lib/pathname.h.
72802         (concatenated_filename): Renamed from concatenated_pathname.
72803         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72804         (concatenated_filename): Renamed from concatenated_pathname.
72805         * lib/findprog.c: Include filename.h instead of pathname.h.
72806         (find_in_path): Update.
72807         * lib/javacomp.c: Include filename.h instead of pathname.h.
72808         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72809         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72810         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72811         is_oldgcj_14_13_usable, is_javac_usable): Update.
72812         * lib/javaexec.c: Include filename.h instead of pathname.h.
72813         (execute_java_class): Update.
72814         * modules/findprog: Update.
72815         * modules/javacomp: Update.
72816         * modules/javaexec: Update.
72817         * MODULES.html.sh (File system functions): Add 'filename', remove
72818         'pathname'.
72819
72820 2007-02-25  Bruno Haible  <bruno@clisp.org>
72821
72822         * modules/printf-frexpl-tests: New file.
72823         * tests/test-printf-frexpl.c: New file.
72824
72825         * modules/printf-frexpl: New file.
72826         * lib/printf-frexpl.h: New file.
72827         * lib/printf-frexpl.c: New file.
72828         * m4/printf-frexpl.m4: New file.
72829
72830 2007-02-25  Bruno Haible  <bruno@clisp.org>
72831
72832         * modules/printf-frexp-tests: New file.
72833         * tests/test-printf-frexp.c: New file.
72834
72835         * modules/printf-frexp: New file.
72836         * lib/printf-frexp.h: New file.
72837         * lib/printf-frexp.c: New file.
72838         * m4/printf-frexp.m4: New file.
72839
72840 2007-02-25  Bruno Haible  <bruno@clisp.org>
72841
72842         Assume automake >= 1.10 for the tests.
72843         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72844         * modules/arctwo-tests: Likewise.
72845         * modules/argp-tests: Likewise.
72846         * modules/avltree-list-tests: Likewise.
72847         * modules/avltree-oset-tests: Likewise.
72848         * modules/avltreehash-list-tests: Likewise.
72849         * modules/carray-list-tests: Likewise.
72850         * modules/crc-tests: Likewise.
72851         * modules/des-tests: Likewise.
72852         * modules/gc-arcfour-tests: Likewise.
72853         * modules/gc-arctwo-tests: Likewise.
72854         * modules/gc-des-tests: Likewise.
72855         * modules/gc-hmac-md5-tests: Likewise.
72856         * modules/gc-hmac-sha1-tests: Likewise.
72857         * modules/gc-md2-tests: Likewise.
72858         * modules/gc-md4-tests: Likewise.
72859         * modules/gc-md5-tests: Likewise.
72860         * modules/gc-pbkdf2-sha1-tests: Likewise.
72861         * modules/gc-rijndael-tests: Likewise.
72862         * modules/gc-sha1-tests: Likewise.
72863         * modules/gc-tests: Likewise.
72864         * modules/getaddrinfo-tests: Likewise.
72865         * modules/hmac-md5-tests: Likewise.
72866         * modules/hmac-sha1-tests: Likewise.
72867         * modules/linked-list-tests: Likewise.
72868         * modules/linkedhash-list-tests: Likewise.
72869         * modules/lock-tests: Likewise.
72870         * modules/md2-tests: Likewise.
72871         * modules/md4-tests: Likewise.
72872         * modules/md5-tests: Likewise.
72873         * modules/rbtree-list-tests: Likewise.
72874         * modules/rbtree-oset-tests: Likewise.
72875         * modules/rbtreehash-list-tests: Likewise.
72876         * modules/read-file-tests: Likewise.
72877         * modules/rijndael-tests: Likewise.
72878         * modules/stdint-tests: Likewise.
72879         * modules/tls-tests: Likewise.
72880
72881 2007-02-24  Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72884         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72885         function; instead check whether isnan with a double argument links.
72886         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72887         function; instead check whether isnan with a 'long double' argument
72888         links.
72889         Reported by Eric Blake <ebb9@byu.net>.
72890
72891 2007-02-24  Bruno Haible  <bruno@clisp.org>
72892
72893         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72894         defined.
72895         * lib/isnanl.c: Remove all code. Just include isnan.c.
72896         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72897
72898 2007-02-25  Jim Meyering  <jim@meyering.net>
72899
72900         Avoid conflicting types for 'unsetenv' on FreeBSD.
72901         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72902         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72903         in stdlib.h.
72904
72905 2007-02-24  Bruno Haible  <bruno@clisp.org>
72906
72907         * modules/isnanl-nolibm-tests: New file.
72908         * tests/test-isnanl.c: New file.
72909
72910         * modules/isnanl-nolibm: New file.
72911         * lib/isnanl.h: New file.
72912         * lib/isnanl.c: New file.
72913         * m4/isnanl.m4: New file.
72914
72915 2007-02-24  Bruno Haible  <bruno@clisp.org>
72916
72917         * modules/isnan-nolibm-tests: New file.
72918         * tests/test-isnan.c: New file.
72919
72920         * modules/isnan-nolibm: New file.
72921         * lib/isnan.h: New file.
72922         * lib/isnan.c: New file.
72923         * m4/isnan.m4: New file.
72924
72925 2007-02-24  Bruno Haible  <bruno@clisp.org>
72926
72927         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72928         assume that an exponent fits in 20 bits.
72929
72930 2007-02-24  Jim Meyering  <jim@meyering.net>
72931
72932         * m4/regex.m4: Update the description of the configure-time option,
72933         --without-included-regex, to state accurately what the defaults are,
72934         and perhaps to give people an idea why using this option is risky.
72935
72936 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72939         loops on small arguments.  This attempts to avoid the problem
72940         Bruno Haible reported for AIX 4.3.2 in
72941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72942
72943 2007-02-23  Bruno Haible  <bruno@clisp.org>
72944
72945         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72946         Needed for help2man.
72947
72948 2007-02-23  Karl Berry  <karl@gnu.org>
72949
72950         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72951         exists, foo.h should be cvs-ignored, not committed.
72952
72953 2007-02-23  Eric Blake  <ebb9@byu.net>
72954
72955         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72956         * lib/stat-time.h (includes): Likewise.
72957         * lib/utimecmp.c (includes): Likewise.
72958         * lib/utimens.h (includes): Likewise.
72959         * lib/getdate.y (includes): Also include "timespec.h" for use
72960         internal to the module.
72961         * modules/utimens (Depends-on): Revert yesterday's patch.
72962         * modules/nanosleep (Depends-on): Add missing dependency.
72963
72964 2007-02-22  Bruno Haible  <bruno@clisp.org>
72965
72966         * lib/glob.c: Don't include getlogin_r.h.
72967
72968 2007-02-22  Jim Meyering  <jim@meyering.net>
72969
72970         * modules/utimens (Depends-on): Add timespec, required for
72971         utimens.h's inclusion of timespec.h.
72972
72973 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72974
72975         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72976         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72977         Schwab in
72978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72979         I'll try to think of a better way to fix the Solaris problem.
72980
72981         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72982         like glibc; on Solaris 10, it fails with errno == EINVAL.
72983         POSIX says the behavior is unspecified if the first argument is NULL,
72984         so play it safe and never pass NULL to the system getcwd.
72985
72986 2007-02-21  Jim Meyering  <jim@meyering.net>
72987
72988         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72989         of gettimeofday.  It would conflict with the one now always
72990         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72991         an IRIX 6.5 build failure.
72992
72993 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         Minor fixups to port to Solaris 10 with Sun C 5.8.
72996         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72997         * modules/getcwd (Depends-on): Add dirfd.
72998         * lib/putenv.c (putenv): #undef it.
72999         (rpl_putenv): New decl.
73000         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73001
73002 2007-02-20  Bruno Haible  <bruno@clisp.org>
73003
73004         * modules/stdio-tests: New file.
73005         * tests/test-stdio.c: New file.
73006
73007         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73008         (Depends-on): Add stdio.
73009         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73010         (Include): Use <stdio.h> instead of vsnprintf.h.
73011         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73012         HAVE_DECL_VSNPRINTF.
73013         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73014
73015         * modules/snprintf (Files): Remove lib/snprintf.h.
73016         (Depends-on): Add stdio.
73017         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73018         (Include): Use <stdio.h> instead of snprintf.h.
73019         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73020         HAVE_DECL_SNPRINTF.
73021         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73022         * lib/getaddrinfo.c: Likewise.
73023
73024         * modules/stdio: New file.
73025         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73026         * lib/snprintf.h: Remove file.
73027         * lib/vsnprintf.h: Remove file.
73028         * lib/.cppi-disable: Remove snprintf.h.
73029         * m4/stdio_h.m4: New file.
73030         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73031
73032 2007-02-20  Jim Meyering  <jim@meyering.net>
73033
73034         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73035         used by e.g., mingw.  From Bruno Haible.
73036
73037 2007-02-19  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73040         warnings.
73041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73042
73043 2007-02-19  Bruno Haible  <bruno@clisp.org>
73044
73045         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73046         from mingw users.
73047
73048 2007-02-19  Bruno Haible  <bruno@clisp.org>
73049
73050         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73051         warnings.
73052         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73053
73054 2007-02-19  Jim Meyering  <jim@meyering.net>
73055
73056         Don't use FD after a successful "fdopendir (fd)".
73057         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73058         Reset it by calling dirfd on the just-obtained DIR*.
73059
73060         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73061         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73062
73063 2007-02-18  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/readlink.c: Include <unistd.h>.
73066         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73067         HAVE_READLINK.
73068         * modules/readlink (Depends-on): Add unistd.
73069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73070         (Include): Add <unistd.h>.
73071
73072         * lib/getlogin_r.h: Remove file.
73073         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73074         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73075         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73076         HAVE_DECL_GETLOGIN_R.
73077         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73078         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73079         (Include): Use <unistd.h> instead of getlogin_r.h.
73080
73081         * lib/getcwd.h: Remove file.
73082         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73083         * lib/xgetcwd.c: Likewise.
73084         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73085         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73086         * modules/getcwd (Files): Remove lib/getcwd.h.
73087         (Depends-on): Add unistd.
73088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73089         (Include): Use <unistd.h> instad of getcwd.h.
73090
73091         * lib/ftruncate.c: Include <unistd.h> first.
73092         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73093         Set HAVE_FTRUNCATE.
73094         * modules/ftruncate (Depends-on): Add unistd.
73095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73096
73097         * lib/fchdir.c: Include <unistd.h> first.
73098         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73100         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73101         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73102         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73103
73104         * lib/dup2.c: Include <unistd.h> first.
73105         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73106         HAVE_DUP2.
73107         * modules/dup2 (Depends-on): Add unistd.
73108         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73109
73110         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73111         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73112         REPLACE_CHOWN. Don't define chown as a macro here.
73113         * modules/chown (Depends-on): Add unistd.
73114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73115
73116         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73117         Add definition for GL_LINK_WARNING.
73118         (chown, dup2): New declarations.
73119         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73120         link warning.
73121         (ftruncate): New declaration.
73122         (getcwd): New declaration, taken from old getcwd.h.
73123         (getlogin_r): New declaration, taken from old getlogin_r.h.
73124         (readlink): New declaration.
73125         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73126         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73127         (gl_PREREQ_UNISTD): Remove macro.
73128         (gl_UNISTD_MODULE_INDICATOR): New macro.
73129         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73130         many new variables. Don't set UNISTD_H.
73131         * modules/unistd (Description): Change.
73132         (Depends-on): Add link-warning.
73133         (configure.ac): Update.
73134         (Makefile.am): Create unistd.h always. Substitute many new variables
73135         into it.
73136
73137 2007-02-18  Bruno Haible  <bruno@clisp.org>
73138
73139         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73140         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73141         HAVE_GETSUBOPT.
73142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73143         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73144         * lib/getsubopt.h: Remove file.
73145         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73146         (Depends-on): Add stdlib.
73147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73148         (Includes): Use <stdlib.h> instead of getsubopt.h.
73149         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73150         Set HAVE_GETSUBOPT.
73151         * lib/getsubopt.c: Don't include getsubopt.h.
73152
73153 2007-02-18  Bruno Haible  <bruno@clisp.org>
73154
73155         * modules/fchdir (Depends-on): Add dup2.
73156
73157 2007-02-18  Bruno Haible  <bruno@clisp.org>
73158
73159         * lib/stdlib_.h: Handle glibc's special invocation convention
73160         specially.
73161
73162 2007-02-18  Bruno Haible  <bruno@clisp.org>
73163
73164         * modules/stdlib-tests: New file.
73165         * tests/test-stdlib.c: New file.
73166
73167         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73168         (Depends-on): Add stdlib.
73169         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73170         (Includes): Use <stdlib.h> instead of mkstemp.h.
73171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73172         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73173         * lib/mkstemp.c: Don't include mkstemp.h.
73174         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73175         * lib/stdlib--.h: Don't include mkstemp.h.
73176
73177         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73178         (Depends-on): Add stdlib.
73179         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73180         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73181         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73182         HAVE_MKDTEMP.
73183         * lib/mkdtemp.c: Don't include mkdtemp.h.
73184         * lib/clean-temp.c: Don't include mkdtemp.h.
73185
73186         * modules/exit (Files): Remove lib/exit.h.
73187         (Depends-on): Add stdlib.
73188         (Makefile.am): Remove lib_SOURCES.
73189         (Include): Use <stdlib.h> instead of exit.h.
73190         * lib/argmatch.c: Don't include exit.h.
73191         * lib/execute.c: Likewise.
73192         * lib/pagealign_alloc.c: Likewise.
73193         * lib/pipe.c: Likewise.
73194         * lib/wait-process.c: Likewise.
73195         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73196         * lib/exitfail.c: Likewise.
73197         * lib/savewd.c: Likewise.
73198         * lib/xsetenv.c: Likewise.
73199
73200         * modules/stdlib: New file.
73201         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73202         and extra comments about mkstemp().
73203         * lib/exit.h: Remove file.
73204         * lib/mkdtemp.h: Remove file.
73205         * lib/mkstemp.h: Remove file.
73206         * m4/stdlib_h.m4: New file.
73207         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73208
73209 2007-02-18  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/math-tests: New file.
73212         * tests/test-math.c: New file.
73213
73214         * modules/math: New file.
73215         * modules/mathl (Files): Remove lib/mathl.h.
73216         (Depends-on): Add math.
73217         (Makefile.am): Don't mention mathl.h.
73218         (Include): Use <math.h> instead of mathl.h.
73219         * lib/math_.h: New file.
73220         * lib/mathl.h: Remove file.
73221         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73222         mathl.h.
73223         * lib/asinl.c: Likewise.
73224         * lib/atanl.c: Likewise.
73225         * lib/ceill.c: Likewise.
73226         * lib/cosl.c: Likewise.
73227         * lib/expl.c: Likewise.
73228         * lib/floorl.c: Likewise.
73229         * lib/frexpl.c: Likewise.
73230         * lib/ldexpl.c: Likewise.
73231         * lib/logl.c: Likewise.
73232         * lib/sincosl.c: Likewise.
73233         * lib/sinl.c: Likewise.
73234         * lib/sqrtl.c: Likewise.
73235         * lib/tanl.c: Likewise.
73236         * lib/trigl.c: Likewise.
73237         * m4/math_h.m4: New file.
73238         * MODULES.html.sh (Mathematics): Add math.
73239
73240 2007-02-17  Bruno Haible  <bruno@clisp.org>
73241
73242         * modules/wctype-tests: New file.
73243         * tests/test-wctype.c: New file.
73244
73245         * modules/wchar-tests: New file.
73246         * tests/test-wchar.c: New file.
73247
73248         * modules/unistd-tests: New file.
73249         * tests/test-unistd.c: New file.
73250
73251         * modules/time-tests: New file.
73252         * tests/test-time.c: New file.
73253
73254         * modules/sysexits-tests: New file.
73255         * tests/test-sysexits.c: New file.
73256
73257         * modules/sys_time-tests: New file.
73258         * tests/test-sys_time.c: New file.
73259
73260         * modules/sys_stat-tests: New file.
73261         * tests/test-sys_stat.c: New file.
73262
73263         * modules/sys_socket-tests: New file.
73264         * tests/test-sys_socket.c: New file.
73265
73266         * modules/sys_select-tests: New file.
73267         * tests/test-sys_select.c: New file.
73268
73269         * modules/string-tests: New file.
73270         * tests/test-string.c: New file.
73271
73272         * modules/stdbool-tests: New file.
73273         * tests/test-stdbool.c: New file.
73274
73275         * modules/netinet_in-tests: New file.
73276         * tests/test-netinet_in.c: New file.
73277
73278         * modules/inttypes-tests: New file.
73279         * tests/test-inttypes.c: New file.
73280
73281         * modules/fcntl-tests: New file.
73282         * tests/test-fcntl.c: New file.
73283
73284         * modules/byteswap-tests: New file.
73285         * tests/test-byteswap.c: New file.
73286
73287         * modules/arpa_inet-tests: New file.
73288         * tests/test-arpa_inet.c: New file.
73289
73290 2007-02-17  Bruno Haible  <bruno@clisp.org>
73291
73292         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73293         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73294         if the corresponding module is not enabled. Emit link warnings if
73295         the function is used nevertheless.
73296         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73297         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73298         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73299         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73300         * modules/inttypes (Depends-on): Add link-warning.
73301         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73302         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73303         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73304         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73305         * modules/imaxdiv (configure.ac): Likewise.
73306         * modules/strtoimax (configure.ac): Likewise.
73307         * modules/strtoumax (configure.ac): Likewise.
73308
73309 2007-02-17  Bruno Haible  <bruno@clisp.org>
73310
73311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73312         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73313         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73314         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73315
73316 2007-02-17  Bruno Haible  <bruno@clisp.org>
73317
73318         * modules/link-warning: New file.
73319         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73320         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73321         * modules/string (Depends-on): Add link-warning.
73322         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73323         string.h.
73324         * MODULES.html.sh (Support for building libraries and executables): Add
73325         link-warning.
73326
73327 2007-02-17  Bruno Haible  <bruno@clisp.org>
73328
73329         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73330         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73331         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73332         long lines.
73333
73334 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73335             Bruno Haible  <bruno@clisp.org>
73336
73337         * modules/tmpfile: New file.
73338         * lib/tmpfile.c: New file.
73339         * m4/tmpfile.m4: New file.
73340         * MODULES.html.sh (func_all_modules): New section "Input/output".
73341
73342 2007-02-15  Bruno Haible  <bruno@clisp.org>
73343
73344         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73345         (supports_delete_on_close): New function.
73346         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73347
73348 2007-02-14  Bruno Haible  <bruno@clisp.org>
73349
73350         * modules/mbspcasecmp-tests: New file.
73351         * tests/test-mbspcasecmp.sh: New file.
73352         * tests/test-mbspcasecmp.c: New file.
73353
73354         New module mbspcasecmp.
73355         * modules/mbspcasecmp: New file.
73356         * lib/mbspcasecmp.c: New file.
73357         * lib/string_.h (strncasecmp): Change warning message.
73358         (mbspcasecmp): New declaration.
73359         * m4/mbspcasecmp.m4: New file.
73360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73361         GNULIB_MBSPCASECMP.
73362         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73363         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73364
73365 2007-02-14  Bruno Haible  <bruno@clisp.org>
73366
73367         * modules/mbsncasecmp-tests: New file.
73368         * tests/test-mbsncasecmp.sh: New file.
73369         * tests/test-mbsncasecmp.c: New file.
73370
73371         New module mbsncasecmp.
73372         * modules/mbsncasecmp: New file.
73373         * lib/mbsncasecmp.c: New file.
73374         * lib/string_.h (mbsncasecmp): New declaration.
73375         * m4/mbsncasecmp.m4: New file.
73376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73377         GNULIB_MBSNCASECMP.
73378         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73379         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73380
73381 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73384         Verify that it doesn't overlap with our flags.
73385         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73386         do not have the desired effect in multibyte locales; instead, use
73387         mbscasecmp.
73388         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73389         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73390         we don't require GNU fnmatch ourselves (if our users require it, they
73391         should do so explicitly).
73392
73393         Fix regex code so it doesn't rely on strcasecmp.
73394         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73395         Otherwise, include gnulib's langinfo.h.
73396         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73397         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73398         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73399         * modules/regex (FILES): Remove m4/codeset.m4.
73400         (Depends-on): Add localcharset.  Remove strcase.
73401
73402 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73403
73404         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73405         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73406
73407 2007-02-13  Bruno Haible  <bruno@clisp.org>
73408
73409         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73411
73412 2007-02-12  Bruno Haible  <bruno@clisp.org>
73413
73414         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73415         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73416         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73417         time warning rather than a link error.
73418
73419 2007-02-12  Bruno Haible  <bruno@clisp.org>
73420
73421         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73422         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73423         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73424
73425 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73428         args, not 2.
73429
73430 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73431
73432         New module 'time', so that apps can include <time.h> as per
73433         POSIX and GNU instead of separate include files like time_r.h
73434         and timegm.h.  This implementation tries out a simpler approach
73435         for replacing decls in standard include files (as compared to
73436         the string module), somewhat as an experiment.
73437
73438         * config/srclist.txt: Comment out mktime.c for now.
73439         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73440         since it doesn't apply any more.  Use generic wording instead.
73441         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73442         'time'.
73443         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73444         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73445         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73446         Don't include <sys/types.h>; no longer needed since we assume C89.
73447         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73448         * lib/strftime.c: Likewise.
73449         * lib/time_r.c: Likewise.
73450         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73451         * lib/nanosleep.c: Include <time.h> first, to check interface.
73452         * lib/strptime.c: Likewise.
73453         * lib/time_r.c: Likewise.
73454         * lib/timegm.c: Likewise.
73455         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73456         needed.
73457         * lib/timegm.c: Don't include timegm.h; no longer needed.
73458         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73459         time.h now handles any problems in that area.
73460         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73461         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73462         that time.h defines struct timespec.
73463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73464         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73465         handles that.
73466         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73467         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73468         needed.  Set REPLACE_LOCALTIME.
73469         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73470         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73471         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73472         nanosleep; time_h.m4 now does that.  Don't require
73473         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73474         module handles this now.
73475         * modules/getdate (Depends-on): Remove timespec.  Add time.
73476         * modules/nanosleep (Depends-on): Likewise.
73477         * modules/stat-time (Depends-on): Likewise.
73478         * modules/nanosleep (Include): Include time.h, not timespec.h.
73479         * modules/strptime (Files): Remove lib/strptime.h.
73480         (Depends-on): Add extensions, time.
73481         (Include): Include time.h, not strptime.h.
73482         * modules/time_r (Files): Remove lib/time_r.h.
73483         (Depends-on): Add time.
73484         (Include): Include time.h, not time_r.h.
73485         * modules/timegm: Likewise.
73486         * modules/timespec (Description): Now does timespec-related decls
73487         of our own, instead of struct timespec itself.
73488         (Depends-on): Add time; remove extensions.
73489         (Maintainer): Add self.
73490         * modules/utimecmp (Depends-on): Add time; remove timespec.
73491         * modules/utimens (Depends-on): Likewise.
73492         * modules/xnanosleep (Depends-on): Likewise.
73493
73494 2007-02-11  Bruno Haible  <bruno@clisp.org>
73495
73496         * lib/c-strstr.c: Include allocsa.h.
73497         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73498         * lib/c-strcasestr.c: Include allocsa.h.
73499         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73500         * lib/strcasestr.c: Include allocsa.h.
73501         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73502         * lib/mbsstr.c: Include allocsa.h.
73503         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73504         allocsa/freesa instead of malloc/free.
73505         * lib/mbscasestr.c: Include allocsa.h.
73506         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73507         allocsa/freesa instead of malloc/free.
73508         * modules/c-strstr (Depends-on): Add allocsa.
73509         * modules/c-strcasestr (Depends-on): Likewise.
73510         * modules/strcasestr (Depends-on): Likewise.
73511         * modules/mbsstr (Depends-on): Likewise.
73512         * modules/mbscasestr (Depends-on): Likewise.
73513
73514 2007-02-11  Bruno Haible  <bruno@clisp.org>
73515
73516         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73517
73518         * modules/mbsspn-tests: New file.
73519         * tests/test-mbsspn.sh: New file.
73520         * tests/test-mbsspn.c: New file.
73521
73522 2007-02-11  Bruno Haible  <bruno@clisp.org>
73523
73524         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73525
73526         * modules/mbspbrk-tests: New file.
73527         * tests/test-mbspbrk.sh: New file.
73528         * tests/test-mbspbrk.c: New file.
73529
73530 2007-02-11  Bruno Haible  <bruno@clisp.org>
73531
73532         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73533         unneeded cast.
73534
73535         * modules/mbscspn-tests: New file.
73536         * tests/test-mbscspn.sh: New file.
73537         * tests/test-mbscspn.c: New file.
73538
73539 2007-02-11  Bruno Haible  <bruno@clisp.org>
73540
73541         * modules/mbscasecmp-tests: New file.
73542         * tests/test-mbscasecmp.sh: New file.
73543         * tests/test-mbscasecmp.c: New file.
73544
73545 2007-02-11  Bruno Haible  <bruno@clisp.org>
73546
73547         Ensure O(n) worst-case complexity of mbscasestr.
73548         * lib/mbscasestr.c: Include stdbool.h.
73549         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73550         functions.
73551         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73552         the bookkeeping indicates that it's worth it.
73553         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73554
73555         * modules/mbscasestr-tests: New file.
73556         * tests/test-mbscasestr1.c: New file.
73557         * tests/test-mbscasestr2.sh: New file.
73558         * tests/test-mbscasestr2.c: New file.
73559         * tests/test-mbscasestr3.sh: New file.
73560         * tests/test-mbscasestr3.c: New file.
73561         * tests/test-mbscasestr4.sh: New file.
73562         * tests/test-mbscasestr4.c: New file.
73563         * m4/locale-tr.m4: New file.
73564
73565 2007-02-11  Bruno Haible  <bruno@clisp.org>
73566
73567         Ensure O(n) worst-case complexity of mbsstr.
73568         * lib/mbsstr.c: Include stdbool.h.
73569         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73570         functions.
73571         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73572         bookkeeping indicates that it's worth it.
73573         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73574
73575         * modules/mbsstr-tests: New file.
73576         * tests/test-mbsstr1.c: New file.
73577         * tests/test-mbsstr2.sh: New file.
73578         * tests/test-mbsstr2.c: New file.
73579         * tests/test-mbsstr3.sh: New file.
73580         * tests/test-mbsstr3.c: New file.
73581         * m4/locale-fr.m4: New file.
73582
73583 2007-02-11  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/mbsrchr.c (mbsrchr): Fix bug.
73586
73587         * modules/mbsrchr-tests: New file.
73588         * tests/test-mbsrchr.sh: New file.
73589         * tests/test-mbsrchr.c: New file.
73590
73591 2007-02-11  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/mbschr.c (mbschr): Fix bug.
73594
73595         * modules/mbschr-tests: New file.
73596         * tests/test-mbschr.sh: New file.
73597         * tests/test-mbschr.c: New file.
73598         * m4/locale-zh.m4: New file.
73599
73600 2007-02-11  Bruno Haible  <bruno@clisp.org>
73601
73602         Support for copying multibyte string iterators.
73603         * lib/mbiter.h: Include <string.h>.
73604         (mbiter_multi_copy): New function.
73605         (mbi_copy): New macro.
73606         * lib/mbuiter.h: Include <string.h>.
73607         (mbuiter_multi_copy): New function.
73608         (mbui_copy): New macro.
73609
73610 2007-02-11  Bruno Haible  <bruno@clisp.org>
73611
73612         New module mbslen.
73613         * modules/mbslen: New file.
73614         * lib/mbslen.c: New file.
73615         * lib/string_.h (mbslen): New declaration.
73616         * m4/mbslen.m4: New file.
73617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73618         GNULIB_MBSLEN.
73619         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73620         * MODULES.html.sh (Internationalization functions): Add mbslen.
73621
73622 2007-02-11  Bruno Haible  <bruno@clisp.org>
73623
73624         Ensure O(n) worst-case complexity of strcasestr substitute.
73625         * lib/strcasestr.c: Include stdbool.h.
73626         (knuth_morris_pratt): New function.
73627         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73628         bookkeeping indicates that it's worth it.
73629         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73630
73631         * modules/strcasestr-tests: New file.
73632         * tests/test-strcasestr.c: New file.
73633
73634 2007-02-11  Bruno Haible  <bruno@clisp.org>
73635
73636         Ensure O(n) worst-case complexity of c_strcasestr.
73637         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73638         (knuth_morris_pratt): New function.
73639         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73640         the bookkeeping indicates that it's worth it.
73641         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73642
73643         * modules/c-strcasestr-tests: New file.
73644         * tests/test-c-strcasestr.c: New file.
73645
73646 2007-02-11  Bruno Haible  <bruno@clisp.org>
73647
73648         Ensure O(n) worst-case complexity of c_strstr.
73649         * lib/c-strstr.c: Include stdbool.h, string.h.
73650         (knuth_morris_pratt): New function.
73651         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73652         bookkeeping indicates that it's worth it.
73653         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73654
73655         * lib/c-strstr.c: Complete rewrite for maintainability.
73656
73657         * modules/c-strstr-tests: New file.
73658         * tests/test-c-strstr.c: New file.
73659
73660 2007-02-11  Bruno Haible  <bruno@clisp.org>
73661
73662         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73663         5.2.1 and earlier, whereby \055 was treated just like the range
73664         delimiter '-'.
73665         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73666
73667 2007-02-08  Bruno Haible  <bruno@clisp.org>
73668
73669         * modules/regex (Depends-on): Add stdbool.
73670         Reported by Dalibor Topic <robilad@kaffe.org>.
73671
73672 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73673
73674         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73675         Prefer returning from main to exiting from it.
73676         Remove unnecessary parens after sizeof.
73677
73678 2007-02-05  Bruno Haible  <bruno@clisp.org>
73679
73680         New module mbssep.
73681         * modules/mbssep: New file.
73682         * lib/mbssep.c: New file.
73683         * lib/string_.h (strsep): Add a conditional link warning.
73684         (mbssep): New declaration.
73685         * m4/mbssep.m4: New file.
73686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73687         GNULIB_MBSSEP.
73688         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73689         * MODULES.html.sh (Internationalization functions): Add mbssep.
73690
73691 2007-02-05  Bruno Haible  <bruno@clisp.org>
73692
73693         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73694         Optimize search in case of 1 delimiter.
73695
73696 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73697
73698         * lib/acl.h: Include sys/types.h before sys/acl.h.
73699
73700 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73701
73702         Merge upstream fix for glibc bugzilla #3957:
73703
73704         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73705
73706         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73707         bit for RE_HAT_LISTS_NOT_NEWLINE.
73708         (build_charclass_op): Remove bogus comment.
73709
73710 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73711
73712         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73713
73714 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73717         * lib/memmem.c [!defined _LIBC]: Include config.h.
73718
73719 2007-02-04  Bruno Haible  <bruno@clisp.org>
73720
73721         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73722         warning message.
73723
73724 2007-02-04  Bruno Haible  <bruno@clisp.org>
73725
73726         New module mbstok_r.
73727         * modules/mbstok_r: New file.
73728         * lib/mbstok_r.c: New file.
73729         * lib/string_.h (strtok_r): Change argument names to match the
73730         comments. Add a conditional link warning.
73731         (mbstok_r): New declaration.
73732         * m4/mbstok_r.m4: New file.
73733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73734         GNULIB_MBSTOK_R.
73735         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73736         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73737
73738 2007-02-04  Bruno Haible  <bruno@clisp.org>
73739
73740         New module mbsspn.
73741         * modules/mbsspn: New file.
73742         * lib/mbsspn.c: New file.
73743         * lib/string_.h (strspn): Add a conditional link warning.
73744         (mbsspn): New declaration.
73745         * m4/mbsspn.m4: New file.
73746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73747         GNULIB_MBSSPN.
73748         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73749         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73750
73751 2007-02-04  Bruno Haible  <bruno@clisp.org>
73752
73753         New module mbspbrk.
73754         * modules/mbspbrk: New file.
73755         * lib/mbspbrk.c: New file.
73756         * lib/string_.h (strpbrk): Add a conditional link warning.
73757         (mbspbrk): New declaration.
73758         * m4/mbspbrk.m4: New file.
73759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73760         GNULIB_MBSPBRK.
73761         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73762         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73763
73764 2007-02-04  Bruno Haible  <bruno@clisp.org>
73765
73766         New module mbscspn.
73767         * modules/mbscspn: New file.
73768         * lib/mbscspn.c: New file.
73769         * lib/string_.h (strcspn): Add a conditional link warning.
73770         (mbscspn): New declaration.
73771         * m4/mbscspn.m4: New file.
73772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73773         GNULIB_MBSCSPN.
73774         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73775         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73776
73777 2007-02-04  Bruno Haible  <bruno@clisp.org>
73778
73779         New module mbscasestr, reduced goal of strcasestr.
73780         * modules/mbscasestr: New file.
73781         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73782         (mbscasestr): Renamed from strcasestr.
73783         * lib/strcasestr.c: Don't include mbuiter.h.
73784         (strcasestr): Remove support for multibyte locales.
73785         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73786         Change the conditional link warning.
73787         (mbscasestr): New declaration.
73788         * m4/mbscasestr.m4: New file.
73789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73790         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73791         REPLACE_STRCASESTR.
73792         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73794         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73795         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73796         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73797         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73798         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73799         (Depends-on): Remove mbuiter.
73800         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73801
73802 2007-02-04  Bruno Haible  <bruno@clisp.org>
73803
73804         Simplify handling of strncasecmp.
73805         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73806         the conditional link warning.
73807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73808         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73809         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73810         * modules/strcase (configure.ac): Don't invoke
73811         gl_STRING_MODULE_INDICATOR.
73812         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73813
73814 2007-02-04  Bruno Haible  <bruno@clisp.org>
73815
73816         New module mbscasecmp, reduced goal of strcasecmp.
73817         * modules/mbscasecmp: New file.
73818         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73819         (mbscasecmp): Renamed from strcasecmp.
73820         * lib/strcasecmp.c: Don't include mbuiter.h.
73821         (strcasecmp): Remove support for multibyte locales.
73822         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73823         Change the conditional link warning.
73824         (mbscasecmp): New declaration.
73825         * m4/mbscasecmp.m4: New file.
73826         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73827         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73828         REPLACE_STRCASECMP.
73829         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73831         GNULIB_MBSCASECMP.
73832         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73833         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73834         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73835         (Depends-on): Remove mbuiter.
73836         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73837
73838 2007-02-04  Bruno Haible  <bruno@clisp.org>
73839
73840         New module mbsstr. Remove module strstr.
73841         * modules/mbsstr: New file.
73842         * modules/strstr: Remove file.
73843         * lib/mbsstr.c: Renamed from lib/strstr.c.
73844         (mbsstr): Renamed from strstr.
73845         * lib/string_.h (strstr): Remove declaration. Change the conditional
73846         link warning.
73847         (mbsstr): New declaration.
73848         * m4/mbsstr.m4: New file.
73849         * m4/strstr.m4: Remove file.
73850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73851         REPLACE_STRSTR.
73852         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73853         Don't initialize GNULIB_STRSTR.
73854         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73855         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73856         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73857         (Support for systems lacking ANSI C 89): Remove strstr.
73858
73859 2007-02-04  Bruno Haible  <bruno@clisp.org>
73860
73861         New module mbsrchr.
73862         * modules/mbsrchr: New file.
73863         * lib/mbsrchr.c: New file.
73864         * lib/string_.h (strrchr): Add a conditional link warning.
73865         (mbsrchr): New declaration.
73866         * m4/mbsrchr.m4: New file.
73867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73868         GNULIB_MBSRCHR.
73869         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73870         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73871
73872 2007-02-04  Bruno Haible  <bruno@clisp.org>
73873
73874         New module mbschr.
73875         * modules/mbschr: New file.
73876         * lib/mbschr.c: New file.
73877         * lib/string_.h (strchr): Add a conditional link warning.
73878         (mbschr): New declaration.
73879         * m4/mbschr.m4: New file.
73880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73881         GNULIB_MBSCHR.
73882         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73883         * MODULES.html.sh (Internationalization functions): Add mbschr.
73884
73885 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73886
73887         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73888
73889         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73890
73891 2007-02-04  Bruno Haible  <bruno@clisp.org>
73892
73893         New module description section 'configure.ac-early'.
73894         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73895         (func_get_autoconf_early_snippet): New function.
73896         (func_import, func_create_testdir): Use it. Remove special cases for
73897         modules 'extensions' and 'lock'.
73898         * modules/extensions (configure.ac-early): Require
73899         gl_USE_SYSTEM_EXTENSIONS.
73900         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73901
73902 2007-02-04  Bruno Haible  <bruno@clisp.org>
73903
73904         Make use of gcj-4.3's -fsource and -ftarget option.
73905         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73906         and if so try the options -fsource and -ftarget.
73907         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73908         source_version, ftarget_option, target_version arguments.
73909         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73910         (is_envjavac_oldgcj_14_14_usable): Renamed from
73911         is_envjavac_gcj_14_14_usable.
73912         (is_envjavac_oldgcj_14_13_usable): Renamed from
73913         is_envjavac_gcj_14_13_usable.
73914         (is_gcj_present): Update.
73915         (is_gcj_43, is_gcj43_usable): New functions.
73916         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73917         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73918         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73919         try the options -fsource and -ftarget.
73920
73921 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73924         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73925         larger value.
73926
73927 2007-02-03  Jim Meyering  <jim@meyering.net>
73928
73929         Give tools a better chance to allocate space for very large buffers.
73930         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73931
73932         Make pwd and readlink work also when run with an unreadable parent dir
73933         on systems with openat support.
73934         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73935         provided getcwd function, even when we have openat support.
73936         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73937
73938 2007-02-02  Bruno Haible  <bruno@clisp.org>
73939
73940         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73941         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73942         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73943         portability problems if one of these functions is only used on specific
73944         platforms.
73945         Reported by Paul Eggert.
73946
73947 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73950         is causing more trouble than it's curing.
73951         * lib/regex_internal.h (__mempcpy): Remove.
73952         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73953         (and make the code a tad smaller to boot).
73954         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73955
73956 2007-02-02  Jim Meyering  <jim@meyering.net>
73957
73958         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73959         section, not in the Makefile.am: one.
73960
73961 2007-02-02  Eric Blake  <ebb9@byu.net>
73962
73963         * lib/strchrnul.c: Always include config.h first.
73964
73965         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73966         gnulib strstr is not necessary here.
73967
73968 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73969
73970         * m4/socklen.m4: Fix typo.
73971
73972 2007-02-02  Eric Blake  <ebb9@byu.net>
73973
73974         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73975         * modules/netinet_in (Makefile.am): Likewise.
73976
73977 2007-02-01  Bruno Haible  <bruno@clisp.org>
73978
73979         * lib/string_.h (GL_LINK_WARNING): New macro.
73980         (strcasecmp, strstr, strcasestr): If provided by the system,
73981         conditionally define as a macro that leads to a warning instead of to
73982         an error.
73983         (strncasecmp): Conditionally define as a macro that leads to a warning.
73984
73985 2007-02-01  Karl Berry  <karl@gnu.org>
73986
73987         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73988
73989 2007-02-01  Bruno Haible  <bruno@clisp.org>
73990
73991         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73992         renamings.
73993
73994 2007-02-01  Eric Blake  <ebb9@byu.net>
73995
73996         * modules/regex (Depends-on): Revert dependence on mempcpy.
73997         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73998         module's definition of mempcpy.
73999         Reported by Paul Eggert.
74000
74001 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74004         the symbol XYZ before redefining it.  This fixes a problem with
74005         programs that don't use XYZ, when compiled on systems that define
74006         XYZ to something else.
74007
74008 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74011         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74012         writeable to group or other and (2) is intended to have a special
74013         mode bit that is set or cleared.  In such a case, the directory
74014         should be neither group- nor other-writeable until the special
74015         mode bits are right.
74016
74017 2007-01-31  Eric Blake  <ebb9@byu.net>
74018
74019         * modules/mountlist (Depends-on): Add strstr.
74020
74021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74022         bug.
74023         * modules/string (Makefile.am): Remove redundant replacement.
74024         * modules/regex (Depends-on): Add mempcpy.
74025
74026 2007-01-31  Bruno Haible  <bruno@clisp.org>
74027
74028         New module description field 'Link'.
74029         * gnulib-tool (func_usage): Document --extract-link-directive.
74030         (sed_extract_prog): Recognize 'Link' directive.
74031         (func_get_link_directive): New function.
74032         (func_import): Show summary of link directives.
74033         Handle --extract-link-directive option.
74034         * modules/acl (Link): New section.
74035         * modules/clock-time (Link): New section.
74036         * modules/euidaccess (Link): New section.
74037         * modules/gettext (Link): New section.
74038         * modules/iconv (Link): New section.
74039         * modules/lock (Link): New section.
74040         * modules/nanosleep (Link): New section.
74041         * modules/readline (Link): New section.
74042
74043 2007-01-27  Bruno Haible  <bruno@clisp.org>
74044
74045         Enforce the use of gnulib modules for unportable <string.h> functions.
74046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74047         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74048         (gl_HEADER_STRING_H_BODY): Require it.
74049         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74050         the symbol XYZ to one that gives a link error.
74051         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74052         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74053         * modules/mempcpy (configure.ac): Likewise.
74054         * modules/memrchr (configure.ac): Likewise.
74055         * modules/stpcpy (configure.ac): Likewise.
74056         * modules/stpncpy (configure.ac): Likewise.
74057         * modules/strcase (configure.ac): Likewise.
74058         * modules/strcasestr (configure.ac): Likewise.
74059         * modules/strchrnul (configure.ac): Likewise.
74060         * modules/strdup (configure.ac): Likewise.
74061         * modules/strndup (configure.ac): Likewise.
74062         * modules/strnlen (configure.ac): Likewise.
74063         * modules/strpbrk (configure.ac): Likewise.
74064         * modules/strsep (configure.ac): Likewise.
74065         * modules/strstr (configure.ac): Likewise.
74066         * modules/strtok_r (configure.ac): Likewise.
74067
74068 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74069
74070         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74071
74072 2007-01-30  Jim Meyering  <jim@meyering.net>
74073
74074         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74075
74076 2007-01-29  Bruno Haible  <bruno@clisp.org>
74077
74078         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74079         * lib/execute.c: Likewise.
74080         * lib/pipe.c: Likewise.
74081         * lib/printf-args.h: Likewise.
74082         * lib/printf-args.c: Likewise.
74083         * lib/printf-parse.c: Likewise.
74084         * lib/vasnprintf.c: Likewise.
74085
74086 2007-01-29  Eric Blake  <ebb9@byu.net>
74087
74088         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74089         declaration.
74090
74091 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74092
74093         * lib/strptime.h (strptime): Use 'restrict' for args where
74094         POSIX requires this.
74095         * lib/strptime.c (strptime): Likewise.
74096         Change license notice from LGPL to GPL, since gnulib-tool will
74097         change this as needed.
74098         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74099         defined.
74100         Include "strptime.h" first, to check interface.
74101         Do not #undef _LIBC and _NL_CURRENT.
74102         Do not include <stdlib.h>; no longer needed.
74103         Include "time_r.h" and declare ptime_locale_status
74104         only if _LIBC is not defined.
74105         (__P): Remove unused macro.
74106         (match_string): Bring back glibc version, but use it only if _LIBC
74107         is defined.
74108         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74109         Remove unnecessary assertion and abort() call.
74110         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74111         * m4/strptime.m4: Fix serial number comment.
74112         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74113         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74114         (Depends-on): Add time_r.
74115
74116 2007-01-29  Bruno Haible  <bruno@clisp.org>
74117
74118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74119         strptime.
74120         * modules/strptime (Depends-on): Add stdbool.
74121         * lib/strptime.h: Include <time.h> always. Add comments.
74122
74123 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74124
74125         * modules/strptime: New file.
74126         * lib/strptime.h: New file.
74127         * lib/strptime.c: New file.
74128         * m4/strptime.m4: New file.
74129
74130 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         * MODULES.html.sh: New module mpsort.
74133         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74134
74135         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74136         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74138         All uses changed.
74139         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74140         All uses changed.
74141         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74142         to _Restrict_.
74143         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74144         the parameter matches the prototype.
74145
74146 2007-01-28  Jim Meyering  <jim@meyering.net>
74147
74148         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74149         sys/time.h here, reverting that part of the previous patch:
74150         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74151
74152 2007-01-28  Bruno Haible  <bruno@clisp.org>
74153
74154         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74155         value of $(SYS_TIME_H).
74156         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74157         remove it conditionally, too. [added by Jim Meyering]
74158         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74160         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74161         GETTIMEOFDAY_REPLACEMENT to 1.
74162
74163 2007-01-28  Bruno Haible  <bruno@clisp.org>
74164
74165         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74166         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74168         Set UNISTD_H instead of UNISTD_H2.
74169         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74170
74171 2007-01-28  Bruno Haible  <bruno@clisp.org>
74172
74173         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74174         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74175
74176 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74177
74178         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74179         (func_create_testdir): Ensure C locale for `grep' and `tr'
74180         character ranges.
74181         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74182         ACLOCAL_AMFLAGS parsing state machine.
74183
74184 2007-01-27  Bruno Haible  <bruno@clisp.org>
74185
74186         * modules/unistr/base: Update.
74187
74188 2007-01-27  Bruno Haible  <bruno@clisp.org>
74189
74190         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74191         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74192         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74193         modules/unistr/u32-mbtouc.
74194         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74195         * lib/unistr.h: Update.
74196         * lib/linebreak.c: Update.
74197         * modules/unistr/u32-mbtouc: Renamed from
74198         modules/unistr/u32-mbtouc-safe.
74199         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74200         * lib/unistr.h: Update.
74201         * lib/unistr/u32-to-u8.c: Update.
74202         * lib/unistr/u32-to-u16.c: Update.
74203
74204 2007-01-27  Bruno Haible  <bruno@clisp.org>
74205
74206         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74207         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74208         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74209         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74210         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74211         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74212         modules/unistr/u16-mbtouc.
74213         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74214         * lib/unistr.h: Update.
74215         * lib/linebreak.c: Update.
74216         * modules/linebreak: Update.
74217         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74218         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74219         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74220         * modules/unistr/u16-mbtouc: Renamed from
74221         modules/unistr/u16-mbtouc-safe.
74222         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74223         * lib/unistr.h: Update.
74224         * lib/unistr/u16-to-u8.c: Update.
74225         * modules/unistr/u16-to-u8: Update.
74226         * lib/unistr/u16-to-u32.c: Update.
74227         * modules/unistr/u16-to-u32: Update.
74228
74229 2007-01-27  Bruno Haible  <bruno@clisp.org>
74230
74231         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74232         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74233         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74234         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74235         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74236         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74237         modules/unistr/u8-mbtouc.
74238         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74239         * lib/unistr.h: Update.
74240         * lib/striconveh.c: Update.
74241         * modules/striconveh: Update.
74242         * lib/linebreak.c: Update.
74243         * modules/linebreak: Update.
74244         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74245         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74246         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74247         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74248         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74249         * lib/unistr.h: Update.
74250         * lib/striconveh.c: Update.
74251         * modules/striconveh: Update.
74252         * lib/unistr/u8-to-u16.c: Update.
74253         * modules/unistr/u8-to-u16: Update.
74254         * lib/unistr/u8-to-u32.c: Update.
74255         * modules/unistr/u8-to-u32: Update.
74256
74257 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74258
74259         Sync from Libtool.
74260         * lib/argz.c: Do not include strings.h nor memory.h, include
74261         string.h unconditionally.  Patch by Simon Josefsson.
74262
74263 2007-01-27  Bruno Haible  <bruno@clisp.org>
74264
74265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74266         from gl_HEADER_STRING_H_BODY.
74267         (gl_HEADER_STRING_H_BODY): Require it.
74268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74269         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74270         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74271         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74273         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74275         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74276         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74277         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74278         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74279         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74280         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74281         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74282         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74283
74284 2007-01-27  Bruno Haible  <bruno@clisp.org>
74285
74286         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74287         check_PROGRAMS into noinst_PROGRAMS.
74288         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74289         check_PROGRAMS in this case.
74290         (func_import): Set for_test to false.
74291         (func_create_testdir): Set for_test to true.
74292
74293 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74294             Bruno Haible  <bruno@clisp.org>
74295
74296         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74297         (Depends-on): Add string.
74298         (Includes): Use <string.h> instead of strcasestr.h.
74299         * modules/string (Makefile.am): Also substitute the value of
74300         REPLACE_STRCASESTR.
74301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74302         assume strcasestr is declared in <string.h> not <strings.h>. Also
74303         set REPLACE_STRCASESTR.
74304         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74305         REPLACE_STRCASESTR.
74306         * lib/strcasestr.h: Remove file.
74307         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74308         * lib/string_.h (strcasestr): New declaration.
74309
74310 2007-01-27  Bruno Haible  <bruno@clisp.org>
74311
74312         * lib/string_.h: Use 'extern'.
74313
74314 2007-01-27  Jim Meyering  <jim@meyering.net>
74315
74316         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74317         of set-but-not-used local, "q".
74318
74319         * lib/mempcpy.c: Include <config.h> before <string.h>.
74320         This fixes a compilation error on HP-UX, due to the system's
74321         "restrict"-using mempcpy prototype.
74322
74323 2007-01-26  Bruno Haible  <bruno@clisp.org>
74324
74325         Small optimization.
74326         * lib/javacomp.c: Include c-strstr.h.
74327          (is_envjavac_gcj): Use c_strstr instead of strstr.
74328         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74329
74330 2007-01-26  Bruno Haible  <bruno@clisp.org>
74331
74332         * MODULES.html.sh (Unicode string functions): Add the new modules.
74333
74334         * modules/uniconv/u32-strconv-to-locale: New file.
74335         * lib/uniconv/u32-strconv-to-locale.c: New file.
74336
74337         * modules/uniconv/u16-strconv-to-locale: New file.
74338         * lib/uniconv/u16-strconv-to-locale.c: New file.
74339
74340         * modules/uniconv/u8-strconv-to-locale: New file.
74341         * lib/uniconv/u8-strconv-to-locale.c: New file.
74342
74343         * modules/uniconv/u32-strconv-from-locale: New file.
74344         * lib/uniconv/u32-strconv-from-locale.c: New file.
74345
74346         * modules/uniconv/u16-strconv-from-locale: New file.
74347         * lib/uniconv/u16-strconv-from-locale.c: New file.
74348
74349         * modules/uniconv/u8-strconv-from-locale: New file.
74350         * lib/uniconv/u8-strconv-from-locale.c: New file.
74351
74352         * modules/uniconv/u32-strconv-to-enc: New file.
74353         * lib/uniconv/u32-strconv-to-enc.c: New file.
74354         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74355         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74356
74357         * modules/uniconv/u16-strconv-to-enc: New file.
74358         * lib/uniconv/u16-strconv-to-enc.c: New file.
74359         * lib/uniconv/u-strconv-to-enc.h: New file.
74360         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74361         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74362
74363         * modules/uniconv/u8-strconv-to-enc: New file.
74364         * lib/uniconv/u8-strconv-to-enc.c: New file.
74365         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74366         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74367
74368         * modules/uniconv/u32-strconv-from-enc: New file.
74369         * lib/uniconv/u32-strconv-from-enc.c: New file.
74370         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74371         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74372
74373         * modules/uniconv/u16-strconv-from-enc: New file.
74374         * lib/uniconv/u16-strconv-from-enc.c: New file.
74375         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74376         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74377
74378         * modules/uniconv/u8-strconv-from-enc: New file.
74379         * lib/uniconv/u8-strconv-from-enc.c: New file.
74380         * lib/uniconv/u-strconv-from-enc.h: New file.
74381         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74382         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74383
74384         * modules/uniconv/u32-conv-from-enc: New file.
74385         * lib/uniconv/u32-conv-from-enc.c: New file.
74386         * modules/uniconv/u32-conv-from-enc-tests: New file.
74387         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74388
74389         * modules/uniconv/u16-conv-from-enc: New file.
74390         * lib/uniconv/u16-conv-from-enc.c: New file.
74391         * lib/uniconv/u-conv-from-enc.h: New file.
74392         * modules/uniconv/u16-conv-from-enc-tests: New file.
74393         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74394
74395         * modules/uniconv/u8-conv-from-enc: New file.
74396         * lib/uniconv/u8-conv-from-enc.c: New file.
74397         * modules/uniconv/u8-conv-from-enc-tests: New file.
74398         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74399
74400         * modules/uniconv/base: New file.
74401         * lib/uniconv.h: New file.
74402
74403 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * doc/gnulib-tool.texi (Initial import): Update to match current
74406         behavior with strdup module.
74407         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74408         * lib/memmem.h: Remove; all uses removed.  This is now done
74409         by <string.h>.
74410         * lib/mempcpy.h: Likewise.
74411         * lib/memrchr.h: Likewise.
74412         * lib/stpcpy.h: Likewise.
74413         * lib/stpncpy.h: Likewise.
74414         * lib/strcase.h: Likewise.
74415         * lib/strchrnul.h: Likewise.
74416         * lib/strdup.h: Likewise.
74417         * lib/strndup.h: Likewise.
74418         * lib/strnlen.h: Likewise.
74419         * lib/strpbrk.h: Likewise.
74420         * lib/strsep.h: Likewise.
74421         * lib/strstr.h: Likewise.
74422         * lib/strtok_r.h: Likewise.
74423         * lib/string_.h: New file.
74424         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74425         Rely on <string.h> instead.
74426         * lib/canon-host.c: Likewise.
74427         * lib/chdir-long.c: Likewise.
74428         * lib/concatpath.c: Likewise.
74429         * lib/exclude.c: Likewise.
74430         * lib/fchdir.c: Likewise.
74431         * lib/getaddrinfo.c: Likewise.
74432         * lib/getcwd.c: Likewise.
74433         * lib/getsubopt.c: Likewise.
74434         * lib/glob.c: Likewise.
74435         * lib/hard-locale.c: Likewise.
74436         * lib/iconvme.c: Likewise.
74437         * lib/javacomp.c: Likewise.
74438         * lib/mempcpy.c: Likewise.
74439         * lib/memrchr.c: Likewise.
74440         * lib/regex_internal.h: Likewise.
74441         * lib/stpncpy.c: Likewise.
74442         * lib/strcasecmp.c: Likewise.
74443         * lib/strchrnul.c: Likewise.
74444         * lib/strdup.c: Likewise.
74445         * lib/striconv.c: Likewise.
74446         * lib/striconveh.c: Likewise.
74447         * lib/striconveha.c: Likewise.
74448         * lib/strncasecmp.c: Likewise.
74449         * lib/strndup.c: Likewise.
74450         * lib/strnlen.c: Likewise.
74451         * lib/strsep.c: Likewise.
74452         * lib/strstr.c: Likewise.
74453         * lib/strtok_r.c: Likewise.
74454         * lib/userspec.c: Likewise.
74455         * lib/w32spawn.h: Likewise.
74456         * lib/xstrndup.c: Likewise.
74457         * lib/mountlist.c (strstr): Remove decl.
74458         * m4/string_h.m4: New file.
74459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74460         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74462         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74463         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74464         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74465         Set REPLACE_STRCASECMP if necessary.
74466         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74467         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74468         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74469         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74470         HAVE_DECL_STRDUP if necessary.
74471         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74472         since gl_FUNC_STRNDUP does that now.
74473         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74474         Check for decl here...
74475         (gl_PREREQ_STRNLEN): ... not here.
74476         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74477         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74478         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74479         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74480         necessary.
74481         * modules/string: New file.
74482         * modules/memmem (Files): Remove special-purpose include file.
74483         (Depends-on): Add string.
74484         (Include): Include <string.h>, not the removed file.
74485         * modules/mempcpy: Likewise.
74486         * modules/memrchr: Likewise.
74487         * modules/stpcpy: Likewise.
74488         * modules/stpncpy: Likewise.
74489         * modules/strcase: Likewise.
74490         * modules/strchrnul: Likewise.
74491         * modules/strdup: Likewise.
74492         * modules/strndup: Likewise.
74493         * modules/strnlen: Likewise.
74494         * modules/strpbrk: Likewise.
74495         * modules/strsep: Likewise.
74496         * modules/strstr: Likewise.
74497         * modules/strtok_r: Likewise.
74498         * tests/test-dirname.c: Don't include "strdup.h", since
74499         <string.h> now suffices.
74500         * tests/test-memmem.c: Don't include "memmem.h", since
74501         <string.h> now suffices.
74502
74503 2007-01-25  Bruno Haible  <bruno@clisp.org>
74504
74505         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74506         *resultp is 0.
74507
74508         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74509         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74510         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74511         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74512
74513         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74514         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74515         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74516         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74517         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74518         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74519
74520 2007-01-24  Bruno Haible  <bruno@clisp.org>
74521
74522         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74524         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74525         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74526         gl_FUNC_FTS_CORE.
74527         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74528         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74529         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74530         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74531         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74532         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74533         gl_FUNC_FCHOWNAT.
74534         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74535         gl_FUNC_STRFTIME.
74536         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74537         Reported by Ralf Wildenhues.
74538
74539 2007-01-24  Bruno Haible  <bruno@clisp.org>
74540
74541         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74542         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74543         gl_GETADDRINFO.
74544         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74545         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74546         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74547
74548 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74551         Don't use 'exit'; just return from 'main'.
74552         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74553
74554         * lib/fnmatch_.h: Readjust white space and comments to match
74555         glibc, to avoid spurious diffs.
74556
74557 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74560         2004-12-01 change by Jakub Jelinek, since this code won't compile
74561         if !LIBC.  Problem reported by Bob Proulx.
74562
74563 2007-01-23  Bruno Haible  <bruno@clisp.org>
74564
74565         * lib/striconveh.c: Include c-strcaseeq.h.
74566         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74567         * modules/striconveh (Depends-on): Add c-strcaseeq.
74568
74569 2007-01-23  Bruno Haible  <bruno@clisp.org>
74570
74571         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74572
74573         * modules/c-strcaseeq: New file.
74574         * lib/c-strcaseeq.h: New file.
74575
74576         * modules/streq: New file.
74577         * lib/streq.h: New file.
74578
74579 2007-01-23  Bruno Haible  <bruno@clisp.org>
74580
74581         * modules/striconveha-tests: New file.
74582         * tests/test-striconveha.c: New file.
74583
74584         * lib/striconveha.h: Include <stdbool.h>.
74585         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74586         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74587         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74588         (mem_iconveha): New function.
74589         (str_iconveha_notranslit): Renamed from str_iconveha.
74590         (str_iconveha): New function.
74591         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74592         c-strcase.
74593
74594 2007-01-23  Bruno Haible  <bruno@clisp.org>
74595
74596         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74597         encodings without forgiving before trying any encoding with handler.
74598         (str_iconveha): Try all encodings without forgiving before trying any
74599         encoding with handler.
74600
74601 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         Import the following changes from libc.
74604
74605         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74606
74607         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74608
74609         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74610
74611         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74612         normal_bracket label.
74613
74614         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74615
74616         [BZ #361]
74617         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74618         to normal_bracket after fetching the next character.
74619
74620 2007-01-22  Bruno Haible  <bruno@clisp.org>
74621
74622         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74623         argument.
74624         * lib/striconveh.c (iconv_carefully_1): New function.
74625         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74626         argument.
74627         (str_cd_iconveh): Update.
74628         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74629         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74630         * tests/test-striconveh.c (MAGIC): New macro.
74631         (new_offsets): New function.
74632         (main): Test call with and without offsets.
74633
74634 2007-01-22  Bruno Haible  <bruno@clisp.org>
74635
74636         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74637         * modules/sys_select (Makefile.am): Likewise.
74638         * modules/sys_socket (Makefile.am): Likewise.
74639         * modules/sys_time (Makefile.am): Likewise.
74640
74641 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74642
74643         * modules/gettimeofday (License): Change from GPL to LGPL, since
74644         gettimeofday is a library function.
74645
74646 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74647
74648         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74649
74650 2007-01-21  Bruno Haible  <bruno@clisp.org>
74651
74652         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74653
74654 2007-01-21  Bruno Haible  <bruno@clisp.org>
74655
74656         * modules/striconveha: New file.
74657         * lib/striconveha.h: New file.
74658         * lib/striconveha.c: New file.
74659         * MODULES.html.sh (Internationalization functions): Add striconveha.
74660         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74661         string.
74662         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74663
74664 2007-01-21  Bruno Haible  <bruno@clisp.org>
74665
74666         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74667         * lib/striconveh.c (str_iconveh): Likewise.
74668
74669 2007-01-21  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/striconveh.h (mem_iconveh): New declaration.
74672         * lib/striconveh.c (mem_iconveh): New function.
74673         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74674
74675 2007-01-21  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74678
74679         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74680         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74681         original result buffer.
74682         (str_cd_iconveh): Update.
74683         * tests/test-striconveh.c (main): Update.
74684
74685         * lib/striconv.h (mem_cd_iconv): Change specification.
74686         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74687         result buffer.
74688         (str_cd_iconv): Update.
74689         * tests/test-striconv.c (main): Update.
74690
74691 2007-01-21  Bruno Haible  <bruno@clisp.org>
74692
74693         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74694
74695 2007-01-20  Jim Meyering  <jim@meyering.net>
74696
74697         * lib/userspec.c (parse_with_separator): If a user or group string
74698         starts with "+", skip the corresponding name-to-ID look-up, since
74699         such a look-up must fail: user and group names may not include "+".
74700
74701 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74704         since we now assume the sys_time module.
74705         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74706         check for sys/time.h; no longer needed.
74707         * modules/poll (Depends-on): Depend on sys_time.
74708
74709 2007-01-18  Bruno Haible  <bruno@clisp.org>
74710
74711         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74712         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74713
74714         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74715         gettimeofday.
74716
74717         * tests/test-gettimeofday.c: Include <time.h>.
74718         (dummy): Remove variable.
74719
74720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74721         gl_HEADER_SYS_TIME_H.
74722         (gl_HEADER_SYS_TIME_H): New macro.
74723
74724         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74725         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74726         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74727         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74728         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74729         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74730         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74731         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74732         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74733         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74734         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74735
74736         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74737         last change; it caused a compilation error when cross-compiling to
74738         Cygwin.
74739
74740 2007-01-18  Jim Meyering  <jim@meyering.net>
74741
74742         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74743         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74744         than the race-prone "test -d sys || mkdir sys".
74745         (configure.ac): Use AC_PROG_MKDIR_P.
74746         * modules/sys_select: Likewise.
74747         * modules/sys_socket: Likewise.
74748         * modules/sys_time: Likewise.
74749
74750 2007-01-18  Eric Blake  <ebb9@byu.net>
74751
74752         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74753         replace gettimeofday.
74754         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74755         name, to avoid infinite recursion.
74756
74757 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74760         module sys_time.
74761         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74762         assume timespec.h defines struct timeval.
74763         * lib/settime.c: Likewise.
74764         * lib/utimens.c: Likewise.
74765         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74766         since we now assume the gettimeofday module.
74767         * lib/tempname.c (__gen_tempname): Likewise.
74768         * lib/gettimeofday.h: Remove.
74769         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74770         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74771         Include <time.h>, for 'time()'.
74772         (localtime_buffer_addr): Also use this workaround if
74773         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74774         to simplify the uses.  All uses changed.
74775         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74776         that #undef is inside {}, and 'const' follows type name consistently.
74777         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74778         (gettimeofday): Do not use the maximum possible value for
74779         tv->tv_usec, since that might break usages other than ls.c.
74780         Instead, we'll leave ls.c alone.  This undoes today's patch
74781         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74782         we've never observed the problem but might as well keep the
74783         canary.
74784         * lib/nanosleep.c: Include timespec.h first, for interface check.
74785         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74786         now assume the sys_time module.
74787         * lib/tempname.c: Likewise.
74788         * lib/timespec.h: Likewise.
74789         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74790         needed.
74791         * lib/strftime.c: Likewise.
74792         * lib/timespec.h: Likewise.
74793         * lib/posixtm.c: Include posixtm.h first, for interface check.
74794         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74795         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74796         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74797         * lib/sys_time_.h: New file.
74798         * lib/timespec.h (struct timespec): Use long int, not long.
74799         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74800         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74801         Remove obsolescent call to AC_HEADER_TIME.
74802         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74804         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74805         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74806         Likewise.
74807         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74808         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74810         into the sys_time module.  Check for gettimeofday just once.
74811         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74812         for gettimeofday signature to just check the signature.  Merely
74813         compile it, since linking doesn't test signature.  Improve test for
74814         whether gettimeofday.o is actually needed.
74815         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74816         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74817         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74818         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74819         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74820         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74821         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74822         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74823         than worrying about sys/time.h.
74824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74825         Don't bother worrying about TIME_WITH_SYS_TIME.
74826         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74827         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74828         * m4/sys_time_h.m4: New file.
74829         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74830         Don't include sys/time.h.  Return from main rather than exiting.
74831         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74832         all uses changed.
74833         * modules/gethrxtime (Depends-on): Add sys_time.
74834         * modules/gettime (Depends-on): Likewise.
74835         * modules/gettimeofday (Depends-on): Likewise.
74836         * modules/nanosleep (Depends-on): Likewise.
74837         * modules/settime (Depends-on): Likewise.
74838         * modules/tempname (Depends-on): Likewise.
74839         * modules/utimens (Depends-on): Likewise.
74840         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74841         (Include): Change back to <sys/time.h>.
74842         (Maintainer): Add self.
74843         * modules/sys_time: New file.
74844         * modules/tempname (Depends-on): Add gettimeofday.
74845         * tests/test-gettimeofday.c: Include <sys/time.h>
74846         rather than gettimeofday.h.
74847
74848 2007-01-17  Bruno Haible  <bruno@clisp.org>
74849
74850         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74851         the license default to GPL.
74852         (func_create_testdir): Don't complain if a module is LGPL and its
74853         tests module depends on GPLed modules.
74854
74855 2007-01-17  Bruno Haible  <bruno@clisp.org>
74856
74857         * lib/gettimeofday.c (gettimeofday): Add code for the case
74858         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74859         maximum possible value for tv->tv_usec, rather than the minimum one.
74860
74861 2005-10-08  Martin Lambers  <marlam@marlam.de>
74862 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74863 2007-01-16  Bruno Haible  <bruno@clisp.org>
74864
74865         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74866         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74867         gl_FUNC_GETTIMEOFDAY.
74868         (Include): Add gettimeofday.h.
74869         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74870         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74871         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74872         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74873         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74874         * lib/gettimeofday.h: New file.
74875         * lib/gettimeofday.c: Include <sys/timeb.h>.
74876         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74877         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74878         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74879         fall back on time().
74880
74881         * tests/test-gettimeofday.c: New file.
74882         * modules/gettimeofday-tests: New file.
74883
74884 2007-01-16  Eric Blake  <ebb9@byu.net>
74885
74886         * modules/fnmatch (Depends-on): Depend on wchar.
74887         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74888         * m4/fnmatch.m4: Likewise.
74889         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74890         * m4/mbchar.m4: Likewise.
74891         * modules/mbswidth (Depends-on): Depend on wchar.
74892         * lib/mbswidth.c: Assume <wchar.h>.
74893         * m4/mbswidth.m4: Likewise.
74894         * modules/quotearg (Depends-on): Depend on wchar.
74895         * lib/quotearg.c: Assume <wchar.h>.
74896         * m4/quotearg.m4: Likewise.
74897         * modules/regex (Depends-on): Depend on wchar.
74898         * lib/regex_internal.h: Assume <wchar.h>.
74899         * m4/regex.m4: Likewise.
74900         * modules/stdint (Depends-on): Depend on wchar.
74901         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74902         * m4/stdint.m4: Likewise.
74903         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74904         * modules/strftime (Depends-on): Depend on wchar.
74905         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74906         * modules/strtol (Depends-on): Depend on wchar.
74907         * lib/strtol.c: Assume <wchar.h>.
74908         * modules/wcwidth (Depends-on): Depend on wchar.
74909         * lib/wcwidth.h: Assume <wchar.h>.
74910         * m4/wcwidth.m4: Likewise.
74911
74912 2007-01-16  Bruno Haible  <bruno@clisp.org>
74913
74914         * modules/csharpexec-script: New, created from...
74915         * modules/csharpexec: ... this.
74916
74917 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74918
74919         * modules/javaexec-script: New, created from...
74920         * modules/javaexec: ... this.
74921
74922 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74923
74924         * modules/poll (Dependencies): Add sys_select.
74925
74926 2007-01-15  Jim Meyering  <jim@meyering.net>
74927
74928         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74929         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74930         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74931         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74932
74933 2007-01-15  Bruno Haible  <bruno@clisp.org>
74934
74935         * modules/striconveh: New file.
74936         * lib/striconveh.h: New file.
74937         * lib/striconveh.c: New file.
74938         * MODULES.html.sh (Internationalization functions): Add striconveh.
74939
74940         * modules/striconveh-tests: New file.
74941         * tests/test-striconveh.c: New file.
74942
74943 2007-01-15  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74946         not from GNU libiconv or GNU libc.
74947
74948 2007-01-15  Bruno Haible  <bruno@clisp.org>
74949
74950         * doc/gnulib-intro.texi (Copyright): Explain the different license
74951         terms for module descriptions, autoconf macros, tests, documentation.
74952
74953 2007-01-14  Bruno Haible  <bruno@clisp.org>
74954
74955         * modules/striconv-tests: New file.
74956         * tests/test-striconv.c: New file.
74957
74958 2007-01-14  Bruno Haible  <bruno@clisp.org>
74959
74960         * modules/iconv-tests: New file.
74961         * tests/test-iconv.c: New file.
74962
74963 2007-01-14  Bruno Haible  <bruno@clisp.org>
74964
74965         * gnulib-tool (func_get_license): For test modules, use the license of
74966         the main module.
74967
74968 2007-01-14  Bruno Haible  <bruno@clisp.org>
74969
74970         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74971         if iconv is found to exist.
74972
74973 2007-01-14  Bruno Haible  <bruno@clisp.org>
74974
74975         * modules/c-ctype-tests: New file.
74976         * tests/test-c-ctype.c: New file.
74977
74978 2007-01-14  Bruno Haible  <bruno@clisp.org>
74979
74980         * modules/binary-io-tests: New file.
74981         * tests/test-binary-io.sh: New file.
74982         * tests/test-binary-io.c: New file.
74983
74984 2007-01-14  Bruno Haible  <bruno@clisp.org>
74985
74986         * modules/array-oset-tests: New file.
74987         * tests/test-array_oset.c: New file.
74988
74989 2007-01-14  Bruno Haible  <bruno@clisp.org>
74990
74991         * modules/array-list-tests: New file.
74992         * tests/test-array_list.c: New file.
74993
74994 2007-01-14  Bruno Haible  <bruno@clisp.org>
74995
74996         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74997         and make.
74998         Reported by Simon Josefsson in
74999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75000
75001 2007-01-14  Bruno Haible  <bruno@clisp.org>
75002
75003         * modules/allocsa-tests: New file.
75004         * tests/test-allocsa.c: New file.
75005
75006 2007-01-14  Bruno Haible  <bruno@clisp.org>
75007
75008         * modules/fchdir (Depends-on): Add absolute-header.
75009         * modules/unistd (Depends-on): Likewise.
75010
75011 2006-12-30  Bruno Haible  <bruno@clisp.org>
75012
75013         * modules/fchdir: New file.
75014         * modules/unistd (Files): Add lib/unistd_.h.
75015         (Makefile.am): Generate unistd.h from unistd_.h.
75016         * lib/fchdir.c: New file.
75017         * lib/dirent_.h: New file.
75018         * lib/unistd_.h: New file.
75019         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75020         * m4/fchdir.m4: New file.
75021         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75022         (gl_HEADER_UNISTD): Invoke it.
75023         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75024         function.
75025         * lib/backupfile.c (opendir, closedir): Undefine.
75026         * lib/chown.c (open, close): Undefine.
75027         * lib/clean-temp.c (open, close): Undefine.
75028         * lib/copy-file.c (open, close): Undefine.
75029         * lib/execute.c (open, close): Undefine.
75030         * lib/fsusage.c (open, close): Undefine.
75031         * lib/gc-gnulib.c (open, close): Undefine.
75032         * lib/getcwd.c (opendir, closedir): Undefine.
75033         * lib/glob.c (opendir, closedir): Undefine.
75034         * lib/javacomp.c (open, close): Undefine.
75035         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75036         * lib/openat-proc.c (open, close): Undefine.
75037         * lib/pagealign_alloc.c (open, close): Undefine.
75038         * lib/pipe.c (open, close): Undefine.
75039         * lib/progreloc.c (open, close): Undefine.
75040         * lib/savedir.c (opendir, closedir): Undefine.
75041         * lib/utime.c (open, close): Undefine.
75042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75043
75044 2007-01-10  Bruno Haible  <bruno@clisp.org>
75045
75046         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75047
75048 2007-01-12  Eric Blake  <ebb9@byu.net>
75049
75050         Provide a robust <wchar.h>.  Further simplifications are now
75051         possible in other modules, but not included here.
75052         * modules/wchar: New module.
75053         * m4/wchar.m4: New file.
75054         * lib/wchar_.h: Likewise.
75055         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75056         of the new module.
75057         * MODULES.html.sh (Extended multibyte and wide character utilities):
75058         New section.
75059
75060 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75063         to a reasonable default for memory allocation.
75064         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75065         file system that reports garbage st_size values for symlinks.
75066         Problem reported by Liyang Hu.
75067
75068 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75069
75070         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75071         Emacs .#* auto-save files).
75072
75073 2007-01-11  Bruno Haible  <bruno@clisp.org>
75074
75075         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75076         directory.
75077
75078 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         Use @...@ consistently in lib/wctype_.h.
75081         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75082         on it being set to 1 or 0.
75083         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75084         go back to AC_SUBSTing it.
75085         * modules/wctype (Makefile.am): Undo previous change.
75086
75087 2007-01-10  Eric Blake  <ebb9@byu.net>
75088
75089         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75090         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75091         * modules/wctype (Makefile.am): Likewise.
75092         Reported by Chris McGuire.
75093
75094 2007-01-10  Jim Meyering  <jim@meyering.net>
75095
75096         fts.c: a small readability/maintainability improvement
75097         * lib/fts.c (fts_read): Make this code slightly more readable and
75098         maintainable by hoisting the "sp->fts_cur = p" assignments to
75099         immediately follow the statements that set P.  Derived from
75100         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75101
75102 2007-01-10  Eric Blake  <ebb9@byu.net>
75103
75104         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75105         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75107         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75108         Reported by Chris McGuire.
75109
75110 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75111
75112         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75113         in sed script.
75114
75115 2007-01-09  Bruno Haible  <bruno@clisp.org>
75116
75117         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75118         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75119         variables.
75120         (func_module): Use them.
75121
75122 2007-01-09  Bruno Haible  <bruno@clisp.org>
75123
75124         * modules/unistr/base: New file.
75125         * lib/unistr.h: New file.
75126
75127         * modules/unistr/u8-to-u16: New file.
75128         * lib/unistr/u8-to-u16.c: New file.
75129
75130         * modules/unistr/u8-to-u32: New file.
75131         * lib/unistr/u8-to-u32.c: New file.
75132
75133         * modules/unistr/u16-to-u8: New file.
75134         * lib/unistr/u16-to-u8.c: New file.
75135
75136         * modules/unistr/u16-to-u32: New file.
75137         * lib/unistr/u16-to-u32.c: New file.
75138
75139         * modules/unistr/u32-to-u8: New file.
75140         * lib/unistr/u32-to-u8.c: New file.
75141
75142         * modules/unistr/u32-to-u16: New file.
75143         * lib/unistr/u32-to-u16.c: New file.
75144
75145         * modules/unistr/u8-check: New file.
75146         * modules/unistr/u16-check: New file.
75147         * modules/unistr/u32-check: New file.
75148         * lib/unistr/u8-check.c: New file.
75149         * lib/unistr/u16-check.c: New file.
75150         * lib/unistr/u32-check.c: New file.
75151
75152         * modules/unistr/u8-chr: New file.
75153         * modules/unistr/u16-chr: New file.
75154         * modules/unistr/u32-chr: New file.
75155         * lib/unistr/u8-chr.c: New file.
75156         * lib/unistr/u16-chr.c: New file.
75157         * lib/unistr/u32-chr.c: New file.
75158
75159         * modules/unistr/u8-cmp: New file.
75160         * modules/unistr/u16-cmp: New file.
75161         * modules/unistr/u32-cmp: New file.
75162         * lib/unistr/u8-cmp.c: New file.
75163         * lib/unistr/u16-cmp.c: New file.
75164         * lib/unistr/u32-cmp.c: New file.
75165
75166         * modules/unistr/u8-cpy: New file.
75167         * modules/unistr/u16-cpy: New file.
75168         * modules/unistr/u32-cpy: New file.
75169         * lib/unistr/u8-cpy.c: New file.
75170         * lib/unistr/u16-cpy.c: New file.
75171         * lib/unistr/u32-cpy.c: New file.
75172         * lib/unistr/u-cpy.h: New file.
75173
75174         * modules/unistr/u8-cpy-alloc: New file.
75175         * modules/unistr/u16-cpy-alloc: New file.
75176         * modules/unistr/u32-cpy-alloc: New file.
75177         * lib/unistr/u8-cpy-alloc.c: New file.
75178         * lib/unistr/u16-cpy-alloc.c: New file.
75179         * lib/unistr/u32-cpy-alloc.c: New file.
75180         * lib/unistr/u-cpy-alloc.h: New file.
75181
75182         * modules/unistr/u8-endswith: New file.
75183         * modules/unistr/u16-endswith: New file.
75184         * modules/unistr/u32-endswith: New file.
75185         * lib/unistr/u8-endswith.c: New file.
75186         * lib/unistr/u16-endswith.c: New file.
75187         * lib/unistr/u32-endswith.c: New file.
75188         * lib/unistr/u-endswith.h: New file.
75189
75190         * modules/unistr/u8-mblen: New file.
75191         * modules/unistr/u16-mblen: New file.
75192         * modules/unistr/u32-mblen: New file.
75193         * lib/unistr/u8-mblen.c: New file.
75194         * lib/unistr/u16-mblen.c: New file.
75195         * lib/unistr/u32-mblen.c: New file.
75196
75197         * modules/unistr/u8-mbtouc: New file.
75198         * modules/unistr/u16-mbtouc: New file.
75199         * modules/unistr/u32-mbtouc: New file.
75200         * lib/unistr/u8-mbtouc.c: New file.
75201         * lib/unistr/u16-mbtouc.c: New file.
75202         * lib/unistr/u32-mbtouc.c: New file.
75203
75204         * modules/unistr/u8-mbtouc-safe: New file.
75205         * modules/unistr/u16-mbtouc-safe: New file.
75206         * modules/unistr/u32-mbtouc-safe: New file.
75207         * lib/unistr/u8-mbtouc-safe.c: New file.
75208         * lib/unistr/u16-mbtouc-safe.c: New file.
75209         * lib/unistr/u32-mbtouc-safe.c: New file.
75210
75211         * modules/unistr/u8-move: New file.
75212         * modules/unistr/u16-move: New file.
75213         * modules/unistr/u32-move: New file.
75214         * lib/unistr/u8-move.c: New file.
75215         * lib/unistr/u16-move.c: New file.
75216         * lib/unistr/u32-move.c: New file.
75217         * lib/unistr/u-move.h: New file.
75218
75219         * modules/unistr/u8-next: New file.
75220         * modules/unistr/u16-next: New file.
75221         * modules/unistr/u32-next: New file.
75222         * lib/unistr/u8-next.c: New file.
75223         * lib/unistr/u16-next.c: New file.
75224         * lib/unistr/u32-next.c: New file.
75225
75226         * modules/unistr/u8-prev: New file.
75227         * modules/unistr/u16-prev: New file.
75228         * modules/unistr/u32-prev: New file.
75229         * lib/unistr/u8-prev.c: New file.
75230         * lib/unistr/u16-prev.c: New file.
75231         * lib/unistr/u32-prev.c: New file.
75232
75233         * modules/unistr/u8-set: New file.
75234         * modules/unistr/u16-set: New file.
75235         * modules/unistr/u32-set: New file.
75236         * lib/unistr/u8-set.c: New file.
75237         * lib/unistr/u16-set.c: New file.
75238         * lib/unistr/u32-set.c: New file.
75239         * lib/unistr/u-set.h: New file.
75240
75241         * modules/unistr/u8-startswith: New file.
75242         * modules/unistr/u16-startswith: New file.
75243         * modules/unistr/u32-startswith: New file.
75244         * lib/unistr/u8-startswith.c: New file.
75245         * lib/unistr/u16-startswith.c: New file.
75246         * lib/unistr/u32-startswith.c: New file.
75247         * lib/unistr/u-startswith.h: New file.
75248
75249         * modules/unistr/u8-stpcpy: New file.
75250         * modules/unistr/u16-stpcpy: New file.
75251         * modules/unistr/u32-stpcpy: New file.
75252         * lib/unistr/u8-stpcpy.c: New file.
75253         * lib/unistr/u16-stpcpy.c: New file.
75254         * lib/unistr/u32-stpcpy.c: New file.
75255         * lib/unistr/u-stpcpy.h: New file.
75256
75257         * modules/unistr/u8-stpncpy: New file.
75258         * modules/unistr/u16-stpncpy: New file.
75259         * modules/unistr/u32-stpncpy: New file.
75260         * lib/unistr/u8-stpncpy.c: New file.
75261         * lib/unistr/u16-stpncpy.c: New file.
75262         * lib/unistr/u32-stpncpy.c: New file.
75263         * lib/unistr/u-stpncpy.h: New file.
75264
75265         * modules/unistr/u8-strcat: New file.
75266         * modules/unistr/u16-strcat: New file.
75267         * modules/unistr/u32-strcat: New file.
75268         * lib/unistr/u8-strcat.c: New file.
75269         * lib/unistr/u16-strcat.c: New file.
75270         * lib/unistr/u32-strcat.c: New file.
75271         * lib/unistr/u-strcat.h: New file.
75272
75273         * modules/unistr/u8-strchr: New file.
75274         * modules/unistr/u16-strchr: New file.
75275         * modules/unistr/u32-strchr: New file.
75276         * lib/unistr/u8-strchr.c: New file.
75277         * lib/unistr/u16-strchr.c: New file.
75278         * lib/unistr/u32-strchr.c: New file.
75279
75280         * modules/unistr/u8-strcmp: New file.
75281         * modules/unistr/u16-strcmp: New file.
75282         * modules/unistr/u32-strcmp: New file.
75283         * lib/unistr/u8-strcmp.c: New file.
75284         * lib/unistr/u16-strcmp.c: New file.
75285         * lib/unistr/u32-strcmp.c: New file.
75286
75287         * modules/unistr/u8-strcpy: New file.
75288         * modules/unistr/u16-strcpy: New file.
75289         * modules/unistr/u32-strcpy: New file.
75290         * lib/unistr/u8-strcpy.c: New file.
75291         * lib/unistr/u16-strcpy.c: New file.
75292         * lib/unistr/u32-strcpy.c: New file.
75293         * lib/unistr/u-strcpy.h: New file.
75294
75295         * modules/unistr/u8-strcspn: New file.
75296         * modules/unistr/u16-strcspn: New file.
75297         * modules/unistr/u32-strcspn: New file.
75298         * lib/unistr/u8-strcspn.c: New file.
75299         * lib/unistr/u16-strcspn.c: New file.
75300         * lib/unistr/u32-strcspn.c: New file.
75301         * lib/unistr/u-strcspn.h: New file.
75302
75303         * modules/unistr/u8-strdup: New file.
75304         * modules/unistr/u16-strdup: New file.
75305         * modules/unistr/u32-strdup: New file.
75306         * lib/unistr/u8-strdup.c: New file.
75307         * lib/unistr/u16-strdup.c: New file.
75308         * lib/unistr/u32-strdup.c: New file.
75309         * lib/unistr/u-strdup.h: New file.
75310
75311         * modules/unistr/u8-strlen: New file.
75312         * modules/unistr/u16-strlen: New file.
75313         * modules/unistr/u32-strlen: New file.
75314         * lib/unistr/u8-strlen.c: New file.
75315         * lib/unistr/u16-strlen.c: New file.
75316         * lib/unistr/u32-strlen.c: New file.
75317         * lib/unistr/u-strlen.h: New file.
75318
75319         * modules/unistr/u8-strmblen: New file.
75320         * modules/unistr/u16-strmblen: New file.
75321         * modules/unistr/u32-strmblen: New file.
75322         * lib/unistr/u8-strmblen.c: New file.
75323         * lib/unistr/u16-strmblen.c: New file.
75324         * lib/unistr/u32-strmblen.c: New file.
75325
75326         * modules/unistr/u8-strmbtouc: New file.
75327         * modules/unistr/u16-strmbtouc: New file.
75328         * modules/unistr/u32-strmbtouc: New file.
75329         * lib/unistr/u8-strmbtouc.c: New file.
75330         * lib/unistr/u16-strmbtouc.c: New file.
75331         * lib/unistr/u32-strmbtouc.c: New file.
75332
75333         * modules/unistr/u8-strncat: New file.
75334         * modules/unistr/u16-strncat: New file.
75335         * modules/unistr/u32-strncat: New file.
75336         * lib/unistr/u8-strncat.c: New file.
75337         * lib/unistr/u16-strncat.c: New file.
75338         * lib/unistr/u32-strncat.c: New file.
75339         * lib/unistr/u-strncat.h: New file.
75340
75341         * modules/unistr/u8-strncmp: New file.
75342         * modules/unistr/u16-strncmp: New file.
75343         * modules/unistr/u32-strncmp: New file.
75344         * lib/unistr/u8-strncmp.c: New file.
75345         * lib/unistr/u16-strncmp.c: New file.
75346         * lib/unistr/u32-strncmp.c: New file.
75347
75348         * modules/unistr/u8-strncpy: New file.
75349         * modules/unistr/u16-strncpy: New file.
75350         * modules/unistr/u32-strncpy: New file.
75351         * lib/unistr/u8-strncpy.c: New file.
75352         * lib/unistr/u16-strncpy.c: New file.
75353         * lib/unistr/u32-strncpy.c: New file.
75354         * lib/unistr/u-strncpy.h: New file.
75355
75356         * modules/unistr/u8-strnlen: New file.
75357         * modules/unistr/u16-strnlen: New file.
75358         * modules/unistr/u32-strnlen: New file.
75359         * lib/unistr/u8-strnlen.c: New file.
75360         * lib/unistr/u16-strnlen.c: New file.
75361         * lib/unistr/u32-strnlen.c: New file.
75362         * lib/unistr/u-strnlen.h: New file.
75363
75364         * modules/unistr/u8-strpbrk: New file.
75365         * modules/unistr/u16-strpbrk: New file.
75366         * modules/unistr/u32-strpbrk: New file.
75367         * lib/unistr/u8-strpbrk.c: New file.
75368         * lib/unistr/u16-strpbrk.c: New file.
75369         * lib/unistr/u32-strpbrk.c: New file.
75370         * lib/unistr/u-strpbrk.h: New file.
75371
75372         * modules/unistr/u8-strrchr: New file.
75373         * modules/unistr/u16-strrchr: New file.
75374         * modules/unistr/u32-strrchr: New file.
75375         * lib/unistr/u8-strrchr.c: New file.
75376         * lib/unistr/u16-strrchr.c: New file.
75377         * lib/unistr/u32-strrchr.c: New file.
75378
75379         * modules/unistr/u8-strspn: New file.
75380         * modules/unistr/u16-strspn: New file.
75381         * modules/unistr/u32-strspn: New file.
75382         * lib/unistr/u8-strspn.c: New file.
75383         * lib/unistr/u16-strspn.c: New file.
75384         * lib/unistr/u32-strspn.c: New file.
75385         * lib/unistr/u-strspn.h: New file.
75386
75387         * modules/unistr/u8-strstr: New file.
75388         * modules/unistr/u16-strstr: New file.
75389         * modules/unistr/u32-strstr: New file.
75390         * lib/unistr/u8-strstr.c: New file.
75391         * lib/unistr/u16-strstr.c: New file.
75392         * lib/unistr/u32-strstr.c: New file.
75393         * lib/unistr/u-strstr.h: New file.
75394
75395         * modules/unistr/u8-strtok: New file.
75396         * modules/unistr/u16-strtok: New file.
75397         * modules/unistr/u32-strtok: New file.
75398         * lib/unistr/u8-strtok.c: New file.
75399         * lib/unistr/u16-strtok.c: New file.
75400         * lib/unistr/u32-strtok.c: New file.
75401         * lib/unistr/u-strtok.h: New file.
75402
75403         * modules/unistr/u8-uctomb: New file.
75404         * modules/unistr/u16-uctomb: New file.
75405         * modules/unistr/u32-uctomb: New file.
75406         * lib/unistr/u8-uctomb.c: New file.
75407         * lib/unistr/u16-uctomb.c: New file.
75408         * lib/unistr/u32-uctomb.c: New file.
75409
75410         * MODULES.html.sh (Unicode string functions): Add the new modules.
75411
75412 2007-01-08  Bruno Haible  <bruno@clisp.org>
75413
75414         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75415         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75416         subdirectories.
75417
75418 2007-01-08  Karl Berry  <karl@gnu.org>
75419
75420         * doc/error.texi: mention that main() fns must set program_name
75421         when progname is used.
75422
75423 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75424
75425         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75426         WCTYPE_H is empty, for the benefit of builds from non-distclean
75427         directories.  Problem reported by Eric Blake in
75428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75429
75430 2007-01-08  Bruno Haible  <bruno@clisp.org>
75431
75432         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75433         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75434         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75435         PROVIDE_CANONICALIZE_FILENAME_MODE.
75436         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75437
75438 2007-01-08  Bruno Haible  <bruno@clisp.org>
75439
75440         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75441         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75442         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75443         * lib/fts.c: Likewise.
75444         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75445
75446 2006-12-25  Bruno Haible  <bruno@clisp.org>
75447
75448         * modules/utf8-ucs4-safe: New file.
75449         * lib/utf8-ucs4-safe.h: New file.
75450         * lib/unistr/utf8-ucs4-safe.c: New file.
75451
75452         * modules/utf16-ucs4-safe: New file.
75453         * lib/utf16-ucs4-safe.h: New file.
75454         * lib/unistr/utf16-ucs4-safe.c: New file.
75455
75456         * MODULES.html.sh (Unicode string functions): Add the new modules.
75457
75458 2007-01-08  Bruno Haible  <bruno@clisp.org>
75459
75460         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75461         (Depends-on): Add unitypes.
75462         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75463         (u8_mbtouc_aux): Move out to separate file.
75464         (u8_mbtouc): Use ucs4_t, uint8_t types.
75465         * lib/unistr/utf8-ucs4.c: New file.
75466
75467         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75468         (Depends-on): Add unitypes.
75469         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75470         (u16_mbtouc_aux): Move out to separate file.
75471         (u16_mbtouc): Use ucs4_t, uint16_t types.
75472         * lib/unistr/utf16-ucs4.c: New file.
75473
75474         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75475         (Depends-on): Add unitypes.
75476         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75477         (u8_uctomb_aux): Move out to separate file.
75478         (u8_uctomb): Use ucs4_t, uint8_t types.
75479         * lib/unistr/ucs4-utf8.c: New file.
75480
75481         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75482         (Depends-on): Add unitypes.
75483         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75484         (u16_uctomb_aux): Move out to separate file.
75485         (u16_uctomb): Use ucs4_t, uint16_t types.
75486         * lib/unistr/ucs4-utf16.c: New file.
75487
75488 2006-12-25  Bruno Haible  <bruno@clisp.org>
75489
75490         * modules/unitypes: New file.
75491         * lib/unitypes.h: New file.
75492         * MODULES.html.sh (func_all_modules): New section "Unicode string
75493         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75494         this section. Add unitypes.
75495
75496 2007-01-08  Bruno Haible  <bruno@clisp.org>
75497
75498         Avoid variable names that conflict with those from libtool.
75499         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75500         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75501         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75502         library_names_spec to acl_library_names_spec, hardcode_* to
75503         acl_hardcode_*.
75504         Reported by Ralf Wildenhues.
75505
75506 2007-01-08  Bruno Haible  <bruno@clisp.org>
75507
75508         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75509         definition.
75510         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75511         definition.
75512         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75513         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75514         definition.
75515         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75516         definition.
75517         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75518         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75519         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75520         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75521         definition.
75522         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75523         definition.
75524         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75525         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75526         GC_USE_<algorithm>.
75527         * lib/gc-libgcrypt.c: Likewise.
75528         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75529         * modules/gc-arctwo (configure.ac): Likewise.
75530         * modules/gc-des (configure.ac): Likewise.
75531         * modules/gc-hmac-md5 (configure.ac): Likewise.
75532         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75533         * modules/gc-md2 (configure.ac): Likewise.
75534         * modules/gc-md4 (configure.ac): Likewise.
75535         * modules/gc-md5 (configure.ac): Likewise.
75536         * modules/gc-random (configure.ac): Likewise.
75537         * modules/gc-rijndael (configure.ac): Likewise.
75538         * modules/gc-sha1 (configure.ac): Likewise.
75539
75540 2007-01-08  Bruno Haible  <bruno@clisp.org>
75541
75542         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75543         macro definition.
75544         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75545         definition.
75546         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75547         definition.
75548         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75549         * modules/fcntl-safer (configure.ac): Likewise.
75550         * modules/fopen-safer (configure.ac): Likewise.
75551         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75552         GNULIB_FWRITEERROR macro definition.
75553
75554 2007-01-08  Bruno Haible  <bruno@clisp.org>
75555
75556         * m4/gnulib-common.m4: New file.
75557         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75558         (func_get_filelist): Add m4/gnulib-common.m4.
75559
75560 2007-01-08  Bruno Haible  <bruno@clisp.org>
75561
75562         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75563         command.
75564
75565 2007-01-08  Jim Meyering  <jim@meyering.net>
75566
75567         Use a more robust test for a "can't happen" condition.
75568         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75569         narrowed the st_size value.  Presuming the "can't happen" condition
75570         is true, that narrowing could conceivably convert an invalid st_size
75571         value into a valid one.  Instead, use a change based on Matthew
75572         Woehlke's original patch.
75573
75574         Slight readability improvement: use an assert-like macro
75575         in place of literal "abort ()" uses.
75576         * lib/fts.c (fts_assert): Define.
75577         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75578         Use this macro instead of a bare 'abort'.
75579
75580 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75583         simply work around them.
75584         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75585         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75586         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75587         declaring.
75588         Don't bother to define as macros, since the standard doesn't require it.
75589         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75590         longer worry about IRIX 5.3.
75591         (HAVE_WCTYPE_CTMP_BUG): Remove.
75592
75593 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75596         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75597         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75598         Problems reported by Georg Schwarz for IRIX 5.3.
75599
75600         * gnulib-tool (autoconf_minversion): Take the maximum version number
75601         found, not the minimum.  Problem reported by James Youngman.
75602
75603 2007-01-03  Karl Berry  <karl@gnu.org>
75604
75605         * doc/error.texi: new file, explaining interaction with progname.
75606         * doc/gnulib.texi: include it.  Update copyright.
75607
75608 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75609
75610         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75611         AC_CANONICAL_HOST, to improve autobuild outputs.
75612
75613 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75614             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75615
75616         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75617         sockets, server sockets, and other file descriptors.  Count errors
75618         to compute the return value.  Reorder the code a bit to be easier
75619         to follow.  Don't set event bits that were not requested (except
75620         POLLERR and POLLHUP).
75621
75622 2007-01-01  Bruno Haible  <bruno@clisp.org>
75623
75624         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75625
75626 2007-01-03  Jim Meyering  <jim@meyering.net>
75627
75628         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75629
75630 2007-01-02  Bruno Haible  <bruno@clisp.org>
75631
75632         * modules/settime (Include): Require timespec.h.
75633         * modules/nanosleep (Include): Likewise.
75634
75635 2007-01-01  Bruno Haible  <bruno@clisp.org>
75636
75637         * gnulib-tool (func_emit_copyright_notice): Bump year.
75638         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75639
75640 2007-01-01  Bruno Haible  <bruno@clisp.org>
75641
75642         Improve support for OpenBSD.
75643         * build-aux/config.rpath (libname_spec): Export.
75644         (library_names_spec): New variable. Export.
75645         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75646         library_names_spec from the config.rpath output. Locate shared library
75647         through the name pattern in library_names_spec.
75648
75649 2007-01-01  Eric Blake  <ebb9@byu.net>
75650
75651         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75652
75653 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75656         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75657         assume the C locale, and avoid an "eval" that could cause trouble.
75658         Problem with SORT reported by Bob Proulx.
75659
75660         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75661         Define.  Trivial patch from Henning Nielsen Lund, originally
75662         sent to bug-grep@gnu.org today.
75663
75664 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75667         struct stat.  Problem reported by Henning Nielsen Lund.
75668         * lib/acl.c: Include acl.h first, to check interface.  Don't
75669         bother to include sys/types.h and sys/stat.h again.
75670
75671 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         Import the following change from libc; problem reported by
75674         Sven Verdoolaege.
75675
75676         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75677
75678         [BZ #1373]
75679         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75680
75681 2006-12-28  Jim Meyering  <jim@meyering.net>
75682
75683         * build-aux/announce-gen: Do not assume that the package
75684         builds any of tar.gz, tar.bz2, and .xdelta files.
75685         Suggestion from Simon Josefsson.
75686
75687 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75688
75689         * modules/announce-gen: New file.
75690
75691 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75694         handles its gotchas now.
75695         * lib/mbswidth.c: Likewise.
75696         * lib/wcwidth.h: Likewise.
75697         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75698         and iswcntrl; the wctype module does this stuff now.
75699         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75701         * modules/mbchar (Depends-on): Add wctype.
75702         * modules/mbswidth (Depends-on): Likewise.
75703         * modules/wcwidth (Depends-on): Likewise.
75704
75705 2006-12-27  Eric Blake  <ebb9@byu.net>
75706
75707         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75708         module uses more than what <wctype.h> is required to provide.
75709
75710 2006-12-26  Eric Blake  <ebb9@byu.net>
75711
75712         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75713
75714 2006-12-26  Eric Blake  <ebb9@byu.net>
75715
75716         * modules/absolute-header: New module.
75717         * modules/fcntl (Depends-on): Depend on it.
75718         * modules/inttypes (Depends-on): Likewise.
75719         * modules/stdint (Depends-on): Likewise.
75720         * modules/sys_stat (Depends-on): Likewise.
75721         * modules/wctype (Depends-on): Likewise.
75722         * MODULES.html.sh (Support for building libraries and
75723         executables): Document it.
75724
75725 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * gnulib-tool (SED): Remove, undoing previous change.
75728         The problem was that it broke coreutils on Solaris, because
75729         "sed --posix" leaked into a makefile.
75730         (sed): New alias, if 'alias' and GNU sed.
75731
75732 2006-12-24  Jim Meyering  <jim@meyering.net>
75733
75734         Work around an fchownat bug in glibc-2.4:
75735         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75736         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75737         in spite of the -P option.
75738         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75739         New macros.
75740         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75741         * modules/openat (Files): Add lib/fchownat.c.
75742         * lib/openat.c (fchownat): Don't define here.  Move to...
75743         * lib/fchownat.c: ...this new file.
75744
75745 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         Fix bug reported by Bruno Haible in
75748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75749         where quotearg.c didn't compile on Mac OS X 10.2 because it
75750         lacks <wchar.h> and wint_t.
75751         * lib/wctype_.h (__wctype_wint_t): New type.
75752         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75753         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75754         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75755         Arg is now of type __wctype_wint_t, not wint_t.
75756         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75757         substitute HAVE_WINT_T.
75758         * modules/wctype (Files): Add m4/wint_t.m4.
75759         (wctype.h): Substitute HAVE_WINT_T.
75760
75761 2006-12-23  Bruno Haible  <bruno@clisp.org>
75762
75763         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75764
75765 2006-12-23  Bruno Haible  <bruno@clisp.org>
75766
75767         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75768         S_ISLNK.
75769         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75770         mingw.
75771
75772 2006-12-22  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/copy-file.c: Include acl.h.
75775         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75776         Close the file descriptors only after being done with copy_acl.
75777         * modules/copy-file (Depends-on): Add acl.
75778
75779 2006-12-22  Bruno Haible  <bruno@clisp.org>
75780
75781         * gnulib-tool (SED): New variable.
75782         Use $SED instead of sed everywhere.
75783
75784 2006-12-22  Bruno Haible  <bruno@clisp.org>
75785
75786         * modules/no-c++: New file.
75787         * m4/no-c++.m4: New file.
75788         * MODULES.html.sh (Support for building libraries and executables):
75789         Add no-c++.
75790
75791 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75792
75793         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75794         Include <limits.h>, and use its INT_MAX to rewrite the
75795         j loop so that it does not overflow 'int'.  Problem reported by
75796         Ralf Wildenhues in
75797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75798         Play it safe by shifting left by 1 rather than multiplying by 2,
75799         as GCC is less likely to optimize this away when the value
75800         is signed (when it assumes overflow leads to undefined behavior).
75801         Also, don't assume time_t uses two's complement.
75802
75803 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75804
75805         * MODULES.html.sh: New module wctype.
75806         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75807         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75808         <wctype.h>, since the new wctype module should fix this.
75809         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75810         the wctype module should arrange for it.
75811         * lib/regex_internal.h: Likewise.
75812         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75813         since the wctype module should handle this now.
75814         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75815         * modules/fnmatch (Depends-on): Add wctype.
75816         * modules/quotearg (Depends-on): Likewise.
75817         * modules/regex (Depends-on): Likewise.
75818
75819 2006-12-19  Bruno Haible  <bruno@clisp.org>
75820
75821         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75822         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75823
75824 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75825
75826         * modules/savewd (Depends-on): Fix dependency on fcntl.
75827
75828 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75831         conforms to C99, rather than relying on the user's environment
75832         setting of STDINT_H.
75833
75834 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75835         and Eric Blake  <ebb9@byu.net>
75836
75837         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75838         This is more consistent with the other defines here.
75839         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75840         Port to z/OS.  Problem reported by Paul Gilmartin.
75841         Change local vars to use gl_ prefix rather than ac_.
75842         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75843         with other defines.
75844         * modules/double-slash-root: New module.
75845         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75846         (Depends-on): Add double-slash-root.
75847         * MODULES.html.sh (File system functions): Mention new module.
75848
75849 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75852         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75853         This is for the benefit of gzip, which doesn't do i18n.
75854
75855 2006-12-12  Jim Meyering  <jim@meyering.net>
75856
75857         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75858         Reported by Andreas Schwab <schwab@suse.de>.
75859
75860 2006-12-12  Bruno Haible  <bruno@clisp.org>
75861
75862         Merge these changes.
75863         2006-09-05  Bruno Haible  <bruno@clisp.org>
75864         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75865         iconv_alloc succeeded.
75866         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75867         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75868         test for " && dest " at the end - dest is always != NULL there. Call
75869         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75870         with 2xNULL arguments, also to flush the state storage. Handle the
75871         IRIX iconv behaviour. Realloc the final result, to throw away unused
75872         memory.
75873
75874 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75875
75876         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75877         and fchmodat unconditionally, since glibc 2.4 has them.
75878         Problem reported by Arkadiusz Miskiewicz.
75879
75880 2006-12-10  Bruno Haible  <bruno@clisp.org>
75881
75882         * gnulib-tool (func_import): Show the include files only for those
75883         modules that are copied and specified.
75884         Reported by Karl Berry.
75885
75886 2006-12-08  Jim Meyering  <jim@meyering.net>
75887
75888         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75889         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75890
75891         * build-aux/announce-gen: Add two new options, both optional:
75892         --bootstrap-tools=TOOL_LIST
75893               a comma-separated list of tools, e.g.,
75894               autoconf,automake,bison,gnulib
75895         --gnulib-snapshot-date=DATE
75896               if gnulib is in the bootstrap tool list,
75897               then report this as the snapshot date.
75898               If not specified, use the current date/time.
75899               If you specify a date here, be sure it's UTC.
75900
75901 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75902
75903         * tests/test-argp-2.sh: Fix test to match actual output.
75904         (func_compare): Fix sed script to be portable.
75905
75906 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75909         workaround for this case.  It is not autoconfigured now; offhand
75910         it's hard to see how to autoconfigure it.
75911
75912 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75915         a directory that is about to be chowned.  Such a directory's
75916         initial file permissions should permit the owner only and this
75917         should not be changed until after the chown, since the group and
75918         other bits would be incorrect if they granted permission before
75919         the chown.
75920
75921         Fix porting problem for iswctype reported by Georg Schwarz in:
75922         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75923         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75924         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75926         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75927
75928 2006-12-03  Jim Meyering  <jim@meyering.net>
75929
75930         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75931         p->fts_statp may not yet be defined.
75932         (fts_read): Instead, set it in the caller, once p->fts_statp is
75933         sure to be defined, and corresponds to a top-level directory.
75934         This bug made du -x fail.  Here's the coreutils test case:
75935         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75936         Reported by Mike Frysinger.
75937
75938 2006-12-01  Jim Meyering  <jim@meyering.net>
75939
75940         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75941         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75942         Reported by Simon Josefsson.
75943
75944 2006-11-30  Jim Meyering  <jim@meyering.net>
75945
75946         * m4/warning.m4: Use the all-permissive copyright notice
75947         recommended by RMS (rather than LGPL).
75948         * m4/vararrays.m4: Likewise.
75949         * m4/flexmember.m4: Likewise.
75950
75951 2006-11-29  Bruno Haible  <bruno@clisp.org>
75952
75953         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75954         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75955         using +=.
75956         Reported by Simon Josefsson <simon@josefsson.org>.
75957
75958 2006-11-28  James Youngman <jay@gnu.org>
75959
75960         * README: Advise users that they might find the bug-gnulib@gnu.org
75961         and autotools-announce@gnu.org mailing lists useful.
75962
75963 2006-11-28  Bruno Haible  <bruno@clisp.org>
75964
75965         * m4/ptrdiff_max.m4: Remove file.
75966
75967 2006-11-21  Bruno Haible  <bruno@clisp.org>
75968
75969         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75970         _AC_COMPUTE_INT.
75971         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75972         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75973         _AC_COMPUTE_INT.
75974         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75975         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75976         _AC_COMPUTE_INT.
75977         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75978
75979 2006-11-28  Jim Meyering  <jim@meyering.net>
75980
75981         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75982         warning from "gcc -Wshadow" about shadowing the builtin.
75983
75984 2006-11-27  Bruno Haible  <bruno@clisp.org>
75985
75986         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75987         _AC_COMPUTE_INT.
75988         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75989
75990 2006-11-27  Bruno Haible  <bruno@clisp.org>
75991             Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75994
75995 2006-11-26  Bruno Haible  <bruno@clisp.org>
75996
75997         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75998         noinst_LTLIBRARIES.
75999
76000 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76001             Bruno Haible  <bruno@clisp.org>
76002
76003         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76004         if compiling with "gcc -ansi".
76005
76006 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         Fix some incompatibilities with gcc -ansi -pedantic.
76009         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76010         if compiling pedantically with GCC, unless it's C99 or later.
76011         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76012         it mishandles gcc -ansi -pedantic as well.
76013         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76014         if gcc -pedantic.
76015         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76016         initializers for struct if -pedantic, unless it's C99 or later.
76017
76018 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76019
76020         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76021         Don't close an fd more than once. Identical atimes indicate
76022         success, not failure.
76023
76024 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76025
76026         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76027
76028 2006-11-23  Jim Meyering  <jim@meyering.net>
76029
76030         * build-aux/announce-gen: New file.  From coreutils.
76031
76032 2006-11-22  Jim Meyering  <jim@meyering.net>
76033
76034         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76035         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76036         (fts_read): Use a temporary to narrow the overused st_size member
76037         before using it in a switch statement.  Reported by Matthew Woehlke.
76038
76039         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76040         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76041
76042 2006-11-20  Bruno Haible  <bruno@clisp.org>
76043
76044         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76045         changequote instead of pairs of brackets.
76046         Reported by Andreas Schwab <schwab@suse.de>.
76047
76048 2006-11-21  Jim Meyering  <jim@meyering.net>
76049
76050         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76051         so as to remain compatible with older compilers.
76052         Patch from Michael Deutschmann.
76053
76054 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         * MODULES.html.sh (File system functions): Add openat.
76057
76058         * lib/openat.h (rpl_fstatat): New macro, if
76059         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76060         (fstatat): Define to rpl_fstatat under the same conditions,
76061         unless COMPILING_FSTATAT.
76062         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76063         seems to have the bug.
76064         * lib/fstatat.c: New file.
76065         * modules/openat (Files): Add it.
76066
76067 2006-11-20  Bruno Haible  <bruno@clisp.org>
76068
76069         * Makefile: New file.
76070
76071 2006-11-20  Jim Meyering  <jim@meyering.net>
76072
76073         The beginnings of syntax-related checks for gnulib.
76074         * lib/Makefile: New file.
76075         * lib/t-idcache: New script.  Ensure that the two halves of
76076         idcache.c stay in sync.
76077
76078         * lib/idcache.c: Adjust comments in user- and group- portions to
76079         be more accurate, and to be consistent with one another.
76080
76081 2006-11-20  Jim Meyering  <jim@meyering.net>
76082
76083         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76084         continue using the flexible array member (thus, this module performs
76085         half as many malloc calls), with the addition that...
76086         (getgroup, getuser): Consistently record a non-match via an empty
76087         "name" string, and map an empty string match to a NULL return value.
76088         * modules/idcache (Depends-on): Re-add flexmember.
76089
76090         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76091         (getuidbyname, getgroup, getgidbyname): Likewise.
76092
76093         Use cleaner syntax: NULL rather than 0.
76094         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76095
76096 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76099         It mishandled the case where the group was missing.
76100         Problem reported by Greg Schafer.
76101         * modules/idcache: Likewise.
76102
76103 2006-11-18  Jim Meyering  <jim@meyering.net>
76104
76105         * check-module (%exempt_header): Add exception for some
76106         conditionally-included headers.
76107
76108         * modules/i-ring (Depends-on): Add verify.
76109         (License): Change to LGPL.
76110
76111 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76114         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76115         and inttostr.h.  Use snprintf rather than uinttostr, so that
76116         LGPLed code doesn't depend on GPLed.
76117
76118 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * modules/inline (License): Change from GPL to LGPL.
76121
76122 2006-11-17  Jim Meyering  <jim@meyering.net>
76123
76124         * modules/d-type (License): Switch to LGPL.
76125
76126 2006-11-15  Bruno Haible  <bruno@clisp.org>
76127
76128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76129
76130 2006-11-15  Eric Blake  <ebb9@byu.net>
76131
76132         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76133         the module dependency.
76134
76135 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76136             Bruno Haible  <bruno@clisp.org>
76137
76138         * gnulib-tool (func_create_testdir): Add license consistency check.
76139
76140 2006-11-15  Eric Blake  <ebb9@byu.net>
76141
76142         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76143         random "(cached)" in configure output.
76144
76145 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76146
76147         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76148         test for conforming inttypes.h is both announced and cached.
76149
76150         * MODULES.html.sh (seen_modules, seen_files): New variables.
76151         (func_module): Rewrite to use a few less gnulib-tool and sed
76152         invocations.  Avoid a couple of quadratic algorithms for ...
76153         (missed_modules, missed_files): ... these, with ...
76154         (func_append, func_tmpdir): ... these new functions, from
76155         gnulib-tool.  Analogously, install traps for cleanup.
76156
76157         * tests/test-gc.c (main): Remove unused variables.
76158         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76159
76160 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         * modules/inttostr (License): Change to LGPL.
76163
76164 2006-11-14  Eric Blake  <ebb9@byu.net>
76165
76166         * modules/tempname (License): Change to LGPL.
76167
76168 2006-11-14  Eric Blake  <ebb9@byu.net>
76169
76170         * doc/functions.texi (Function Portability): *printf functions on
76171         Cygwin now understand all POSIX size specifiers.
76172
76173 2006-11-14  Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/c-ctype (License): Change to LGPL.
76176
76177 2006-11-12  Bruno Haible  <bruno@clisp.org>
76178
76179         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76180         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76181         for GNOME libraries, for which the include files are installed in
76182         subdirectories of $prefix/include.
76183
76184 2006-11-12  Bruno Haible  <bruno@clisp.org>
76185
76186         * m4/lib-link.m4: Require at least autoconf-2.54.
76187         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76188         name to underscores for the --with option.
76189
76190 2006-11-13  Bruno Haible  <bruno@clisp.org>
76191
76192         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76193         the tests directory.
76194         Reported by Ralf Wildenhues.
76195
76196 2006-11-13  Bruno Haible  <bruno@clisp.org>
76197
76198         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76199         (func_emit_initmacro_end): Undo the override here.
76200         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76201         Works around the famous automake error in coreutils.
76202
76203 2006-11-13  Eric Blake  <ebb9@byu.net>
76204
76205         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76206         element, not its node.
76207
76208 2006-11-12  Bruno Haible  <bruno@clisp.org>
76209
76210         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76211         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76212
76213 2006-11-12  Bruno Haible  <bruno@clisp.org>
76214
76215         * gnulib-tool: New option --local-symlink.
76216         (func_usage): Document it.
76217         (lsymbolic): New variable.
76218         (func_import, func_create_testdir): If --symlink was not specified,
76219         test whether --local-symlink was specified and the file comes from
76220         the local_gnulib_dir.
76221
76222 2006-11-12  Bruno Haible  <bruno@clisp.org>
76223
76224         * gnulib-tool (func_ln): New function.
76225         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76226
76227 2006-11-12  Bruno Haible  <bruno@clisp.org>
76228
76229         Finish support for source files in subdirectories.
76230         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76231         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76232         AUTOMAKE_OPTIONS.
76233         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76234
76235 2006-11-12  Bruno Haible  <bruno@clisp.org>
76236
76237         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76238         EXTRA_lib_SOURCES augmentation.
76239         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76240
76241 2006-11-12  Jim Meyering  <jim@meyering.net>
76242
76243         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76244         file descriptors.  This also averts a failure on systems with
76245         native openat support when a traversed directory lacks "x" access.
76246         * lib/fts_.h: Include "i-ring.h"
76247         (struct FTS) [fts_fd_ring]: New member.
76248         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76249         (FCHDIR): Add parentheses.
76250         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76251         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76252         When descending, rather than simply closing the previous
76253         fts_cwd_fd value, push that file descriptor onto the ring.
76254         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76255         (fts_open): Initialize the new fd_ring member.
76256         (fts_close): Clear the ring.
76257         (fts_safe_changedir): When possible, use our new fd_ring to skip
76258         the diropen and fstat and dev/ino comparison that would normally
76259         accompany a virtual `chdir ("..")'.
76260
76261         * modules/fts (Depends-on): Add i-ring.
76262         * modules/i-ring: New module.
76263         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76264         * m4/i-ring.m4: New file.
76265
76266 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76267
76268         * gnulib-tool (func_create_testdir): Fix replacement of
76269         `build-aux' in configure.ac.  Run autotools in gltests
76270         subdirectory.
76271         (func_create_testdir, func_create_megatestdir, test): There is
76272         no need for '--force' in most autotool invocations in a new
76273         tree.  Actually fail the whole test if any of the tools, or the
76274         configure or make stages fail.
76275
76276         Sync from Automake.
76277         * build-aux/gnupload: Revert last change.  Add pointer to upload
76278         instructions of the GNU Maintenance Instructions.
76279         Suggestion by Karl Berry.
76280
76281 2006-11-10  Jim Meyering  <jim@meyering.net>
76282
76283         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76284
76285 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76288         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76289         (bind_textdomain_codeset) [! ENABLE_NLS]:
76290         Evaluate all the arguments.  That way, callers get compatible behavior
76291         if the arguments have side effects.  Also, it avoids some GCC
76292         diagnostics in some cases; Joel E. Denny reported problems when Bison
76293         was configured with --enable-gcc-warnigs.
76294
76295 2006-11-10  Jim Meyering  <jim@meyering.net>
76296
76297         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76298         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76299         account.
76300
76301 2006-11-10  Jim Meyering  <jim@meyering.net>
76302
76303         * modules/inline: New file/module.
76304         * modules/xalloc (Files): Remove m4/inline.m4.
76305         (Depends-on): Add inline, instead.
76306         * modules/oset: Likewise.
76307         * modules/list: Likewise.
76308
76309 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76312         Problem reported by Matthew Woehlke.
76313
76314 2006-11-09  Bruno Haible  <bruno@clisp.org>
76315
76316         * lib/tempname.c (gen_tempname): Remove variant that invokes
76317         __gen_tempname.
76318         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76319         __gen_tempname.
76320
76321 2006-11-08  Bruno Haible  <bruno@clisp.org>
76322
76323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76324         to 'yes' instead of 'cross-compiling'.
76325
76326 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * lib/quotearg.h (quotearg_free): New decl.
76329         * lib/quotearg.c (quotearg_free): New function.
76330         (slot0, nslots, slotvec0, slotvec):
76331         Now file-scope so that quotearg_free can get at them.
76332
76333 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76334
76335         Sync from Automake.
76336         * build-aux/gnupload: Add missing 'gnu' to example URL.
76337         Report by Karl Berry.
76338
76339 2006-11-08  Bruno Haible  <bruno@clisp.org>
76340
76341         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76342         Suggested by Paul Eggert.
76343
76344 2006-11-08  Jim Meyering  <jim@meyering.net>
76345
76346         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76347         It's already included if !_LIBC.
76348         (fts_safe_changedir): Add a comment.
76349
76350 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76353         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76354         Matthew Woehlke.
76355
76356         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76357         definitions up, to avoid colliding with change below.
76358         (static_inline) [HAVE_INLINE]: New macro.
76359         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76360         Provide extern decls when !HAVE_INLINE.  Do not define unless
76361         static_inline is defined, either by us or by xmalloc.c.  Use
76362         static_inline rather than static inline.
76363         (XCALLOC): Optimize sizeof(T) = 1 case.
76364         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76365
76366 2006-11-07  Bruno Haible  <bruno@clisp.org>
76367
76368         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76369         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76370         AC_C_INLINE.
76371         * modules/xalloc (Files): Add m4/inline.m4.
76372
76373 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76374
76375         * README: Fix typo.
76376         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76377         (Miscellanous Notes): ...from this.
76378
76379 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76382         Mention that offsetof should be used instead of sizeof.
76383         From Bruno Haible.
76384
76385 2006-11-07  Bruno Haible  <bruno@clisp.org>
76386
76387         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76388
76389 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76390
76391         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76392         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76393         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76394         (gl_tree_add_before, gl_tree_add_after):
76395         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76396         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76397         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76398         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76399         (gl_linked_add_after, gl_linked_add_at): Likewise.
76400         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76401         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76402         (gl_tree_add_before, gl_tree_add_after): Likewise.
76403         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76404         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76405         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76406
76407 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76408
76409         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76410
76411 2006-11-06  Bruno Haible  <bruno@clisp.org>
76412
76413         * m4/inline.m4: New file.
76414         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76415         * modules/list (Files): Add m4/inline.m4.
76416         * modules/oset (Files): Likewise.
76417
76418 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76419
76420         * lib/idcache.c: Include <stddef.h>, for offsetof.
76421         (struct userid.name): Change from char * to a flexible array member.
76422         All uses changed.
76423         * modules/idcache (Depends-on): Add flexmember.
76424
76425         * MODULES.html.sh (Core language properties): New module flexmember.
76426         * modules/flexmember, m4/flexmember.m4: New files.
76427
76428         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76429         inline functions that are identical with the old xnmalloc_inline,
76430         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76431         that we can avoid some unnecessary integer multiplications and
76432         divisions in the common case where the element size is known at
76433         compile time.
76434         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76435         needed.
76436         (xnboundedmalloc): Remove.
76437         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76438         arguments, for consistency with rest of this header.
76439         (xcharalloc): Rewrite using XNMALLOC.
76440         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76441         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76442         versions have been moved to lib/xalloc.h and renamed to be the
76443         non-*_inline versions.
76444         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76445         and xnrealloc functions, since those functions are now inline and
76446         now call us.
76447         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76448         renaming described above.
76449         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76450         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76451         captures the dependency in AC_C_INLINE.
76452
76453         New module canonicalize-lgpl, proposed by Charles Wilson in
76454         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76455         with a few small changes afterwards.
76456         * MODULES.html.sh (File system functions): New module
76457         canonicalize-lgpl.
76458         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76459         and canonicalize_file_name.
76460         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76461         * modules/canonicalize-lgpl: New files.
76462
76463 2006-11-05  Bruno Haible  <bruno@clisp.org>
76464
76465         * gnulib-tool (func_import, func_create_testdir): Create directories
76466         also for files in subdirectories of lib/.
76467
76468 2006-11-05  Bruno Haible  <bruno@clisp.org>
76469
76470         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76471         ANSI C compliant.
76472
76473 2006-11-03  Bruno Haible  <bruno@clisp.org>
76474
76475         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76476         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76477         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76478         (xnboundedmalloc): New inline function.
76479         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76480         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76481         xmalloc.
76482         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76483         xmalloc.
76484         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76485         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76486         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76487         xmalloc.
76488         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76489         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76490         xmalloc.
76491         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76492         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76493         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76494         xmalloc.
76495         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76496         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76497         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76498         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76499         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76500         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76501         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76502
76503 2006-11-03  Bruno Haible  <bruno@clisp.org>
76504
76505         * lib/c-ctype.h [C++]: Define functions without name mangling.
76506         * lib/fwriteerror.h [C++]: Likewise.
76507         * lib/gcd.h [C++]: Likewise.
76508         * lib/linebreak.h [C++]: Likewise.
76509
76510 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76513         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76514         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76516         Check for functions and headers just once.
76517         Check for declaration of canonicalize_file_name.
76518         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76519
76520 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76521
76522         * gnulib-tool (func_import): Fix typo in actioncmd.
76523
76524 2006-11-02  Bruno Haible  <bruno@clisp.org>
76525
76526         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76527         newline sequence in the Makefile.am snippet as a space, like "make"
76528         does.
76529         Reported by Roger Persson <perrog@gmail.com>.
76530
76531 2006-11-01  Bruno Haible  <bruno@clisp.org>
76532
76533         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76534         already declared in <string.h>.
76535         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76536
76537 2006-11-01  Bruno Haible  <bruno@clisp.org>
76538
76539         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76540         * lib/strcase.h: Include <string.h>.
76541         (strcasecmp): Define to rpl_strcasecmp here.
76542
76543 2006-11-01  Bruno Haible  <bruno@clisp.org>
76544
76545         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76546
76547 2006-11-01  Eric Blake  <ebb9@byu.net>
76548
76549         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76550
76551         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76552
76553 2006-10-29  Bruno Haible  <bruno@clisp.org>
76554
76555         Make it compile in C++ mode.
76556         * lib/full-write.c (full_rw): Add a cast.
76557
76558 2006-11-01  Bruno Haible  <bruno@clisp.org>
76559
76560         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76561         be POSIX compliant.
76562         Reported by Roger Persson <perrog@gmail.com>.
76563
76564 2006-11-01  Eric Blake  <ebb9@byu.net>
76565
76566         * lib/getopt_.h: Fix comments.
76567
76568 2006-10-31  Eric Blake  <ebb9@byu.net>
76569
76570         * modules/tmpdir (Depends-on): Add sys_stat.
76571         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76572         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76573         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76574         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76575         tempname.
76576
76577 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         Avoid some C++ diagnostics reported by Bruno Haible.
76580         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76581         xmalloc.
76582         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76583         (struct slotvec): Move to top level.
76584         (quotearg_n_options): Rewrite to avoid xmalloc.
76585         * lib/xalloc.h (xcharalloc): New function.
76586         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76587         [defined __cplusplus]: Add function template that provides result
76588         type propagation.  This part of the change is from Bruno Haible.
76589
76590 2006-10-29  Bruno Haible  <bruno@clisp.org>
76591
76592         Make it compile in C++ mode.
76593         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76594         * lib/strnlen1.c (strnlen1): Cast memchr result.
76595         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76596         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76597         (create_temp_dir): Rename local variable 'template'.
76598         (compile_csharp_using_sscli): Add cast.
76599         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76600         * lib/findprog.c (find_in_path): Likewise.
76601         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76602         * lib/wait-process.c (register_slave_subprocess): Likewise.
76603
76604 2006-10-22  Bruno Haible  <bruno@clisp.org>
76605
76606         * modules/tsearch: New file.
76607         * lib/tsearch.h: New file.
76608         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76609         * m4/tsearch.m4: New file.
76610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76611
76612 2006-10-29  Eric Blake  <ebb9@byu.net>
76613
76614         * lib/arcfour.c: Assume config.h.
76615         * lib/arctwo.c: Likewise.
76616         * lib/base64.c: Likewise.
76617         * lib/check-version.c: Likewise.
76618         * lib/crc.c: Likewise.
76619         * lib/des.c: Likewise.
76620         * lib/gc-gnulib.c: Likewise.
76621         * lib/gc-libgcrypt.c: Likewise.
76622         * lib/gc-pbkdf2-sha1.c: Likewise.
76623         * lib/getaddrinfo.c: Likewise.
76624         * lib/getdelim.c: Likewise.
76625         * lib/getline.c: Likewise.
76626         * lib/hmac-md5.c: Likewise.
76627         * lib/hmac-sha1.c: Likewise.
76628         * lib/iconvme.c: Likewise.
76629         * lib/md2.c: Likewise.
76630         * lib/md4.c: Likewise.
76631         * lib/memxor.c: Likewise.
76632         * lib/read-file.c: Likewise.
76633         * lib/readline.c: Likewise.
76634         * lib/rijndael-alg-fst.c: Likewise.
76635         * lib/rijndael-api-fst.c: Likewise.
76636         * lib/xgetdomainname.c: Likewise.
76637
76638 2006-10-28  Eric Blake  <ebb9@byu.net>
76639
76640         * lib/xstrndup.c: Assume config.h.
76641
76642 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76645         stat-macros.h is now for our own macros, whereas stat_h is for
76646         macros in the <sys/stat.h> name space.
76647         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76648         (STAT_MACROS_H): Remove.
76649         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76650         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76651         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76652         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76653         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76654         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76655         Move these macros to ...
76656         * lib/stat_.h: here.  Don't include stat-macros.h.
76657         * lib/canonicalize.c: Don't include stat-macros.h.
76658         * lib/chown.c: Likewise.
76659         * lib/euidaccess.c: Likewise.
76660         * lib/file-type.c: Likewise.
76661         * lib/filemode.c: Likewise.
76662         * lib/glob.c: Likewise.
76663         * lib/isapipe.c: Likewise.
76664         * lib/lchown.c: Likewise.
76665         * lib/lstat.c: Likewise.
76666         * lib/mkdir-p.c: Likewise.
76667         * lib/rmdir.c: Likewise.
76668         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76670         unless mkdir isn't declared, to speed up 'configure'.
76671         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76672         would define all the S_* symbols.
76673         * modules/canonicalize (Depends-on):
76674         Depend on sys_stat, not stat-macros.
76675         * modules/chown: Likewise.
76676         * modules/euidaccess: Likewise.
76677         * modules/filemode: Likewise.
76678         * modules/file-type: Likewise.
76679         * modules/glob: Likewise.
76680         * modules/isapipe: Likewise.
76681         * modules/lchown: Likewise.
76682         * modules/lstat: Likewise.
76683         * modules/mkancesdirs: Likewise.
76684         * modules/rmdir: Likewise.
76685         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76686         * modules/modechange: Likewise.
76687         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76688         (configure.ac): Remove gl_STAT_MACROS.
76689         * modules/sys_stat (Depends-on): Remove stat-macros.
76690
76691 2006-10-27  Bruno Haible  <bruno@clisp.org>
76692
76693         * m4/signed.m4: Remove file.
76694         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76695         invocation.
76696         * modules/vasnprintf (Files): Remove m4/signed.m4.
76697
76698 2006-10-27  Bruno Haible  <bruno@clisp.org>
76699
76700         Update to GNU gettext 0.16.
76701         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76702         m4/inttypes-h.m4, m4/signed.m4.
76703         * m4/gettext.m4: Update to GNU gettext 0.16.
76704         * m4/intl.m4: New file, from GNU gettext.
76705         * m4/intldir.m4: New file, from GNU gettext.
76706         * config/srclist.txt: Update
76707
76708 2006-10-27  Eric Blake  <ebb9@byu.net>
76709
76710         * MODULES.html.sh: Document tempname.
76711         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76712         dependencies.
76713         (Files): Move lib/tempname.c...
76714         * modules/tempname: ...to this new module.
76715         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76716         (gl_PREREQ_TEMPNAME): Move...
76717         * m4/tempname.m4: ...to this new file.
76718         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76719         * modules/sys_stat (Depends-on): Add stat-macros.
76720         * lib/stat_.h (includes): Pick up stat macros.
76721         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76722         if stat macros are broken.
76723         * lib/tempname.c (includes): No need to include "stat-macros.h".
76724         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76725         (direxists, __path_search) [!_LIBC]: Don't compile these in
76726         gnulib; the tmpdir module covers that.
76727         * lib/tempname.h: New file.
76728
76729 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76730
76731         * COPYING: Explain how gnulib-tool converts licence headers.
76732         Almost all wording by Eric Blake.
76733
76734 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * lib/mbchar.h (is_basic_table): Make read-only.
76737         * lib/mbchar.c (is_basic_table): Likewise.
76738         Reported by John Darrington.
76739
76740 2006-10-25  Bruno Haible  <bruno@clisp.org>
76741
76742         * lib/progname.h (set_program_name): Undefine before defining.
76743
76744 2006-10-25  Bruno Haible  <bruno@clisp.org>
76745
76746         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76747         false for non-gcc C++ compilers.
76748         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76749
76750 2006-10-24  Bruno Haible  <bruno@clisp.org>
76751
76752         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76753         iconv implementations like Irix iconv.
76754
76755 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         * modules/vararrays: New file.
76758         * m4/vararrays.m4: New file, taken from diffutils.
76759         * MODULES.html.sh: New module vararrays.
76760
76761 2006-10-24  Karl Berry  <karl@gnu.org>
76762
76763         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76764         Don't call GNU Unix.
76765
76766 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76767
76768         * users.txt: Add Libtool.
76769
76770         Sync from Libtool:
76771
76772         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76775         to gnulib's policy of including config.h unconditionally.
76776
76777 2006-10-24  Bruno Haible  <bruno@clisp.org>
76778
76779         * modules/wcwidth (Files): Add m4/wint_t.m4.
76780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76781         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76782
76783 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76786         to pacify GCC with some -W flags enabled.  Problem reported by
76787         Bruno Haible.
76788
76789 2006-10-24  Jim Meyering  <jim@meyering.net>
76790
76791         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76792         Reported by Karl Berry.
76793
76794 2006-10-23  Bruno Haible  <bruno@clisp.org>
76795
76796         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76797
76798 2006-10-24  Bruno Haible  <bruno@clisp.org>
76799
76800         * lib/gl_list.h: Use C comment style, not C++ comment style.
76801
76802 2006-10-23  Eric Blake  <ebb9@byu.net>
76803
76804         * lib/getaddrinfo.c (includes): Add missing include.
76805
76806 2006-10-23  Bruno Haible  <bruno@clisp.org>
76807             Paul Eggert  <eggert@cs.ucla.edu>
76808
76809         Ability to rename obstack_free.
76810         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76811         obstack_free.
76812         (obstack_free): Invoke the __obstack_free macro.
76813         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76814
76815 2006-10-23  Bruno Haible  <bruno@clisp.org>
76816             Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76819         __argc, __argv from the declaration. (They are defined as macros on
76820         mingw.)
76821
76822 2006-10-22  Bruno Haible  <bruno@clisp.org>
76823
76824         * doc/gnulib-intro.texi: New file.
76825         * doc/gnulib.texi: Include it.
76826
76827 2006-10-21  Bruno Haible  <bruno@clisp.org>
76828
76829         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76830         "Introduction", "Miscellanous Notes", "Particular Modules".
76831
76832 2006-10-21  Bruno Haible  <bruno@clisp.org>
76833
76834         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76835         Change mostlyclean-local rule to avoid sh syntax error from bash
76836         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76837
76838 2006-10-23  Jim Meyering  <jim@meyering.net>
76839
76840         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76841         in place of snprintf.
76842
76843         * modules/inttostr (Files): Add lib/uinttostr.c.
76844         * lib/uinttostr.c (inttostr): New file/function.
76845         * lib/inttostr.h (uinttostr): Declare.
76846         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76847         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76848         Add uinttostr.
76849         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76850
76851 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * lib/canonicalize.c (ELOOP): Define if not already defined.
76854         Problem reported by Bruno Haible in
76855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76856
76857 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76858
76859         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76860         Problem reported by Perry Smith and Ville Laurikari.
76861
76862         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76863         uses.
76864
76865 2006-10-19  Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76868         for mingw.
76869
76870 2006-10-19  Bruno Haible  <bruno@clisp.org>
76871
76872         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76873         Needed for mingw.
76874
76875 2006-10-19  Bruno Haible  <bruno@clisp.org>
76876
76877         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76878
76879 2006-10-19  Bruno Haible  <bruno@clisp.org>
76880
76881         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76882         it.
76883
76884 2006-10-19  Bruno Haible  <bruno@clisp.org>
76885
76886         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76887         invocation.
76888
76889 2006-10-19  Bruno Haible  <bruno@clisp.org>
76890
76891         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76892         mountlist by default.
76893
76894 2006-10-16  Bruno Haible  <bruno@clisp.org>
76895
76896         * lib/c-strstr.c: Include c-strstr.h.
76897
76898 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76899
76900         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76901         in a slash.
76902
76903 2006-10-18  Bruno Haible  <bruno@clisp.org>
76904
76905         * lib/lock.h [C++]: Wrap definitions in extern "C".
76906
76907 2006-10-18  Bruno Haible  <bruno@clisp.org>
76908
76909         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76910         gl_LIBOBJS list.
76911
76912 2006-10-18  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76915
76916 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * lib/xstrtol.h: Include gettext.h.
76919         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76920         Problem reported by Eric Blake.
76921         * modules/xstrtol (Depends-on): Add gettext-h.
76922
76923 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76924
76925         * lib/strftime.c (advance): New macro.
76926         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76927         incomplete type, so you can't add 0 to it.  Problem and patch
76928         reported by Eelco Dolstra for dietlibc.
76929
76930 2006-10-18  Jim Meyering  <jim@meyering.net>
76931
76932         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76933         type for a local, and rename it: s/up/user_proc/.
76934
76935 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76936
76937         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76938         READ_UTMP_USER_PROCESS.
76939         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76940
76941 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76944         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76945
76946 2006-10-17  Eric Blake  <ebb9@byu.net>
76947
76948         * lib/sigprocmask.c (sigprocmask): Fix typo.
76949
76950         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76951
76952         * modules/clean-temp (Makefile.am): Don't add to make output...
76953         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76954         config.h.
76955
76956 2006-10-17  Bruno Haible  <bruno@clisp.org>
76957
76958         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76959         differently if DEFAULT_TEXT_DOMAIN is set.
76960
76961 2006-10-16  Bruno Haible  <bruno@clisp.org>
76962
76963         * lib/clean-temp.c: Include fwriteerror.h.
76964
76965 2006-10-16  Bruno Haible  <bruno@clisp.org>
76966
76967         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76968
76969 2006-10-16  Bruno Haible  <bruno@clisp.org>
76970
76971         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76972         * lib/sigprocmask.h: Include <sys/types.h>.
76973         (sigset_t): Use the system's definition if present.
76974
76975 2006-10-17  Eric Blake  <ebb9@byu.net>
76976
76977         * lib/xvasprintf.c (includes): Assume config.h.
76978         * lib/xasprintf.c (includes): Likewise.
76979
76980 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76983         at least as wide as intmax_t.
76984
76985 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76986
76987         (Imported from Automake.)
76988         * build-aux/gnupload: Update to version 1.1 of directive file.
76989
76990 2006-10-16  Eric Blake  <ebb9@byu.net>
76991
76992         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76993         match Automake 1.10a.
76994
76995 2006-10-14  Bruno Haible  <bruno@clisp.org>
76996
76997         * modules/sigprocmask: New file.
76998         * lib/sigprocmask.h: New file.
76999         * lib/sigprocmask.c: New file.
77000         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77001         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77002         request sigprocmask.o.
77003         (gl_PREREQ_SIGPROCMASK): New macro.
77004         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77005         (Depends-on): Add sigprocmask.
77006         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77007         gt_SIGNALBLOCKING. Test for 'raise' only once.
77008         * lib/fatal-signal.c: Include sigprocmask.h.
77009         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77010         unblock_fatal_signals): Define always.
77011         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77012         sigprocmask.
77013
77014 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         Sync from Automake.
77017         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77018         which incorrectly sets the mode of an existing destination
77019         directory.  In some cases the unpatched install-sh could do the
77020         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77021         system.  We hope this is rare in practice, but it's clearly worth
77022         fixing.  Problem reported by Alex Unleashed in
77023         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77024         Also, don't bother to check for -m bugs unless we're using -m;
77025         suggested by Stepan Kasal.
77026
77027 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77028
77029         Sync from Automake.
77030         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77031         `-c' flag, so they appear at the same position as in %FASTDEP%
77032         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77033         which ignores unknown options only after the first non-option.
77034         Bug report against M4 by Nelson H. F. Beebe.
77035
77036 2006-10-13  Jim Meyering  <jim@meyering.net>
77037
77038         Fix a bug in yesterday's change.
77039         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77040         p->fts_statp->st_dev would be used uninitialized.
77041         Ensures that we always call fts_stat on the very first entry.
77042         Miklos Szeredi reported that find -xdev stopped working.
77043
77044 2006-10-12  Bruno Haible  <bruno@clisp.org>
77045
77046         * gnulib-tool (func_get_automake_snippet): Append an automatically
77047         computed EXTRA_DIST augmentation.
77048         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77049         * modules/alloca-opt (Makefile.am): Likewise.
77050         * modules/allocsa (Makefile.am): Likewise.
77051         * modules/arcfour (Makefile.am): Likewise.
77052         * modules/arctwo (Makefile.am): Likewise.
77053         * modules/argmatch (Makefile.am): Likewise.
77054         * modules/argz (Makefile.am): Likewise.
77055         * modules/atexit (Makefile.am): Likewise.
77056         * modules/backupfile (Makefile.am): Likewise.
77057         * modules/byteswap (Makefile.am): Likewise.
77058         * modules/c-strtod (Makefile.am): Likewise.
77059         * modules/c-strtold (Makefile.am): Likewise.
77060         * modules/calloc (Makefile.am): Likewise.
77061         * modules/canon-host (Makefile.am): Likewise.
77062         * modules/canonicalize (Makefile.am): Likewise.
77063         * modules/chdir-long (Makefile.am): Likewise.
77064         * modules/chdir-safer (Makefile.am): Likewise.
77065         * modules/check-version (Makefile.am): Likewise.
77066         * modules/chown (Makefile.am): Likewise.
77067         * modules/cloexec (Makefile.am): Likewise.
77068         * modules/close-stream (Makefile.am): Likewise.
77069         * modules/closeout (Makefile.am): Likewise.
77070         * modules/crc (Makefile.am): Likewise.
77071         * modules/csharpexec (Makefile.am): Likewise.
77072         * modules/cycle-check (Makefile.am): Likewise.
77073         * modules/des (Makefile.am): Likewise.
77074         * modules/dev-ino (Makefile.am): Likewise.
77075         * modules/dirfd (Makefile.am): Likewise.
77076         * modules/dirname (Makefile.am): Likewise.
77077         * modules/dup2 (Makefile.am): Likewise.
77078         * modules/eealloc (Makefile.am): Likewise.
77079         * modules/error (Makefile.am): Likewise.
77080         * modules/euidaccess (Makefile.am): Likewise.
77081         * modules/exclude (Makefile.am): Likewise.
77082         * modules/exitfail (Makefile.am): Likewise.
77083         * modules/fcntl-safer (Makefile.am): Likewise.
77084         * modules/fcntl (Makefile.am): Likewise.
77085         * modules/file-type (Makefile.am): Likewise.
77086         * modules/fileblocks (Makefile.am): Likewise.
77087         * modules/filemode (Makefile.am): Likewise.
77088         * modules/filenamecat (Makefile.am): Likewise.
77089         * modules/fnmatch (Makefile.am): Likewise.
77090         * modules/fopen-safer (Makefile.am): Likewise.
77091         * modules/fpending (Makefile.am): Likewise.
77092         * modules/fprintftime (Makefile.am): Likewise.
77093         * modules/free (Makefile.am): Likewise.
77094         * modules/fsusage (Makefile.am): Likewise.
77095         * modules/ftruncate (Makefile.am): Likewise.
77096         * modules/fts (Makefile.am): Likewise.
77097         * modules/gc-arcfour (Makefile.am): Likewise.
77098         * modules/gc-des (Makefile.am): Likewise.
77099         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77100         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77101         * modules/gc-md4 (Makefile.am): Likewise.
77102         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77103         * modules/gc-sha1 (Makefile.am): Likewise.
77104         * modules/gc (Makefile.am): Likewise.
77105         * modules/getaddrinfo (Makefile.am): Likewise.
77106         * modules/getcwd (Makefile.am): Likewise.
77107         * modules/getdelim (Makefile.am): Likewise.
77108         * modules/getdomainname (Makefile.am): Likewise.
77109         * modules/getgroups (Makefile.am): Likewise.
77110         * modules/gethostname (Makefile.am): Likewise.
77111         * modules/gethrxtime (Makefile.am): Likewise.
77112         * modules/getline (Makefile.am): Likewise.
77113         * modules/getloadavg (Makefile.am): Likewise.
77114         * modules/getlogin_r (Makefile.am): Likewise.
77115         * modules/getndelim2 (Makefile.am): Likewise.
77116         * modules/getopt (Makefile.am): Likewise.
77117         * modules/getpagesize (Makefile.am): Likewise.
77118         * modules/getpass-gnu (Makefile.am): Likewise.
77119         * modules/getpass (Makefile.am): Likewise.
77120         * modules/getsubopt (Makefile.am): Likewise.
77121         * modules/gettime (Makefile.am): Likewise.
77122         * modules/gettimeofday (Makefile.am): Likewise.
77123         * modules/getugroups (Makefile.am): Likewise.
77124         * modules/getusershell (Makefile.am): Likewise.
77125         * modules/glob (Makefile.am): Likewise.
77126         * modules/group-member (Makefile.am): Likewise.
77127         * modules/hard-locale (Makefile.am): Likewise.
77128         * modules/hash (Makefile.am): Likewise.
77129         * modules/hmac-md5 (Makefile.am): Likewise.
77130         * modules/hmac-sha1 (Makefile.am): Likewise.
77131         * modules/human (Makefile.am): Likewise.
77132         * modules/idcache (Makefile.am): Likewise.
77133         * modules/imaxabs (Makefile.am): Likewise.
77134         * modules/imaxdiv (Makefile.am): Likewise.
77135         * modules/inet_ntop (Makefile.am): Likewise.
77136         * modules/inet_pton (Makefile.am): Likewise.
77137         * modules/intprops (Makefile.am): Likewise.
77138         * modules/inttostr (Makefile.am): Likewise.
77139         * modules/inttypes (Makefile.am): Likewise.
77140         * modules/isapipe (Makefile.am): Likewise.
77141         * modules/javaversion (Makefile.am): Likewise.
77142         * modules/lchmod (Makefile.am): Likewise.
77143         * modules/lchown (Makefile.am): Likewise.
77144         * modules/localcharset (Makefile.am): Likewise.
77145         * modules/long-options (Makefile.am): Likewise.
77146         * modules/lstat (Makefile.am): Likewise.
77147         * modules/malloc (Makefile.am): Likewise.
77148         * modules/mathl (Makefile.am): Likewise.
77149         * modules/mbchar (Makefile.am): Likewise.
77150         * modules/md2 (Makefile.am): Likewise.
77151         * modules/md4 (Makefile.am): Likewise.
77152         * modules/md5 (Makefile.am): Likewise.
77153         * modules/memcasecmp (Makefile.am): Likewise.
77154         * modules/memchr (Makefile.am): Likewise.
77155         * modules/memcmp (Makefile.am): Likewise.
77156         * modules/memcoll (Makefile.am): Likewise.
77157         * modules/memcpy (Makefile.am): Likewise.
77158         * modules/memmem (Makefile.am): Likewise.
77159         * modules/memmove (Makefile.am): Likewise.
77160         * modules/mempcpy (Makefile.am): Likewise.
77161         * modules/memrchr (Makefile.am): Likewise.
77162         * modules/memset (Makefile.am): Likewise.
77163         * modules/memxor (Makefile.am): Likewise.
77164         * modules/mkancesdirs (Makefile.am): Likewise.
77165         * modules/mkdir-p (Makefile.am): Likewise.
77166         * modules/mkdir (Makefile.am): Likewise.
77167         * modules/mkdtemp (Makefile.am): Likewise.
77168         * modules/mkstemp (Makefile.am): Likewise.
77169         * modules/mktime (Makefile.am): Likewise.
77170         * modules/modechange (Makefile.am): Likewise.
77171         * modules/mountlist (Makefile.am): Likewise.
77172         * modules/nanosleep (Makefile.am): Likewise.
77173         * modules/obstack (Makefile.am): Likewise.
77174         * modules/openat (Makefile.am): Likewise.
77175         * modules/pagealign_alloc (Makefile.am): Likewise.
77176         * modules/pathmax (Makefile.am): Likewise.
77177         * modules/physmem (Makefile.am): Likewise.
77178         * modules/poll (Makefile.am): Likewise.
77179         * modules/posixtm (Makefile.am): Likewise.
77180         * modules/posixver (Makefile.am): Likewise.
77181         * modules/putenv (Makefile.am): Likewise.
77182         * modules/quote (Makefile.am): Likewise.
77183         * modules/quotearg (Makefile.am): Likewise.
77184         * modules/raise (Makefile.am): Likewise.
77185         * modules/read-file (Makefile.am): Likewise.
77186         * modules/readline (Makefile.am): Likewise.
77187         * modules/readlink (Makefile.am): Likewise.
77188         * modules/readtokens (Makefile.am): Likewise.
77189         * modules/readutmp (Makefile.am): Likewise.
77190         * modules/realloc (Makefile.am): Likewise.
77191         * modules/regex (Makefile.am): Likewise.
77192         * modules/rename-dest-slash (Makefile.am): Likewise.
77193         * modules/rename (Makefile.am): Likewise.
77194         * modules/rijndael (Makefile.am): Likewise.
77195         * modules/rmdir (Makefile.am): Likewise.
77196         * modules/rpmatch (Makefile.am): Likewise.
77197         * modules/safe-read (Makefile.am): Likewise.
77198         * modules/safe-write (Makefile.am): Likewise.
77199         * modules/same-inode (Makefile.am): Likewise.
77200         * modules/same (Makefile.am): Likewise.
77201         * modules/save-cwd (Makefile.am): Likewise.
77202         * modules/savedir (Makefile.am): Likewise.
77203         * modules/setenv (Makefile.am): Likewise.
77204         * modules/settime (Makefile.am): Likewise.
77205         * modules/sha1 (Makefile.am): Likewise.
77206         * modules/sig2str (Makefile.am): Likewise.
77207         * modules/snprintf (Makefile.am): Likewise.
77208         * modules/stat-macros (Makefile.am): Likewise.
77209         * modules/stat-time (Makefile.am): Likewise.
77210         * modules/stdbool (Makefile.am): Likewise.
77211         * modules/stdint (Makefile.am): Likewise.
77212         * modules/stdlib-safer (Makefile.am): Likewise.
77213         * modules/stpcpy (Makefile.am): Likewise.
77214         * modules/stpncpy (Makefile.am): Likewise.
77215         * modules/strcase (Makefile.am): Likewise.
77216         * modules/strcasestr (Makefile.am): Likewise.
77217         * modules/strchrnul (Makefile.am): Likewise.
77218         * modules/strcspn (Makefile.am): Likewise.
77219         * modules/strdup (Makefile.am): Likewise.
77220         * modules/strerror (Makefile.am): Likewise.
77221         * modules/strftime (Makefile.am): Likewise.
77222         * modules/strndup (Makefile.am): Likewise.
77223         * modules/strnlen (Makefile.am): Likewise.
77224         * modules/strpbrk (Makefile.am): Likewise.
77225         * modules/strsep (Makefile.am): Likewise.
77226         * modules/strstr (Makefile.am): Likewise.
77227         * modules/strtod (Makefile.am): Likewise.
77228         * modules/strtoimax (Makefile.am): Likewise.
77229         * modules/strtok_r (Makefile.am): Likewise.
77230         * modules/strtol (Makefile.am): Likewise.
77231         * modules/strtoll (Makefile.am): Likewise.
77232         * modules/strtoul (Makefile.am): Likewise.
77233         * modules/strtoull (Makefile.am): Likewise.
77234         * modules/strtoumax (Makefile.am): Likewise.
77235         * modules/strverscmp (Makefile.am): Likewise.
77236         * modules/sys_socket (Makefile.am): Likewise.
77237         * modules/sys_stat (Makefile.am): Likewise.
77238         * modules/sysexits (Makefile.am): Likewise.
77239         * modules/time_r (Makefile.am): Likewise.
77240         * modules/timegm (Makefile.am): Likewise.
77241         * modules/timespec (Makefile.am): Likewise.
77242         * modules/tmpfile-safer (Makefile.am): Likewise.
77243         * modules/trim (Makefile.am): Likewise.
77244         * modules/unistd-safer (Makefile.am): Likewise.
77245         * modules/unlinkdir (Makefile.am): Likewise.
77246         * modules/unlocked-io (Makefile.am): Likewise.
77247         * modules/userspec (Makefile.am): Likewise.
77248         * modules/utime (Makefile.am): Likewise.
77249         * modules/utimecmp (Makefile.am): Likewise.
77250         * modules/utimens (Makefile.am): Likewise.
77251         * modules/vasnprintf (Makefile.am): Likewise.
77252         * modules/vasprintf (Makefile.am): Likewise.
77253         * modules/vsnprintf (Makefile.am): Likewise.
77254         * modules/xalloc (Makefile.am): Likewise.
77255         * modules/xgetcwd (Makefile.am): Likewise.
77256         * modules/xnanosleep (Makefile.am): Likewise.
77257         * modules/xreadlink (Makefile.am): Likewise.
77258         * modules/xstrtod (Makefile.am): Likewise.
77259         * modules/xstrtol (Makefile.am): Likewise.
77260         * modules/xstrtold (Makefile.am): Likewise.
77261         * modules/yesno (Makefile.am): Likewise.
77262         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77263
77264 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * modules/error (Makefile.am): Distribute files through
77267         EXTRA_DIST, not lib_SOURCES.
77268
77269 2006-10-12  Eric Blake  <ebb9@byu.net>
77270
77271         * modules/error (Makefile.am): Distribute files in /lib.
77272         * modules/obstack (Makefile.am): Likewise.
77273
77274 2006-10-12  Bruno Haible  <bruno@clisp.org>
77275
77276         * modules/acl (Makefile.am): Distribute all files in lib/ through
77277         EXTRA_DIST.
77278         * modules/arcfour (Makefile.am): Likewise.
77279         * modules/arctwo (Makefile.am): Likewise.
77280         * modules/argmatch (Makefile.am): Likewise.
77281         * modules/argz (Makefile.am): Likewise.
77282         * modules/atexit (Makefile.am): Likewise.
77283         * modules/backupfile (Makefile.am): Likewise.
77284         * modules/c-strtod (Makefile.am): Likewise.
77285         * modules/c-strtold (Makefile.am): Likewise.
77286         * modules/calloc (Makefile.am): Likewise.
77287         * modules/canon-host (Makefile.am): Likewise.
77288         * modules/canonicalize (Makefile.am): Likewise.
77289         * modules/chdir-long (Makefile.am): Likewise.
77290         * modules/chdir-safer (Makefile.am): Likewise.
77291         * modules/check-version (Makefile.am): Likewise.
77292         * modules/chown (Makefile.am): Likewise.
77293         * modules/cloexec (Makefile.am): Likewise.
77294         * modules/close-stream (Makefile.am): Likewise.
77295         * modules/closeout (Makefile.am): Likewise.
77296         * modules/crc (Makefile.am): Likewise.
77297         * modules/cycle-check (Makefile.am): Likewise.
77298         * modules/des (Makefile.am): Likewise.
77299         * modules/dirfd (Makefile.am): Likewise.
77300         * modules/dirname (Makefile.am): Likewise.
77301         * modules/dup2 (Makefile.am): Likewise.
77302         * modules/euidaccess (Makefile.am): Likewise.
77303         * modules/exclude (Makefile.am): Likewise.
77304         * modules/exitfail (Makefile.am): Likewise.
77305         * modules/fcntl-safer (Makefile.am): Likewise.
77306         * modules/file-type (Makefile.am): Likewise.
77307         * modules/fileblocks (Makefile.am): Likewise.
77308         * modules/filemode (Makefile.am): Likewise.
77309         * modules/filenamecat (Makefile.am): Likewise.
77310         * modules/fnmatch (Makefile.am): Likewise.
77311         * modules/fopen-safer (Makefile.am): Likewise.
77312         * modules/fpending (Makefile.am): Likewise.
77313         * modules/fprintftime (Makefile.am): Likewise.
77314         * modules/free (Makefile.am): Likewise.
77315         * modules/fsusage (Makefile.am): Likewise.
77316         * modules/ftruncate (Makefile.am): Likewise.
77317         * modules/fts (Makefile.am): Likewise.
77318         * modules/gc (Makefile.am): Likewise.
77319         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77320         * modules/getaddrinfo (Makefile.am): Likewise.
77321         * modules/getcwd (Makefile.am): Likewise.
77322         * modules/getdelim (Makefile.am): Likewise.
77323         * modules/getdomainname (Makefile.am): Likewise.
77324         * modules/getgroups (Makefile.am): Likewise.
77325         * modules/gethostname (Makefile.am): Likewise.
77326         * modules/gethrxtime (Makefile.am): Likewise.
77327         * modules/getline (Makefile.am): Likewise.
77328         * modules/getloadavg (Makefile.am): Likewise.
77329         * modules/getlogin_r (Makefile.am): Likewise.
77330         * modules/getopt (Makefile.am): Likewise.
77331         * modules/getpass (Makefile.am): Likewise.
77332         * modules/getpass-gnu (Makefile.am): Likewise.
77333         * modules/getsubopt (Makefile.am): Likewise.
77334         * modules/gettime (Makefile.am): Likewise.
77335         * modules/gettimeofday (Makefile.am): Likewise.
77336         * modules/getugroups (Makefile.am): Likewise.
77337         * modules/getusershell (Makefile.am): Likewise.
77338         * modules/glob (Makefile.am): Likewise.
77339         * modules/group-member (Makefile.am): Likewise.
77340         * modules/hard-locale (Makefile.am): Likewise.
77341         * modules/hash (Makefile.am): Likewise.
77342         * modules/hmac-md5 (Makefile.am): Likewise.
77343         * modules/hmac-sha1 (Makefile.am): Likewise.
77344         * modules/human (Makefile.am): Likewise.
77345         * modules/idcache (Makefile.am): Likewise.
77346         * modules/imaxabs (Makefile.am): Likewise.
77347         * modules/imaxdiv (Makefile.am): Likewise.
77348         * modules/inet_ntop (Makefile.am): Likewise.
77349         * modules/inet_pton (Makefile.am): Likewise.
77350         * modules/inttostr (Makefile.am): Likewise.
77351         * modules/isapipe (Makefile.am): Likewise.
77352         * modules/lchown (Makefile.am): Likewise.
77353         * modules/long-options (Makefile.am): Likewise.
77354         * modules/lstat (Makefile.am): Likewise.
77355         * modules/malloc (Makefile.am): Likewise.
77356         * modules/mathl (Makefile.am): Likewise.
77357         * modules/mbchar (Makefile.am): Likewise.
77358         * modules/md2 (Makefile.am): Likewise.
77359         * modules/md4 (Makefile.am): Likewise.
77360         * modules/md5 (Makefile.am): Likewise.
77361         * modules/memcasecmp (Makefile.am): Likewise.
77362         * modules/memchr (Makefile.am): Likewise.
77363         * modules/memcmp (Makefile.am): Likewise.
77364         * modules/memcoll (Makefile.am): Likewise.
77365         * modules/memcpy (Makefile.am): Likewise.
77366         * modules/memmem (Makefile.am): Likewise.
77367         * modules/memmove (Makefile.am): Likewise.
77368         * modules/mempcpy (Makefile.am): Likewise.
77369         * modules/memrchr (Makefile.am): Likewise.
77370         * modules/memset (Makefile.am): Likewise.
77371         * modules/memxor (Makefile.am): Likewise.
77372         * modules/mkancesdirs (Makefile.am): Likewise.
77373         * modules/mkdir (Makefile.am): Likewise.
77374         * modules/mkdir-p (Makefile.am): Likewise.
77375         * modules/mkdtemp (Makefile.am): Likewise.
77376         * modules/mkstemp (Makefile.am): Likewise.
77377         * modules/mktime (Makefile.am): Likewise.
77378         * modules/modechange (Makefile.am): Likewise.
77379         * modules/mountlist (Makefile.am): Likewise.
77380         * modules/nanosleep (Makefile.am): Likewise.
77381         * modules/openat (Makefile.am): Likewise.
77382         * modules/pagealign_alloc (Makefile.am): Likewise.
77383         * modules/physmem (Makefile.am): Likewise.
77384         * modules/poll (Makefile.am): Likewise.
77385         * modules/posixtm (Makefile.am): Likewise.
77386         * modules/posixver (Makefile.am): Likewise.
77387         * modules/putenv (Makefile.am): Likewise.
77388         * modules/quote (Makefile.am): Likewise.
77389         * modules/quotearg (Makefile.am): Likewise.
77390         * modules/raise (Makefile.am): Likewise.
77391         * modules/read-file (Makefile.am): Likewise.
77392         * modules/readline (Makefile.am): Likewise.
77393         * modules/readlink (Makefile.am): Likewise.
77394         * modules/readtokens (Makefile.am): Likewise.
77395         * modules/readutmp (Makefile.am): Likewise.
77396         * modules/realloc (Makefile.am): Likewise.
77397         * modules/regex (Makefile.am): Likewise.
77398         * modules/rename (Makefile.am): Likewise.
77399         * modules/rename-dest-slash (Makefile.am): Likewise.
77400         * modules/rijndael (Makefile.am): Likewise.
77401         * modules/rmdir (Makefile.am): Likewise.
77402         * modules/rpmatch (Makefile.am): Likewise.
77403         * modules/safe-read (Makefile.am): Likewise.
77404         * modules/safe-write (Makefile.am): Likewise.
77405         * modules/same (Makefile.am): Likewise.
77406         * modules/save-cwd (Makefile.am): Likewise.
77407         * modules/savedir (Makefile.am): Likewise.
77408         * modules/setenv (Makefile.am): Likewise.
77409         * modules/settime (Makefile.am): Likewise.
77410         * modules/sha1 (Makefile.am): Likewise.
77411         * modules/sig2str (Makefile.am): Likewise.
77412         * modules/snprintf (Makefile.am): Likewise.
77413         * modules/stdlib-safer (Makefile.am): Likewise.
77414         * modules/stpcpy (Makefile.am): Likewise.
77415         * modules/stpncpy (Makefile.am): Likewise.
77416         * modules/strcase (Makefile.am): Likewise.
77417         * modules/strcasestr (Makefile.am): Likewise.
77418         * modules/strchrnul (Makefile.am): Likewise.
77419         * modules/strcspn (Makefile.am): Likewise.
77420         * modules/strdup (Makefile.am): Likewise.
77421         * modules/strerror (Makefile.am): Likewise.
77422         * modules/strftime (Makefile.am): Likewise.
77423         * modules/strndup (Makefile.am): Likewise.
77424         * modules/strnlen (Makefile.am): Likewise.
77425         * modules/strpbrk (Makefile.am): Likewise.
77426         * modules/strsep (Makefile.am): Likewise.
77427         * modules/strstr (Makefile.am): Likewise.
77428         * modules/strtod (Makefile.am): Likewise.
77429         * modules/strtoimax (Makefile.am): Likewise.
77430         * modules/strtok_r (Makefile.am): Likewise.
77431         * modules/strtol (Makefile.am): Likewise.
77432         * modules/strtoll (Makefile.am): Likewise.
77433         * modules/strtoul (Makefile.am): Likewise.
77434         * modules/strtoull (Makefile.am): Likewise.
77435         * modules/strtoumax (Makefile.am): Likewise.
77436         * modules/strverscmp (Makefile.am): Likewise.
77437         * modules/time_r (Makefile.am): Likewise.
77438         * modules/timegm (Makefile.am): Likewise.
77439         * modules/tmpfile-safer (Makefile.am): Likewise.
77440         * modules/unistd-safer (Makefile.am): Likewise.
77441         * modules/unlinkdir (Makefile.am): Likewise.
77442         * modules/userspec (Makefile.am): Likewise.
77443         * modules/utime (Makefile.am): Likewise.
77444         * modules/utimecmp (Makefile.am): Likewise.
77445         * modules/utimens (Makefile.am): Likewise.
77446         * modules/vasnprintf (Makefile.am): Likewise.
77447         * modules/vasprintf (Makefile.am): Likewise.
77448         * modules/vsnprintf (Makefile.am): Likewise.
77449         * modules/xalloc (Makefile.am): Likewise.
77450         * modules/xgetcwd (Makefile.am): Likewise.
77451         * modules/xnanosleep (Makefile.am): Likewise.
77452         * modules/xreadlink (Makefile.am): Likewise.
77453         * modules/xstrtod (Makefile.am): Likewise.
77454         * modules/xstrtol (Makefile.am): Likewise.
77455         * modules/xstrtold (Makefile.am): Likewise.
77456         * modules/yesno (Makefile.am): Likewise.
77457
77458 2006-10-12  Jim Meyering  <jim@meyering.net>
77459
77460         * m4/getloadavg.m4: Revert the change below.
77461
77462         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77463         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77464         fail with a symlink, which is what coreutils' ./bootstrap now
77465         creates by default.
77466
77467 2006-10-12  Bruno Haible  <bruno@clisp.org>
77468
77469         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77470         mingw.
77471         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77472         MSVC and mingw explicitly.
77473
77474 2006-10-11  Simon Josefsson  <jas@extundo.com>
77475             Bruno Haible  <bruno@clisp.org>
77476
77477         Add support for multiple gnulib-tool invocations in the scope of a
77478         single configure.ac file.
77479         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77480         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77481         with the same contents as the _LIBADD variable.
77482         (func_emit_initmacro_start, func_emit_initmacro_end,
77483         func_emit_initmacro_done): New functions.
77484         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77485         gl_LIBOBJS and gl_LTLIBOBJS.
77486
77487 2006-10-11  Bruno Haible  <bruno@clisp.org>
77488
77489         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77490         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77491         autoreconf. Instead, invoke autopoint explicitly but move back the
77492         *.m4 files from gnulib.
77493
77494 2006-10-11  Bruno Haible  <bruno@clisp.org>
77495
77496         * gnulib-tool (func_usage): Make module names after --create-testdir
77497         optional.
77498         (func_create_testdir): If no module was specified, use nearly all
77499         modules.
77500
77501 2006-10-12  Jim Meyering  <jim@meyering.net>
77502
77503         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77504         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77505         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77506         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77507         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77508         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77509         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77510         (fts_set_stat_required): New function.
77511         (fts_open): Defer the calls to fts_stat, if possible or requested.
77512         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77513         into fts_stat itself.
77514         (fts_read): Perform any required (deferred) fts_stat call.
77515         (fts_build): Likewise, for the directory we're about to open and read.
77516         In the readdir loop, carefully decide whether each entry will require
77517         an eventual call to fts_stat, using dirent.d_type info if available.
77518         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77519         a command line argument into this function.  Update all callers.
77520         Map a return value of FTS_DOT to FTS_D for a command line argument.
77521         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77522         Thanks to Miklos Szeredi for his tenacity and for the initial
77523         bug report about "find" failing on a FUSE-based file system.
77524
77525         * lib/fts.c (fts_open): Use consistent indentation.
77526
77527 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77530         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77531         reported by Jim Meyering.  All uses of cache variables renamed
77532         to match Autoconf's.
77533         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77534         the other one.
77535
77536         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77537         Fix misspelling in diagnostic.
77538
77539 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77542         defined.  Problem reported by Matthew Woehlke.
77543
77544         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77545         Add support for Tandem NonStop R series.
77546         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77547         Use new macro.
77548
77549         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77550         (has_trailing_slash): Omit size arg; all callers changed.
77551         Omit 'inline', since it doesn't help performance and we'd
77552         need to configure it.
77553         Don't count //, ///, etc. as having a trailing slash.
77554         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77555         (rpl_rename_dest_slash): On failure, use rename's errno rather
77556         than (in some cases) an incorrect or junk errno.
77557         Simplify code by removing need to compute length; this does
77558         cause it to make two passes instead of one over the file name,
77559         but it's worth it.
77560
77561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77562         change, since Autoconf's version may no longer be appropriate now
77563         that we are using CVS Autoconf's version.  Add support for Tandem.
77564
77565 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77566             Bruno Haible  <bruno@clisp.org>
77567
77568         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77569         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77570         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77571         gl_AC_TYPE_LONG_LONG.
77572
77573         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77574         instead of HAVE_LONG_LONG.
77575         * lib/printf-args.c (printf_fetchargs): Likewise.
77576         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77577         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77578         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77579         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77580         gl_AC_TYPE_LONG_LONG.
77581
77582 2006-10-11  Bruno Haible  <bruno@clisp.org>
77583
77584         * m4/longlong.m4: Add comments.
77585         * m4/ulonglong.m4: Likewise.
77586
77587 2006-10-10  Bruno Haible  <bruno@clisp.org>
77588
77589         Make it possible to #define stpcpy, strdup to aliases.
77590         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77591         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77592
77593 2006-10-10  Bruno Haible  <bruno@clisp.org>
77594
77595         Make it possible to #define gcd to an alias.
77596         * lib/gcd.c: Include config.h.
77597
77598 2006-10-10  Bruno Haible  <bruno@clisp.org>
77599
77600         Make it possible to #define c_isascii to an alias.
77601         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77602         defined. Undefine the macros before defining them, to avoid gcc
77603         warnings.
77604         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77605         define NO_C_CTYPE_MACROS early.
77606
77607 2006-10-10  Bruno Haible  <bruno@clisp.org>
77608
77609         Make it possible to #define set_program_name to an alias.
77610         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77611         ENABLE_RELOCATABLE early.
77612
77613 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77616         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77617         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77618         More generally, don't assume that 64-bit signed int is available
77619         if unsigned int is, and vice versa.
77620         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77621         unsigned symbols, not on their signed counterparts.
77622         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77623         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77624         (UINT64_C, UINTMAX_C):
77625         Likewise.
77626         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77627         unsigned counterparts.
77628         (Have_long_long, Unsigned): New macros.
77629         (Int): Renamed from INT.
77630         (strtoimax): Use the new macros.
77631         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77632         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77633         * modules/inttypes (inttypes.h): Substitute
77634         HAVE_UNSIGNED_LONG_LONG_INT.
77635         * modules/stdint (stdint.h): Likewise.
77636         (Files): Add m4/ulonglong.m4.
77637
77638 2006-10-10  Bruno Haible  <bruno@clisp.org>
77639
77640         Fix a gcc -Wshadow warning.
77641         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77642         to 'bucket'.
77643         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77644         gl_linked_indexof_from_to): Likewise.
77645         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77646         Likewise.
77647         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77648         Likewise.
77649         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77650         Reported by Eric Blake.
77651
77652 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77653
77654         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77655         for NetBSD.  Problem reported by Bruno Haible.
77656
77657 2006-10-09  Jim Meyering  <jim@meyering.net>
77658
77659         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77660         Patch from Bruno Haible.
77661
77662 2006-10-09  Jim Meyering  <jim@meyering.net>
77663
77664         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77665         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77666         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77667
77668 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         Don't include <config.h> twice; this doesn't work in some cases,
77671         e.g., when config.h has "#define intmax_t long long int" and
77672         we include <config.h>, <inttypes.h>, <config.h> in that order.
77673         Problem reported by Matthew Woehlke in:
77674         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77675         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77676         * lib/fts-cycle.c: Don't include config.h.
77677         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77678         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77679         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77680         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77681         inttypes.h.
77682         * lib/xstrtoumax.c: Likewise.
77683         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77684         __strtol and the like, so that this module is more like its siblings.
77685         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77686         Remove; no longer needed now that we assume gnulib inttypes.h.
77687
77688 2006-10-08  Bruno Haible  <bruno@clisp.org>
77689
77690         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77691         option.
77692
77693 2006-10-07  Jim Meyering  <jim@meyering.net>
77694
77695         * modules/inttypes (inttypes.h): Revert what seems to have been
77696         an inadvertent part of today's change: use "|", not "/" in the
77697         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77698
77699 2006-10-07  Bruno Haible  <bruno@clisp.org>
77700
77701         * modules/sublist: New file.
77702
77703 2006-10-07  Bruno Haible  <bruno@clisp.org>
77704
77705         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77706         * modules/argz (argz.h): Likewise.
77707         * modules/arpa_inet (arpa/inet.h): Likewise.
77708         * modules/byteswap (byteswap.h): Likewise.
77709         * modules/configmake (configmake.h): Likewise.
77710         * modules/fcntl (fcntl.h): Likewise.
77711         * modules/fnmatch (fnmatch.h): Likewise.
77712         * modules/getopt (getopt.h): Likewise.
77713         * modules/glob (glob.h): Likewise.
77714         * modules/inttypes (inttypes.h): Likewise.
77715         * modules/netinet_in (netinet/in.h): Likewise.
77716         * modules/poll (poll.h): Likewise.
77717         * modules/stdbool (stdbool.h): Likewise.
77718         * modules/stdint (stdint.h): Likewise.
77719         * modules/sys_select (sys/select.h): Likewise.
77720         * modules/sys_socket (sys/socket.h): Likewise.
77721         * modules/sys_stat (sys/stat.h): Likewise.
77722         * modules/sysexits (sysexits.h): Likewise.
77723         * modules/unistd (unistd.h): Likewise.
77724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77725         Add a "DO NOT EDIT" comment to the generated file.
77726         (func_import): Likewise for gnulib-comp.m4.
77727
77728 2006-10-07  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/gl_sublist.h: New file.
77731         * lib/gl_sublist.c: New file.
77732
77733 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77736         name (relative to the original working directory) and the file
77737         name component (relative to the temporary working directory).  All
77738         callers changed.
77739         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77740         * lib/mkdir-p.c (make_dir_parents): Likewise.
77741         * lib/mkdir-p.h (make_dir_parents): Likewise.
77742
77743 2006-10-06  Eric Blake  <ebb9@byu.net>
77744
77745         Define several macros for use by the clean-temp module.
77746         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77747         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77748         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77749
77750         * lib/clean-temp.h (close_stream_temp): New declaration.
77751         * lib/clean-temp.c (includes): Pull in headers according to what
77752         other modules are in use.
77753         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77754
77755 2006-10-06  Bruno Haible  <bruno@clisp.org>
77756
77757         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77758         instead of fopen, fwriteerror.
77759
77760 2006-10-06  Bruno Haible  <bruno@clisp.org>
77761
77762         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77763         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77764         int.
77765         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77766         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77767         Return an error indicator.
77768         Suggested by Eric Blake.
77769
77770 2006-10-06  Bruno Haible  <bruno@clisp.org>
77771
77772         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77773         Reported by Eric Blake.
77774
77775 2006-10-06  Bruno Haible  <bruno@clisp.org>
77776
77777         * modules/closeout (Description): Mention stderr too.
77778
77779 2006-10-06  Bruno Haible  <bruno@clisp.org>
77780         and Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * lib/closeout.c (close_stdout): Also close stderr.
77783         * lib/closeout.h: Update comment.
77784
77785 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77788         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77789         * lib/dirchownmod.c: Include lchown.h.
77790         * lib/lchown.c: Don't include files that lchown.h now includes.
77791         Don't declare chown, since lchown.h now does that.
77792         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77793         (lchown): Define to rpl_chown if lchown is declared but
77794         does not exist.  Declare using a prototype if lchown is not
77795         declared.  Add a copyright notice.
77796         * lib/mkstemp.h: Include <unistd.h>.
77797         * lib/openat.c: Include lchown.h.
77798
77799         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77800         we now test for that separately.
77801         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77802         rather than O_NOFOLLOW, when testing whether it's possible to
77803         avoid a race condition reliably.
77804         * lib/savewd.c (savewd_chdir): Likewise.
77805
77806         Remove macros that are no longer needed now that stdint.h is
77807         reliable.
77808         * lib/fsusage.c (UINTMAX_MAX): Remove.
77809         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77810         * lib/utimecmp.c (SIZE_MAX): Remove.
77811
77812         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77813
77814         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77815         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77816         O_NOATIME works.
77817
77818 2006-10-05  Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/gl_list.h (gl_sortedlist_search_from_to,
77821         gl_sortedlist_indexof_from_to): New declarations.
77822         (gl_list_implementation): New fields sortedlist_search_from_to,
77823         sortedlist_indexof_from_to.
77824         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77825         inline functions.
77826         * lib/gl_list.c (gl_sortedlist_search_from_to,
77827         gl_sortedlist_indexof_from_to): New functions.
77828         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77829         function.
77830         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77831         (gl_array_sortedlist_search_from_to): New function.
77832         (gl_array_list_implementation): Update.
77833         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77834         function.
77835         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77836         (gl_carray_sortedlist_search_from_to): New function.
77837         (gl_carray_list_implementation): Update.
77838         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77839         gl_linked_sortedlist_indexof_from_to): New functions.
77840         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77841         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77842         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77843         gl_tree_sortedlist_indexof_from_to): New functions.
77844         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77845         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77846         Update.
77847         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77848         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77849         Update.
77850
77851 2006-10-05  Bruno Haible  <bruno@clisp.org>
77852
77853         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77854         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77855         (struct gl_list_implementation): Add fields search_from_to,
77856         indexof_from_to. Remove fields search, indexof.
77857         (gl_list_search): Use the search_from_to method.
77858         (gl_list_search_from, gl_list_search_from_to): New functions.
77859         (gl_list_indexof): Use the indexof_from_to method.
77860         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77861         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77862         (gl_list_search_from, gl_list_search_from_to): New functions.
77863         (gl_list_indexof): Use the indexof_from_to method.
77864         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77865         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77866         gl_array_indexof. Add start_index, end_index arguments.
77867         (gl_array_search_from_to): Renamed from gl_array_search. Add
77868         start_index, end_index arguments.
77869         (gl_array_remove, gl_array_list_implementation): Update.
77870         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77871         gl_carray_indexof. Add start_index, end_index arguments.
77872         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77873         start_index, end_index arguments.
77874         (gl_carray_remove, gl_carray_list_implementation): Update.
77875         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77876         gl_linked_search. Add start_index, end_index arguments.
77877         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77878         start_index, end_index arguments.
77879         (gl_linked_remove): Update.
77880         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77881         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77882         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77883         field to 'size_t'.
77884         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77885         gl_tree_search. Add start_index, end_index arguments.
77886         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77887         start_index, end_index arguments.
77888         (gl_tree_remove): Update.
77889         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77890         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77891         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77892         function.
77893         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77894         gl_tree_search. Add start_index, end_index arguments.
77895         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77896         start_index, end_index arguments.
77897         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77898         Update.
77899         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77900
77901 2006-10-05  Bruno Haible  <bruno@clisp.org>
77902
77903         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77904
77905         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77906         fwriteerror_temp): New declarations.
77907         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77908         (descriptors): New variable.
77909         (cleanup): First, close the descriptors.
77910         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77911         fclose_temp, fwriteerror_temp): New functions.
77912
77913 2006-10-04  Jim Meyering  <jim@meyering.net>
77914
77915         * lib/fts.c (fts_open): Tiny comment change.
77916
77917 2006-10-04  Bruno Haible  <bruno@clisp.org>
77918
77919         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77920         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77921         gl_LOCK_BODY.
77922         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77923         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77924         gl_LOCK_EARLY_BODY.
77925         (gl_LOCK): Require gl_LOCK_BODY.
77926
77927 2006-10-04  Bruno Haible  <bruno@clisp.org>
77928
77929         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77930         (gl_oset_search_atleast): New declaration.
77931         (struct gl_oset_implementation): Add field 'search_atleast'.
77932         (gl_oset_search_atleast): New inline function.
77933         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77934         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77935         (gl_array_oset_implementation): Update.
77936         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77937         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77938         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77939
77940 2006-10-04  Bruno Haible  <bruno@clisp.org>
77941
77942         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77943
77944 2006-10-03  Bruno Haible  <bruno@clisp.org>
77945
77946         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77947         from gl_avltreehash_list_implementation.
77948
77949 2006-10-03  Bruno Haible  <bruno@clisp.org>
77950
77951         * lib/gl_oset.c (gl_oset_add): Fix return type.
77952
77953 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77954
77955         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77956
77957 2006-10-02  Eric Blake  <ebb9@byu.net>
77958
77959         * modules/strnlen (Depends-on): Add extensions.
77960
77961 2006-10-02  Eric Blake  <ebb9@byu.net>
77962
77963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77964         definition in 2.60+.
77965
77966 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77967
77968         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77969         checks.
77970
77971 2006-10-02  Bruno Haible  <bruno@clisp.org>
77972
77973         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77974         to the AUTOMAKE_OPTIONS.
77975         Reported by Jim Meyering.
77976
77977 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         Work around bug in Solaris 10 /proc file system:
77980         /proc/self/fd/NNN/.. isn't the parent directory of
77981         the directory whose file descriptor is NNN.  This needs to
77982         be worked around at run time, not compile time, since a
77983         program might be built on Solaris 8, where things work, and
77984         run on Solaris 10.
77985         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77986         to use the following interface instead:
77987         (OPENAT_BUFFER_SIZE): New macro.
77988         (openat_proc_name): New function.
77989         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77990         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77991         Likewise.
77992         * lib/openat-proc.c: New file.
77993         * modules/openat (Files): Add lib/openat-proc.c.
77994         (Depends-on): Add same-inode, stdbool.
77995         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77996
77997 2006-09-29  Bruno Haible  <bruno@clisp.org>
77998
77999         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78000         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78001         argument. Set stdout_closed before testing for ferror, not after.
78002         (fwriteerror, fwriteerror_no_ebadf): New functions.
78003
78004 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78005
78006         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78007
78008 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78009
78010         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78011         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78012
78013 2006-09-28  Jim Meyering  <jim@meyering.net>
78014
78015         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78016         Include <unistd.h>.
78017
78018 2006-09-28  Bruno Haible  <bruno@clisp.org>
78019
78020         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78021         * modules/linkedhash-list (Depends-on): Likewise.
78022         * modules/rbtreehash-list (Depends-on): Likewise.
78023
78024 2006-09-28  Bruno Haible  <bruno@clisp.org>
78025
78026         * lib/strndup.h: Simplify the redefinition of strndup.
78027         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78029
78030 2006-09-28  Bruno Haible  <bruno@clisp.org>
78031
78032         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78033         * lib/gl_linkedhash_list.c: Likewise.
78034         * lib/gl_rbtreehash_list.c: Likewise.
78035
78036 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78039         getaddrinfo.
78040
78041         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78042         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78043         it causes <stdio_ext.h> to cause a compile-time error.
78044         Problem reported by Nelson H. F. Beebe.
78045         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78046         of HAVE_DECL___PENDING.
78047
78048         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78049         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78050         declaration.
78051
78052 2006-09-27  Jim Meyering  <jim@meyering.net>
78053
78054         This file could end up with a definition for a function
78055         named __strndup, rather than rpl_strndup on a system with
78056         incomplete weak_alias support.
78057         * lib/strndup.c (strndup): Rename from __strndup.
78058         Remove #defines that used to map __strndup to strndup.
78059         Don't use K&R prototypes.
78060         Remove LIBC-related code, since this file is not sync'd with glibc.
78061         * lib/strndup.h: Revamp, accordingly.
78062         * m4/strndup.m4: Modernize.
78063
78064 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * modules/savewd (Depends-on): Add 'raise'.
78067         * lib/savewd.c: Include <signal.h>, for 'raise'.
78068
78069 2006-09-26  Jim Meyering  <jim@meyering.net>
78070
78071         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78072         when we detect Darwin 8.7.0's acl_get_file bug.
78073         Rearrange to perform the new (below) run-test while $LIBS
78074         contains any acl-related library.  Set USE_ACL at the end.
78075         (gl_ACL_GET_FILE): New function.
78076
78077 2006-09-26  Eric Blake  <ebb9@byu.net>
78078
78079         * lib/verror.c: Include <config.h> unconditionally.
78080
78081 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * modules/clock-time (Maintainer): Add self.
78084         * modules/getlogin_r (Depends-on): Add extensions.
78085
78086 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78087
78088         * modules/clock-time: New module.
78089         * modules/nanosleep (Depends-on): Add clock-time.
78090         * modules/gethrxtime (Depends-on): Likewise.
78091         * modules/gettime (Depends-on): Likewise.
78092         * modules/settime (Depends-on): Likewise.
78093
78094         * modules/fts-lgpl: Depend on openat.
78095         * modules/mkancesdirs: Depend on savewd.
78096         * modules/mkdir-p: Likewise.
78097
78098 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78099
78100         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78101
78102         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78103         `gl_have_arbitrary_file_name_length_limit' to
78104         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78105         actually works between configure runs.
78106
78107 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78108             Bruno Haible  <bruno@clisp.org>
78109
78110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78111
78112 2006-09-25  Jim Meyering  <jim@meyering.net>
78113
78114         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78115         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78116
78117 2006-09-25  Eric Blake  <ebb9@byu.net>
78118
78119         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78120         exec's in 2006-09-18 patch when shuffling fds.
78121
78122 2006-09-25  Bruno Haible  <bruno@clisp.org>
78123
78124         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78125         Reported by Jim Meyering.
78126
78127 2006-09-24  Jim Meyering  <jim@meyering.net>
78128
78129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78130         compare a pointer against a literal "0".  That caused failures with
78131         at least HP-UX's hpcc.
78132
78133 2006-09-22  Simon Josefsson  <jas@extundo.com>
78134
78135         * modules/gc-sha1:
78136         * modules/gc-md4:
78137         * modules/gc-hmac-sha1:
78138         * modules/gc-hmac-md5:
78139         * modules/gc-des:
78140         * modules/gc-arcfour: Distribute more files.
78141
78142 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78143
78144         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78145         (gl_linked_iterator_from_to): Initialize struct completely.
78146         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78147         (gl_tree_iterator_from_to): Likewise
78148         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78149         * lib/gl_array_list.c [lint] (gl_array_iterator)
78150         (gl_array_iterator_from_to): Likewise.
78151         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78152         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78153         (gl_carray_iterator_from_to): Likewise.
78154
78155         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78156         * lib/md4.c (md4_process_block): Remove unused variable.
78157         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78158         parentheses for clarity.
78159
78160 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78161
78162         * modules/bison-i18n (Depends-on): Add gettext.
78163
78164 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78165
78166         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78167         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78168         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78169         also add missing comma that caused broken test.
78170         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78171         stdlib.h, for `abort'.
78172         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78173         variables.
78174         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78175         include unistd.h if present, for `rmdir'.
78176         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78177         variables.
78178         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78179         in the process include standard headers for prototypes.
78180         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78181         gets declared on GNU/Linux.
78182         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78183         unistd.h, for `rmdir'.
78184         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78185
78186         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78187         always true.
78188         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78189
78190         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78191
78192 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78193
78194         * gnulib-tool (func_version): Create output all at once.  This
78195         may help avoid triggering unnecessary SIGPIPEs, and at any
78196         rate it doesn't hurt.
78197
78198 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78199             Bruno Haible  <bruno@clisp.org>
78200
78201         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78202         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78203         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78204
78205         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78206         (gl_FUNC_VASPRINTF): Invoke it.
78207
78208 2006-09-22  Bruno Haible  <bruno@clisp.org>
78209
78210         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78211         getloadavg.c as first argument.
78212
78213 2006-09-22  Bruno Haible  <bruno@clisp.org>
78214
78215         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78216         at the beginning of the gl_INIT macro.
78217         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78218         gl_GETLOADAVG.
78219
78220 2006-09-22  Bruno Haible  <bruno@clisp.org>
78221
78222         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78223         module.
78224         Suggested by Ralf Wildenhues.
78225
78226 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         Import this patch from libc:
78229
78230         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78231
78232         * lib/regex_internal.c (re_string_reconstruct): Handle
78233         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78234         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78235         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78236         re_string_context_at.
78237
78238         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78239         now requires it.
78240         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78241         gl_REGEX now does it for us.
78242         (gl_REGEX): Add test taken from
78243         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78244
78245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78246         Check that large offsets work.  Modernize Autoconf usages.
78247         Prefer "yes" to mean a good thing rather than a bad.
78248         Don't put "#define mkstemp" in config.h, as this might interfere
78249         with standard system headers that "#define mkstemp mkstemp64".
78250
78251         * modules/mkstemp (Depends-on): Add extensions, so that
78252         mkstemp is visible on some platforms.
78253         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78254         (Include): Change to "mkstemp.h" from <stdlib.h>.
78255         (Files): Add mkstemp.h.
78256
78257         * lib/mkstemp.h: New file, since some standard headers
78258         #define mkstemp.
78259         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78260         Include "mkstemp.h".
78261         Make the _LIBC code resemble glibc original more,
78262         e.g., use K&R style.
78263         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78264         (mkstemp): Remove, since mkstemp.h does this for us.
78265         * lib/stdlib--.h: Include mkstemp.h.
78266
78267         Import this patch from libc:
78268
78269         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78270
78271         * lib/tempname.c (__gen_tempname): Change attempts_min
78272         into a macro.  Use preprocessor to decide how to initialize
78273         attempts [Coverity CID 67].
78274
78275 2006-09-20  Bruno Haible  <bruno@clisp.org>
78276
78277         * lib/mkdtemp.c: Import from libc.
78278         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78279                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78280                 attempts_min into a macro.  Use preprocessor to decide how to
78281                 initialize attempts [Coverity CID 67].
78282         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78283                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78284                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78285
78286 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78287
78288         * gnulib-tool (func_exit): New function, to allow to pass the
78289         exit status portably through the trap.  Use everywhere.
78290         (--help, --version): Signal a write error.
78291         (trap): catch SIGPIPE, for write errors.
78292         Exit at the end of the trap, with the correct exit status.
78293
78294 2006-09-19  Karl Berry  <karl@gnu.org>
78295
78296         * doc/gnulib.texi: note about the license texinfo files.
78297
78298 2006-09-19  Eric Blake  <ebb9@byu.net>
78299
78300         * gnulib-tool: Avoid space-tab.
78301
78302 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78305         that prevented coreutils 6.1 from building.  Problem reported
78306         by Petter Reinholdtsen.
78307
78308 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * gnulib-tool (avoidlist): Fix typo that broke options like
78311         --avoid=lock that are used by coreutils bootstrap.
78312
78313 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78314
78315         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78316         more systematically.
78317
78318 2006-09-18  Jim Meyering  <jim@meyering.net>
78319
78320         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78321
78322 2006-09-18  Bruno Haible  <bruno@clisp.org>
78323
78324         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78325
78326 2006-09-18  Bruno Haible  <bruno@clisp.org>
78327
78328         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78329         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78330         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78331         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78332         * m4/gettext.m4: Require autoconf >= 2.52.
78333         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78334         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78335         of gl_cv_header_inttypes_h.
78336
78337 2006-09-18  Bruno Haible  <bruno@clisp.org>
78338
78339         * lib/javaversion.c: Include configmake.h.
78340
78341 2006-09-18  Bruno Haible  <bruno@clisp.org>
78342
78343         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78344         avoid that the while loops be executed in a subshell.
78345
78346 2006-09-18  Bruno Haible  <bruno@clisp.org>
78347
78348         * MODULES.html.sh (func_module): Break long lines.
78349         Suggested by Bruce Korb <bkorb@gnu.org>.
78350
78351 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78352
78353         Speed up by a factor of 1.12.
78354         * gnulib-tool (nl): New variable.
78355         (func_import): Rewrite include directive extraction to only read each
78356         directive once.
78357
78358 2006-09-17  Bruno Haible  <bruno@clisp.org>
78359
78360         * modules/javaversion (Makefile.am): Remove DEFS setting.
78361         (Depends-on): Add configmake, for PKGDATADIR definition.
78362
78363 2006-09-17  Bruno Haible  <bruno@clisp.org>
78364
78365         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78366
78367 2006-09-17  Bruno Haible  <bruno@clisp.org>
78368
78369         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78370         (func_modules_transitive_closure, func_modules_add_dummy,
78371         func_modules_to_filelist, func_import, func_create_testdir,
78372         func_create_megatestdir, ...): Use it wherever possible.
78373         Suggested by Ralf Wildenhues.
78374
78375 2006-09-16  Karl Berry  <karl@gnu.org>
78376
78377         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78378         to avoid sectioning errors.
78379         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78380         [ifinfo]: blank line after @center-ed titles.
78381         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78382         Spell FSF address consistently with others.
78383         (These changes approved by rms.)
78384
78385 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78386
78387         Speed up by a factor of 1.61.
78388         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78389         already checked module names again.
78390
78391 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78392
78393         Speed up by a factor of 1.13.
78394         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78395         for new_files, and the input to func_add_or_update.
78396
78397 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78398
78399         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78400         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78401
78402 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78403
78404         * modules/mkancesdirs (Depends-on): Add fcntl.
78405         * modules/savewd: New file.
78406         * MODULES.html.sh (File system functions): Add savewd.
78407
78408         * modules/configmake (Makefile.am): Add support for the
78409         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78410
78411 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * m4/savewd.m4: New file.
78414
78415 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78416
78417         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78418         (dirchownmod): New arg FD.  All callers changed.
78419         Use FD rather than opening the directory ourself, as opening is
78420         now the caller's responsibility.
78421         * lib/dirchownmod.h: Likewise.
78422         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78423         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78424         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78425         (test_dir): Remove.
78426         (mkancesdirs): Return length of prefix of FILE that has already
78427         been made, or -2 if there is a child doing the work.  Redo
78428         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78429         ".", and treat ".." specially since it might stray back into
78430         already-created areas.  Use a subprocess if necessary.  New arg
78431         WD; all users changed.  MAKE_DIR function should now return 1
78432         if it creates a directory that is not readable.  Return -2 if
78433         a child process is spun off.
78434         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78435         Adjust signature to match code.
78436         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78437         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78438         all users changed.
78439         * lib/savewd.c, lib/savewd.h: New files.
78440
78441 2006-09-15  Jim Meyering  <jim@meyering.net>
78442
78443         * modules/rename-dest-slash: New module.
78444         * MODULES.html.sh (posix_compat): Add it here.
78445
78446         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78447
78448 2006-09-15  Jim Meyering  <jim@meyering.net>
78449
78450         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78451         file.
78452
78453         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78454
78455 2006-09-15  Jim Meyering  <jim@meyering.net>
78456
78457         * lib/rename-dest-slash.c (has_trailing_slash): Use
78458         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78459         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78460         test before testing whether SRC is a directory.
78461         Suggestions from Bruno Haible.
78462
78463         Avoid a warning about an unused variable.
78464         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78465         into the #ifdef block where it's used.
78466
78467         * lib/rename-dest-slash.c: New file.
78468
78469 2006-09-14  Bruno Haible  <bruno@clisp.org>
78470
78471         * lib/allocsa.c: Include <config.h> unconditionally.
78472         * lib/asnprintf.c: Likewise.
78473         * lib/asprintf.c: Likewise.
78474         * lib/c-strcasecmp.c: Likewise.
78475         * lib/c-strcasestr.c: Likewise.
78476         * lib/c-strncasecmp.c: Likewise.
78477         * lib/c-strstr.c: Likewise.
78478         * lib/classpath.c: Likewise.
78479         * lib/clean-temp.c: Likewise.
78480         * lib/concatpath.c: Likewise.
78481         * lib/copy-file.c: Likewise.
78482         * lib/csharpcomp.c: Likewise.
78483         * lib/csharpexec.c: Likewise.
78484         * lib/execute.c: Likewise.
78485         * lib/fatal-signal.c: Likewise.
78486         * lib/findprog.c: Likewise.
78487         * lib/fwriteerror.c: Likewise.
78488         * lib/gl_array_list.c: Likewise.
78489         * lib/gl_array_oset.c: Likewise.
78490         * lib/gl_avltree_list.c: Likewise.
78491         * lib/gl_avltree_oset.c: Likewise.
78492         * lib/gl_avltreehash_list.c: Likewise.
78493         * lib/gl_carray_list.c: Likewise.
78494         * lib/gl_linked_list.c: Likewise.
78495         * lib/gl_linkedhash_list.c: Likewise.
78496         * lib/gl_list.c: Likewise.
78497         * lib/gl_oset.c: Likewise.
78498         * lib/gl_rbtree_list.c: Likewise.
78499         * lib/gl_rbtree_oset.c: Likewise.
78500         * lib/gl_rbtreehash_list.c: Likewise.
78501         * lib/imaxabs.c: Likewise.
78502         * lib/imaxdiv.c: Likewise.
78503         * lib/javacomp.c: Likewise.
78504         * lib/javaexec.c: Likewise.
78505         * lib/javaversion.c: Likewise.
78506         * lib/linebreak.c: Likewise.
78507         * lib/localcharset.c: Likewise.
78508         * lib/lock.c: Likewise.
78509         * lib/mbchar.c: Likewise.
78510         * lib/mbswidth.c: Likewise.
78511         * lib/mkdtemp.c: Likewise.
78512         * lib/pipe.c: Likewise.
78513         * lib/printf-args.c: Likewise.
78514         * lib/printf-parse.c: Likewise.
78515         * lib/progname.c: Likewise.
78516         * lib/progreloc.c: Likewise.
78517         * lib/readlink.c: Likewise.
78518         * lib/sh-quote.c: Likewise.
78519         * lib/stpcpy.c: Likewise.
78520         * lib/stpncpy.c: Likewise.
78521         * lib/strcasecmp.c: Likewise.
78522         * lib/strcasestr.c: Likewise.
78523         * lib/strcspn.c: Likewise.
78524         * lib/striconv.c: Likewise.
78525         * lib/strncasecmp.c: Likewise.
78526         * lib/strnlen1.c: Likewise.
78527         * lib/strstr.c: Likewise.
78528         * lib/strtok_r.c: Likewise.
78529         * lib/tls.c: Likewise.
78530         * lib/tmpdir.c: Likewise.
78531         * lib/unicodeio.c: Likewise.
78532         * lib/unsetenv.c: Likewise.
78533         * lib/vasnprintf.c: Likewise.
78534         * lib/vasprintf.c: Likewise.
78535         * lib/wait-process.c: Likewise.
78536         * lib/xallocsa.c: Likewise.
78537         * lib/xsetenv.c: Likewise.
78538         * lib/xstriconv.c: Likewise.
78539
78540 2006-09-13  Simon Josefsson  <jas@extundo.com>
78541
78542         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78543         that internally, suggested by Ralf Wildenhues
78544         <Ralf.Wildenhues@gmx.de>.
78545
78546 2006-09-13  Simon Josefsson  <jas@extundo.com>
78547
78548         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78549         @LIBOBJS@.
78550         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78551
78552 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78553
78554         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78555         longer worry about uses that don't define HAVE_CONFIG_H.
78556         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78557         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78558         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78559         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78560         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78561         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78562         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78563         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78564         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78565         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78566         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78567         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78568         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78569         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78570         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78571         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78572         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78573         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78574         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78575         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78576         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78577         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78578         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78579         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78580         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78581         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78582         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78583         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78584         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78585         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78586         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78587         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78588         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78589         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78590         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78591         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78592         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78593         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78594         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78595         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78596         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78597         Likewise.
78598
78599 2006-09-13  Eric Blake  <ebb9@byu.net>
78600
78601         * lib/getopt.c: Fix typo in last commit.
78602
78603 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78604
78605         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78606         dgettext.
78607
78608 2006-09-12  Jim Meyering  <jim@meyering.net>
78609
78610         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78611         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78612         Reported by Nelson H. F. Beebe.
78613
78614 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78615
78616         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78617         program_invocation_name and program_invocation_short_name are
78618         initialized.
78619         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78620         and program_invocation_short_name to argp.h, so they are visible
78621         to user programs.
78622         * lib/argp.h: Likewise
78623
78624 2006-09-10  Bruno Haible  <bruno@clisp.org>
78625
78626         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78627         m4/inttypes_h.m4, m4/uintmax_t.m4.
78628
78629 2006-09-10  Bruno Haible  <bruno@clisp.org>
78630
78631         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78632         gl_AC_TYPE_UINTMAX_T.
78633
78634 2006-09-10  Bruno Haible  <bruno@clisp.org>
78635
78636         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78637
78638 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78639
78640         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78641         convention.  Text proposed by Bruno Haible.
78642         (struct argp_option): Document the use of N_() wrappers.
78643
78644         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78645         '\v', and translate the two parts separately, instead of feeding
78646         the whole string to gettext.  This allows to exclude
78647         '\v' from the strings visible to the translator by writing doc
78648         strings as N_("..") "\v" N_("..").
78649
78650 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * config/srclist.txt: Undo latest change; the bug was fixed.
78653
78654 2006-09-09  Bruno Haible  <bruno@clisp.org>
78655
78656         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78657         assignments if building a library without libtool.
78658         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78659         in func_emit_lib_Makefile_am.
78660         (func_import): When building a static library libfoo.a, arrange to
78661         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78662         (func_create_testdir): Likewise.
78663         * modules/gc (configure.ac, Makefile.am): If building statically,
78664         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78665         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78666         * modules/striconv (configure.ac, Makefile.am): Likewise.
78667         Based on a suggestion by Ralf Wildenhues.
78668
78669 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78672         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78673         Also:
78674
78675         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78676         Add year_2050_test to catch glibc bug 2821
78677         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78678
78679         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78680         Prefer #ifdef to #if.
78681
78682         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78683         Return from 'main' instead of calling 'exit'.
78684
78685 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78688         returned the maximum time_t value rather than (time_t) -1.
78689         Problem originally reported by William Bardwell
78690         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78691
78692         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78693         Moved to here ...
78694         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78695         ... from here.
78696
78697 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78700         2821 is fixed.
78701
78702 2006-09-08  Jim Meyering  <jim@meyering.net>
78703
78704         Don't make generated files read-only.  That would bother too many
78705         people.  However, do retain the ability to work when targets are
78706         read-only: remove the destination and temporary files before writing
78707         them (when generated via sed or echo), or by using the -f option for
78708         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78709         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78710         * modules/byteswap, modules/configmake, modules/fcntl:
78711         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78712         * modules/localcharset, modules/netinet_in, modules/poll:
78713         * modules/stdbool, modules/stdint, modules/sys_select:
78714         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78715
78716 2006-09-08  Jim Meyering  <jim@meyering.net>
78717
78718         Avoid new build failure on FreeBSD 6.0.
78719         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78720         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78721         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78722
78723 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78724
78725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78726
78727 2006-09-07  Jim Meyering  <jim@meyering.net>
78728
78729         Fix global typo in last change: use chmod u-w, not chmod u-x.
78730         Spotted by Paul Eggert and Bruce Korb.
78731         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78732         * modules/byteswap, modules/configmake, modules/fcntl:
78733         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78734         * modules/localcharset, modules/netinet_in, modules/poll:
78735         * modules/stdbool, modules/stdint, modules/sys_select:
78736         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78737
78738 2006-09-06  Jim Meyering  <jim@meyering.net>
78739
78740         Make generated files be read-only.
78741         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78742         Ensure that each generated file is now read-only.
78743         * modules/argz: Likewise.
78744         * modules/arpa_inet: Likewise.
78745         * modules/byteswap: Likewise.
78746         * modules/configmake: Likewise.
78747         * modules/fcntl: Likewise.
78748         * modules/fnmatch: Likewise.
78749         * modules/getopt: Likewise.
78750         * modules/glob: Likewise.
78751         * modules/inttypes: Likewise.
78752         * modules/netinet_in: Likewise.
78753         * modules/poll: Likewise.
78754         * modules/stdbool: Likewise.
78755         * modules/stdint: Likewise.
78756         * modules/sys_select: Likewise.
78757         * modules/sys_socket: Likewise.
78758         * modules/sys_stat: Likewise.
78759         * modules/sysexits: Likewise.
78760         * modules/localcharset: Same as above, but continue using temporary
78761         file named "t-$@" (why different?) rather than the "$@-t" used
78762         everywhere else.
78763
78764         * modules/sysexits (Makefile.am): Replace literal occurrences
78765         of "sysexit.h" more readable, and more consistent, "$@".
78766
78767 2006-09-06  Bruno Haible  <bruno@clisp.org>
78768
78769         * modules/striconv: New file.
78770         * modules/xstriconv: New file.
78771         * MODULES.html.sh (Internationalization functions): Add striconv,
78772         xstriconv.
78773
78774 2006-09-06  Bruno Haible  <bruno@clisp.org>
78775
78776         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78777         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78778         not using libtool correctly.
78779
78780 2006-09-06  Bruno Haible  <bruno@clisp.org>
78781
78782         * lib/striconv.h: New file.
78783         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78784         iconvstring.c.
78785         * lib/xstriconv.h: New file.
78786         * lib/xstriconv.c: New file.
78787
78788 2006-09-06  Bruno Haible  <bruno@clisp.org>
78789
78790         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78791         lib_..._LDFLAGS.
78792
78793 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78794
78795         * lib/argz_.h: Sync from Libtool.
78796
78797         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78798                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78799
78800         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78801
78802 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78803
78804         * modules/trim: New file.
78805
78806 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78807
78808         * lib/trim.h: New file.
78809         * lib/trim.c: New file.
78810
78811 2006-09-05  Bruno Haible  <bruno@clisp.org>
78812
78813         * MODULES.html.sh (String handling): Add trim.
78814
78815 2006-09-04  Karl Berry  <karl@gnu.org>
78816
78817         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78818         until next release.
78819
78820 2006-09-03  Bruno Haible  <bruno@clisp.org>
78821
78822         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78823         correctly.
78824
78825 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78828         not gl_GETLOADAVG.  Omit unneeded semicolons.
78829         Problems reported by Ralf Wildenhues in
78830         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78831         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78832         at the end, which is the usual gnulib style.
78833
78834         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78835         of doing all the work ourselves.
78836         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78837         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78838
78839 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78842         Problem reported by Ralf Wildenhues in
78843         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78844
78845         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78846         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78847
78848 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78851         yesterday's patch by changing test -n to test -z.
78852
78853 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78856         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78857         the former is now obsolescent.
78858
78859         * modules/chdir-long (Depends-on): Add fcntl.
78860
78861 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78862
78863         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78864         obsolescent, and programs should use gnulib instead.
78865         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78866         but with prefixes changed.
78867
78868 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78869
78870         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78871         or stdbool.h, because they might not exist while configuring.
78872
78873         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78874         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78875         does that for us.
78876         (O_DIRECTORY): Remove.
78877
78878 2006-08-31  Eric Blake  <ebb9@byu.net>
78879
78880         * gnulib-tool: Don't let emacs change spaces to TAB.
78881
78882 2006-08-31  Bruno Haible  <bruno@clisp.org>
78883
78884         * gnulib-tool: When calling func_import more than once, do it in a
78885         subshell.
78886         Reported by Eric Blake <ebb9@byu.net>.
78887
78888 2006-08-31  Bruno Haible  <bruno@clisp.org>
78889
78890         * gnulib-tool (nl): Remove variable.
78891         (sed_transform_lib_file): Use more robust test for config-h module.
78892         (func_import): Fix typo in 2006-08-25 patch.
78893
78894 2006-08-31  Bruno Haible  <bruno@clisp.org>
78895
78896         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78897         specified, augment Makefile.am variables instead of assigning them.
78898
78899 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78900
78901         Work around a bug in both the Linux and SunOS 64-bit kernels:
78902         nanosleep mishandles sleeps for longer than 2**31 seconds.
78903         Problem reported by Frank v Waveren in
78904         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78906         Check for nanosleep bug.
78907         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78908
78909 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         Work around a bug in both the Linux and SunOS 64-bit kernels:
78912         nanosleep mishandles sleeps for longer than 2**31 seconds.
78913         Problem reported by Frank v Waveren in
78914         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78915         * lib/nanosleep.c (BILLION): New constant.
78916         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78917         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78918         implementation.
78919
78920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * modules/nanosleep (Depends-on): Add gettime.
78923
78924 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78925         and Simon Josefsson  <jas@extundo.com>
78926         and Oskar Liljeblad  <oskar@osk.mine.nu>
78927
78928         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78929         * gnulib-tool (func_import): New license type 'unmodifiable license
78930         text'.
78931         * modules/fdl: Use it.  Longer description.
78932         * module/gpl, module/lgpl: New files.
78933
78934 2006-08-30  Jim Meyering  <jim@meyering.net>
78935
78936         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78937         shadowing the parameter.
78938
78939 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78940
78941         Sync from Libtool:
78942
78943         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78944
78945         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78946         sharing with gnulib.  Report by Eric Blake.
78947
78948 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * modules/isapipe: New file.
78951         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78952
78953 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78954
78955         * modules/configmake (Makefile.am): Add a comment, and omit
78956         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78957         by Bruno Haible.
78958
78959 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * m4/isapipe.m4: New file.
78962
78963 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/isapipe.c, lib/isapipe.h: New files.
78966
78967 2006-08-29  Jim Meyering  <jim@meyering.net>
78968
78969         * modules/configmake (Makefile.am): Make configmake.h depend on
78970         Makefile.  Otherwise, a stale configmake.h could hang around.
78971
78972 2006-08-29  Eric Blake  <ebb9@byu.net>
78973
78974         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78975         resolution of upstream bug 3044.
78976
78977 2006-08-29  Bruno Haible  <bruno@clisp.org>
78978
78979         * modules/localcharset (Depends-on): Add configmake.
78980         (Makefile.am): Remove setting of LIBDIR through DEFS.
78981
78982 2006-08-29  Bruno Haible  <bruno@clisp.org>
78983
78984         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78985         defined.
78986
78987 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * modules/fcntl: New file.
78990         * modules/chdir-safer (Depends-on): Add fcntl.
78991         * modules/fts: Likewise.
78992         * modules/mkdir-p: Likewise.
78993
78994         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78995         This undoes the most recent change, since we're now addressing the
78996         problem in a different way.
78997
78998         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78999         into output, since the output might be called Makefile.am even
79000         if $makefile_name is something different.
79001         (func_import): Use $makefile_am rather than
79002         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79003         empty.
79004
79005         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79006
79007 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79010         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79011         recent change to stdint.m4, since we're now addressing the problem in a
79012         different way.
79013
79014 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79015
79016         * m4/fcntl_h.m4: New file.
79017
79018 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/fcntl_.h: New file.
79021         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79022         the fcntl module.
79023         * lib/dirchownmod.c: Likewise.
79024         * lib/fts.c: Likewise.
79025
79026         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79027         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79028         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79029         just before including <inttypes.h>, to avoid circular inclusion.
79030
79031 2006-08-28  Jim Meyering  <jim@meyering.net>
79032
79033         * doc/visibility.texi: Actually read and correct the grammar of the
79034         sentence affected by yesterday's change.
79035
79036 2006-08-28  Eric Blake  <ebb9@byu.net>
79037
79038         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79039         needs wrapper.
79040
79041 2006-08-28  Eric Blake  <ebb9@byu.net>
79042
79043         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79044
79045 2006-08-28  Eric Blake  <ebb9@byu.net>
79046
79047         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79048
79049 2006-08-28  Bruno Haible  <bruno@clisp.org>
79050
79051         * modules/c-strstr: New file, from GNU gettext.
79052         * MODULES.html.sh (String handling): Add c-strstr.
79053
79054 2006-08-28  Bruno Haible  <bruno@clisp.org>
79055
79056         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79057         macros.
79058         Reported by Eric Blake.
79059
79060 2006-08-28  Bruno Haible  <bruno@clisp.org>
79061
79062         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79063         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79064         * lib/vasprintf.c: Include errno.h, limits.h.
79065         (EOVERFLOW): New fallback definition.
79066         (vasprintf): Test here whether the string length is > INT_MAX.
79067         * lib/vsnprintf.c: Include errno.h, limits.h.
79068         (EOVERFLOW): New fallback definition.
79069         (vsnprintf): Fix bug when generated string was too long for the buffer.
79070         Test here whether the string length is > INT_MAX.
79071
79072 2006-08-28  Bruno Haible  <bruno@clisp.org>
79073
79074         * lib/inttypes_.h (SCNX*): Remove definitions.
79075         Reported by Eric Blake.
79076
79077 2006-08-28  Bruno Haible  <bruno@clisp.org>
79078
79079         * lib/c-strstr.h: New file, from GNU gettext.
79080         * lib/c-strstr.c: New file, from GNU gettext.
79081
79082 2006-08-28  Bruno Haible  <bruno@clisp.org>
79083
79084         * gnulib-tool: Reorder some statements.
79085
79086 2006-08-28  Bruno Haible  <bruno@clisp.org>
79087
79088         * gnulib-tool: New option --makefile-name.
79089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79090         $makefile_name.
79091         (func_import): Write $makefile_name to the cache file, and read it from
79092         there unless explicitly specified. Use $makefile_name as file name
79093         instead of Makefile.am. Adjust the recommendations accordingly.
79094
79095 2006-08-28  Bruno Haible  <bruno@clisp.org>
79096
79097         * gnulib-tool (func_verify_module): Check against misapplying patch.
79098
79099 2006-08-28  Bruno Haible  <bruno@clisp.org>
79100
79101         * gnulib-tool (func_relativize, func_relconcat): New functions.
79102         Give an error if --local-dir is given with --update.
79103         Remove trailing slashes from $local_gnulib_dir.
79104         (func_import): Store the relativized $local_gnulib_dir in
79105         gnulib-cache.m4, and read it from there if not specified explicitly.
79106
79107 2006-08-28  Bruno Haible  <bruno@clisp.org>
79108
79109         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79110         is the current directory. Respect also $local_gnulib_dir.
79111
79112 2006-08-28  Bruno Haible  <bruno@clisp.org>
79113             Simon Josefsson  <jas@extundo.com>
79114
79115         BeOS portability.
79116         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79117
79118 2006-08-27  Jim Meyering  <jim@meyering.net>
79119
79120         * doc/visibility.texi: Remove duplicate word: "pointer".
79121
79122 2006-08-26  Bruno Haible  <bruno@clisp.org>
79123
79124         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79125         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79126         (Makefile.am): Create inttypes.h from inttypes_.h.
79127         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79128
79129         * modules/imaxabs: New file.
79130
79131         * modules/imaxdiv: New file.
79132
79133 2006-08-26  Bruno Haible  <bruno@clisp.org>
79134
79135         * m4/inttypes.m4: New file.
79136         * m4/_inttypes_h.m4: Remove file.
79137         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79138         PRI_MACROS_BROKEN.
79139         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79140
79141         * m4/imaxabs.m4: New file.
79142
79143         * m4/imaxdiv.m4: New file.
79144
79145 2006-08-26  Bruno Haible  <bruno@clisp.org>
79146
79147         * lib/inttypes_.h: New file.
79148         * lib/inttypes.h: Remove file.
79149         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79150
79151         * lib/imaxabs.c: New file.
79152
79153         * lib/imaxdiv.c: New file.
79154
79155 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79156
79157         New config-h module, so that "make" output needn't be cluttered
79158         by -DHAVE_CONFIG_H.
79159         * MODULES.html.sh (Support for building libraries and executables):
79160         Add config-h.
79161         * modules/config-h: New file.
79162         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79163         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79164         the config-h module is used.
79165
79166         New configmake module, so that "make" output needn't be cluttered
79167         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79168         * MODULES.html.sh (Support for building libraries and executables):
79169         Add configmake.
79170         * modules/configmake: New file.
79171
79172 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         * m4/config-h.m4: New file.
79175
79176 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * config/srclist.txt: Add elisp-comp.
79179
79180 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79181
79182         * MODULES.html.sh (Support for building libraries and executables):
79183         Add elisp-comp.
79184         * build-aux/elisp-comp: New file.
79185         * modules/elisp-comp: New file.
79186
79187 2006-08-24  Bruno Haible  <bruno@clisp.org>
79188
79189         * gnulib-tool (func_create_testdir): Use non-default values of
79190         sourcebase and m4base.
79191
79192 2006-08-24  Bruno Haible  <bruno@clisp.org>
79193
79194         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79195         HTML structure.
79196
79197 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * modules/openat (Depends-on): Add lchown.
79200
79201 2006-08-23  Bruno Haible  <bruno@clisp.org>
79202
79203         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79204         of gl_LOCK_EARLY instead of gl_LOCK.
79205
79206 2006-08-23  Bruno Haible  <bruno@clisp.org>
79207
79208         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79209         on OSF/1 to no.
79210         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79211
79212 2006-08-23  Bruno Haible  <bruno@clisp.org>
79213
79214         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79215         as unusable.
79216
79217         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79218         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79219         (gl_LOCK): New macro.
79220
79221 2006-08-22  Simon Josefsson  <jas@extundo.com>
79222
79223         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79224         to md5 module.
79225
79226 2006-08-22  Simon Josefsson  <jas@extundo.com>
79227
79228         * MODULES.html.sh: Add "Support for maintaining and release
79229         projects".
79230
79231         * build-aux/gnupload: New file, from coreutils.
79232
79233 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         Avoid the need for AC_LIBSOURCES in m4 macros.
79236         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79237         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79238         * modules/check-version (EXTRA_DIST): Add check-version.h.
79239         * modules/crc (EXTRA_DIST): Add crc.h.
79240         * modules/des (EXTRA_DIST): Add des.h.
79241         * modules/gc (EXTRA_DIST): Add gc.h.
79242         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79243         * modules/getline (EXTRA_DIST): Add getline.h.
79244         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79245         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79246         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79247         * modules/md2 (EXTRA_DIST): Add md2.h.
79248         * modules/md4 (EXTRA_DIST): Add md4.h.
79249         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79250         * modules/read-file (EXTRA_DIST): Add read-file.h.
79251         * modules/readline (EXTRA_DIST): Add readline.h.
79252         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79253         rijndael-api-fst.h.
79254
79255 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79256
79257         * m4/rijndael.m4 (gl_ARCFOUR):
79258         * m4/arctwo.m4 (gl_ARCTWO):
79259         * m4/check-version.m4 (gl_CHECK_VERSION):
79260         * m4/crc.m4 (gl_CRC):
79261         * m4/des.m4 (gl_DES):
79262         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79263         * m4/gc.m4 (gl_GC):
79264         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79265         * m4/getline.m4 (gl_FUNC_GETLINE):
79266         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79267         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79268         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79269         * m4/md2.m4 (gl_MD2):
79270         * m4/md4.m4 (gl_MD4):
79271         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79272         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79273         * m4/readline.m4 (gl_FUNC_READLINE):
79274         * m4/rijndael.m4 (gl_RIJNDAEL):
79275         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79276         to get the necessary .h files and whatnot.
79277
79278 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79281         gnulib rather than the other way around.
79282         * config/srclistvars.sh (COREUTILS): Remove.
79283
79284 2006-08-22  Jim Meyering  <jim@meyering.net>
79285
79286         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79287
79288         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79289
79290 2006-08-22  Eric Blake  <ebb9@byu.net>
79291
79292         * modules/regexprops-generic: New file.
79293         * MODULES.html.sh (Support for building documentation): List it.
79294
79295 2006-08-22  Eric Blake  <ebb9@byu.net>
79296
79297         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79298         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79299         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79300         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79301
79302 2006-08-22  Bruno Haible  <bruno@clisp.org>
79303
79304         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79305         and lib_LTLIBRARIES like the other lib_* variables.
79306
79307 2006-08-22  Bruno Haible  <bruno@clisp.org>
79308
79309         * build-aux/x-to-1.in: New file, from GNU gettext.
79310
79311 2006-08-22  Bruno Haible  <bruno@clisp.org>
79312
79313         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79314         <utmpx.h> exists.
79315
79316 2006-08-22  Bruno Haible  <bruno@clisp.org>
79317
79318         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79319         <utmpx.h> exists.
79320
79321 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         BeOS portability.
79324         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79325         exist.
79326         Problem reported by Bruno Haible.
79327
79328 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79329
79330         Avoid the need for AC_LIBSOURCES in m4 macros.
79331         * modules/acl (EXTRA_DIST): Add acl.h.
79332         * modules/argmatch (Files): Add m4/argmatch.m4.
79333         (configure.ac): Add gl_ARGMATCH.
79334         (EXTRA_DIST): Renamed from lib_SOURCES, for
79335         consistency with the other modules.  Remove argmatch.c.
79336         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79337         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79338         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79339         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79340         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79341         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79342         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79343         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79344         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79345         * modules/closeout (EXTRA_DIST): Add closeout.h.
79346         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79347         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79348         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79349         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79350         dirname.h; remove basename.c and stripslash.c.
79351         * modules/exclude (EXTRA_DIST): Add exclude.h.
79352         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79353         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79354         * modules/file-type (EXTRA_DIST): Add file-type.h.
79355         * modules/filemode (EXTRA_DIST): Add filemode.h.
79356         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79357         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79358         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79359         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79360         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79361         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79362         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79363         * modules/getdate (EXTRA_DIST): Add getdate.c.
79364         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79365         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79366         * modules/getpass (EXTRA_DIST): Add getpass.h.
79367         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79368         * modules/group-member (EXTRA_DIST): Add group-member.h.
79369         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79370         * modules/hash (EXTRA_DIST): Add hash.h.
79371         * modules/human (EXTRA_DIST): Add human.h.
79372         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79373         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79374         * modules/lchown (EXTRA_DIST): Add lchown.h.
79375         * modules/long-options (EXTRA_DIST): Add long-options.h.
79376         * modules/lstat (EXTRA_DIST): Add lstat.h.
79377         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79378         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79379         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79380         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79381         * modules/memxor (EXTRA_DIST): Add memxor.h.
79382         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79383         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79384         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79385         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79386         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79387         * modules/physmem (EXTRA_DIST): Add physmem.h.
79388         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79389         * modules/posixver (EXTRA_DIST): Add posixver.h.
79390         * modules/quote (EXTRA_DIST): Add quote.h.
79391         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79392         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79393         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79394         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79395         regex_internal.h regexec.c.
79396         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79397         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79398         * modules/same (EXTRA_DIST): Add same.h.
79399         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79400         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79401         * modules/savedir (EXTRA_DIST): Add savedir.h.
79402         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79403         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79404         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79405         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79406         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79407         * modules/strdup (EXTRA_DIST): Add strdup.h.
79408         * modules/strftime (EXTRA_DIST): Add strftime.h.
79409         * modules/strndup (EXTRA_DIST): Add strndup.h.
79410         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79411         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79412         * modules/time_r (EXTRA_DIST): Add time_r.h.
79413         * modules/timespec (EXTRA_DIST): Add timespec.h.
79414         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79415         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79416         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79417         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79418         * modules/userspec (EXTRA_DIST): Add userspec.h.
79419         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79420         * modules/utimens (EXTRA_DIST): Add utimens.h.
79421         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79422         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79423         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79424         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79425         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79426         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79427         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79428         * modules/yesno (EXTRA_DIST): Add yesno.h.
79429
79430 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79433
79434         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79435         * m4/dev-ino.m4, same-inode.m4: Remove.
79436
79437         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79438         * m4/acl.m4 (AC_FUNC_ACL):
79439         * m4/backupfile.m4 (gl_BACKUPFILE):
79440         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79441         * m4/canon-host.m4 (gl_CANON_HOST):
79442         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79443         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79444         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79445         * m4/cloexec.m4 (gl_CLOEXEC):
79446         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79447         * m4/closeout.m4 (gl_CLOSEOUT):
79448         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79449         * m4/dirname.m4 (gl_DIRNAME):
79450         * m4/exclude.m4 (gl_EXCLUDE):
79451         * m4/exitfail.m4 (gl_EXITFAIL):
79452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79453         * m4/file-type.m4 (gl_FILE_TYPE):
79454         * m4/filemode.m4 (gl_FILEMODE):
79455         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79456         * m4/fpending.m4 (gl_FUNC_FPENDING):
79457         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79458         * m4/fts.m4 (gl_FUNC_FTS):
79459         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79460         * m4/getdate.m4 (gl_GETDATE):
79461         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79462         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79463         * m4/getpass.m4 (gl_FUNC_GETPASS):
79464         * m4/gettime.m4 (gl_GETTIME):
79465         * m4/getugroups.m4 (gl_GETUGROUPS):
79466         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79467         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79468         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79469         * m4/hash.m4 (gl_HASH):
79470         * m4/idcache.m4 (gl_IDCACHE):
79471         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79472         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79473         * m4/long-options.m4 (gl_LONG_OPTIONS):
79474         * m4/lstat.m4 (gl_FUNC_LSTAT):
79475         * m4/md5.m4 (gl_MD5):
79476         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79477         * m4/memcoll.m4 (gl_MEMCOLL):
79478         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79479         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79480         * m4/memxor.m4 (gl_MEMXOR):
79481         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79482         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79483         * m4/modechange.m4 (gl_MODECHANGE):
79484         * m4/mountlist.m4 (gl_MOUNTLIST):
79485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79486         * m4/openat.m4 (gl_FUNC_OPENAT):
79487         * m4/pathmax.m4 (gl_PATHMAX):
79488         * m4/physmem.m4 (gl_PHYSMEM):
79489         * m4/posixtm.m4 (gl_POSIXTM):
79490         * m4/posixver.m4 (gl_POSIXVER):
79491         * m4/quote.m4 (gl_QUOTE):
79492         * m4/quotearg.m4 (gl_QUOTEARG):
79493         * m4/readtokens.m4 (gl_READTOKENS):
79494         * m4/readutmp.m4 (gl_READUTMP):
79495         * m4/regex.m4 (gl_REGEX):
79496         * m4/safe-read.m4 (gl_SAFE_READ):
79497         * m4/safe-write.m4 (gl_SAFE_WRITE):
79498         * m4/same.m4 (gl_SAME):
79499         * m4/save-cwd.m4 (gl_SAVE_CWD):
79500         * m4/savedir.m4 (gl_SAVEDIR):
79501         * m4/settime.m4 (gl_SETTIME):
79502         * m4/sha1.m4 (gl_SHA1):
79503         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79504         * m4/stat-macros.m4 (gl_STAT_MACROS):
79505         * m4/stat-time.m4 (gl_STAT_TIME):
79506         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79507         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79508         * m4/strdup.m4 (gl_FUNC_STRDUP):
79509         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79510         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79511         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79512         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79513         * m4/time_r.m4 (gl_TIME_R):
79514         * m4/timespec.m4 (gl_TIMESPEC):
79515         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79516         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79517         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79518         * m4/userspec.m4 (gl_USERSPEC):
79519         * m4/utimecmp.m4 (gl_UTIMECMP):
79520         * m4/utimens.m4 (gl_UTIMENS):
79521         * m4/xalloc.m4 (gl_XALLOC):
79522         * m4/xgetcwd.m4 (gl_XGETCWD):
79523         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79524         * m4/xreadlink.m4 (gl_XREADLINK):
79525         * m4/xstrtod.m4 (gl_XSTRTOD):
79526         * m4/yesno.m4 (gl_YESNO):
79527         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79528         to get the necessary .h files and whatnot.
79529
79530 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79531             Bruno Haible  <bruno@clisp.org>
79532
79533         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79534         /bin/sh understanding of '!' conditional negation.
79535
79536 2006-08-21  Jim Meyering  <jim@meyering.net>
79537
79538         * modules/openat (Depends-on): Really alphabetize.
79539
79540         * modules/acl (Depends-on): Add error and quote.
79541
79542         * check-module (find_included_lib_files): Add at-func.c to the
79543         ok-to-include-more-than-once white list.
79544
79545         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79546
79547 2006-08-21  Bruno Haible  <bruno@clisp.org>
79548
79549         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79550         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79551         Reported by Martin Lambers <marlam@marlam.de>.
79552
79553 2006-08-21  Bruno Haible  <bruno@clisp.org>
79554
79555         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79556         specify an installation location, don't emit a noinst_LIBRARIES or
79557         noinst_LTLIBRARIES assignment.
79558
79559 2006-08-21  Bruno Haible  <bruno@clisp.org>
79560
79561         BeOS portability.
79562         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79563         BeOS has mbrtowc() but no <wctype.h>.
79564
79565 2006-08-21  Bruno Haible  <bruno@clisp.org>
79566
79567         BeOS portability.
79568         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79569         exist.
79570
79571 2006-08-21  Bruno Haible  <bruno@clisp.org>
79572
79573         BeOS portability.
79574         * lib/mbchar.h: Include <wctype.h> only if it exists.
79575
79576 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         Remove files that are no longer needed by their respective modules.
79579         * m4/obstack.m4: Remove.
79580         * m4/strerror_r.m4: Remove.
79581         * m4/uint32_t.m4: Remove.
79582         * m4/uintptr_t.m4: Remove.
79583         * m4/ullong_max.m4: Remove.
79584         * m4/xstrtoimax.m4: Remove.
79585         * m4/xstrtoumax.m4: Remove.
79586
79587         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79588         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79589         dependencies now capture this.
79590
79591         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79592         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79593         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79594         * m4/human.m4 (gl_HUMAN): Likewise.
79595         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79596         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79597
79598         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79599
79600         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79601         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79602         stdint.
79603         * m4/human.m4 (gl_HUMAN): Likewise.
79604         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79605         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79606         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79607         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79608         * m4/xstrtol (gl_XSTRTOL): Likewise.
79609
79610         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79611         AC_TYPE_LONG_LONG_INT.
79612         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79613         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79614         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79615         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79616
79617         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79618         on stdbool.
79619
79620         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79621         (gl_PREREQ_XSTRTOUL): Remove.
79622
79623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79624
79625         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79626         mode.
79627
79628 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79629
79630         Add and change modules to make it easier for coreutils to use
79631         gnulib-tool.
79632         * modules/backupfile (Files): Remove m4/d-ino.m4.
79633         (Depends-on): Add d-ino.
79634         * modules/cycle-check (Depends-on): Add stdint.
79635         (lib_SOURCES): Add cycle-check.h.
79636         * modules/d-ino: New module.
79637         * modules/d-type: New module.
79638         * modules/error (Files): Remove m4/strerror_r.m4.
79639         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79640         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79641         m4/inttypes_h.m4, m4/uintmax_t.m4.
79642         (Depends-on): Add stdint.
79643         (lib_SOURCES): Add fsusage.h.
79644         * modules/getcwd (Files): Remove d-ino.m4.
79645         (Depends-on): Add d-ino.
79646         * modules/getndelim2 (Depends-on): Add stdint.
79647         * modules/glob (Files): Remove m4/d-type.m4.
79648         (Depends-on): Add d-type.
79649         * modules/host-os: New module.
79650         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79651         m4/inttypes_h.m4, m4/uintmax_t.m4.
79652         * Depends-on: Add stdint.
79653         (lib_SOURCES): Add human.h.
79654         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79655         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79656         m4/uintmax_t.m4, m4/ulonglong.m4.
79657         (Depends-on): Add stdint.
79658         (EXTRA_DIST): Add inttostr.h.
79659         * modules/lchmod: New module.
79660         * modules/link-follow: New module.
79661         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79662         (Depends-on): Add lchmod.
79663         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79664         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79665         (Depends-on): Add stdint.
79666         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79667         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79668         (Depends-on): Add stdint.
79669         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79670         * modules/perl: New module.
79671         * modules/regex (Depends-on): Add stdint.
79672         * modules/rmdir-errno: New module.
79673         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79674         m4/intmax_t.m4.
79675         (Depends-on): Add stdint.
79676         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79677         m4/uintmax_t.m4.
79678         (Depends-on): Add stdint.
79679         * modules/unlink-busy: New module.
79680         * modules/utimecmp (Depends-on): Add stdint.
79681         * modules/uptime: New module.
79682         * modules/winsz-ioctl: New module.
79683         * modules/winsz-termios: New module.
79684         * modules/xnanosleep (Depends-on): Add nanosleep.
79685         * modules/ullong_max: Remove.
79686         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79687         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79688         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79689         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79690         (Depends-on): Add inttypes.
79691         (lib_SOURCES): Add xstrtol.h.
79692         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79693         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79694         * MODULES.html.sh: Move 'assert' into the assert section.
79695         Move 'dummy' into the linking section.
79696         Remove ullong_max.
79697         Add section for compatibility checks for POSIX:2001 functions,
79698         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79699         winsz-ioctl, and winsz-termios into it.
79700         Add lchmod.
79701         Add top-level Misc section and put host-os, perl, and uptime
79702         into it.
79703
79704 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79707         now assume the stdint module.  Do not include inttypes.h.
79708         * lib/fsusage.h: Likewise.
79709         * lib/getndelim2.c: Likewise.
79710         * lib/human.h: Likewise.
79711         * lib/inttostr.h: Likewise.
79712         * lib/obstack.c: Likewise.
79713         * lib/regex_internal.h: Likewise.
79714         * lib/tempname.c: Likewise.
79715         * lib/utimecmp.c: Likewise.
79716         * lib/xstrtol.h: Likewise.
79717
79718         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79719
79720         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79721         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79722         * lib/xtime.h: Likewise.
79723
79724 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * modules/openat (Files): Add lib/fchmodat.c.
79727         Fixes problem reported by Jay Youngman.
79728
79729 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79730
79731         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79732         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79733
79734 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79735             Bruno Haible  <bruno@clisp.org>
79736
79737         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79738         and is a script that invokes bison. Tighten the code. Add comments.
79739
79740 2006-08-18  Jim Meyering  <jim@meyering.net>
79741
79742         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79743         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79744         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79745         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79746
79747 2006-08-18  Bruno Haible  <bruno@clisp.org>
79748
79749         * modules/bison-i18n: New file.
79750         * MODULES.html.sh (Internationalization functions): Add it.
79751
79752 2006-08-18  Bruno Haible  <bruno@clisp.org>
79753
79754         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79755         sys/statvfs.h. When getmntinfo was found, check its declaration and
79756         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79757
79758 2006-08-18  Bruno Haible  <bruno@clisp.org>
79759
79760         * m4/bison-i18n.m4: New file, from bison.
79761
79762 2006-08-18  Bruno Haible  <bruno@clisp.org>
79763
79764         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79765         (ME_DUMMY): Treat "kernfs" as a dummy.
79766         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79767
79768 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         Update from coreutils.
79771
79772         2006-08-15  Jim Meyering  <jim@meyering.net>
79773
79774         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79775
79776         2006-01-17  Jim Meyering  <jim@meyering.net>
79777
79778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79779
79780         2006-01-11  Jim Meyering  <jim@meyering.net>
79781
79782         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79783         Check for the lchmod function.
79784
79785 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         Update from coreutils.
79788
79789         * lib/__fpending.h: Add copyright notice.
79790         * lib/fprintftime.h: Likewise.
79791         * lib/savedir.c: Use (C) in copyright notice.
79792         * lib/savedir.h: Likewise.
79793
79794         2006-08-15  Jim Meyering  <jim@meyering.net>
79795
79796         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79797         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79798         in support of the EXPECTED_ERRNO macro.
79799         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79800         definitions.  Instead, define the appropriate symbols and include
79801         "at-func.c".
79802         * lib/mkdirat.c (mkdirat): Likewise.
79803         * lib/fchmodat.c (fchmodat): Likewise.
79804         (ENOSYS): Remove definition.
79805         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79806         it.  Don't include "unistd--.h" -- it wasn't ever used.
79807
79808         2006-01-17  Jim Meyering  <jim@meyering.net>
79809
79810         Rewrite fts.c not to change the current working directory,
79811         by using openat, fstatat, fdopendir, etc..
79812
79813         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79814         (HAVE_OPENAT_SUPPORT): Define.
79815         [_LIBC] (fchdir): Don't undef or define; no longer used.
79816         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79817         Now, this `function' always succeeds, and consumes its file descriptor
79818         parameter -- so callers must not close such FDs.  Update callers.
79819         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79820         (diropen): Add parameter, SP.  Adjust all callers.
79821         Implement using diropen_fd, rather than open.
79822         (fts_open): Initialize new member, fts_cwd_fd.
79823         Remove fts_rft-setting code.
79824         (fts_close): Close fts_cwd_fd, if necessary.
79825         (__opendir2): Define in terms of opendir or opendirat,
79826         depending on whether the FST_NOCHDIR flag is set.
79827         (fts_build): Since fts_safe_changedir consumes its FD, and since
79828         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79829         and close the dup'd file descriptor upon failure.
79830         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79831         (fts_safe_changedir): Tweak semantics to reflect that this function
79832         now calls cwd_advance_fd and hence consumes its FD argument.
79833         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79834         [struct FTS] (fts_rft): Remove now-unused member.
79835         [struct FTS] (fts_cycle.state): Improve comment.
79836
79837         * lib/openat.c (openat_needs_fchdir): New function.
79838         * lib/openat.h (openat_needs_fchdir): Declare it.
79839
79840 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79843         Problem and fix reported by Pádraig Brady in
79844         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79845
79846 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79849
79850 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79851
79852         * lib/memcoll.c (memcoll): Optimize for the common case where the
79853         arguments are bytewise equal.
79854
79855 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * doc/regexprops-generic.texi: Add a copyright notice.
79858
79859 2006-08-15  Bruno Haible  <bruno@clisp.org>
79860
79861         * modules/tmpdir (License): Change to LGPL.
79862
79863 2006-08-15  Bruno Haible  <bruno@clisp.org>
79864
79865         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79866         module.
79867
79868 2006-08-14  Simon Josefsson  <jas@extundo.com>
79869
79870         * config/srclist.txt: Add gnupload.
79871
79872 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         Change copyright notice from LGPL 2 to GPL 2, since that's the
79875         standard form used in the gnulib repository.
79876         * tests/test-lock.c: Likewise.
79877         * tests/test-stdint.c: Likewise.
79878         * tests/test-tls.c: Likewise.
79879
79880         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79881         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79882         Add copyright notice.
79883
79884         * check-module: Add copyright notice.  Output a copyright
79885         notice if "--version" is specified.
79886         * modules/COPYING: New file.
79887         * tests/test-getaddrinfo.c: Add copyright notice.
79888         * tests/test-verify.c: Likewise.
79889
79890 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79891
79892         Change copyright notice from LGPL 2 to GPL 2, since that's the
79893         standard form used in the gnulib repository.
79894         * lib/lock.c: LGPL -> GPL.
79895         * lib/lock.h: Likewise.
79896         * lib/strnlen1.c: Likewise.
79897         * lib/strnlen1.h: Likewise.
79898         * lib/tls.c: Likewise.
79899         * lib/tls.h: Likewise.
79900         * lib/tmpdir.c: Likewise.
79901
79902         * lib/TODO: Remove; this belongs only in coreutils.
79903
79904 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         Add copyright notices to long-enough files that lack them, since
79907         otherwise the files aren't clearly free.  Use the same notice that
79908         getdate.texi already uses.
79909         * doc/alloca-opt.texi: Add copyright notice.
79910         * doc/alloca.texi: Likewise.
79911         * doc/ctime.texi: Likewise.
79912         * doc/functions.texi: Likewise.
79913         * doc/gcd.texi: Likewise.
79914         * doc/gnulib-tool.texi: Likewise.
79915         * doc/inet_ntoa.texi: Likewise.
79916         * doc/visibility.texi: Likewise.
79917
79918         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79919         * doc/quote.texi: Add copyright notice.
79920
79921         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79922         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79923         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79924         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79925         is now obsolete, and give a pointer to the Sun list.
79926         Add copyright notice.
79927
79928 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * config/srclistvars.sh: Add copyright notice.
79931
79932 2006-08-14  Eric Blake  <ebb9@byu.net>
79933
79934         Import the following change from libc:
79935
79936         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79937
79938         Upstream bug 2997.
79939         * lib/misc/error.c: Add space between program name and message if file
79940         name is missing.
79941
79942 2006-08-12  Karl Berry  <karl@gnu.org>
79943
79944         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79945         remove, these originate in gnulib now.
79946
79947 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79948
79949         * doc/Makefile (standards.info standards.html standards.dvi):
79950         Also depend on make-stds.texi.
79951
79952 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79955         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79956
79957         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79958         in wchar_t.  Problem reported by Eric Blake.
79959
79960         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79961         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79962         Also, help the compiler to keep LEN in a register.
79963
79964 2006-08-11  Eric Blake  <ebb9@byu.net>
79965
79966         * users.txt: Sort.  Add tar.
79967
79968 2006-08-11  Bruno Haible  <bruno@clisp.org>
79969
79970         * users.txt: New file.
79971
79972 2006-08-11  Bruno Haible  <bruno@clisp.org>
79973
79974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79975         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79976
79977 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         * modules/snprintf (Depends-on): Remove minmax.
79980         (Maintainer): Add self and Bruno.
79981
79982 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79985         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79986         (EOVERFLOW): Define if the system does not.
79987         Do not include "minmax.h"; it wasn't used.
79988         (snprintf): Don't assume size_t promotes to an unsigned type.
79989         Fix bug when generated string was too long for the buffer: the
79990         buffer's contents are supposed to be the initial prefix of the
79991         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79992         exceeds INT_MAX; do the check ourselves.
79993
79994         Import the following changes from libc:
79995
79996         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79997
79998         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79999         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80000         set wc to the byte which couldn't be converted.
80001         (re_string_reconstruct): Don't clear valid_raw_len before calling
80002         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80003         tip_context using re_string_context_at.
80004
80005         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80006
80007         * lib/posix/regex.h: g++ still cannot handled [restrict].
80008
80009         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80010
80011         * lib/posix/regex.h: Remove special handling for VMS.
80012
80013 2006-08-10  Jim Meyering  <jim@meyering.net>
80014
80015         * modules/same-inode: New module.
80016         * modules/dev-ino: New module.
80017         * modules/cycle-check: Depend on these modules, rather than simply
80018         including their .h files.
80019         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80020         required via m4/cycle-check.m4.
80021         * modules/same: Depend on new same-inode module, rather than
80022         including same-inode.h.
80023         * modules/chdir-safer: New file.
80024
80025         * modules/chown (Depends-on): Add stat-macros.
80026
80027 2006-08-10  Jim Meyering  <jim@meyering.net>
80028
80029         * m4/cycle-check.m4: New file.
80030         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80031         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80032
80033 2006-08-10  Eric Blake  <ebb9@byu.net>
80034
80035         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80036         in from original proposal.
80037
80038 2006-08-10  Eric Blake  <ebb9@byu.net>
80039         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80040
80041         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80042         namespace.
80043
80044 2006-08-10  Bruno Haible  <bruno@clisp.org>
80045
80046         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80047         as well.
80048
80049 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         Sync from coreutils.
80052
80053         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80054
80055         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80056         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80057
80058 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         * modules/restrict: Remove; no longer needed now that we assume
80061         Autoconf 2.59 or later.
80062         * MODULES.html.sh: Remove 'restrict'.
80063         * modules/argp (Depends-on): Remove 'restrict'.
80064         * modules/base64 (Depends-on): Likewise.
80065         * modules/gc (Depends-on): Likewise.
80066         * modules/getaddrinfo (Depends-on): Likewise.
80067         * modules/glob (Depends-on): Likewise.
80068         * modules/inet_ntop (Depends-on): Likewise.
80069         * modules/inet_pton (Depends-on): Likewise.
80070         * modules/memxor (Depends-on): Likewise.
80071         * modules/regex (Depends-on): Likewise.
80072         * modules/strtok_r (Depends-on): Likewise.
80073         * modules/time_r (Depends-on): Likewise.
80074
80075 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80078         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80079         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80080         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80081         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80082         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80083         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80084         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80085
80086         Merge from coreutils.
80087         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80088         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80090         * m4/time_r.m4 (gl_TIME_R): Likewise.
80091
80092 2006-08-09  Karl Berry  <karl@gnu.org>
80093
80094         * config/srclist.txt: no more gettext-tools, per Bruno.
80095
80096 2006-08-08  Eric Blake  <ebb9@byu.net>
80097
80098         * modules/verror: New module.
80099         * MODULES.html.sh: Document it.
80100
80101 2006-08-08  Eric Blake  <ebb9@byu.net>
80102
80103         * lib/verror.h, lib/verror.c: New files.
80104
80105 2006-08-08  Eric Blake  <ebb9@byu.net>
80106
80107         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80108         verror_at_line output complies with GNU Coding Standards even when
80109         file is NULL.
80110
80111 2006-08-07  Bruno Haible  <bruno@clisp.org>
80112
80113         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80114         versions of AIX.
80115         Reported by Ralf Wildenhues.
80116
80117 2006-08-07  Bruno Haible  <bruno@clisp.org>
80118
80119         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80120         in an AC_DEFUN. Needed so that the autoconf snippets can use
80121         AC_REQUIRE.
80122
80123 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80124
80125         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80126         Initialize pkgdata_DATA.
80127         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80128         overriding it.
80129
80130 2006-08-06  Eric Blake  <ebb9@byu.net>
80131
80132         * lib/error.h: Fold in some upstream changes from glibc.
80133         * lib/error.c: Likewise.
80134
80135 2006-08-04  Bruno Haible  <bruno@clisp.org>
80136
80137         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80138         Make the mostlyclean-local rule depend on mostlyclean-generic.
80139         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80140
80141 2006-07-31  Bruno Haible  <bruno@clisp.org>
80142
80143         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80144         <stdlib.h>, <string.h>.
80145
80146 2006-07-30  Bruno Haible  <bruno@clisp.org>
80147
80148         * modules/readlink (License): Change to LGPL.
80149
80150 2006-07-30  Bruno Haible  <bruno@clisp.org>
80151
80152         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80153         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80154         set PKGDATADIR to point to it.
80155
80156 2006-07-30  Bruno Haible  <bruno@clisp.org>
80157
80158         * modules/csharpexec (configure.ac): Comment out macro invocation.
80159         * modules/javaexec (configure.ac): Likewise.
80160         * modules/javacomp-script (configure.ac): Likewise.
80161
80162         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80163
80164 2006-07-30  Bruno Haible  <bruno@clisp.org>
80165
80166         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80167         linked-list.
80168
80169 2006-07-30  Bruno Haible  <bruno@clisp.org>
80170
80171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80172
80173 2006-07-30  Bruno Haible  <bruno@clisp.org>
80174
80175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80176         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80177         get removed.
80178
80179 2006-07-29  Bruno Haible  <bruno@clisp.org>
80180
80181         Make it possible for gnulib-tool to work with locally modified or
80182         augmented gnulib repositories.
80183         * gnulib-tool (func_usage): Document --local-dir option.
80184         (local_gnulib_dir): New variable.
80185         Handle --local-dir option.
80186         (func_lookup_file): New function.
80187         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80188         (func_get_description, func_get_filelist, func_get_description,
80189         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80190         func_get_automake_snippet, func_get_include_directive,
80191         func_get_license, func_get_maintainer): Use func_lookup_file.
80192         (func_import, func_create_testdir): Use func_lookup_file.
80193
80194 2006-07-29  Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/setenv (Depends-on): Add unistd.
80197
80198 2006-07-29  Bruno Haible  <bruno@clisp.org>
80199
80200         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80201
80202 2006-07-29  Bruno Haible  <bruno@clisp.org>
80203
80204         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80205
80206 2006-07-29  Bruno Haible  <bruno@clisp.org>
80207
80208         * gnulib-tool (import, update): If there is no Makefile.am, look at
80209         aclocal.m4, instead of bailing out.
80210
80211 2006-07-29  Bruno Haible  <bruno@clisp.org>
80212
80213         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80214         Categorize the options by when they are useful.
80215
80216 2006-07-29  Bruno Haible  <bruno@clisp.org>
80217
80218         * gnulib-tool (func_usage): Document option --no-libtool.
80219         Handle option --no-libtool.
80220         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80221         for changed semantics of $libtool variable.
80222         (func_import): Likewise. If libtool is not used, show this through
80223         an option --no-libtool.
80224         (func_create_testdir): Update.
80225
80226 2006-07-29  Bruno Haible  <bruno@clisp.org>
80227
80228         * gnulib-tool (func_import): Extend error message about missing
80229         --doc-base.
80230
80231 2006-07-29  Bruno Haible  <bruno@clisp.org>
80232
80233         * gnulib-tool (func_import): Don't create the $docbase directory if
80234         there is no file to store there.
80235
80236 2006-07-29  Bruno Haible  <bruno@clisp.org>
80237
80238         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80239         relevant, look for configure.ac there, not in the current directory.
80240         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80241
80242 2006-07-29  Bruno Haible  <bruno@clisp.org>
80243
80244         * gnulib-tool (SORT): New variable.
80245         (func_usage): Undocument --assume-autoconf option.
80246         Remove --assume-autoconf option handling.
80247         (autoconf_minversion): Determine from the contents of configure.ac.
80248         (func_import): Remove autoconf_minversion handling.
80249         Suggested by Eric Blake.
80250
80251 2006-07-29  Bruno Haible  <bruno@clisp.org>
80252
80253         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80254
80255 2006-07-29  Bruno Haible  <bruno@clisp.org>
80256
80257         * config/srclist.txt (*setenv.[ch]): Remove rules.
80258
80259 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80260
80261         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80262
80263 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80264
80265         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80266         arpa/inet.h.
80267
80268 2006-07-28  Simon Josefsson  <jas@extundo.com>
80269
80270         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80271         * modules/inet_pton (Depends-on): Likewise.
80272
80273 2006-07-28  Simon Josefsson  <jas@extundo.com>
80274
80275         * m4/netinet_in_h.m4: New file.
80276
80277 2006-07-28  Simon Josefsson  <jas@extundo.com>
80278
80279         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80280         #include's.
80281
80282 2006-07-28  Simon Josefsson  <jas@extundo.com>
80283
80284         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80285         #include's.
80286
80287 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80288
80289         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80290         setgid on directories only if they set these bits.
80291         * lib/modechange.h: Remove obsolete comment about masks.
80292
80293 2006-07-28  Eric Blake  <ebb9@byu.net>
80294
80295         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80296         macro expansion.
80297
80298 2006-07-28  Bruno Haible  <bruno@clisp.org>
80299
80300         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80301
80302 2006-07-28  Bruno Haible  <bruno@clisp.org>
80303
80304         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80305
80306 2006-07-28  Bruno Haible  <bruno@clisp.org>
80307
80308         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80309         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80310         Define fallbacks.
80311         Avoids link error on FreeBSD 4.x.
80312         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80313
80314         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80315         encoding.
80316         * lib/mbswidth.c (iswcntrl): Likewise.
80317
80318 2006-07-27  Bruno Haible  <bruno@clisp.org>
80319
80320         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80321         test.
80322
80323 2006-07-27  Bruno Haible  <bruno@clisp.org>
80324
80325         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80326         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80327         defined.
80328
80329 2006-07-26  Eric Blake  <ebb9@byu.net>
80330
80331         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80332
80333 2006-07-26  Eric Blake  <ebb9@byu.net>
80334
80335         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80336         like mingw that lack mkstemp.
80337         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80338         avoid compilation warning on mingw.
80339
80340 2006-07-26  Bruno Haible  <bruno@clisp.org>
80341
80342         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80343         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80344         INT_FAST*_MIN, INTPTR_MIN.
80345
80346 2006-07-25  Bruno Haible  <bruno@clisp.org>
80347
80348         * modules/version-etc (Depends-on): Add stdarg.
80349
80350 2006-07-25  Bruno Haible  <bruno@clisp.org>
80351
80352         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80353         complex commands.
80354
80355 2006-07-25  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80358         defined in <stdarg.h> or config.h.
80359
80360 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80361
80362         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80363         (gl_STDIO_SAFER): Remove.
80364
80365 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * MODULES.html.sh (File stream based Input/Output):
80368         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80369         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80370         * modules/fopen-safer, modules/tmpfile-safer: New files.
80371         * modules/stdio-safer: Remove.
80372
80373 2006-07-24  Bruno Haible  <bruno@clisp.org>
80374
80375         * modules/tmpdir: New file.
80376         * MODULES.html.sh (File system functions): Add it.
80377
80378 2006-07-24  Bruno Haible  <bruno@clisp.org>
80379
80380         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80381         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80382
80383 2006-07-24  Bruno Haible  <bruno@clisp.org>
80384
80385         * modules/clean-temp: New file.
80386
80387 2006-07-24  Bruno Haible  <bruno@clisp.org>
80388
80389         * m4/tmpdir.m4: New file, from GNU gettext.
80390
80391 2006-07-24  Bruno Haible  <bruno@clisp.org>
80392
80393         * lib/tmpdir.h: New file, from GNU gettext.
80394         * lib/tmpdir.c: New file, from GNU gettext.
80395
80396 2006-07-24  Bruno Haible  <bruno@clisp.org>
80397
80398         * lib/clean-temp.h: New file, from GNU gettext.
80399         * lib/clean-temp.c: New file, from GNU gettext.
80400
80401 2006-07-23  Eric Blake  <ebb9@byu.net>
80402
80403         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80404         (Depends-on): Add binary-io.
80405
80406 2006-07-23  Eric Blake  <ebb9@byu.net>
80407
80408         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80409
80410 2006-07-23  Eric Blake  <ebb9@byu.net>
80411
80412         * lib/tmpfile-safer.c: New file.
80413         * lib/stdio-safer.h (fopen_safer): Add prototype.
80414         * lib/stdio--.h (tmpfile): Make safer.
80415
80416 2006-07-23  Bruno Haible  <bruno@clisp.org>
80417
80418         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80419         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80420         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80421         gl_linked_remove_at): Use it.
80422
80423 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80424         and Simon Josefsson <jas@extundo.com>
80425
80426         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80427
80428         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80429
80430 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         * modules/close-stream: New file.
80433         * modules/closeout (Description): Make it clear that it exits
80434         with a diagnostic on error.
80435         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80436         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80437
80438 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80439
80440         * m4/close-stream.m4: New file.
80441
80442 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * lib/close-stream.c, lib/close-stream.h: New files.
80445
80446 2006-07-22  Bruno Haible  <bruno@clisp.org>
80447
80448         Merge from GNU gettext 0.15.
80449
80450         2006-05-01  Bruno Haible  <bruno@clisp.org>
80451
80452                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80453
80454         2006-07-22  Bruno Haible  <bruno@clisp.org>
80455
80456                 * modules/javaversion: New file.
80457                 * MODULES.html.sh (Java): Add javaversion.
80458
80459         2006-03-12  Bruno Haible  <bruno@clisp.org>
80460
80461                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80462
80463         2005-12-04  Bruno Haible  <bruno@clisp.org>
80464
80465                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80466                 (untested).
80467
80468         2006-06-21  Bruno Haible  <bruno@clisp.org>
80469
80470                 Avoid warnings from recent versions of mcs.
80471                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80472                 -o, -L, -r any more. Use options documented since mcs-1.0
80473                 instead. Similarly for -g.
80474
80475         2005-12-04  Bruno Haible  <bruno@clisp.org>
80476
80477                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80478                 .resources, not .resource.
80479
80480         2005-07-09  Bruno Haible  <bruno@clisp.org>
80481
80482                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80483                 add a .dll suffix.
80484                 Reported by Mark Junker <mjscod@gmx.de>.
80485
80486         2006-07-22  Bruno Haible  <bruno@clisp.org>
80487
80488                 * modules/gettext: Upgrade to gettext-0.15.
80489                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80490                 m4/visibility.m4.
80491                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80492
80493 2006-07-22  Bruno Haible  <bruno@clisp.org>
80494
80495         Merge from GNU gettext 0.15.
80496
80497         2006-03-25  Bruno Haible  <bruno@clisp.org>
80498
80499                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80500
80501         2006-07-21  Bruno Haible  <bruno@clisp.org>
80502
80503                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80504                 "1.1".
80505
80506         2006-05-09  Bruno Haible  <bruno@clisp.org>
80507
80508                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80509                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80510                 for the conftestver execution.
80511
80512         2006-05-01  Bruno Haible  <bruno@clisp.org>
80513
80514                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80515                 optional target-version argument. Verify that the compiler
80516                 groks source of the specified source-version, or add -source
80517                 option as necessary. Verify that the compiler produces
80518                 bytecode in the specified target-version, or add -target and
80519                 -source options as necessary. Make the result of the test
80520                 available as variable CONF_JAVAC. Also log error output in
80521                 config.log.
80522
80523         2006-03-11  Bruno Haible  <bruno@clisp.org>
80524
80525                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80526
80527         2006-05-09  Bruno Haible  <bruno@clisp.org>
80528
80529                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80530                 CLASSPATH_SEPARATOR to a semicolon.
80531
80532         2006-03-12  Bruno Haible  <bruno@clisp.org>
80533
80534                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80535                 available as variable CONF_JAVA, for subsequent autoconf
80536                 tests. Also log error output in config.log.
80537
80538         2006-07-19  Bruno Haible  <bruno@clisp.org>
80539
80540                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80541                 that getline works on glibc2 systems. Needed to avoid trouble
80542                 in relocatable.c.
80543                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80544
80545         2005-12-04  Bruno Haible  <bruno@clisp.org>
80546
80547                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80548                 launcher (untested).
80549
80550         2005-12-04  Bruno Haible  <bruno@clisp.org>
80551
80552                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80553
80554         2006-07-22  Bruno Haible  <bruno@clisp.org>
80555
80556                 * gettext.m4: Update from GNU gettext-0.15.
80557                 * nls.m4: Likewise.
80558                 * po.m4: Likewise.
80559                 * inttypes-pri.m4: Likewise.
80560                 * inttypes-h.m4: Renamed from inttypes.m4.
80561                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80562
80563 2006-07-22  Bruno Haible  <bruno@clisp.org>
80564
80565         Merge from GNU gettext 0.15.
80566
80567         2005-07-05  Bruno Haible  <bruno@clisp.org>
80568
80569                 * printf-args.c (printf_fetchargs): Work around broken
80570                 definition of wint_t on mingw.
80571
80572         2005-02-12  Bruno Haible  <bruno@clisp.org>
80573
80574                 * xallocsa.h: Add extern "C" for C++.
80575
80576         2006-05-17  Bruno Haible  <bruno@clisp.org>
80577
80578                 Cygwin portability.
80579                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80580
80581         2006-04-30  Bruno Haible  <bruno@clisp.org>
80582
80583                 * progreloc.c: Include <mach-o/dyld.h> if available.
80584                 (find_executable): Use _NSGetExecutablePath when possible.
80585
80586         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80587
80588                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80589                 function.
80590
80591         2005-12-29  Bruno Haible  <bruno@clisp.org>
80592
80593                 * progreloc.c (set_program_name_and_installdir): Fix
80594                 compilation error.
80595
80596         2005-12-04  Bruno Haible  <bruno@clisp.org>
80597
80598                 Cygwin portability.
80599                 * progreloc.c: Include <windows.h> also on Cygwin.
80600                 (find_executable): Add support for Cygwin.
80601                 (set_program_name_and_installdir): Handle also platforms with
80602                 nonempty EXEEXT.
80603
80604         2006-07-11  Bruno Haible  <bruno@clisp.org>
80605
80606                 * javacomp.c: Fix a comment.
80607                 Reported by Jim Meyering.
80608
80609         2006-04-30  Bruno Haible  <bruno@clisp.org>
80610
80611                 * javacomp.h (compile_java_class): Add source_version,
80612                 target_version arguments.
80613                 * javacomp.c: Rewritten to choose only a compiler that
80614                 respects the specified source_version and target_version.
80615
80616         2006-06-27  Bruno Haible  <bruno@clisp.org>
80617
80618                 Assume correct S_ISDIR macro.
80619                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80620
80621         2006-07-22  Bruno Haible  <bruno@clisp.org>
80622
80623                 * javaversion.h: New file, from GNU gettext.
80624                 * javaversion.c: New file, from GNU gettext.
80625                 * javaversion.java: New file, from GNU gettext.
80626                 * javaversion.class: New file, from GNU gettext.
80627
80628         2006-05-17  Bruno Haible  <bruno@clisp.org>
80629
80630                 Cygwin portability.
80631                 * javaexec.c (execute_java_class): Test for jview program
80632                 also on Cygwin.
80633
80634         2006-04-09  Bruno Haible  <bruno@clisp.org>
80635
80636                 * fatal-signal.c: Don't include string.h.
80637                 (at_fatal_signal): Use a copying loop instead of memcpy.
80638
80639         2005-12-04  Bruno Haible  <bruno@clisp.org>
80640
80641                 * csharpexec.c: Add support for 'clix' launcher (untested).
80642                 (execute_csharp_using_sscli): New function.
80643                 (execute_csharp_program): Call it.
80644
80645         2006-06-21  Bruno Haible  <bruno@clisp.org>
80646
80647                 Avoid warnings from recent versions of mcs.
80648                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80649                 -o, -L, -r any more. Use options documented since mcs-1.0
80650                 instead. Similarly for -g.
80651
80652         2005-07-09  Bruno Haible  <bruno@clisp.org>
80653
80654                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80655                 add a .dll suffix.
80656                 Reported by Mark Junker <mjscod@gmx.de>.
80657
80658         2006-06-17  Bruno Haible  <bruno@clisp.org>
80659
80660                 * config.charset: Update for NetBSD 3.0.
80661
80662         2006-05-17  Bruno Haible  <bruno@clisp.org>
80663
80664                 Cygwin portability.
80665                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80666
80667         2006-05-16  Bruno Haible  <bruno@clisp.org>
80668
80669                 * localcharset.c [CYGWIN]: Include <windows.h>.
80670                 (get_charset_aliases): For Cygwin, return the same CPxxx
80671                 aliases list as under WIN32.
80672                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80673                 the environment variables. Fall back to GetACP().
80674
80675         2006-04-05  Bruno Haible  <bruno@clisp.org>
80676
80677                 * config.charset: Update Juan Manuel Guerrero's address.
80678
80679         2005-02-12  Bruno Haible  <bruno@clisp.org>
80680
80681                 * allocsa.h: Add extern "C" for C++.
80682
80683         2005-02-10  Bruno Haible  <bruno@clisp.org>
80684
80685                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80686                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80687
80688         2006-07-22  Bruno Haible  <bruno@clisp.org>
80689
80690                 * gettext.h: Update to GNU gettext-0.15.
80691
80692 2006-07-22  Bruno Haible  <bruno@clisp.org>
80693
80694         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80695         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80696         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80697
80698 2006-07-21  Eric Blake  <ebb9@byu.net>
80699
80700         * modules/stdlib-safer: New file.
80701         * MODULES.html.sh (File stream based Input/Output): Add
80702         stdlib-safer.
80703
80704 2006-07-21  Eric Blake  <ebb9@byu.net>
80705
80706         * lib/stdlib-safer.h: New file from coreutils, required by
80707         stdlib--.h.
80708
80709 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80710
80711         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80712
80713 2006-07-20  Bruno Haible  <bruno@clisp.org>
80714
80715         * gnulib-tool: Recognize new option --assume-autoconf.
80716         (autoconf_minversion): New variable.
80717         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80718
80719 2006-07-20  Bruno Haible  <bruno@clisp.org>
80720
80721         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80722
80723 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80724
80725         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80726         Reindent and repaginate.
80727
80728 2006-07-19  Derek Price  <derek@ximbiot.com>
80729
80730         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80731         Correct grammar.
80732
80733 2006-07-17  Bruno Haible  <bruno@clisp.org>
80734
80735         * modules/list: New file.
80736         * modules/array-list: New file.
80737         * modules/carray-list, modules/carray-list-tests: New files.
80738         * modules/linked-list, modules/linked-list-tests: New files.
80739         * modules/avltree-list, modules/avltree-list-tests: New files.
80740         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80741         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80742         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80743         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80744         * modules/oset: New file.
80745         * modules/array-oset: New file.
80746         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80747         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80748         * tests/test-carray_list.c: New file.
80749         * tests/test-linked_list.c: New file.
80750         * tests/test-avltree_list.c: New file.
80751         * tests/test-rbtree_list.c: New file.
80752         * tests/test-linkedhash_list.c: New file.
80753         * tests/test-avltreehash_list.c: New file.
80754         * tests/test-rbtreehash_list.c: New file.
80755         * tests/test-avltree_oset.c: New file.
80756         * tests/test-rbtree_oset.c: New file.
80757         * MODULES.html.sh (Container data structures): New section.
80758
80759 2006-07-17  Bruno Haible  <bruno@clisp.org>
80760
80761         * m4/gl_list.m4: New file.
80762
80763 2006-07-17  Bruno Haible  <bruno@clisp.org>
80764
80765         * lib/gl_list.h: New file.
80766         * lib/gl_list.c: New file.
80767         * lib/gl_array_list.h: New file.
80768         * lib/gl_array_list.c: New file.
80769         * lib/gl_carray_list.h: New file.
80770         * lib/gl_carray_list.c: New file.
80771         * lib/gl_linked_list.h: New file.
80772         * lib/gl_linked_list.c: New file.
80773         * lib/gl_anylinked_list1.h: New file.
80774         * lib/gl_anylinked_list2.h: New file.
80775         * lib/gl_avltree_list.h: New file.
80776         * lib/gl_avltree_list.c: New file.
80777         * lib/gl_anyavltree_list1.h: New file.
80778         * lib/gl_anyavltree_list2.h: New file.
80779         * lib/gl_rbtree_list.h: New file.
80780         * lib/gl_rbtree_list.c: New file.
80781         * lib/gl_anyrbtree_list1.h: New file.
80782         * lib/gl_anyrbtree_list2.h: New file.
80783         * lib/gl_anytree_list1.h: New file.
80784         * lib/gl_anytree_list2.h: New file.
80785         * lib/gl_linkedhash_list.h: New file.
80786         * lib/gl_linkedhash_list.c: New file.
80787         * lib/gl_anyhash_list1.h: New file.
80788         * lib/gl_anyhash_list2.h: New file.
80789         * lib/gl_avltreehash_list.h: New file.
80790         * lib/gl_avltreehash_list.c: New file.
80791         * lib/gl_rbtreehash_list.h: New file.
80792         * lib/gl_rbtreehash_list.c: New file.
80793         * lib/gl_anytreehash_list1.h: New file.
80794         * lib/gl_anytreehash_list2.h: New file.
80795
80796         * lib/gl_oset.h: New file.
80797         * lib/gl_oset.c: New file.
80798         * lib/gl_array_oset.h: New file.
80799         * lib/gl_array_oset.c: New file.
80800         * lib/gl_avltree_oset.h: New file.
80801         * lib/gl_avltree_oset.c: New file.
80802         * lib/gl_rbtree_oset.h: New file.
80803         * lib/gl_rbtree_oset.c: New file.
80804         * lib/gl_anytree_oset.h: New file.
80805
80806 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         * m4/mkancesdirs.m4: New file.
80809         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80810         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80811         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80812         it.
80813
80814 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80815
80816         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80817         * lib/mkancesdirs.h: New files.
80818         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80819         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80820         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80821         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80822         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80823         callers changed.  Revamp internals significantly, by not
80824         attempting to create directories that are temporarily more
80825         permissive than the final results.  Do not attempt to use
80826         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80827         This removes some race conditions, fixes some bugs, and simplifies
80828         things.  Use new dirchownmod function to do owner and mode changes.
80829         * lib/mkdir-p.h: Likewise.
80830         * lib/modechange.c (octal_to_mode): New function.
80831         (struct mode_change): New member mentioned.
80832         (make_node_op_equals): New arg mentioned.  All callers changed.
80833         (mode_compile): Keep track of which mode bits the user has explicitly
80834         mentioned.
80835         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80836         New arg PMODE_BITS, to keep track of which mode bits the user
80837         mentioned; it treats S_ISUID and S_ISGID speciall.
80838         All callers changed.
80839         * lib/modechange.h: Likewise.
80840
80841 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * MODULES.html.sh: Add mkancestors.
80844         * modules/mkancesdirs: New module.
80845         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80846         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80847         The chdir-safer and afs files are now orphans; I'll remove them
80848         unless someone speaks up.
80849         Add lib/dirchownmod.c, lib/dirchownmod.h.
80850         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80851         Add lchown, mkancesdirs.
80852         (Maintainer): Add self.
80853
80854 2006-07-15  Karl Berry  <karl@gnu.org>
80855
80856         * gnulib-tool: help message wording/arrangement.
80857
80858 2006-07-14  Simon Josefsson  <jas@extundo.com>
80859
80860         * doc/gnulib.texi (Libtool and Windows): New section.
80861
80862 2006-07-12  Simon Josefsson  <jas@extundo.com>
80863
80864         * modules/gendocs (License): Fix license, approved by Karl.
80865
80866 2006-07-12  Eric Blake  <ebb9@byu.net>
80867
80868         * MODULES.html.sh: Add gendocs.
80869
80870 2006-07-11  Eric Blake  <ebb9@byu.net>
80871
80872         * modules/fdl: New module, to install doc/fdl.texi.
80873         * MODULES.html.sh: Add new section for documentation modules.
80874         * gnulib-tool: Avoid space-tab.
80875         (--doc-base): New option, to manage files from doc.
80876
80877 2006-07-11  Eric Blake  <ebb9@byu.net>
80878
80879         * m4/absolute-header.m4: Fix comments to match recent change.
80880
80881 2006-07-11  Eric Blake  <ebb9@byu.net>
80882
80883         * gnulib-tool: List --doc-base before --tests-base.
80884
80885 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80886
80887         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80888
80889 2006-07-11  Bruno Haible  <bruno@clisp.org>
80890
80891         * README: Mention where to put documentation.
80892
80893 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80894
80895         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80896
80897 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80898
80899         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80900         to stdint.m4.
80901
80902 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80903
80904         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80905         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80906         "no/such/file/stdint.h" when there is no such file, so that
80907         the resulting C code can be parsed by dodgy compilers.
80908         Problems reported by Bob Proulx.
80909
80910 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80911
80912         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80913         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80914         macros into the GNU _D_EXACT_NAMLEN.
80915         * lib/savedir.c:  Likewise.
80916         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80917
80918 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80919         and Paul Eggert  <eggert@cs.ucla.edu>
80920
80921         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80922         * m4/savedir.m4:
80923         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80924         macros into the GNU _D_EXACT_NAMLEN.
80925
80926 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80927
80928         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80929         around the absolute name, to work around a problem with the HP-UX
80930         11.23 native C compiler, reported by Bob Proulx.
80931
80932 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80933
80934         * doc/maintain.texi, make-stds.texi: Sync from
80935         <http://savannah.gnu.org/projects/gnustandards>.
80936
80937 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80940
80941 2006-07-09  Jim Meyering  <jim@meyering.net>
80942
80943         * m4/glob.m4: Remove a doubled word in a comment.
80944
80945 2006-07-09  Jim Meyering  <jim@meyering.net>
80946
80947         * lib/argp-pv.c: Remove a doubled word in a comment.
80948         * lib/check-version.c (check_version): Likewise.
80949         * lib/javacomp.c (compile_java_class): Likewise.
80950
80951 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80954         for the benefit of people using Autoconf 2.60.  If you want to
80955         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80956         (or m4/onceonly.m4, if pre-2.57) manually.
80957
80958 2006-07-08  Jim Meyering  <jim@meyering.net>
80959
80960         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80961         comment.
80962         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80963         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80964         comment.
80965
80966 2006-07-08  Jim Meyering  <jim@meyering.net>
80967
80968         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80969
80970 2006-07-07  Simon Josefsson  <jas@extundo.com>
80971
80972         * tests/test-crc.c: Change expected crc value, the test vector
80973         were probably computed using the old broken crc.c?
80974
80975 2006-07-06  Simon Josefsson  <jas@extundo.com>
80976
80977         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80978         now the canonical place for the M4 file).
80979
80980         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80981         from the sys_socket dependency now.
80982
80983         * modules/inet_pton (Files): Ditto.
80984
80985         * modules/inet_ntop (Files): Ditto.
80986
80987 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80988
80989         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80990         not gl_PREREQ_GETUSERSHELL.
80991
80992 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80993
80994         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80995         with only one argument, for Autoconf 2.60.
80996         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80997         expand to nothing, so add a shell command to avoid syntax error.
80998         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80999
81000 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81001
81002         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81003
81004 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81005
81006         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81007         no longer needed.  Check for isblank decl.
81008         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81009         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81010         of existence.
81011
81012 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * lib/getloadavg.c: Use __VMS, not VMS.
81015         * lib/getopt.c: Likewise.
81016         * lib/getpagesize.h: Likewise.
81017         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81018         and probably does not work.
81019
81020 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81021
81022         * lib/.cppi-disable: Add wcwidth.
81023         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81024         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81025         (ISGRAPH): Remove.  All uses changed to isgraph.
81026         (FOLD) [!defined _LIBC]: Remove special case.
81027         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81028         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81029         HAVE_ISBLANK.
81030         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81031         case.
81032
81033 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81034
81035         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81036         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81037         brackets.  Other minor changes to suppress some compiler
81038         warnings.
81039
81040 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81041         and Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81044         of invoking obsolescent AC_HEADER_DIRENT macro.
81045         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81046         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81047         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81049         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81050         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81051         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81052         * m4/readdir.m4: Remove; no longer needed.
81053
81054 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81055         and Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81058         Don't worry about this obsolete case any more.
81059         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81060         directories.
81061         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81062         worry about this obsolete case any more.
81063         * lib/fts.c: Likewise.
81064         * lib/getcwd.c: Likewise.
81065         * lib/glob.h: Likewise.
81066         * lib/savedir.c: Likewise.
81067
81068 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81071         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81072         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81073         needed.
81074         All uses removed.
81075         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81076         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81077         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81078         needed.
81079         * m4/getdate.m4 (gl_GETDATE): Likewise.
81080         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81081         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81082         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81083         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81084         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81085         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81086         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81087         needed.
81088
81089 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81090
81091         * lib/memcasecmp.c: Include <limits.h>.
81092         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81093         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81094         Don't assume isdigit succeeds only on '0' through '9'.
81095
81096 2006-07-05  Eric Blake  <ebb9@byu.net>
81097
81098         * modules/getaddrinfo (Depends-on): Add snprintf.
81099
81100 2006-07-05  Eric Blake  <ebb9@byu.net>
81101
81102         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81103         to avoid 'header present but could not be compiled' on cygwin.
81104
81105 2006-07-05  Eric Blake  <ebb9@byu.net>
81106
81107         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81108         missing from netdb.h.
81109         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81110
81111 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81112
81113         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81114         no longer needed.
81115         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81116         * m4/getdate.m4 (gl_GETDATE): Likewise.
81117         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81118         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81119         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81120         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81121         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81122
81123 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81124
81125         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81126         All uses of is_space replaced by isspace.
81127         * lib/exit.h: Don't talk about STDC_HEADERS.
81128         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81129         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81130         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81131         replaced by isprint etc.
81132         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81133         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81134         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81135         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81136         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81137         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81138
81139 2006-07-05  Bruno Haible  <bruno@clisp.org>
81140
81141         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81142         the function exists, before testing against AIX.
81143         Reported by Martin Lambers <marlam@marlam.de>.
81144
81145 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81146
81147         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81148         From Mark D. Baushke.
81149
81150 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81151
81152         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81153         to the absolute name, not just one, to bypass Sun C 5.8's
81154         "warning: #include of /usr/include/... may be non-portable".
81155
81156 2006-07-04  Eric Blake  <ebb9@byu.net>
81157
81158         * modules/dirname-tests: New test module.
81159         * tests/test-dirname.c: New file, replacing dirname.c
81160         TEST_DIRNAME section that was recently deleted.
81161
81162 2006-07-04  Bruno Haible  <bruno@clisp.org>
81163
81164         Assume ANSI C header files and <ctype.h> functions.
81165         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81166         (mbsnwidth): Use isprint, iscntrl instead.
81167
81168 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         Merge from coreutils.
81171         * MODULES.html.sh: Add xstrtold.
81172         * modules/xstrtold: New file.
81173         * modules/cycle-check (Files): Add lib/same-inode.h.
81174         * modules/dirname (Files): Add m4/double-slash-root.m4.
81175         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81176         * modules/mkdir-p (Files): Add lib/same-inode.h.
81177         * modules/same (Files): Add lib/same-inode.h.
81178
81179 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81180
81181         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81182         This is to keep the terminology clean; POSIX talks about
81183         "absolute pathnames", not "full pathnames", but the GNU
81184         Coding Standards say to use "path" for something else;
81185         so use "absolute" to keep both sides happy.
81186         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81187         Set gl_absolute_header, not gl_full_header_path.
81188         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81189         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81190         All uses changed.
81191
81192         Merge from coreutils.
81193
81194         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81195
81196         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81197         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81198         want to require the building of c-strtod.o.
81199         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81200         needs -lm directly.
81201         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81202
81203         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81204
81205         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81206         --as-needed option if available.  Problem reported by Albert Chin in
81207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81208         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81209         cc merely issues a bunch of annoying warnings for --as-needed
81210         (this problem was reported by Bob Proulx).  Also, try linking with
81211         -lm to detect a bug in binutils 2.16 (this problem was reported
81212         by Ralf Wildenhues).
81213
81214         2006-06-18  Jim Meyering  <jim@meyering.net>
81215
81216         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81217         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81218         macro.
81219         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81220         also check for glibc-2.4's abort-inducing bug.
81221
81222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81223         Low-probability clean-up should be to use rmdir to get rid of
81224         the just-created directory, not unlink.
81225
81226         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81227         configure fail, and request a bug report to inform us about it.
81228         Add a comment that, barring reports to the contrary, in 2007 we'll
81229         assume ftruncate is universally available.
81230
81231         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81234
81235         2006-03-12  Jim Meyering  <jim@meyering.net>
81236
81237         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81238         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81239         * m4/same.m4 (gl_SAME): Likewise.
81240         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81241
81242         2006-03-11  Eric Blake  <ebb9@byu.net>
81243
81244         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81245         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81246         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81247         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81248
81249 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81252         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81253         reported by Mark D. Baushke, one in
81254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81255
81256         Merge from coreutils.
81257
81258         * lib/.cppi-disable: Add stdint_.h.
81259         * lib/.cvsignore: Add stdint.h.
81260
81261         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81264         both double and long double versions.
81265         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81266         * lib/xstrtold.c: New file.
81267         * lib/xstrtod.h (xstrtold): New decl.
81268
81269         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81270
81271         * lib/filemode.c (setst): Remove.
81272         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81273         (arguably) clearer, and the generated code is a bit smaller on my
81274         Debian GNU/Linux stable x86 host.
81275
81276         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81277
81278         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81279         Assume that filemode.h includes sys/types.h and sys/stat.h.
81280         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81281         (ftypelet): Reorder to put common cases first, for efficiency.
81282         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81283         to do 'M'.
81284         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81285         of 10, for compatibility with FreeBSD.  All callers changed.
81286         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81287         types that can't be deduced solely from st_mode.  First arg is now a
81288         const pointer.
81289         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81290         (strmode): Renamed from mode_string.
81291         (filemodestring): New decl.
81292         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81293         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81294         needed.
81295         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81296
81297         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81298
81299         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81300         fsusage.h now does that.  Include fsusage.h first, to test interface.
81301         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81302         at most one method (the old code could have generated decls that
81303         didn't conform to C89, not that this was ever exercised).
81304         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81305
81306         2006-03-19  Jim Meyering  <jim@meyering.net>
81307
81308         Work even in a chroot where d_ino values for entries in "/"
81309         don't match the stat.st_ino values for the same names.
81310         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81311         number, iterate through all entries again, using lstat instead.
81312         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81313         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81314
81315         * lib/getcwd.c (__getcwd): Clarify a comment.
81316         Use memcpy in place of a call to strcpy.
81317
81318         2006-03-12  Jim Meyering  <jim@meyering.net>
81319
81320         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81321         matches that of the current directory (which we're about to chdir ".."
81322         out of), then save the dev-ino of the parent, instead.
81323
81324         * lib/same-inode.h (SAME_INODE): New file/macro.
81325         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81326         Include "same-inode.h", instead.
81327         * lib/same.c: Likewise.
81328         * lib/cycle-check.h: Include "same-inode.h".
81329         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81330         * lib/cycle-check.c (SAME_INODE): Remove definition.
81331         * lib/root-dev-ino.h: Include "same-inode.h".
81332
81333         2006-03-11  Eric Blake  <ebb9@byu.net>
81334
81335         * lib/same.c (same_name): s/base_name/last_component/
81336         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81337         * lib/filenamecat.c (file_name_concat): Likewise.
81338
81339         2006-03-11  Eric Blake  <ebb9@byu.net>,
81340                     Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81343         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81344         drive prefix.
81345         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81346         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81347         (last_component): New method.
81348         * lib/dirname.c (dir_len): Determine when drive letters need a
81349         subsequent slash.  Preserve // when it is special.
81350         (dir_name): Don't append dot when drive letter is absolute.
81351         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81352         * lib/basename.c (base_name): New semantics - malloc the result.
81353         Preserve // when it is special.  Preserve relative files that look
81354         like drive letters.
81355         (base_len): Preserve // when it is special.
81356         (last_component): New method, similar to old base_name semantics.
81357         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81358         base_name.  Strip redundant slashes from ///.
81359
81360 2006-07-03  Jim Meyering  <jim@meyering.net>
81361
81362         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81363         macro is used before the first cycle_check call.
81364
81365 2006-07-03  Eric Blake  <ebb9@byu.net>
81366
81367         * modules/dirname (Depends-on): Add xstrndup.
81368
81369 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81372         test cases, so that config.log is a bit easier to follow.
81373
81374 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81375
81376         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81377         both are 64 bits, since this seems to be the tradition, and this
81378         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81379         we ever run into a host that prefers long long to long in this
81380         case, we'll need another configure-time test.  Problem reported by
81381         Jim Meyering.
81382
81383 2006-07-02  Eric Blake  <ebb9@byu.net>
81384
81385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81386
81387 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * modules/inttypes (Depends-on): No longer depends on stdint.
81390         * modules/stdint (Description): Say more about assumptions.
81391         Say that the fast types might differ.  Say macros are used.
81392         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81393         (Makefile.am): Revise list of substituted symbols to match
81394         new stdint.m4.
81395         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81396         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81397         * tests/test-stdint.c (verify_same_types)
81398         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81399         the code conforms to C99/C89.
81400         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81401         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81402
81403 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81404
81405         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81406         but fix a bug, by requiring at least 64 bits.
81407         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81408         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81409         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81410         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81411
81412         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81413         changes.  Make 2.59 a prerequisite.  Check and substitute for
81414         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81415         inttypes.h.  Do not use special include files; just use the
81416         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81417         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81418         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81419         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81420         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81421         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81422         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81423         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81424         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81425         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81426         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81427         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81428         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81429         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81430         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81431         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81432         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81433         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81434         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81435         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81436         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81437         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81438         not check for things that C99 does not require, e.g., int8_t.  If
81439         a test isn't needed unless <stdint.h> isn't working, and is
81440         unlikely to be needed for any other reason, then don't do it
81441         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81442         size_t, since we assume C89 freestanding at least.  Do not check
81443         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81444         the right thing even if the types are not defined.  Instead use:
81445         (gl_STDINT_TYPE_PROPERTIES): New macro.
81446         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81447         testing whether <sys/types.h> clashes, as Autoconf does this for
81448         us now.  All uses removed.
81449         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81450         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81451         (gl_CHECK_TYPE_SAME):
81452         Remove; no longer needed.
81453         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81454         exists, since we'll return 0 anyway in that case.
81455         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81456
81457 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81458
81459         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81460         possible collision with system files.
81461         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81462         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81463         WCHAR_MIN and WCHAR_MAX in this case.
81464         (<stddef.h>): Do not include; no longer needed.
81465         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81466         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81467         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81468         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81469         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81470         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81471         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81472         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81473         !defined(__c99))]: Include in this case too, since it's harmless
81474         now.
81475         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81476         dangerous to do so.
81477         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81478         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81479         (_STDINT_MIN, _STDINT_MAX): New macros.
81480         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81481         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81482         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81483         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81484         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81485         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81486         macros, not typedefs; this simplifies things quite a bit.
81487         Use long int for all types narrower than int64_t.
81488         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81489         Define in terms of long long int or int64_t or long int,
81490         not int64_t or int32_t.  This saves some compile-time testing.
81491         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81492         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81493         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81494         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81495         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81496         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81497         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81498         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81499         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81500         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81501         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81502         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81503         undef any previous version and define our own version, for
81504         simplicity and consistency with the new macros for types.
81505         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81506         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81507         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81508         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81509         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81510         @WINT_T_SUFFIX@ to keep things simple here.
81511         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81512         Simplify by assuming typical 8/16/32/64 host, since we're
81513         already doing that elsewhere anyway.
81514         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81515         and assume long long int is 64 bits if available.  This
81516         speeds up 'configure'.
81517
81518 2006-07-01  Eric Blake  <ebb9@byu.net>
81519
81520         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81521         Reported by Andreas Buening.
81522
81523 2006-07-01  Eric Blake  <ebb9@byu.net>
81524
81525         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81526
81527 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81528
81529         * lib/getaddrinfo.c: fixed typo
81530
81531 2006-06-29  Jim Meyering  <jim@meyering.net>
81532
81533         * modules/strftime (Maintainer): Add my name, since with the
81534         FPRINTFTIME changes strftime.c has forked from glibc.
81535
81536 2006-06-29  Eric Blake  <ebb9@byu.net>
81537
81538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81539
81540 2006-06-29  Eric Blake  <ebb9@byu.net>
81541
81542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81543
81544 2006-06-29  Eric Blake  <ebb9@byu.net>
81545
81546         * lib/stat_.h: New file.
81547
81548 2006-06-29  Eric Blake  <ebb9@byu.net>
81549
81550         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81551         unused static function.
81552
81553 2006-06-29  Eric Blake  <ebb9@byu.net>
81554
81555         * doc/functions.texi (Function Portability): Document missing lstat
81556         on mingw.
81557
81558 2006-06-29  Eric Blake  <ebb9@byu.net>
81559
81560         * MODULES.html.sh: Add sys_stat.
81561         * modules/sys_stat: New module.
81562         * modules/mkstemp (Depends-on): Add sys_stat.
81563
81564 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81565
81566         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81567
81568 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81569
81570         * m4/c-bs-a.m4: Removed.
81571
81572 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81573
81574         * lib/strftime.c: Assume strftime() exists.
81575
81576 2006-06-29  Derek Price  <derek@ximbiot.com>
81577
81578         * modules/c-bs-a: Removed - \a is C89.
81579         * MODULES.html.sh: Remove c-bs-a.
81580
81581 2006-06-29  Bruno Haible  <bruno@clisp.org>
81582
81583         * modules/wcwidth (License): Change to LGPL.
81584
81585 2006-06-28  Simon Josefsson  <jas@extundo.com>
81586
81587         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81588         on _WIN32.
81589
81590         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81591         getnameinfo.
81592
81593 2006-06-28  Simon Josefsson  <jas@extundo.com>
81594
81595         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81596
81597 2006-06-28  Simon Josefsson  <jas@extundo.com>
81598
81599         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81600         functions there.  It will succeed on Windows XP, but on Windows
81601         2000 and (presumably) earlier, it will fail, and use the internal
81602         re-implementation.
81603         (use_win32_p): New function.
81604         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81605         Support AI_NUMERICSERV to disable getservbyname.
81606         (getnameinfo): New function, only supports
81607         NI_NUMERICHOST|NI_NUMERICSERV for now.
81608
81609         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81610         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81611         getnameinfo.
81612
81613 2006-06-28  Eric Blake  <ebb9@byu.net>
81614
81615         * modules/wcwidth: New file.
81616         * modules/mbchar (Depends-on): Add wcwidth.
81617         * modules/mbswidth (Depends-on): Add wcwidth.
81618         * MODULES.html.sh: Add wcwidth.
81619
81620 2006-06-28  Eric Blake  <ebb9@byu.net>
81621
81622         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81624
81625 2006-06-28  Eric Blake  <ebb9@byu.net>
81626
81627         * lib/xvasprintf.h: Fix comments.
81628
81629 2006-06-28  Eric Blake  <ebb9@byu.net>
81630
81631         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81632         * lib/mbswidth.c (wcwidth): Move from here...
81633         * lib/wcwidth.h: ...to this new file.
81634
81635 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81636
81637         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81638
81639         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81640         it's obsolete.
81641         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81642
81643 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81644
81645         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81646         Autoconf 2.60 says this stuff was obsolete.
81647
81648 2006-06-28  Bruno Haible  <bruno@clisp.org>
81649
81650         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81651
81652 2006-06-28  Bruno Haible  <bruno@clisp.org>
81653
81654         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81655         gt_TYPE_WCHAR_T.
81656
81657 2006-06-28  Bruno Haible  <bruno@clisp.org>
81658
81659         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81660         declaration for wcwidth.
81661         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81662
81663 2006-06-28  Bruno Haible  <bruno@clisp.org>
81664
81665         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81666         (mkdir): Define using _mkdir.
81667
81668 2006-06-28  Bruno Haible  <bruno@clisp.org>
81669
81670         * lib/getaddrinfo.h: Fix POSIX URL.
81671         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81672         _WIN32.
81673         (use_win32_p): Make static.
81674         (getaddrinfo): Reject service name if it is empty or does not consist
81675         solely of decimal digits, or if its value is > 65535.
81676         (getnameinfo): Remove useless casts.
81677
81678 2006-06-27  Simon Josefsson  <jas@extundo.com>
81679
81680         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81681         Eggert and Martin Lambers.
81682
81683 2006-06-27  Simon Josefsson  <jas@extundo.com>
81684
81685         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81686         Eggert and Martin Lambers.
81687
81688 2006-06-27  Bruno Haible  <bruno@clisp.org>
81689
81690         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81691         result to 0, not to empty.
81692         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81693
81694 2006-06-27  Bruno Haible  <bruno@clisp.org>
81695
81696         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81697
81698 2006-06-26  Simon Josefsson  <jas@extundo.com>
81699
81700         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81701         present.
81702
81703 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81706         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81708
81709 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81710
81711         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81712
81713 2006-06-26  Bruno Haible  <bruno@clisp.org>
81714
81715         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81716
81717 2006-06-26  Bruno Haible  <bruno@clisp.org>
81718
81719         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81720
81721 2006-06-26  Bruno Haible  <bruno@clisp.org>
81722
81723         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81724         SGI C compiler in pre-C99 mode.
81725         Suggested by Mark D. Baushke and Larry Jones.
81726
81727 2006-06-26  Bruno Haible  <bruno@clisp.org>
81728
81729         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81730         WCHAR_MAX.
81731         Reported by Mark D. Baushke and Larry Jones.
81732
81733 2006-06-26  Bruno Haible  <bruno@clisp.org>
81734
81735         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81736         in pre-C99 mode.
81737         Suggested by Mark D. Baushke and Larry Jones.
81738
81739 2006-06-23  Simon Josefsson  <jas@extundo.com>
81740             Bruno Haible  <bruno@clisp.org>
81741
81742         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81743         Emit mostlyclean-local rule.
81744         (func_emit_tests_Makefile_am): Likewise.
81745         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81746
81747 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81748
81749         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81750
81751 2006-06-23  Bruno Haible  <bruno@clisp.org>
81752
81753         * tests/test-stdint.c: Update to match ISO C 99 Technical
81754         Corrigendum 1.
81755
81756 2006-06-23  Bruno Haible  <bruno@clisp.org>
81757
81758         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81759
81760 2006-06-23  Bruno Haible  <bruno@clisp.org>
81761
81762         * lib/stdint_.h: Treat IRIX like OpenBSD.
81763
81764 2006-06-23  Bruno Haible  <bruno@clisp.org>
81765
81766         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81767         ISO C 99 Technical Corrigendum 1.
81768
81769 2006-06-22  Simon Josefsson  <jas@extundo.com>
81770
81771         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81772         MinGW.
81773
81774 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81775
81776         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81777         needed.  Some compiler complained about some of them.  Problem reported
81778         by Larry Jones in
81779         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81780
81781 2006-06-21  Simon Josefsson  <jas@extundo.com>
81782
81783         * tests/test-getaddrinfo.c: New file.
81784
81785         * modules/getaddrinfo-tests: New file.
81786
81787         * MODULES.html.sh: Add inet_pton.
81788
81789         * modules/inet_pton: New file.
81790
81791 2006-06-21  Simon Josefsson  <jas@extundo.com>
81792
81793         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81794         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81795         of using the (limited) gnulib implementation on Windows XP.
81796
81797         * m4/inet_pton.m4: New file.
81798
81799 2006-06-21  Simon Josefsson  <jas@extundo.com>
81800
81801         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81802         variable.
81803
81804         * lib/socket_.h: Don't define WINVER.
81805
81806         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81807         slightly modified to work in gnulib.
81808
81809 2006-06-21  Simon Josefsson  <jas@extundo.com>
81810
81811         * doc/gnulib.texi (Windows sockets): Add.
81812
81813 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81814
81815         * lib/read-file.c (fread_file): Start with buffer allocation of
81816         0 bytes rather than 1 byte; this simplifies the code.
81817         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81818         code to free buffer and save/restore errno.
81819         (internal_read_file): Remove unused local.
81820
81821 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81824         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81825         Problem reported by Denis Excoffier in
81826         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81827
81828 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81829
81830         * modules/sys_socket, modules/socklen: Include sys/types since
81831         FreeBSD 4.x's sys/socket.h needs it.
81832
81833 2006-06-19  Simon Josefsson  <jas@extundo.com>
81834
81835         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81836
81837 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81838
81839         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81840
81841 2006-06-19  Bruno Haible  <bruno@clisp.org>
81842
81843         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81844         and FULL_PATH_INTTYPES_H in angle brackets.
81845         Reported by Mark D. Baushke <mdb@gnu.org>.
81846
81847 2006-06-17  Eric Blake  <ebb9@byu.net>
81848
81849         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81850         errno.
81851
81852 2006-06-17  Bruno Haible  <bruno@clisp.org>
81853
81854         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81855         <sys/inttypes.h>.
81856
81857 2006-06-17  Bruno Haible  <bruno@clisp.org>
81858
81859         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81860         whether errno is declared. Assume <errno.h> declares errno.
81861
81862 2006-06-17  Bruno Haible  <bruno@clisp.org>
81863
81864         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81865
81866 2006-06-17  Bruno Haible  <bruno@clisp.org>
81867
81868         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81869         problem on Solaris 2.5.1.
81870
81871 2006-06-16  Eric Blake  <ebb9@byu.net>
81872
81873         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81874         * lib/unicodeio.c [!defined errno]: Likewise.
81875         * lib/strtol.c [!defined errno]: Likewise.
81876         * lib/strtod.c [!defined errno]: Likewise.
81877
81878 2006-06-15  Eric Blake  <ebb9@byu.net>
81879
81880         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81881
81882 2006-06-15  Eric Blake  <ebb9@byu.net>
81883
81884         * config/srclist.txt (ssize_t.m4): Lose sync.
81885
81886 2006-06-15  Bruno Haible  <bruno@clisp.org>
81887
81888         * modules/stdint (Files): Include m4/full-header-path.m4,
81889         m4/size_max.m4, m4/wchar_t.m4.
81890         (Makefile.am): Many more substitutions.
81891         * modules/stdint-tests: New file.
81892         * tests/test-stdint.c: New file.
81893
81894 2006-06-15  Bruno Haible  <bruno@clisp.org>
81895
81896         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81897         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81898         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81899         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81900         gl_CHECK_TYPE_SAME): New macros.
81901
81902 2006-06-15  Bruno Haible  <bruno@clisp.org>
81903
81904         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81905
81906 2006-06-15  Bruno Haible  <bruno@clisp.org>
81907
81908         * lib/stdint_.h: Rewritten to be fully auto-configured.
81909         Fixes bug on HP-UX/IA64.
81910
81911 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81912
81913         * lib/getdate.y (__attribute__): Don't define if already defined.
81914         Problem reported by Larry Jones.
81915         * lib/utimens.c (__attribute__): Likewise.
81916
81917 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81920         reported by Andreas Schwab.
81921
81922 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81923             Bruno Haible  <bruno@clisp.org>
81924
81925         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81926         check for the declaration of strnlen and a run test that exposes the
81927         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81928         rpl_strndup.
81929
81930 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81931             Bruno Haible  <bruno@clisp.org>
81932
81933         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81934
81935 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81936
81937         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81938         compile test, for Tru64 4.0D.
81939
81940 2006-05-28  Karl Berry  <karl@gnu.org>
81941
81942         * config/srclist.txt (printf-args.c): lose sync.
81943
81944 2006-05-26  Martin Lambers  <marlam@marlam.de>
81945
81946         * lib/getpass.c: Updates the test for the native W32 API, and adds
81947         missing includes, thus fixing compilation warnings.
81948
81949 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81950
81951         * lib/exclude.c (exclude_fnmatch): New function.
81952         (excluded_file_name): Call exclude_fnmatch.
81953         * lib/exclude.h (excluded_file_name): New prototype
81954
81955 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81956
81957         * lib/tempname.c (small_open, large_open): New macros.
81958         (__open, __open64) [!_LIBC]: Remove.
81959         (__gen_tempname): Use small_open and large_open instead of __open
81960         and __open64.  This fixes a portability bug on HP-UX 11.11i
81961         reported by Simon Wing-Tang in
81962         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81963
81964 2006-05-24  Bruno Haible  <bruno@clisp.org>
81965
81966         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81967         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81968         Reported by Thorsten Maerz <torte@netztorte.de> via
81969         Aaron Stone <aaron@serendipity.cx>.
81970
81971 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81974         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81975         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81976         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81977         not really conditional on the cache.
81978         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81979
81980 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81981
81982         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81983         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81984         (my_usleep): Don't mishandle maximum value.
81985
81986 2006-05-19  Jim Meyering  <jim@meyering.net>
81987
81988         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81989
81990 2006-05-17  Bruno Haible  <bruno@clisp.org>
81991
81992         Cygwin portability.
81993         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81994
81995 2006-05-17  Bruno Haible  <bruno@clisp.org>
81996
81997         * lib/stdint_.h: Fix recognition of Cygwin.
81998
81999 2006-05-15  Bruno Haible  <bruno@clisp.org>
82000
82001         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82002         on libtool patch by Ralf Wildenhues.
82003
82004 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82005
82006         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82007         test for C99 conformance; (bool) 0.5 is an integer constant
82008         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82009         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82010
82011 2006-05-11  Simon Josefsson  <jas@extundo.com>
82012
82013         * m4/xvasprintf.m4: Fix obvious typo.
82014
82015 2006-05-11  Jim Meyering  <jim@meyering.net>
82016
82017         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82018         James Lemley.
82019
82020 2006-05-10  Simon Josefsson  <jas@extundo.com>
82021
82022         * lib/md4.c: Typo fix, update copyright years.
82023         (K1, K2): Don't use L because it turn computations into 64-bit on
82024         64-bit platforms.
82025
82026 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82027
82028         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82029         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82030         unwanted sign propagation, e.g., on hosts with 64-bit int.
82031         There still are some problems with reeelly weird theoretical hosts
82032         (e.g., 33-bit int) but it's not worth worrying about now.
82033         * lib/sha1.c (rol): Likewise.
82034         (K1, K2, K3, K4): Remove unnecessary L suffix.
82035
82036 2006-05-10  Bruno Haible  <bruno@clisp.org>
82037
82038         * lib/des.c: Cast to avoid warnings.
82039
82040 2006-05-09  Bruno Haible  <bruno@clisp.org>
82041
82042         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82043         (Depends-on): Depend also on xsize, stdarg.
82044         (configure.ac): Add gl_XVASPRINTF.
82045
82046 2006-05-09  Bruno Haible  <bruno@clisp.org>
82047
82048         * m4/xvasprintf.m4: New file.
82049
82050 2006-05-09  Bruno Haible  <bruno@clisp.org>
82051
82052         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82053         (EOVERFLOW): Define fallback value.
82054         (xstrcat): New function.
82055         (xvasprintf): Recognize the special case of a string concatenation.
82056
82057 2006-05-08  Eric Blake  <ebb9@byu.net>
82058
82059         * gnulib-tool (func_version): Base copyright year on CVS date.
82060         (func_emit_copyright_notice): New function.
82061         (func_emit_lib_Makefile_am): Use it.
82062         (func_emit_tests_Makefile_am): Likewise.
82063         (func_import): Likewise.
82064
82065 2006-05-08  Bruno Haible  <bruno@clisp.org>
82066
82067         * modules/stdarg: New file.
82068         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82069
82070 2006-05-08  Bruno Haible  <bruno@clisp.org>
82071
82072         * m4/stdarg.m4: New file, from GNU gettext.
82073
82074 2006-05-08  Bruno Haible  <bruno@clisp.org>
82075
82076         * config/srclist.txt (build-aux/config.rpath): different from latest
82077         release.
82078
82079 2006-05-08  Bruno Haible  <bruno@clisp.org>
82080
82081         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82082
82083 2006-05-05  Jim Meyering  <jim@meyering.net>
82084
82085         * m4/warning.m4: New file, derived from bison's file by the same name.
82086
82087 2006-05-03  Bruno Haible  <bruno@clisp.org>
82088
82089         * lib/stdint_.h: Shorter URL.
82090         * lib/inttypes.h: Likewise.
82091
82092 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82093
82094         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82095
82096 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         * lib/verify.h: Document the internals better.  Most of this change
82099         was written by Bruno Haible.
82100
82101 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82102
82103         * doc/verify.texi: New file, partly based on a proposal by
82104         Bruno Haible.
82105
82106 2006-05-02  Bruno Haible  <bruno@clisp.org>
82107
82108         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82109         test from here...
82110         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82111
82112 2006-04-29  Bruno Haible  <bruno@clisp.org>
82113
82114         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82115         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82116
82117 2006-04-29  Bruno Haible  <bruno@clisp.org>
82118
82119         * gnulib-tool: Make --update option actually work.
82120
82121 2006-04-29  Bruno Haible  <bruno@clisp.org>
82122
82123         * doc/gcd.texi: New file.
82124         * doc/gnulib.texi: Include it.
82125
82126 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82127
82128         * lib/getdate.y (get_date): When adding relative date, start with the
82129         initial time, not with the result of the first mktime call.
82130
82131 2006-04-25  Bruno Haible  <bruno@clisp.org>
82132
82133         * gnulib-tool (func_import): Output the include directives in three
82134         blocks, sorted separately.
82135         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82136
82137 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82140         to define main with arguments, for C++.  Reported by Eric Blake.
82141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82142         Prefer 'int main ()' to 'int main (void)', for C++.
82143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82145         for 'main', for C99 and C++.
82146
82147 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82150         Don't assume that exit status -1 is valid.
82151         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82152         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82153         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82154         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82155         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82156         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82157         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82158         functions can be used without declaring them, or that you can
82159         exit with status -1.
82160         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82161
82162 2006-04-24  Karl Berry  <karl@gnu.org>
82163
82164         * config/srclist.txt (longdouble.m4): sync lost.
82165
82166 2006-04-24  Eric Blake  <ebb9@byu.net>
82167
82168         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82169
82170 2006-04-24  Bruno Haible  <bruno@clisp.org>
82171
82172         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82173         poll() implementation in AIX.
82174         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82175
82176 2006-04-24  Bruno Haible  <bruno@clisp.org>
82177
82178         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82179         assigned exactly once.
82180
82181 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82182             Bruno Haible  <bruno@clisp.org>
82183
82184         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82185         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82186         for AM_CPPFLAGS.
82187
82188 2006-04-23  Bruno Haible  <bruno@clisp.org>
82189
82190         * modules/copy-file: Depend on unistd.
82191         * modules/execute: Likewise.
82192         * modules/fatal-signal: Likewise.
82193         * modules/findprog: Likewise.
82194         * modules/mkdtemp : Likewise.
82195         * modules/pipe: Likewise.
82196         * modules/wait-process: Likewise.
82197
82198 2006-04-23  Bruno Haible  <bruno@clisp.org>
82199
82200         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82201         condition was already detected.
82202         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82203
82204 2006-04-23  Bruno Haible  <bruno@clisp.org>
82205
82206         * lib/copy-file.c: Include <unistd.h> unconditionally.
82207         * lib/execute.c: Likewise.
82208         * lib/fatal-signal.c: Likewise.
82209         * lib/findprog.c: Likewise.
82210         * lib/mkdtemp.c: Likewise.
82211         * lib/pipe.h: Likewise.
82212         * lib/pipe.c: Likewise.
82213         * lib/wait-process.h: Likewise.
82214
82215 2006-04-23  Bruno Haible  <bruno@clisp.org>
82216
82217         * gnulib-tool (func_usage): Fix --import description. Document
82218         --update.
82219         (func_import): Create temporary file in a temporary directory, if
82220         --dry-run is specified. Silence errors from 'grep' when there are no
82221         m4 files in $m4dir.
82222         (func_create_testdir): Silence errors from 'grep' when there are no
82223         m4 files in $m4dir.
82224         Reported by Karl Berry <karl@freefriends.org>.
82225
82226 2006-04-20  Bruno Haible  <bruno@clisp.org>
82227
82228         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82229         one argument, so that the code will be portable to Autoconf 2.60.
82230         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82231         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82232         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82233
82234 2006-04-19  Derek Price  <derek@ximbiot.com>
82235             Eric Blake  <ebb9@byu.net>
82236
82237         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82238         rather than "/full/path.h".  Update comment to match.  Shorten &
82239         generalize m4_translit call via AS_TR_CPP.
82240
82241 2006-04-19  Derek Price  <derek@ximbiot.com>
82242             Eric Blake  <ebb9@byu.net>
82243
82244         * lib/inttypes.h: Correct grammar in comment.
82245
82246 2006-04-18  Derek Price  <derek@ximbiot.com>
82247             Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         * modules/inttypes: New file.
82250         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82251
82252 2006-04-18  Derek Price  <derek@ximbiot.com>
82253             Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82256         New files.
82257
82258 2006-04-18  Derek Price  <derek@ximbiot.com>
82259             Paul Eggert  <eggert@cs.ucla.edu>
82260
82261         * lib/inttypes.h: New file.
82262         * lib/strtoimax.c: Assume <inttypes.h>.
82263
82264 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82267         isn't mounted.  Problem reported by Kir Kolyshkin.
82268
82269 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82270
82271         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82272         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82273         Derek R. Price.
82274         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82275         implementation.
82276
82277 2006-04-12  Eric Blake  <ebb9@byu.net>
82278
82279         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82280         is now done automatically by the corresponding Autoconf macro.
82281
82282 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82285         time_r.h.
82286
82287 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82288
82289         Merge regex changes from libc, removing some of our
82290         POSIX-conformance changes that were rejected and redoing them in a
82291         less-intrusive way.
82292
82293         * lib/regcomp.c (re_compile_internal, init_dfa):
82294         Length arg is now size_t, not Idx.  All uses changed.
82295         (peek_token): Forward decl now says internal_function.
82296         (__re_error_msgid, __re_error_msgid_idx):
82297         Now static rather than extern with attribute_hidden.
82298         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82299         For some reason libc prefers K&R style defns for external functions.
82300         (regerror) [!defined _LIBC]: Likewise.
82301         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82302         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82303         (build_range_exp, build_collating_symbol):
82304         Use K&R-style defn.
82305         (re_compile_fastmap): Use '\0' to memset, not 0.
82306         (utf8_sb_map): Make the calculations more obvious.
82307         (init_dfa, parse_bracket_exp, build_charclass_op):
82308         Call calloc and cast result, as glibc does.
82309         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82310         (build_range_exp, build_collating_symbol):
82311         Now internal functions.
82312
82313         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82314
82315         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82316         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82317         Don't depend on VMS; depend on __VMS instead, for POSIX
82318         namespace cleanness.
82319         (regoff_t): Define to ssize_t, not long int.
82320
82321         Remove the REG_ macros named below.  Instead, make the old names
82322         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82323         __USE_GNU_REGEX.
82324         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82325         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82326         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82327         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82328         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82329         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82330         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82331         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82332         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82333         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82334         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82335         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82336         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82337         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82338         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82339         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82340         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82341         (REG_NREGS):
82342         Remove.  All uses replaced by the old RE_* names.
82343         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82344         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82345         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82346         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82347         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82348         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82349         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82350         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82351         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82352         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82353         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82354         Don't bother having these macros be independent of each others'
82355         values, since they no longer exist in the POSIX name space.
82356
82357         Rename the following member names back to their old names,
82358         unless !__USE_GNU_REGEX.  All uses changed back.
82359         (buffer): Renamed from re_buffer.
82360         (allocated): Renamed from re_allocated.
82361         (used): Renamed from re_used.
82362         (syntax): Renamed from re_syntax.
82363         (fastmap): Renamed from re_fastmap.
82364         (translate): Renamed from re_translate.
82365         (can_be_null): Renamed from re_can_be_null.
82366         (regs_allocated): Renamed from re_regs_allocated.
82367         (fastmap_accurate): Renamed from re_fastmap_accurate.
82368         (no_sub): Renamed from re_no_sub.
82369         (not_bol): Renamed from re_not_bol.
82370         (not_eol): Renamed from re_not_eol.
82371         (newline_anchor): Renamed from re_newline_anchor.
82372         (num_regs): Renamed from rm_num_regs.
82373         (start): Renamed from rm_start.
82374         (end): Renamed from rm_end.
82375
82376         (free_state): Move up a bit.
82377
82378         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82379         #define to be empty.
82380         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82381         when that is what is intended.
82382         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82383         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82384         (MAX): New macro.
82385         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82386         All uses changed back to re_malloc, etc.  It's now the caller's
82387         responsibility to check for overflow; all callers changed.
82388         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82389         (re_x2nrealloc): Remove.
82390         (free_state): Remove decl.
82391
82392         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82393         (re_set_registers, re_exec):
82394         Use K&R-style defn.
82395
82396         2006-01-31  Roland McGrath  <roland@redhat.com>
82397
82398         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82399         Reported by Mike Frysinger <vapier@gentoo.org>.
82400
82401         2006-01-15  Andreas Jaeger  <aj@suse.de>
82402
82403         [BZ #1950]
82404         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82405         build_wcs_upper_buffer change.
82406         (build_wcs_upper_buffer): Change return type.
82407
82408         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82409
82410         * lib/regex_internal.h: Include <stdint.h> if available.
82411
82412         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82413
82414         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82415
82416         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82417
82418         * lib/regcomp.c: Adjust for changed secondary hash function.
82419
82420         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82421
82422         * lib/regex.h: Pretty printing.
82423         Clean up namespace a bit.
82424
82425         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82426
82427         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82428         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82429
82430         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82431                     Ulrich Drepper  <drepper@redhat.com>
82432
82433         [BZ #1302]
82434         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82435         changed.
82436         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82437
82438         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82439
82440         [BZ #281]
82441         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82442         * lib/regcomp.c: Remove unnecessary uses of
82443         unsigned RE_TRANSLATE_TYPE.
82444         * lib/regex_internal.h: Likewise.
82445         * lib/regex_internal.c: Likewise.
82446         * lib/regexec.c: Likewise.
82447         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82448
82449         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82450
82451         * lib/regexec.c (find_recover_state): Remove unnecessary
82452         initialization.
82453         (transit_state_bkref): Make DFA a const pointer.
82454         (get_subexp): Likewise.
82455         (check_arrival): Likewise.
82456         (update_cur_sifted_state): Likewise.
82457         (re_search_internal): Likewise.
82458         (prune_impossible_nodes): Likewise.
82459         (acquire_init_state_context): Likewise.
82460         (proceed_next_node): Likewise.
82461         (set_regs): Likewise.
82462         (free_fail_stack_return): Likewise.
82463         (check_arrival_expand_ecl): Mark DFA parameter as const.
82464         (check_arrival_expand_ecl_sub): Likewise.
82465         (check_subexp_limits): Likewise.
82466         (sub_epsilon_src_nodes):  Likewise.
82467         (add_epsilon_src_nodes):  Likewise.
82468         (merge_state_array): Likewise.
82469         (update_regs): Likewise.
82470         (build_trtable): Likewise.
82471         (sift_states_backward): Mark MCTX parameter as const.
82472         (build_sifted_states): Likewise.
82473         (update_cur_sifted_state): Likewise.
82474         (sift_states_mkref): Likewise.
82475         (check_arrival_expand_ecl): Mark eclosure as const.
82476         (check_dst_limits_calc_pos_1): Likewise.
82477         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82478         pointer.
82479
82480         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82481
82482         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82483         (transit_state_sb): Likewise.
82484         (transit_state_mb): Likewise.
82485         (sift_states_iter_mb): Likewise.
82486         (check_arrival_add_next_nodes): Likewise.
82487         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82488         [_LIBC] (re_search_2_stub): Use mempcpy.
82489
82490         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82491         mbrtowc for very simple UTF-8 case.
82492
82493         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82494         a pointer-to-const.
82495         (re_acquire_state_context): Likewise.
82496         * lib/regex_internal.h: Adjust prototypes.
82497
82498         * lib/regex.c: Prevent using C++ compilers.
82499
82500         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82501         (re_acquire_state_context): Likewise.
82502
82503 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * modules/regex (Depends-on): Add ssize_t.
82506
82507 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82508
82509         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82510         translation table.
82511
82512 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82515
82516 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82517             Bruno Haible  <bruno@clisp.org>
82518
82519         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82520         <sys/types.h> and <inttypes.h>.
82521
82522 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82523
82524         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82525         `__error_t_defined', so argp.h will not typedef the former.
82526
82527 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82530         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82531         glibc names.  Even if glibc is changed to conform to POSIX, the
82532         traditional names will be available anyway, since regex depends on
82533         the extensions module.  Also, fix a longstanding typo in the
82534         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82535         reported by Emanuele Giaquinta.  Also, change sense of cached
82536         variable, so that the message makes sense.
82537
82538 2006-03-24  Simon Josefsson  <jas@extundo.com>
82539
82540         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82541         including some doc fixes.
82542         (base64_encode_alloc): Fix +1 bug on allocation failures.
82543
82544 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82545
82546         * lib/base64.c (base64_encode): Do not read past end of array with
82547         unsanitized input on systems with CHAR_BIT > 8.
82548
82549 2006-03-24  Eric Blake  <ebb9@byu.net>
82550
82551         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82552
82553 2006-03-22  Karl Berry  <karl@gnu.org>
82554
82555         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82556         * config/srclistvars.sh (COREUTILS): new var.
82557
82558 2006-03-17  Jim Meyering  <jim@meyering.net>
82559
82560         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82561         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82562
82563 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82566         no longer needs it.  Instead, check that regoff_t is as least
82567         as wide as ptrdiff_t.
82568
82569         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82570         so that our regex.h stays compatible with the installed regex.
82571         This is helpful for installers who configure --without-included-regex.
82572         Problem reported by Emanuele Giaquinta.
82573
82574 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82575
82576         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82577         Typedef to long int, not to off_, as POSIX will likely change
82578         in that direction.
82579
82580 2006-03-15  Eric Blake  <ebb9@byu.net>
82581
82582         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82583
82584 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82585
82586         * lib/argp-help.c (validate_uparams): Fix typo
82587         * lib/argp-parse.c (argp_default_options): Consistently begin help
82588         messages with a lowercase letter.
82589
82590 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82591
82592         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82593         overrun buffers and shouldn't be used (much as gets shouldn't be
82594         used).
82595         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82596
82597 2006-03-08  Simon Josefsson  <jas@extundo.com>
82598
82599         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82600         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82601
82602 2006-03-08  Simon Josefsson  <jas@extundo.com>
82603
82604         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82605         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82606
82607 2006-03-08  Simon Josefsson  <jas@extundo.com>
82608
82609         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82610         signal that configure disabled the device.
82611
82612 2006-03-08  Simon Josefsson  <jas@extundo.com>
82613
82614         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82615         languages.
82616
82617 2006-03-07  Simon Josefsson  <jas@extundo.com>
82618
82619         * modules/getopt (Depends-on): Add unistd.
82620
82621         * modules/unistd: New file.
82622
82623 2006-03-07  Simon Josefsson  <jas@extundo.com>
82624
82625         * modules/gc-random: New file.
82626
82627 2006-03-07  Simon Josefsson  <jas@extundo.com>
82628
82629         * m4/unistd_h.m4: New file.
82630
82631 2006-03-07  Simon Josefsson  <jas@extundo.com>
82632
82633         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82634         test to be side-effect free by storing the result in the cache
82635         variable gl_cv_lib_readline, and moving the assignment of
82636         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82637         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82638
82639 2006-03-07  Simon Josefsson  <jas@extundo.com>
82640
82641         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82642         error on missing devices (the functions will return an error).
82643
82644         * m4/gc.m4: Move random stuff to gc-random.m4
82645
82646 2006-03-07  Simon Josefsson  <jas@extundo.com>
82647
82648         * lib/unistd_.h: New file.
82649
82650 2006-03-07  Simon Josefsson  <jas@extundo.com>
82651
82652         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82653
82654 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82657         Problem reported by Juan Manuel Guerrero.
82658
82659 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82660
82661         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82662         the unistd module.
82663         * lib/getlogin_r.c: Likewise.
82664         * lib/getlogin_r.h: Likewise.
82665         * lib/glob.c: Likewise.
82666         * lib/pagealign_alloc.c: Likewise.
82667         * lib/unistd_.h: Remove; no longer needed.
82668
82669 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82670
82671         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82672         Add unistd.
82673         * modules/c-stack (Depends-on): Add unistd.
82674         * modules/getlogin_r: Likewise.
82675         * modules/glob: Likewise.
82676         * modules/pagealign_alloc: Likewise.
82677         * modules/unistd (Files): Remove lib/unistd_.h.
82678         (EXTRA_DIST): Remove.
82679         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82680         need unistd_.h.
82681         (MOSTLYCLEANFILES): Remove unistd.h-t.
82682
82683 2006-03-03  Simon Josefsson  <jas@extundo.com>
82684
82685         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82686
82687 2006-03-03  Simon Josefsson  <jas@extundo.com>
82688
82689         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82690         libidn and bison.
82691
82692 2006-03-03  Simon Josefsson  <jas@extundo.com>
82693
82694         * build-aux/maint.mk: Add indent target.
82695
82696 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82697
82698         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82699         our replacement poll.h in any case, to avoid a differing
82700         declaration from a system header.  Seen on AIX.
82701
82702 2006-03-01  Simon Josefsson  <jas@extundo.com>
82703
82704         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82705         <kasal@ucw.cz>.
82706
82707 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         * modules/gettime (Depends-on): Add extensions module.
82710         * modules/nanosleep (Depends-on): Likewise.
82711         * modules/settime (Depends-on): Likewise.
82712
82713 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82714
82715         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82716         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82717         pedantically.
82718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82719         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82720
82721         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82722         not "==".  Reported by Ralf Wildenhues.
82723
82724 2006-03-01  Karl Berry  <karl@gnu.org>
82725
82726         * doc/Copyright/request-*: new files, synced from gnuorg.
82727
82728 2006-03-01  Karl Berry  <karl@gnu.org>
82729
82730         * config/srclist.txt (Copyright/*): new entries.
82731
82732 2006-02-28  Simon Josefsson  <jas@extundo.com>
82733
82734         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82735
82736 2006-02-27  Simon Josefsson  <jas@extundo.com>
82737
82738         * lib/base64.h: Indent #define's.  From Jim Meyering
82739         <jim@meyering.net>.
82740
82741 2006-02-27  Jim Meyering  <jim@meyering.net>
82742
82743         Revert the change of 2006-02-24, so these files can continue
82744         to be sync'd from gettext.
82745         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82746         of `config.h'.
82747
82748 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         * modules/intprops: New file.
82751         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82752         Add intprops.
82753         * modules/getloadavg (Files): Remove lib/intprops.h.
82754         (Depends-on): Add intprops.
82755         * modules/human: Likewise.
82756         * modules/inttostr: Likewise.
82757         * modules/openat: Likewise.
82758         * modules/sig2str: Likewise.
82759         * modules/userspec: Likewise.
82760         * modules/utimecmp: Likewise.
82761         * modules/xnanosleep: Likewise.
82762         * modules/xstrtol: Likewise.
82763
82764 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82765
82766         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82767         * modules/lock-tests (TESTS): Use $(EXEEXT).
82768         * modules/tls-tests: Likewise.
82769         * modules/argp-tests: Likewise.
82770         (check_PROGRAMS): New var, replacing...
82771         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82772
82773 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82774
82775         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82776         `config.h'.
82777
82778 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82781
82782 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82783
82784         Sync from coreutils.
82785         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82786         gl_CHDIR_SAFER.
82787
82788 2006-02-22  Jim Meyering  <jim@meyering.net>
82789
82790         Sync from coreutils.
82791         * m4/chdir-safer.m4: New file.
82792
82793 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82794
82795         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82796         AT_FDCWD exceeds INT_MAX.
82797         * lib/openat.h (AT_FDCWD): Likewise.
82798
82799 2006-02-17  Eric Blake  <address@hidden>
82800
82801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82802
82803 2006-02-16  Simon Josefsson  <jas@extundo.com>
82804
82805         * modules/getaddrinfo (Depends-on): Add sys_socket.
82806
82807 2006-02-15  Simon Josefsson  <jas@extundo.com>
82808
82809         * build-aux/maint.mk: Add dsyntax-check rule.
82810
82811 2006-02-15  Eric Blake  <ebb9@byu.net>
82812
82813         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82814         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82815         'present but cannot compile' warnings on cygwin.
82816         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82817         use ws2tcpip.h if sys/socket.h works.
82818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82819         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82820
82821 2006-02-14  Simon Josefsson  <jas@extundo.com>
82822
82823         * modules/maintainer-makefile (Files): Rename.
82824
82825         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82826         and (the local) Makefile.cfg to maint-cfg.mk.
82827
82828         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82829         to the latter.
82830
82831         * modules/maintainer-makefile: New module.
82832
82833         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82834         severaly stripped to make it possible to build it up from scratch
82835         with reliable tests.
82836
82837         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82838         fixes to permit overriding the default actions when configure and
82839         makefile are not available.
82840
82841 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82842
82843         Sync from coreutils.
82844         * modules/lstat (Depends-on): Don't depend on xalloc.
82845         (License): Change from GPL to LGPL, since this is now simply a
82846         replacement for a libc function.
82847
82848 2006-02-14  Jim Meyering  <jim@meyering.net>
82849
82850         Sync from coreutils.
82851
82852         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82853         failure on deficient systems, and simplify gnulib lgpl dependencies.
82854         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82855         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82856
82857         * lib/xalloc-die.c: Remove unused definition of N_.
82858
82859 2006-02-14  Jim Meyering  <jim@meyering.net>
82860
82861         Sync from coreutils.
82862         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82863         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82864         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82865         double-quote uses of that variable, to accommodate the rare case in
82866         which getmntent is available in none of the libraries checked.  This
82867         happens at least on FreeBSD 5.0.
82868
82869 2006-02-13  Simon Josefsson  <jas@extundo.com>
82870
82871         * gnulib-tool (Usage): Fix --import, from
82872         karl@freefriends.org (Karl Berry).
82873
82874 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82875
82876         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82877
82878 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82879
82880         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82881         "autoupdate" on 2005-12-12.
82882
82883 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         * modules/closeout (Depends-on): Remove atexit.
82886
82887 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82888
82889         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82890         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82891
82892 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82893
82894         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82895         __EXTENSIONS__ if this causes compilation to fail.  Problem
82896         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82897         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82898
82899 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82902         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82903         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82904         All uses changed.
82905
82906 2006-01-26  Simon Josefsson  <jas@extundo.com>
82907
82908         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82909         prototype is visible on mingw32.
82910
82911         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82912         for mingw32.
82913
82914         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82915         mingw32).
82916
82917 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82920         attempt to open for write; this always fails, at least on POSIX
82921         hosts.  This reinstates the 2006-01-09 change, which was
82922         inadvertently removed.
82923
82924 2006-01-26  Bruno Haible  <bruno@clisp.org>
82925
82926         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82927         Reported by Paul Eggert.
82928
82929 2006-01-26  Bruno Haible  <bruno@clisp.org>
82930             Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/stdbool_.h (_Bool)
82933         [(! (defined __cplusplus || defined __BEOS__)
82934           && !defined __GNUC__
82935           && !(defined __HP_cc || defined __xlc__
82936                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82937                || defined __sgi))]:
82938         #define to signed char in these cases too; this simplifies
82939         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82940         etc., separately) and makes it more conservative.
82941
82942 2006-01-25  Simon Josefsson  <jas@extundo.com>
82943
82944         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82945         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82946         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82947
82948 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82949
82950         * lib/argp-namefrob.h: Bugfix. Remove stray #
82951
82952 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82953
82954         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82955         so that we test the test.
82956         Check for yet another HP-UX cc bug involving *bool |= bool.
82957
82958 2006-01-25  Karl Berry  <karl@gnu.org>
82959
82960         * config/srclist.txt (vasnprintf.c): sync lost.
82961
82962 2006-01-25  Jim Meyering  <jim@meyering.net>
82963
82964         Sync from the stable (b5) branch of coreutils:
82965
82966         * lib/fts.c (fts_children): Don't let close() clobber errno from
82967         failed fchdir().
82968
82969         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82970         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82971         a dangling symlink.  That can also happen at least for ELOOP.
82972         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82973         FYI, this bug predates the inclusion of fts.c in coreutils.
82974
82975         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82976         in their own block, so pre-c99 compilers don't object.
82977
82978         Avoid the double-free (first in fts_read, second in fts_close) that
82979         would occur when an `active' directory is made inaccessible (e.g.,
82980         via chmod a-x) during a traversal.
82981         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82982         before returning.  Reproduce this failure by
82983         mkdir -p a/b; cd a; chmod a-x . b
82984         Reported by Stavros Passas.
82985
82986 2006-01-25  Jim Meyering  <jim@meyering.net>
82987
82988         * lib/fileblocks.c: Remove more useless parentheses.
82989         * lib/readutmp.h: Likewise.
82990
82991 2006-01-25  Bruno Haible  <bruno@clisp.org>
82992
82993         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82994         warnings.
82995         Reported by Paul Eggert.
82996
82997 2006-01-25  Bruno Haible  <bruno@clisp.org>
82998
82999         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83000         rid of a trap command. For Solaris sh.
83001         Reported by Mark D. Baushke <mdb@gnu.org>.
83002
83003 2006-01-24  Simon Josefsson  <jas@extundo.com>
83004
83005         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83006         Bruno.
83007
83008 2006-01-24  Karl Berry  <karl@gnu.org>
83009
83010         * config/srclist.txt (argp-namefrob.h): sync lost.
83011
83012 2006-01-24  Jim Meyering  <jim@meyering.net>
83013
83014         * modules/openat (Files): Add lib/intprops.h.
83015         From Mark D. Baushke.
83016
83017 2006-01-24  Jim Meyering  <jim@meyering.net>
83018
83019         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83020         Reported by Mark D. Baushke.
83021
83022 2006-01-24  Jim Meyering  <jim@meyering.net>
83023
83024         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83025
83026 2006-01-24  Bruno Haible  <bruno@clisp.org>
83027
83028         * modules/strnlen (Maintainer): Change from glibc to all.
83029
83030 2006-01-24  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83033         Patch by Paul Eggert.
83034
83035 2006-01-24  Bruno Haible  <bruno@clisp.org>
83036
83037         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83038         already has it.
83039         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83040         2005-11-26.
83041
83042         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83043         'signed char' to avoid problems with the built-in _Bool type.
83044         Reported by Paul Eggert on 2005-11-26.
83045
83046 2006-01-24  Bruno Haible  <bruno@clisp.org>
83047
83048         * gnulib-tool (func_import): Avoid constructing complicated sed
83049         expressions inside backquote.
83050         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83051
83052 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83053
83054         These changes imported from libc.
83055         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83056         test and two separate function calls.
83057         * lib/strndup.c (__strndup): Add libc_hidden_def.
83058
83059 2006-01-23  Simon Josefsson  <jas@extundo.com>
83060
83061         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83062         Remove the test_*_SOURCES variable: automake infers it by default.
83063         * modules/tls-tests: Likewise.
83064
83065 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         Work around porting bugs reported by Dieter in
83068         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83069         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83070         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83071         Include "getopt.h" first, to check interface.
83072         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83073         !HAVE_DECL_GETENV.
83074         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83075         (__strndup): Revert to K&R-style function dfns, the glibc style.
83076         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83077         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83078         Include strnlen.h first, to get prototype properly.
83079         (strnlen): Renamed from __strnlen.
83080         Remove weak alias.
83081
83082 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83085
83086 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83087
83088         * config/srclist.txt: Adjust to reflect glibc reorganization.
83089         This affects only comments.
83090
83091 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83092
83093          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83094          Reported by Bruce Korb <bkorb@gnu.org>.
83095
83096 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83097
83098         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83099         to pacify gcc -Wswitch-default.
83100
83101 2006-01-22  Bruno Haible  <bruno@clisp.org>
83102
83103         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83104         temporary buffer for sprintf, take into account the precision also
83105         for 'd', 'i', 'u', 'o', 'x', 'X'.
83106
83107 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83108
83109         * modules/argp-tests: New module
83110         * tests/test-argp.c: New file
83111         * tests/test-argp-2.sh: New file
83112
83113 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83114
83115         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83116         (__argp_base_name): Removed
83117         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83118         typo.
83119         (__argp_base_name): Provide macro definition or extern declaration
83120         depending on the configuration
83121
83122 2006-01-20  Simon Josefsson  <jas@extundo.com>
83123
83124         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83125
83126 2006-01-20  Simon Josefsson  <jas@extundo.com>
83127
83128         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83129
83130 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83133         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83134         Suggested by Bruno Haible.
83135
83136 2006-01-20  Karl Berry  <karl@gnu.org>
83137
83138         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83139         until changes propagate, I guess.
83140
83141 2006-01-19  Simon Josefsson  <jas@extundo.com>
83142
83143         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83144
83145 2006-01-19  Simon Josefsson  <jas@extundo.com>
83146
83147         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83148
83149 2006-01-19  Simon Josefsson  <jas@extundo.com>
83150
83151         * gnulib-tool: Set check_PROGRAMS.
83152
83153         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83154         modules/des-tests, modules/gc-arcfour-tests,
83155         modules/gc-arctwo-tests, modules/gc-des-tests,
83156         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83157         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83158         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83159         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83160         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83161         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83162         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83163         test_*_SOURCES.
83164
83165 2006-01-18  Simon Josefsson  <jas@extundo.com>
83166
83167         * modules/socklen (Depends-on): Depend on sys_socket.
83168
83169 2006-01-18  Simon Josefsson  <jas@extundo.com>
83170
83171         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83172         modules/des-tests, modules/gc-arcfour-tests,
83173         modules/gc-arctwo-tests, modules/gc-des-tests,
83174         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83175         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83176         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83177         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83178         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83179         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83180         $(EXEEXT) to automake TESTS variable, for mingw32.
83181
83182 2006-01-17  Simon Josefsson  <jas@extundo.com>
83183
83184         * modules/socklen (Include): Need sys/socket.h.
83185
83186 2006-01-17  Bruno Haible  <bruno@clisp.org>
83187
83188         * modules/ssize_t (Include): Add <sys/types.h>.
83189
83190 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83193         it's not portable and it doesn't work with cross-compiles.
83194         Problem reported by Bruno Haible.  Fix missing-$ typo in
83195         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83196         -zignore from being used with Sun's C compiler.
83197
83198 2006-01-12  Simon Josefsson  <jas@extundo.com>
83199
83200         * lib/base64.c: Fix warning, reported by Bruno Haible
83201         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83202
83203 2006-01-12  Bruno Haible  <bruno@clisp.org>
83204
83205         * modules/ldd: New file.
83206         * build-aux/ldd.sh.in: New file.
83207         * MODULES.html.sh (Support for building libraries and executables): Add
83208         ldd.
83209
83210 2006-01-12  Bruno Haible  <bruno@clisp.org>
83211
83212         * m4/ldd.m4: New file.
83213
83214 2006-01-12  Bruno Haible  <bruno@clisp.org>
83215
83216         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83217         endless loop while replacing $auxdir with build-aux.
83218
83219 2006-01-11  Simon Josefsson  <jas@extundo.com>
83220
83221         * lib/stdint_.h (SIZE_MAX): Add missing (.
83222
83223 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83224
83225         Sync from coreutils.
83226         * lib/md5.c: Fix commentary typos.
83227         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83228         * lib/md5.h (__attribute__): Remove; unused.
83229         * lib/sha1.c: Fix commentary to match md5 better.
83230         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83231         so that we don't need to worry about alignment.  All uses changed.
83232         This merges the 2005-10-28 md5 change into sha1.
83233
83234 2006-01-11  Jim Meyering  <jim@meyering.net>
83235
83236         Sync from coreutils.
83237         * lib/md5.c (OP): Fix spacing.
83238
83239 2006-01-11  Bruno Haible  <bruno@clisp.org>
83240
83241         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83242         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83243         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83244
83245 2006-01-11  Bruno Haible  <bruno@clisp.org>
83246
83247         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83248         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83249         the "early" section as well.
83250
83251 2006-01-11  Bruno Haible  <bruno@clisp.org>
83252
83253         Avoid "ar: no archive members specified" error on MacOS X.
83254         * gnulib-tool (func_modules_add_dummy): New function.
83255         (func_import, func_create_testdir): Invoke it.
83256
83257 2006-01-11  Bruno Haible  <bruno@clisp.org>
83258
83259         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83260         with $auxdir in AC_CONFIG_FILES statements.
83261
83262 2006-01-11  Bruno Haible  <bruno@clisp.org>
83263
83264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83265         Initialize also noinst_HEADERS to empty.
83266
83267 2006-01-11  Bruno Haible  <bruno@clisp.org>
83268
83269         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83270         variables.
83271         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83272         autoreconf.
83273
83274 2006-01-11  Bruno Haible  <bruno@clisp.org>
83275
83276         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83277         overridable by the user.
83278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83279
83280 2006-01-10  Simon Josefsson  <jas@extundo.com>
83281
83282         * modules/sys_socket: New file.
83283
83284 2006-01-10  Simon Josefsson  <jas@extundo.com>
83285
83286         * m4/sys_socket_h.m4: New file.
83287
83288 2006-01-10  Simon Josefsson  <jas@extundo.com>
83289
83290         * lib/socket_.h: New file.
83291
83292 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83293
83294         * modules/readutmp (Maintainer): Add myself.
83295
83296 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83297
83298         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83299         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83300         People who are still concerned with buggy memcmp implementations
83301         can invoke gl_FUNC_MEMCMP themselves.
83302
83303 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * lib/regex_internal.h (BITSET_WORD_BITS):
83306         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83307         preprocessor mishandles large unsigned values as if they were signed.
83308         Problem reported by Claudio Fontana in
83309         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83310
83311 2006-01-10  Jim Meyering  <jim@meyering.net>
83312
83313         Avoid the double-free (first in fts_read, second in fts_close) that
83314         would occur when an `active' directory is made inaccessible (e.g.,
83315         via chmod a-x) during a traversal.
83316         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83317         before returning.  Reproduce this failure by
83318         mkdir -p a/b; cd a; chmod a-x . b
83319         Reported by Stavros Passas.
83320
83321         Sync from coreutils.
83322         * lib/sha1.c: Tweak grammar in a comment.
83323
83324 2006-01-10  Jim Meyering  <jim@meyering.net>
83325
83326         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83327         Patch by Joerg Sonnenberger.
83328
83329 2006-01-10  Bruno Haible  <bruno@clisp.org>
83330
83331         * modules/readutmp: Depend on module free.
83332         * modules/strtok_r: Depend on module restrict.
83333
83334 2006-01-10  Bruno Haible  <bruno@clisp.org>
83335
83336         * modules/gettext (configure.ac): Add an invocation of
83337         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83338
83339 2006-01-10  Bruno Haible  <bruno@clisp.org>
83340
83341         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83342         Reported by Werner Lemberg <wl@gnu.org>.
83343
83344 2006-01-10  Bruno Haible  <bruno@clisp.org>
83345
83346         * lib/localcharset.c: Update from GNU gettext.
83347
83348 2006-01-10  Bruno Haible  <bruno@clisp.org>
83349
83350         * lib/argp.h (__const): Remove macro. Use const instead.
83351         * lib/argp-fmtstream.h (__const): Likewise.
83352         * lib/glob_.h (__const): Remove macro.
83353         * lib/glob-libc.h: Use const instead of __const.
83354
83355 2006-01-10  Bruno Haible  <bruno@clisp.org>
83356
83357         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83358         variable.
83359         Needed to avoid an automake error regarding the 'gettext' module.
83360
83361 2006-01-09  Simon Josefsson  <jas@extundo.com>
83362
83363         * modules/inet_ntop (Depends-on): Add restrict.
83364
83365 2006-01-09  Simon Josefsson  <jas@extundo.com>
83366
83367         * modules/gc-rijndael-tests (License): Put under LGPL.
83368
83369         * modules/gc-des-tests (License): Likewise.
83370
83371         * modules/gc-arcfour-tests (License): Likewise.
83372
83373         * modules/gc-arctwo-tests (License): Likewise.
83374
83375         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83376
83377         * modules/gc-hmac-sha1-tests (Files): Likewise.
83378
83379         * modules/gc-hmac-md5-tests (License): Likewise.
83380
83381         * modules/gc-sha1-tests (License): Likewise.
83382
83383         * modules/gc-md5-tests (License): Likewise.
83384
83385         * modules/gc-md4-tests (License): Likewise.
83386
83387         * modules/gc-md2-tests (License): Likewise.
83388
83389         * modules/gc-tests (License): Likewise.
83390
83391         * modules/des-tests (License): Likewise.
83392
83393         * modules/md4-tests (License): Likewise.
83394
83395         * modules/md2-tests (License): Likewise.
83396
83397 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83398
83399         Sync from coreutils:
83400
83401         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83402         * modules/lib-ignore: New file.
83403         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83404         chdir-safer.m4, lchmod.m4.
83405         * modules/openat: Add mkdirat.c, openat-priv.h.
83406
83407 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83408
83409         Sync from coreutils.
83410         * m4/lib-ignore.m4: New file.
83411         * m4/lchmod.m4: New file.
83412
83413 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83414
83415         Sync from coreutils.
83416         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83417         for write access: POSIX says that must fail.
83418         * lib/fts.c (diropen): Likewise.
83419         * lib/save-cwd.c (save_cwd): Likewise.
83420         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83421         well, for minor improvements on hosts that lack O_DIRECTORY.
83422         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83423         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83424         Fall back on chown if open failed with EACCES.
83425
83426         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83427         Report an error at compile-time if only a 1-second nominal clock
83428         resolution is found.
83429
83430         * lib/lchmod.h: New file.
83431         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83432         (make_dir_parents): Use lchown rather than chown, and
83433         lchmod rather than chmod.
83434
83435         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83436         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83437         "proc" reported by n0dalus.
83438
83439         * lib/mountlist.c: Include <limits.h>.
83440         (dev_from_mount_options)
83441         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83442         New function.  It no longer assumes "dev=" has the System V meaning
83443         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83444         (read_file_system_list)
83445         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83446         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83447         dev= in that case.
83448
83449         * lib/posixtm.h (PDS_PRE_2000): New macro.
83450         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83451         allow_century.  All usages changed.  Reject dates outside the range
83452         1969-1999 if PDS_PRE_2000 is used.
83453
83454 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         Sync from coreutils.
83457         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83458         (Time of day items): Mention the possibility of leap seconds.
83459         Problem reported by Dr. David Alan Gilbert.
83460
83461 2006-01-09  Jim Meyering  <jim@meyering.net>
83462
83463         Sync from coreutils.
83464
83465         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83466
83467         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83468
83469         * lib/modechange.c (mode_compile): Reject an invalid mode string
83470         that starts with an octal digit.  From Andreas Gruenbacher.
83471
83472         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83473         and dup to open_safer and dup_safer, respectively.
83474         (openat_permissive): Fix typo in comment.
83475
83476         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83477         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83478         (_): Remove; no longer needed.
83479         (openat): Renamed from rpl_openat; no need for rpl_openat
83480         since openat.h renames openat for us.
83481         Replace most of the body with a call to openat_permissive,
83482         to avoid duplicate code.
83483         Port to (probably hypothetical) environments were mode_t is
83484         wider than int.
83485         (openat_permissive): Require mode arg, so that we can check
83486         types better.  Put it just after flags.  Change cwd failure
83487         indicator from pointer-to-bool to pointer-to-errno-value.
83488         All callers changed.
83489         Invoke openat_save_fail and/or openat_restore_fail if
83490         cwd_errno is null, so that openat can call us.
83491         (openat_permissive, fdopendir, fstatat, unlinkat):
83492         Simplify errno handling to avoid some duplicate code,
83493         as it's OK to set errno on success.
83494         * lib/openat.h: Revamp code so that function macros depend on
83495         __OPENAT_PREFIX only, not also on AT_FDCWD.
83496         (openat_ro): Remove.  Caller changed to use openat_permissive.
83497         (openat_permissive): Now a macro, if not a function.
83498         (openat_restore_fail, openat_save_fail): Now always functions,
83499         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83500
83501         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83502         and openat.c.
83503         * lib/mkdirat.c: Include openat-priv.h.
83504         Remove definitions of macros defined therein.
83505         * lib/openat.c: Likewise.
83506
83507         * lib/mkdirat.c (mkdirat): New file and function.
83508         * lib/openat.h (mkdirat): Declare.
83509
83510         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83511
83512         * lib/openat.h (openat_permissive): Declare.
83513         (openat_ro): Define.
83514
83515         * lib/openat.c (EXPECTED_ERRNO): New macro.
83516         (openat_permissive): New function -- used in remove.c rewrite.
83517         (all functions): Set errno just before returning, only if there
83518         was an actual failure.
83519         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83520
83521         Emulate openat-family functions using Linux's procfs, if possible.
83522         Idea and some code based on Ulrich Drepper's glibc changes.
83523
83524         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83525         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83526         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83527         before falling back on save_cwd and restore_cwd.
83528         (fdopendir, fstatat, unlinkat): Likewise.
83529
83530         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83531         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83532
83533         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83534         as second argument to va_arg.  Otherwise, some versions of gcc
83535         warn that `if this code is reached, the program will abort'.
83536
83537 2006-01-09  Jim Meyering  <jim@meyering.net>
83538
83539         Sync from coreutils.
83540         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83541         Require openat-priv.h.
83542
83543 2006-01-09  Bruno Haible  <bruno@clisp.org>
83544
83545         * modules/strnlen (Include): Use strnlen.h.
83546
83547 2006-01-09  Bruno Haible  <bruno@clisp.org>
83548
83549         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83550
83551 2006-01-09  Bruno Haible  <bruno@clisp.org>
83552
83553         * lib/sysexit_.h (EX_OK): New macro.
83554         Suggested by Martin Lambers <marlam@marlam.de>.
83555
83556 2006-01-09  Bruno Haible  <bruno@clisp.org>
83557
83558         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83559         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83560
83561 2006-01-09  Bruno Haible  <bruno@clisp.org>
83562
83563         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83564         numbers.
83565
83566 2006-01-09  Bruno Haible  <bruno@clisp.org>
83567
83568         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83569         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83570         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83571         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83572
83573 2006-01-09  Bruno Haible  <bruno@clisp.org>
83574
83575         * build-aux/javacomp.sh.in: New file, moved from lib/.
83576         * modules/javacomp-script (Files): Update.
83577         (configure.ac): Add AC_CONFIG_FILES invocation.
83578         (EXTRA_DIST): Remove variable.
83579
83580         * build-aux/javaexec.sh.in: New file, moved from lib/.
83581         * modules/javaexec (Files): Update.
83582         (configure.ac): Add AC_CONFIG_FILES invocation.
83583         (EXTRA_DIST): Remove javaexec.sh.in.
83584
83585         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83586         * modules/csharpcomp-script (Files): Update.
83587         (configure.ac): Add AC_CONFIG_FILES invocation.
83588         (EXTRA_DIST): Remove variable.
83589
83590         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83591         * modules/csharpexec (Files): Update.
83592         (configure.ac): Add AC_CONFIG_FILES invocation.
83593         (EXTRA_DIST): Remove csharpexec.sh.in.
83594
83595 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83596
83597         Sync from coreutils.
83598
83599         Add POSIX ACL support
83600         * lib/acl.h (copy_acl, set_acl): Add declarations.
83601         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83602         systems other than Linux.
83603         (chmod_or_fchmod): New function: use fchmod when possible,
83604         and chmod otherwise.
83605         (file_has_acl): Add a POSIX ACL implementation, with a
83606         Linux-specific subcase.
83607         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83608         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83609         acls are unsupported.
83610         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83611         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83612         are unsupported.
83613
83614 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83615
83616         Sync from coreutils.
83617         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83618
83619 2006-01-07  Bruno Haible  <bruno@clisp.org>
83620
83621         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83622         gl_EARLY.
83623
83624 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83625
83626         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83627         Problem reported for Mingw by Mark Junker.
83628
83629 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * README: Gnulib normally doesn't generate a tarball.
83632
83633 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83634
83635         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83636         long int, not int, for nanosecond counts, so that people who are
83637         used to POSIX struct timespec won't be surprised.  Reported by Jim
83638         Meyering.
83639
83640 2005-12-28  Bruno Haible  <bruno@clisp.org>
83641
83642         * build-aux/config.rpath: Update from GNU gettext.
83643
83644 2005-12-16  Jim Meyering  <jim@meyering.net>
83645
83646         * modules/fprintftime: New module.
83647         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83648
83649 2005-12-16  Jim Meyering  <jim@meyering.net>
83650
83651         * m4/fprintftime.m4: New file.
83652
83653 2005-12-16  Jim Meyering  <jim@meyering.net>
83654
83655         * lib/fprintftime.c, lib/fprintftime.h: New files.
83656
83657 2005-12-15  Simon Josefsson  <jas@extundo.com>
83658
83659         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83660         new m4/socklen.m4.
83661
83662 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83663
83664         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83665         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83666
83667 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83668
83669         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83670         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83671         struct uparams is valid. Fall back to the default values if it is
83672         not.
83673
83674 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83675
83676         * modules/argp (Files): Add argp-pin.c
83677         (Depends-on): dirname
83678         (lib_SOURCES): Add argp-pin.c
83679
83680 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83681
83682         * m4/argp.m4:  Check if program_invocation_name and
83683         program_invocation_short_name are declared and define appropriate
83684         macros if they are not.
83685
83686 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83687
83688         * lib/argp-help.c (__argp_base_name): New function
83689         (__argp_short_program_name): Rewrite using __argp_base_name
83690         * lib/argp-namefrob.h: Define program_invocation_name and
83691         program_invocation_short_name if requested
83692         (__argp_base_name): Add prototype
83693         * lib/argp-parse.c (argp_def): Use gettext wrappers
83694         (argp_default_parser): Use __argp_base_name
83695         * lib/argp-pin.c: New file. Defines program_invocation_name and
83696         program_invocation_short_name on systems that lack them.
83697
83698 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83699
83700         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83701         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83702         porting problem reported by Georg Schwarz in
83703         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83704
83705 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83706
83707         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83708         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83709         porting problem reported by Georg Schwarz in
83710         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83711
83712 2005-12-05  Bruno Haible  <bruno@clisp.org>
83713
83714         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83715         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83716         Reported by Mark Junker <mjscod@gmx.de>.
83717
83718 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83719
83720         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83721         Use implementation from Albert Chin, with some
83722         comments/corrections by Stepan Kasal and myself.
83723
83724 2005-12-02  Bruno Haible  <bruno@clisp.org>
83725
83726         * gnulib-tool (func_import): Accept GPLed build tool modules when
83727         --lgpl is given.
83728         * modules/csharpcomp-script: New file.
83729         * modules/csharpcomp: Depend on it.
83730         * modules/javacomp-script: New file.
83731         * modules/javacomp: Depend on it.
83732         Suggested by Simon Josefsson.
83733
83734 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83737         statement, to work around an HP-UX 10.20 compiler bug reported by
83738         Peter O'Gorman.
83739
83740 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * modules/savedir (Depends-on): Add openat.
83743
83744 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83745
83746         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83747         (uintmax_t) [defined uintmax_t]: Do not declare.
83748         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83749         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83750         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83751         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83752         sake of portability to weird hosts that C allows (though we don't
83753         know of any practical examples).
83754
83755         * lib/savedir.h (fdsavedir): New decl.
83756         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83757         contains most of the former guts of savedir.
83758         (savedir): Use savedirstream.
83759         Include "openat.h".
83760
83761 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83762
83763         * modules/obstack (Files): Add m4/ulonglong.m4.
83764         Problem reported by Davide Angelocola.
83765
83766 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83769         coreutils no longer futzes with rounding modes.
83770
83771 2005-11-14  Jim Meyering  <jim@meyering.net>
83772
83773         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83774         replacement of mkstemp.
83775
83776 2005-11-10  Simon Josefsson  <jas@extundo.com>
83777
83778         * lib/readline.c: Remove EOL.
83779
83780 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * modules/gethrxtime (Depends-on): Add gettime.
83783
83784 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83787         or gettimeofday; no longer needed.
83788
83789 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83792         time business.
83793         (gethrxtime) [! (HAVE_NANOUPTIME
83794         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83795         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83796         our own approximation.
83797
83798 2005-11-08  Eric Blake  <ebb9@byu.net>
83799
83800         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83801
83802 2005-11-08  Eric Blake  <ebb9@byu.net>
83803
83804         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83805
83806 2005-11-04  Bruno Haible  <bruno@clisp.org>
83807
83808         * gnulib-tool: Implement --update mode.
83809
83810 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83811
83812         Fix porting problem reported by Theodoros V. Kalamatianos.
83813         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83814         Don't assume that futimes failing means we must fail.
83815
83816 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83817
83818         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83819         variables to suggest the intended function of the PATH_MAX check.
83820
83821 2005-10-30  Kean Johnston  <jkj@sco.com>
83822
83823         Trivial changes to support SCO systems.
83824         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83825         as PATH_MAX.
83826         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83827         where __ptr is null when no I/O is pending.
83828
83829 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83830
83831         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83832         leave errno alone.  Problem reported by Dmitry V. Levin.
83833
83834 2005-10-28  Simon Josefsson  <jas@extundo.com>
83835
83836         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83837         Test more.
83838
83839         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83840
83841         * modules/md2, modules/md2-tests: New files.
83842
83843 2005-10-28  Simon Josefsson  <jas@extundo.com>
83844
83845         * m4/inet_ntop.m4: More tests.
83846
83847         * m4/gc-md2.m4, md2.m4: New file.
83848
83849 2005-10-28  Simon Josefsson  <jas@extundo.com>
83850
83851         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83852         "restrict" keywords, as per POSIX.  Protect the function
83853         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83854         Don't use K&R prototypes.  Check the sprintf return values.
83855         Re-define EAFNOSUPPORT if not present.  Indent.
83856
83857         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83858         suggested by Bruno Haible <bruno@clisp.org>.
83859
83860         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83861
83862         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83863
83864         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83865         libgcrypt).
83866
83867         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83868
83869         * lib/md2.h, lib/md2.c: New files.
83870
83871 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83874         errno alone.  Problem reported by Frederic Jolliton.
83875
83876 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83877
83878         * modules/verify (License): Change from GPL to LGPL.  This is a
83879         tiny module and there are apparently near-equivalents that are
83880         under the BSD license.
83881
83882 2005-10-24  Simon Josefsson  <jas@extundo.com>
83883
83884         * modules/sha1: Relicense to LGPL.
83885
83886 2005-10-24  Simon Josefsson  <jas@extundo.com>
83887
83888         * lib/md4.h: Shrink buffer size, now that we changed the type.
83889
83890 2005-10-23  Simon Josefsson  <jas@extundo.com>
83891
83892         * gnulib-tool (func_import): Fix --tests-base.
83893
83894 2005-10-22  Simon Josefsson  <jas@extundo.com>
83895
83896         * modules/arcfour (Depends-on): Need stdint.
83897
83898 2005-10-22  Simon Josefsson  <jas@extundo.com>
83899
83900         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83901         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83902
83903 2005-10-22  Simon Josefsson  <jas@extundo.com>
83904
83905         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83906         suggested by Bruno Haible <bruno@clisp.org>.
83907
83908 2005-10-22  Simon Josefsson  <jas@extundo.com>
83909
83910         * lib/crc.h: Include stddef.h, for size_t.
83911
83912 2005-10-22  Simon Josefsson  <jas@extundo.com>
83913
83914         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83915         arcfour_context struct (simplify test vector testing in GNU
83916         Shishi).
83917
83918 2005-10-21  Simon Josefsson  <jas@extundo.com>
83919
83920         * modules/des, modules/des-tests: New files.
83921
83922         * modules/gc-des, modules/gc-des-tests: New files.
83923
83924         * tests/test-des.c, tests/test-gc-des.c: New file.
83925
83926 2005-10-21  Simon Josefsson  <jas@extundo.com>
83927
83928         * modules/arctwo, modules/arctwo-tests: New files.
83929
83930         * tests/test-arctwo.c: New file.
83931
83932         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83933
83934         * tests/test-gc-arctwo.c: New file.
83935
83936 2005-10-21  Simon Josefsson  <jas@extundo.com>
83937
83938         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83939         Bruno Haible <bruno@clisp.org>.
83940
83941         * m4/gc-des.m4: New file.
83942
83943 2005-10-21  Simon Josefsson  <jas@extundo.com>
83944
83945         * m4/arctwo.m4: New file.
83946
83947         * m4/gc-arctwo.m4: New file.
83948
83949 2005-10-21  Simon Josefsson  <jas@extundo.com>
83950
83951         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83952         block.
83953
83954 2005-10-21  Simon Josefsson  <jas@extundo.com>
83955
83956         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83957         <bruno@clisp.org>.
83958
83959         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83960
83961         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83962         Bruno Haible <bruno@clisp.org>.
83963
83964         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83965         <bruno@clisp.org>.
83966
83967 2005-10-21  Simon Josefsson  <jas@extundo.com>
83968
83969         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83970
83971 2005-10-21  Simon Josefsson  <jas@extundo.com>
83972
83973         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83974
83975 2005-10-21  Simon Josefsson  <jas@extundo.com>
83976
83977         * lib/des.h, lib/des.c: New files.
83978
83979         * lib/gc-gnulib.c: Support DES.c
83980
83981 2005-10-21  Simon Josefsson  <jas@extundo.com>
83982
83983         * lib/arctwo.h, lib/arctwo.c: New files.
83984
83985         * lib/gc-gnulib.c: Support ARCTWO.
83986
83987 2005-10-21  Simon Josefsson  <jas@extundo.com>
83988
83989         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83990         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83991
83992 2005-10-21  Simon Josefsson  <jas@extundo.com>
83993
83994         * gnulib-tool (func_import, func_create_testdir): Define automake
83995         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83996         Makefile.am snippet),
83997         suggested by Bruno Haible <bruno@clisp.org>.
83998
83999         * modules/gc (Makefile.am): Use it.
84000
84001 2005-10-21  Bruno Haible  <bruno@clisp.org>
84002
84003         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84004         patch.
84005
84006 2005-10-19  Simon Josefsson  <jas@extundo.com>
84007
84008         * tests/test-gc-rijndael.c: New file.
84009
84010         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84011
84012 2005-10-19  Simon Josefsson  <jas@extundo.com>
84013
84014         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84015         interface too.
84016
84017 2005-10-19  Simon Josefsson  <jas@extundo.com>
84018
84019         * tests/test-gc-arcfour.c: New file.
84020
84021         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84022
84023 2005-10-19  Simon Josefsson  <jas@extundo.com>
84024
84025         * modules/gc-md4, modules/gc-md4-tests: New file.
84026
84027         * tests/test-gc-md4.c: New file.
84028
84029 2005-10-19  Simon Josefsson  <jas@extundo.com>
84030
84031         * m4/gc-md4.m4: New file.
84032
84033 2005-10-19  Simon Josefsson  <jas@extundo.com>
84034
84035         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84036         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84037         <kasal@ucw.cz>.
84038
84039 2005-10-19  Simon Josefsson  <jas@extundo.com>
84040
84041         * m4/gc-arcfour.m4: New file.
84042
84043         * m4/gc-rijndael.m4: New file.
84044
84045 2005-10-19  Simon Josefsson  <jas@extundo.com>
84046
84047         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84048
84049 2005-10-19  Simon Josefsson  <jas@extundo.com>
84050
84051         * lib/gc-gnulib.c: Support ARCFOUR.
84052
84053 2005-10-19  Simon Josefsson  <jas@extundo.com>
84054
84055         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84056         support.
84057
84058         * lib/gc.h: Add ECB enum type.
84059
84060         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84061
84062 2005-10-18  Simon Josefsson  <jas@extundo.com>
84063
84064         * tests/test-md5.c: New file.
84065
84066         * modules/md5-tests: New file.
84067
84068 2005-10-18  Simon Josefsson  <jas@extundo.com>
84069
84070         * tests/test-md4.c: New file.
84071
84072         * modules/md4, modules/md4-tests: New files.
84073
84074 2005-10-18  Simon Josefsson  <jas@extundo.com>
84075
84076         * m4/md4.m4: New file.
84077
84078 2005-10-18  Simon Josefsson  <jas@extundo.com>
84079
84080         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84081
84082 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84083
84084         * gnulib-tool (func_create_testdir): Omit the second check whether
84085         BUILT_SOURCES in nonempty.
84086
84087 2005-10-17  Simon Josefsson  <jas@extundo.com>
84088
84089         * tests/test-rijndael.c: New file.
84090
84091 2005-10-17  Simon Josefsson  <jas@extundo.com>
84092
84093         * modules/sha1: Depend on stdint instead of md5.
84094
84095         * modules/md5: Depend on stdint, remove uint32_t.
84096
84097 2005-10-17  Simon Josefsson  <jas@extundo.com>
84098
84099         * modules/gc-sha1-tests: New file.
84100
84101         * tests/test-gc-sha1.c: New file.
84102
84103 2005-10-17  Simon Josefsson  <jas@extundo.com>
84104
84105         * m4/md5.m4: Remove call to uint32_t.m4.
84106
84107 2005-10-17  Simon Josefsson  <jas@extundo.com>
84108
84109         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84110
84111         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84112         md5.h.
84113
84114         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84115
84116         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84117
84118 2005-10-17  Simon Josefsson  <jas@extundo.com>
84119
84120         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84121
84122 2005-10-17  Simon Josefsson  <jas@extundo.com>
84123
84124         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84125
84126 2005-10-17  Simon Josefsson  <jas@extundo.com>
84127
84128         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84129
84130         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84131
84132 2005-10-17  Bruno Haible  <bruno@clisp.org>
84133
84134         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84135         that it can also be used in a test.
84136
84137 2005-10-16  Bruno Haible  <bruno@clisp.org>
84138
84139         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84140         TESTS_ENVIRONMENT, so that individual tests can augment it.
84141
84142         * gnulib-tool (func_create_testdir): Use an intermediate target for
84143         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84144         macros, like $(ALLOCA_H), which cannot be passed through the command
84145         line.
84146
84147 2005-10-15  Simon Josefsson  <jas@extundo.com>
84148
84149         * modules/rijndael-tests: New file.
84150
84151         * modules/rijndael: New file.
84152
84153 2005-10-15  Simon Josefsson  <jas@extundo.com>
84154
84155         * m4/rijndael.m4: New file.
84156
84157 2005-10-15  Simon Josefsson  <jas@extundo.com>
84158
84159         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84160
84161         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84162
84163 2005-10-14  Simon Josefsson  <jas@extundo.com>
84164
84165         * tests/test-arcfour.c: New file.
84166
84167         * modules/arcfour, modules/arcfour-tests: New files.
84168
84169 2005-10-14  Simon Josefsson  <jas@extundo.com>
84170
84171         * m4/arcfour.m4: New file.
84172
84173 2005-10-14  Simon Josefsson  <jas@extundo.com>
84174
84175         * lib/arcfour.h, lib/arcfour.c: New files.
84176
84177 2005-10-14  Roland McGrath  <roland@redhat.com>
84178
84179         Import from libc.  [BZ #1331]
84180         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84181         macro argument.
84182         Reported by Matej Vela <vela@debian.org>.
84183
84184 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84187         include <wchar.h>; no longer needed.
84188
84189 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84190
84191         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84192
84193 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84194         and  Ulrich Drepper  <drepper@redhat.com>
84195
84196         Import from libc.
84197         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84198         instead of inline stream orientation test and two separate
84199         function calls.  Pay no attention to USE_IN_LIBIO.
84200
84201 2005-10-13  Simon Josefsson  <jas@extundo.com>
84202
84203         * modules/gc-hmac-md5-tests: New file.
84204
84205         * tests/test-gc-hmac-sha1.c: New file.
84206
84207         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84208
84209         * modules/gc-hmac-md5-tests: New file.
84210
84211         * tests/test-gc-md5.c: New file.
84212
84213         * modules/gc-md5-tests: New file.
84214
84215 2005-10-13  Simon Josefsson  <jas@extundo.com>
84216
84217         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84218         Move memory allocation outside of loop.
84219
84220 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84221
84222         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84223         intermediate directory is in a read-only file system.  Problem
84224         reported by Eric Blake.
84225
84226 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84227
84228         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84229
84230 2005-10-12  Simon Josefsson  <jas@extundo.com>
84231
84232         * tests/test-hmac-sha1.c: New file.
84233
84234         * modules/hmac-sha1-tests: New file.
84235
84236         * modules/hmac-sha1: New file.
84237
84238 2005-10-12  Simon Josefsson  <jas@extundo.com>
84239
84240         * modules/gc-sha1: New file.
84241
84242 2005-10-12  Simon Josefsson  <jas@extundo.com>
84243
84244         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84245
84246         * tests/test-gc-pbkdf2-sha1.c: New file.
84247
84248 2005-10-12  Simon Josefsson  <jas@extundo.com>
84249
84250         * modules/gc-md5, modules/gc-hmac-md5: New files.
84251
84252         * modules/gc (Files): Remove md5, memxor and hmac files.
84253
84254 2005-10-12  Simon Josefsson  <jas@extundo.com>
84255
84256         * m4/gc-pbkdf2-sha1.m4: New file.
84257
84258         * m4/gc-hmac-sha1.m4: New file.
84259
84260         * m4/gc-sha1: New file.
84261
84262         * m4/hmac-sha1.m4: New file.
84263
84264 2005-10-12  Simon Josefsson  <jas@extundo.com>
84265
84266         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84267
84268         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84269
84270 2005-10-12  Simon Josefsson  <jas@extundo.com>
84271
84272         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84273         suggested by Bruno Haible <bruno@clisp.org>.
84274
84275 2005-10-12  Simon Josefsson  <jas@extundo.com>
84276
84277         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84278
84279 2005-10-12  Simon Josefsson  <jas@extundo.com>
84280
84281         * lib/gc-pbkdf2-sha1.c: New file.
84282
84283         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84284
84285 2005-10-12  Simon Josefsson  <jas@extundo.com>
84286
84287         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84288
84289         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84290
84291 2005-10-12  Simon Josefsson  <jas@extundo.com>
84292
84293         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84294         GC_USE_HMAC_MD5, respectively.
84295
84296         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84297         (gc_md5): Fix typo.
84298
84299         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84300
84301         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84302
84303         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84304
84305 2005-10-12  Bruno Haible  <bruno@clisp.org>
84306
84307         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84308         Reported by Stepan Kasal <kasal@ucw.cz>.
84309
84310 2005-10-11  Simon Josefsson  <jas@extundo.com>
84311
84312         * tests/test-crc.c: New file.
84313
84314         * modules/crc, modules/crc-tests: New files.
84315
84316 2005-10-11  Simon Josefsson  <jas@extundo.com>
84317
84318         * m4/crc.m4: New file.
84319
84320 2005-10-11  Simon Josefsson  <jas@extundo.com>
84321
84322         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84323
84324         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84325
84326         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84327
84328 2005-10-11  Simon Josefsson  <jas@extundo.com>
84329
84330         * lib/crc.h, lib/crc.c: New files.
84331
84332         * lib/gc.h (gc_hash_buffer): Add doc.
84333
84334 2005-10-11  Bruno Haible  <bruno@clisp.org>
84335
84336         * modules/c-strcasestr: New file.
84337         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84338
84339 2005-10-11  Bruno Haible  <bruno@clisp.org>
84340
84341         * modules/c-strcase: New file.
84342         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84343
84344 2005-10-11  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/strcasecmp.c: Include limits.h.
84347         (strcasecmp): Avoid integer overflow on exotic platforms.
84348         * lib/strncasecmp.c: Include limits.h.
84349         (strncasecmp): Avoid integer overflow on exotic platforms.
84350         Reported by Paul Eggert.
84351
84352 2005-10-11  Bruno Haible  <bruno@clisp.org>
84353
84354         * lib/c-strcasestr.h: New file, from GNU gettext.
84355         * lib/c-strcasestr.c: New file, from GNU gettext.
84356
84357 2005-10-11  Bruno Haible  <bruno@clisp.org>
84358
84359         * lib/c-strcase.h: New file, from GNU gettext.
84360         * lib/c-strcasecmp.c: New file, from GNU gettext.
84361         * lib/c-strncasecmp.c: New file, from GNU gettext.
84362
84363 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * modules/mempcpy (License): GPL -> LGPL.
84366         * modules/strchrnul (License): Likewise.
84367         * modules/sysexits (License): Likewise.
84368
84369 2005-10-08  Simon Josefsson  <jas@extundo.com>
84370
84371         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84372
84373 2005-10-07  Simon Josefsson  <jas@extundo.com>
84374
84375         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84376
84377 2005-10-06  Simon Josefsson  <jas@extundo.com>
84378
84379         * tests/test-hmac-md5.c: New file.
84380
84381         * modules/hmac-md5-tests: New file.
84382
84383         * modules/hmac-md5: New file.
84384
84385 2005-10-06  Simon Josefsson  <jas@extundo.com>
84386
84387         * m4/hmac-md5.m4: New file.
84388
84389         * m4/memxor.m4: Require gl_C_RESTRICT.
84390
84391 2005-10-06  Simon Josefsson  <jas@extundo.com>
84392
84393         * lib/memxor.c (memxor): Avoid casts and warnings.
84394
84395 2005-10-06  Simon Josefsson  <jas@extundo.com>
84396
84397         * lib/hmac-md5.c: New file.
84398
84399         * lib/hmac.h: New file.
84400
84401 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84404         promotes to int, not unsigned int, to catch the AIX 5.3
84405         compiler bug.
84406
84407 2005-10-05  Simon Josefsson  <jas@extundo.com>
84408
84409         * modules/memxor: New file.
84410
84411         * modules/iconv (Files): Move config.rpath to havelib, it is used
84412         there.
84413
84414         * modules/havelib (Files): Add config.rpath.
84415
84416 2005-10-05  Simon Josefsson  <jas@extundo.com>
84417
84418         * m4/memxor.m4: New file.
84419
84420 2005-10-05  Simon Josefsson  <jas@extundo.com>
84421
84422         * lib/memxor.c (memxor): Fix compiler error.
84423
84424         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84425         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84426
84427         * lib/memxor.h, lib/memxor.c: New files.
84428
84429         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84430         we assume all systems have it, suggested by Jim Meyering
84431         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84432         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84433         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84434         same reasons.
84435
84436 2005-10-05  Simon Josefsson  <jas@extundo.com>
84437
84438         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84439
84440 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84443         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84444         needed, since the source code now assumes these .h files.
84445
84446 2005-10-05  Derek Price  <derek@ximbiot.com>
84447
84448         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84449
84450 2005-10-05  Bruno Haible  <bruno@clisp.org>
84451
84452         * modules/stdint (License): Change to LGPL.
84453
84454 2005-10-04  Simon Josefsson  <jas@extundo.com>
84455
84456         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84457         D. Baushke" <mdb@gnu.org>.
84458
84459 2005-10-04  Bruno Haible  <bruno@clisp.org>
84460
84461         * lib/verify.h (verify_true): Provide alternative definition for C++.
84462
84463 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84464
84465         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84466         (SSIZE_MAX): New macro, if not already defined.
84467         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84468         than 2 GiB.
84469
84470 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         Sync from coreutils.
84473         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84474         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84475         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84476         ULLONG_MAX doesn't work with 2.7.2.1.
84477
84478 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84481         From Ben Pfaff.
84482
84483         * modules/exclude (Depends-on): Depend on verify.
84484         * modules/strtoimax (Depends-on): Likewise.
84485         * modules/utimecmp (Depends-on): Likewise.
84486
84487 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         * lib/exclude.c: Include verify.h.
84490         (verify): Remove.  All callers changed to use verify.h's version.
84491         * lib/strtoimax.c: Likewise.
84492         * lib/utimecmp.c: Likewis.e
84493
84494         Sync from coreutils.
84495         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84496         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84497         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84498         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84499         bother returning ENOSYS if settimeofday or stime fails; just let
84500         them return whatever errno they want to return.
84501         * lib/utimens.c: Include unistd.h, for dup2.
84502         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84503         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84504
84505 2005-10-02  Jim Meyering  <jim@meyering.net>
84506
84507         Sync from coreutils.
84508         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84509         from glibc-2.2.5 that fails for read-only files.
84510
84511 2005-10-02  Jim Meyering  <jim@meyering.net>
84512
84513         Sync from coreutils.
84514         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84515         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84516         `#if HAVE_CONFIG_H'.
84517         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84518         Remove AT_FDCWD test.
84519         Do not consume the fd unless successful.
84520         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84521         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84522         block, so that we don't even try to compile it if settimeofday is
84523         available.  This works around a compilation failure on OSF1 V5.1,
84524         due to stime requiring a `long int*' while tv_sec is `int'.
84525
84526 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84527
84528         Sync from coreutils.
84529         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84530         against `yes', rather than just testing for nonempty.
84531
84532 2005-10-01  Simon Josefsson  <jas@extundo.com>
84533
84534         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84535         and Darwin.
84536
84537         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84538         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84539         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84540         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84541         Check if struct addrinfo is declared.
84542
84543 2005-10-01  Simon Josefsson  <jas@extundo.com>
84544
84545         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84546         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84547         AI_* and EAI_* definitions.  Protect function declarations.
84548
84549 2005-10-01  Jim Meyering  <jim@meyering.net>
84550
84551         Sync from coreutils.
84552
84553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84554         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84555         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84557         in the inet and nsl libraries.  Required on Solaris 5.7.
84558
84559 2005-10-01  Jim Meyering  <jim@meyering.net>
84560
84561         Sync from coreutils.
84562         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84563         in the inet and nsl libraries.  Required on Solaris 5.7.
84564
84565 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84566
84567         * lib/getdelim.c (getdelim): Remove unused variables.
84568
84569 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84572         so that the code works even with ancient cpp.  Portability problem
84573         with GCC 2.7.2.1 reported by Thomas M.Ott.
84574
84575 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * modules/regex (Depends-on): Add strcase.
84578
84579         * modules/gethostname (Licence): Change from GPL to LGPL, since
84580         gethostname.c is a trivial implementation of a standard library
84581         function.
84582         * modules/poll (License): Change from GPL to LGPL, since it's
84583         derived from LGPL code.
84584
84585 2005-09-27  Jim Meyering  <jim@meyering.net>
84586
84587         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84588         HAVE_CONFIG_H.
84589
84590         * lib/intprops.h (signed_type_or_expr__): Define.
84591         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84592         for unsigned types.
84593
84594 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * lib/verify.h (verify_expr): Remove, replacing with:
84597         (verify_true): New macro that returns true instead of void.
84598         (verify_type__): Remove.
84599         (verify): Use verify_true rather than verify_type__.
84600
84601 2005-09-26  Bruno Haible  <bruno@clisp.org>
84602
84603         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84604         is necessary.
84605         (lib_SOURCES): Remove mbchar.c.
84606         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84607         (Files): Add m4/mbrtowc.m4.
84608         * modules/mbiter: Likewise.
84609         * modules/mbuiter: Likewise.
84610
84611 2005-09-26  Bruno Haible  <bruno@clisp.org>
84612
84613         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84614         compile mbchar.c if they are not both present.
84615         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84616         * m4/mbiter.m4 (gl_MBITER): Likewise.
84617         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84618         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84619         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84620
84621 2005-09-25  Jim Meyering  <jim@meyering.net>
84622
84623         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84624         also uses socklen_t.
84625
84626 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * lib/utimens.c (ENOSYS): Define if not already defined.
84629         (futimens): Support having a null PATH if the file descriptor
84630         is nonnegative.
84631
84632         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84633         Remove.
84634         (__attribute): Define to empty unless GCC 3.1 or later.
84635         This works around a core dump on OpenBSD 3.4, which has GCC
84636         2.95.3, which dumps core when given __attribute__(()).  It also
84637         simplifies other tests, since we really don't want to bother with
84638         worrying about which ancient version of GCC supported what.
84639         Original problem reported by Yoann Vandoorselaere, with part of
84640         the fix suggested by Derek Price.
84641
84642 2005-09-24  Jim Meyering  <jim@meyering.net>
84643
84644         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84645         so we can once again use a positive bitfield width of 1 -- now we
84646         don't have to explain why we were using a bitfield width of 2.
84647
84648 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84649
84650         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84651         and similarly for the other external symbols.  Problem reported
84652         by James Gallager.
84653
84654         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84655         bug reported by Jim Meyering.
84656
84657         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84658         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84659         not needed, since socklen is a prerequisite module.
84660
84661 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84664         Problem reported by Eric Blake.
84665         (getaddrinfo): Initialize se so that it's not garbage.
84666         Redo internal storage allocation so that it doesn't make unportable
84667         assumptions about alignment.
84668         Fix a memory leak.
84669
84670         * lib/utimens.c (futimens): Use futimesat if available.
84671         Prefer it to futimes since it doesn't have the futimes bug.
84672
84673         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84674         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84675         Instead, declare a function that returns a pointer to an array,
84676         and use verify_type__ to declare the size of the array.
84677         Problem and germ of a solution reported by Bruno Haible.
84678         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84679         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84680
84681 2005-09-23  Jim Meyering  <jim@meyering.net>
84682
84683         Sync from coreutils.
84684         Correct build failure (socklen_t not defined) on at least
84685         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84687
84688 2005-09-23  Jim Meyering  <jim@meyering.net>
84689
84690         * modules/getaddrinfo (Depends-on): Add socklen.
84691
84692 2005-09-23  Bruno Haible  <bruno@clisp.org>
84693
84694         * tests/test-verify.c: New file.
84695
84696 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84697
84698         Sync from coreutils.
84699
84700         * modules/argmatch (Depends-on): Add verify.
84701         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84702         unistd-safer.
84703         * modules/save-cwd (Depends-on): Likewise.
84704
84705         * modules/openat (Files): Add lib/openat-die.c.
84706         (Depends-on): Remove error, exitfail.
84707         Add dirname.
84708
84709         * modules/verify: New file.
84710         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84711         with "verify" module.
84712
84713 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         Sync from coreutils.
84716
84717         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84718         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84719         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84720         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84721         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84722         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84723         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84724         Don't bother checking for string.h, stdlib.h, unistd.h.
84725         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84726         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84727         module's job.
84728         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84729         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84730
84731         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84732         (gl_GETDATE): Use it.
84733
84734         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84735
84736 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84737
84738         Sync from coreutils.
84739
84740         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84741         stat-time.h.
84742         * lib/argmatch.h: Include verify.h
84743         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84744         (ARGMATCH_ASSERT): Remove; unused.
84745         * lib/canonicalize.c: Assume STDC_HEADERS.
84746         * lib/exclude.c: Include "strcase.h".
84747         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84748         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84749         and stdio-safer.h.
84750         (getusershell): Call fopen, not fopen_safer.
84751         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84752         Do not include unistd-safer.h.
84753         (save_cwd): Don't call fd_safer; no longer needed
84754         now that we include fcntl--.h.
84755
84756         * lib/getdate.y (relative_time): New type.
84757         (RELATIVE_TIME_0): New constant.
84758         (parser_control): Use relative_time instead of doing it ourselves.
84759         (%union): Add new relative_time rel member.
84760         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84761         Now typeless.
84762         (relunit, relunit_snumber): Now of type rel.
84763         (zone, rel, relunit, get_date): Adjust to above changes.
84764
84765         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84766         Do not include unistd-safer.h.
84767         (getloadavg): Don't call fd_safer; no longer needed
84768         now that we include fcntl--.h.
84769
84770         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84771         (make_dir_parents): Treat ENOSYS like EEXIST.
84772
84773         Improve quality of diagnostics on restore_cwd failure.
84774         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84775         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84776         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84777         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84778         each time through the loop.  Do not diagnose restore_cwd failure;
84779         that is the caller's job (and perhaps the caller does not care).
84780
84781         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84782         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84783         If the file already exists but is not a directory, don't bother
84784         to try to make its parents.
84785         Close potential file descriptor leak if we can't chdir("/") (!).
84786         Don't always return true if chdir($PWD) fails; return true only
84787         if the requested action was done successfully (except for the
84788         chdir($PWD)).
84789         Don't log final directory unless we actually made it.
84790         Refactor to avoid duplicate code to fix up permissions.
84791         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84792
84793         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84794         to make it a bit faster and (I hope) clearer.
84795         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84796         Fix bug in formats like %2N.
84797
84798         * lib/verify.h: New file.
84799
84800 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         Sync from coreutils.
84803         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84804
84805 2005-09-22  Jim Meyering  <jim@meyering.net>
84806
84807         Sync from coreutils.
84808
84809         * m4/lstat.m4 (gl_FUNC_LSTAT):
84810         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84811         Remove obsolete comment.
84812         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84813         * m4/xstrtod.m4: Likewise.
84814
84815         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84816
84817 2005-09-22  Jim Meyering  <jim@meyering.net>
84818
84819         Sync from coreutils.
84820
84821         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84822
84823         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84824         the .tm_year member, since otherwise gcc-4.0 would now warn about
84825         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84826
84827         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84828         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84829
84830         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84831         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84832         when run in a time zone for which daylight savings time is in effect
84833         for the starting date.
84834
84835         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84836         stop us from restricting permissions of just-created absolute-named
84837         directories.
84838         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84839         to restore initial working directory.
84840         * lib/mkdir-p.c (make_dir_parents): New parameter:
84841         different_working_dir, to tell caller if/when we change the working
84842         directory and are unable to return to the initial one.
84843         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84844         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84845         `return false'.  This fixes a bug introduced on 2004-07-30.
84846
84847         * lib/openat.c (fdopendir): Be sure to close the supplied
84848         file descriptor before returning.  This makes our replacement
84849         implementation a little closer to Solaris's, where fdopendir
84850         ties the file descriptor to the returned DIR* pointer.
84851         * lib/openat.c (unlinkat): New function.
84852         * lib/openat.h (unlinkat): Add prototype.
84853         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84854         (openat_restore_fail): Rename from openat_restore_die.
84855         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84856
84857         Provide an alternative to exiting immediately upon save_cwd or
84858         restore_cwd failure.  Now, an application can arrange e.g.,
84859         to perform a longjump in that case.
84860         * lib/openat.c: Include dirname.h.
84861         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84862         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84863         and openat_restore_die rather than calling error directly.
84864         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84865
84866         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84867         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84868         define.
84869
84870         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84871         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84872                             int utc, int nanoseconds);
84873         Background:
84874         date should not have to allocate a megabyte of virtual memory to
84875         handle a format argument like +%1048575T.  When implemented with
84876         strftime, it must allocate such a buffer, use strftime to fill it
84877         in, print it, then free it.
84878         With fprintftime, it simply prints everything and exits.
84879         With no need for memory allocation, that's one fewer way to fail.
84880         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84881         optional field width, not before, so we accept %9:z, not %:9z.
84882         (my_strftime): Be sure to use L_('x') for literals.
84883
84884         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84885         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84886         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84887         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84888         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84889         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84890         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84891         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84892         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84893         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84894         * lib/xgethostname.c, lib/xreadlink.c:
84895         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84896
84897         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84898         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84899         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84900         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84901         and don't include <sys/file.h>).
84902
84903 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84904
84905         Sync from coreutils.
84906
84907         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84908         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84909         [!LDAV_DONE]: Avoid unused variable warning.
84910
84911 2005-09-21  Bruno Haible  <bruno@clisp.org>
84912
84913         * lib/unicodeio.h (unicode_to_mb): New declaration.
84914
84915 2005-09-20  Derek Price  <derek@ximbiot.com>
84916
84917         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84918         getaddrinfo.h.
84919
84920 2005-09-20  Bruno Haible  <bruno@clisp.org>
84921
84922         * gnulib-tool: Remove trailing slashes from the values specified for
84923         --source-base, --m4-base, --tests-base, --aux-dir.
84924         Suggested by Simon Josefsson <jas@extundo.com>.
84925
84926 2005-09-20  Bruno Haible  <bruno@clisp.org>
84927
84928         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84929         func_modules_to_filelist, func_import, func_create_testdir): Make all
84930         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84931         change when gnulib-tool is invoked in a different locale.
84932
84933 2005-09-19  Simon Josefsson  <jas@extundo.com>
84934
84935         * m4/socklen.m4: Fix typo.
84936
84937 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84938
84939         Use a consistent style for including <config.h>.
84940         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84941         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84942         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84943         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84944         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84945         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84946         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84947         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84948         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84949         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84950         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84951         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84952         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84953         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84954         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84955         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84956         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84957         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84958         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84959         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84960         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84961         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84962         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84963         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84964         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84965         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84966         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84967         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84968         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84969         lib/xstrtoumax.c, lib/yesno.c:
84970         Standardize inclusion of config.h.
84971         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84972         lib/inttostr.h:  Removed inclusion of config.h from header files.
84973         * lib/inttostr.c:  Adjusted in-tree users.
84974         * lib/timespec.h: Remove superfluous warning to include config.h.
84975         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84976         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84977         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84978         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84979         config.h with HAVE_CONFIG_H.
84980
84981 2005-09-19  Jim Meyering  <jim@meyering.net>
84982
84983         * modules/pathmax (License): Change to LGPL.
84984
84985 2005-09-19  Derek Price  <derek@ximbiot.com>
84986
84987         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84988
84989 2005-09-19  Bruno Haible  <bruno@clisp.org>
84990
84991         * gnulib-tool (import): Provide default for --tests-base.
84992
84993 2005-09-19  Bruno Haible  <bruno@clisp.org>
84994
84995         * doc/quote.texi: New file, extracted from gnulib.texi.
84996         * doc/ctime.texi: New file, extracted from gnulib.texi.
84997         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84998         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84999         * doc/gnulib.texi: Include them.
85000
85001 2005-09-18  Bruno Haible  <bruno@clisp.org>
85002
85003         Portability fix.
85004         * gnulib-tool (func_readlink): New function.
85005         (func_ln_if_changed): Use it.
85006
85007 2005-09-18  Bruno Haible  <bruno@clisp.org>
85008
85009         * gnulib-tool: Support --with-tests also with --import.
85010         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85011         (func_import): Use variables $testsbase and $inctests. Emit a
85012         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85013         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85014         SUBDIRS += $testsdir.
85015         (func_create_testdir): Update.
85016
85017 2005-09-18  Bruno Haible  <bruno@clisp.org>
85018
85019         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85020         instead of $dry_run.
85021         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85022         (func_ln_if_changed): Don't handle dry-run here.
85023         (func_import): In dry-run mode, detect more precisely which actions
85024         would be performed, and don't use "...ing" verbs.
85025
85026 2005-09-18  Bruno Haible  <bruno@clisp.org>
85027
85028         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85029         (func_import): Use join on two temporary files instead of three nested
85030         loops, in order to determine which files are new or old.
85031
85032 2005-09-18  Bruno Haible  <bruno@clisp.org>
85033
85034         * gnulib-tool (func_import): Comment out code that spits out the
85035         new files with --dry-run.
85036
85037 2005-09-18  Bruno Haible  <bruno@clisp.org>
85038
85039         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85040
85041 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85042
85043         * lib/stat-time.h: New file.
85044         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85045         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85046         in a different way.
85047         (timespec_cmp): New function.
85048         * lib/utimecmp.c: Include stat-time.h.
85049         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85050         members exist, not on the obsolescent ST_MTIM_NSEC.
85051         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85052
85053 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85054
85055         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85056
85057 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85058
85059         * MODULES.html.sh (File system functions): Add stat-time.
85060         * modules/stat-time: New file.
85061         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85062         is now done in a different way, by the stat-time module.
85063         * modules/utimecmp (Depends-on): Add stat-time.
85064
85065 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85066
85067         * m4/st_mtim.m4: Remove.  Superseded by...
85068         * m4/stat-time.m4: New file.
85069         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85070         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85071
85072 2005-09-15  Derek Price  <derek@ximbiot.com>
85073
85074         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85075
85076 2005-09-15  Derek Price  <derek@ximbiot.com>
85077
85078         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85079         * lib/regex_internal.c: Ditto, using this...
85080         (__GNUC_PREREQ): ...new macro.
85081         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85082         using...
85083         (__GNUC_PREREQ): ...this new macro.
85084
85085         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85086
85087 2005-09-15  Derek Price  <derek@ximbiot.com>
85088             Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85091         changes, consolidating in...
85092         * lib/regex_internal.h: ...this file.
85093
85094 2005-09-13  Jim Meyering  <jim@meyering.net>
85095
85096         * lib/canon-host.c: Filter through gnu indent and reword comments
85097         slightly.
85098         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85099
85100 2005-09-13  Derek Price  <derek@ximbiot.com>
85101
85102         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85103         failure.
85104         Reported by Jim Meyering  <jim@meyering.net>.
85105
85106 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85107
85108         * lib/base64.c: Typo.
85109         (base64_encode): Put b64str in initialized data section.
85110
85111 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85112
85113         Merge glibc and coreutils changes into gnulib, plus a few
85114         extra fixes.
85115         * lib/md5.c: Use #error rather than a string.
85116         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85117         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85118         (__attribute__): Define to empty for non recent-GCC.
85119         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85120         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85121         Renamed from their non-__ counterparts, with new macros replacing
85122         them if not _LIBC.  Add __THROW attribute.
85123         (rol): Remove.
85124         (struct md5_ctx): Align buffer if using GCC.
85125         * lib/sha1.h (struct sha1_ctx): Likewise.
85126         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85127         The old name was backwards.
85128         (NOTSWAP): Remove; not used.
85129         (rol): New macro, moved here from md5.h.
85130         (sha1_process_block): Remove a FIXME that doesn't make sense.
85131
85132 2005-09-12  Derek Price  <derek@ximbiot.com>
85133
85134         Return usable errors from canon-host.
85135         * lib/canon-host.h: New file.
85136         * lib/canon-host.c (canon_host): Wrap...
85137         (canon_host_r): ...this new function, which now relies exclusively on
85138         getaddrinfo.
85139         (ch_strerror): New function.
85140         (last_cherror): New global.
85141         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85142         interface.
85143         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85144         void *.
85145         (freeaddrinfo): Free ai->ai_canonname when set.
85146
85147 2005-09-12  Derek Price  <derek@ximbiot.com>
85148
85149         Make canon-host require getaddrinfo.
85150         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85151         AC_LIBSOURCE canon-host.h.  Call...
85152         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85153         gl_GETADDRINFO.
85154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85155
85156 2005-09-12  Derek Price  <derek@ximbiot.com>
85157
85158         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85159         LGPL.
85160         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85161
85162 2005-09-12  Derek Price  <derek@ximbiot.com>
85163
85164         * lib/gai_strerror.c: Include config.h when available.  Include
85165         getaddrinfo.h before other headers to test interface.
85166         Reported by Larry Jones <lawrence.jones@ugs.com>.
85167
85168 2005-09-12  Derek Price  <derek@ximbiot.com>
85169             Paul Eggert  <eggert@cs.ucla.edu>
85170
85171         * modules/glob (Files): Add glob-libc.h.
85172
85173 2005-09-12  Derek Price  <derek@ximbiot.com>
85174             Paul Eggert  <eggert@cs.ucla.edu>
85175
85176         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85177         glob_.h, glob-libc.h.
85178         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85179
85180 2005-09-12  Derek Price  <derek@ximbiot.com>
85181             Paul Eggert  <eggert@cs.ucla.edu>
85182
85183         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85184         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85185         protecting things that should be done only in gnulib contexts.
85186         * lib/glob_.h: New file, containing only the glob things needed for
85187         gnulib.
85188         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85189         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85190         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85191         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85192         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85193         and to respect the namespace rules better.
85194
85195 2005-09-08  Simon Josefsson  <jas@extundo.com>
85196
85197         * modules/socklen: New file.
85198
85199 2005-09-08  Simon Josefsson  <jas@extundo.com>
85200
85201         * m4/socklen.m4: New file.
85202
85203 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * modules/utimens (Files): Add m4/utimbuf.m4, since
85206         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85207         Reported by Sergey Poznyakoff.
85208
85209 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85212         definitions, since that's the preferred style in glibc.
85213         Fix a minor spacing issue, and update copyright notice to match
85214         glibc's.
85215
85216 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85217
85218         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85219
85220 2005-09-06  Simon Josefsson  <jas@extundo.com>
85221
85222         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85223         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85224
85225 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85228         warning.
85229
85230 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85231
85232         * config/srclist.txt: Add glibc bug 1302.
85233
85234 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85235
85236         Change bitset word type from unsigned int to unsigned long int,
85237         as this has better performance on typical 64-bit hosts.
85238         Port bitset code to hosts with unusual word sizes.
85239         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85240         (build_collating_symbol):
85241         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85242         argument is a bitset.  This is merely a style issue, but it makes
85243         it clearer that an entire array is expected.
85244         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85245         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85246         Port to the case where bitset_word is not the same as unsigned int.
85247         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85248         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85249         Likewise.
85250         * lib/regexec.c (check_dst_limits_calc_pos_1,
85251         check_subexp_matching_top):
85252         (build_trtable, group_nodes_into_DFAstates):
85253         Likewise.
85254         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85255         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85256         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85257         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85258         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85259         * lib/regcomp.c (optimize_subexps, lower_subexp):
85260         Work even if bitset_word has holes in its bitwise representation.
85261         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85262         * lib/regexec.c (check_dst_limits_calc_pos_1,
85263         check_subexp_matching_top):
85264         Likewise.
85265         * lib/regex_internal.c (re_string_reconstruct):
85266         Don't assume UCHAR_MAX == 255.
85267         * lib/regex_internal.h (bitset_set_all): Likewise.
85268         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85269         All uses changed.
85270         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85271         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85272         All uses changed.
85273         (BITSET_WORD_MAX): New macro.
85274         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85275         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85276         (bitset_empty, bitset_copy):
85277         Prefer sizeof (bitset) to multiplying it out ourselves.
85278         (bitset_not_merge): Remove; unused.
85279         (bitset_contain): Return bool, not unsigned int with one bit on.
85280         All callers changed.
85281         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85282         alignment than re_node_set; do this by defining a new internal
85283         type struct dests_alloc and using it to allocate memory.
85284
85285 2005-09-05  Bruno Haible  <bruno@clisp.org>
85286
85287         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85288         links.
85289
85290 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85291
85292         * modules/size_max (Makefile.am): Add size_max.h
85293
85294 2005-09-04  Derek Price  <derek@ximbiot.com>
85295
85296         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85297
85298 2005-09-03  Simon Josefsson  <jas@extundo.com>
85299
85300         * gnulib-tool: Fix typo.
85301
85302 2005-09-03  Simon Josefsson  <jas@extundo.com>
85303
85304         * config/srclist.txt: Add glibc bug 1293.
85305
85306 2005-09-03  Derek Price  <derek@ximbiot.com>
85307
85308         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85309         From Larry Jones <lawrence.jones@ugs.com>.
85310
85311 2005-09-02  Simon Josefsson  <jas@extundo.com>
85312
85313         * modules/socklen: New file.
85314
85315 2005-09-02  Simon Josefsson  <jas@extundo.com>
85316
85317         * modules/havelib: New module.
85318
85319         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85320         Use havelib.
85321
85322 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         Check for arithmetic overflow when calculating sizes, to prevent
85325         some buffer-overflow issues.  These patches are conservative, in the
85326         sense that when I couldn't determine whether an overflow was possible,
85327         I inserted a run-time check.
85328         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85329         macros.
85330         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85331         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85332         (re_xnrealloc, re_x2nrealloc): New inline functions.
85333         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85334         parse_bracket_exp):
85335         (build_equiv_class, build_charclass): Check for arithmetic overflow
85336         in size expression calculations.
85337         * lib/regex_internal.c (re_string_realloc_buffers):
85338         (build_wcs_upper_buffer, re_node_set_add_intersect):
85339         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85340         (re_dfa_add_node, register_state): Likewise.
85341         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85342         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85343         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85344         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85345
85346 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85349         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85350
85351 2005-09-02  Bruno Haible  <bruno@clisp.org>
85352
85353         Support for lib vs. lib64 distinction on biarch platforms.
85354         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85355         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85357
85358 2005-09-02  Bruno Haible  <bruno@clisp.org>
85359
85360         * gnulib-tool (import): In the other first-use case, provide defaults
85361         as well.
85362
85363 2005-09-02  Bruno Haible  <bruno@clisp.org>
85364
85365         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85366         patches not yet found in the latest gettext release.
85367
85368 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85369
85370         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85371         to avoid a collision with bits/local_lim.h in glibc.
85372         All uses changed.  Problem reported by Dmitry V. Levin in
85373         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85374
85375         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85376         bugs in int versus size_t comparisons.
85377         (re_string_context_at): Fix bug where the code assumed that
85378         Idx is signed.
85379
85380         Use bool where appropriate.
85381         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85382         All callers changed.
85383         (calc_eclosure_iter): Likewise, for ROOT arg.
85384         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85385         (build_charclass_op): Likewise, for NON_MATCH arg.
85386         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85387         (re_string_construct_common): Likewise, for ICASE arg.
85388         * lib/regexec.c (re_search_2_stub, re_search_stub):
85389         Likewise, for RET_LEN arg.
85390         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85391         (set_regs): Likewise, for FL_BACKTRACK arg.
85392         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85393         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85394         (calc_eclosure_iter, parse_bracket_exp):
85395         Use bool for internal variables that are booleans.
85396         * lib/regexec.c (re_search_internal, check_matching,
85397         proceed_next_node):
85398         (set_regs, build_sifted_states, sift_states_bkref):
85399         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85400         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85401         (find_collation_sequence_value):
85402         Likewise.
85403         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85404         (re_node_set_compare):
85405         Return bool, not int. All callers changed.
85406         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85407         (build_trtable, check_node_accept): Likewise.
85408         * lib/regex_internal.h: Include stdbool.h.
85409
85410         Fix bugs uncovered when converting to bool.
85411         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85412         failure instead of charging ahead blindly.
85413         * lib/regex_internal.c (register_state): Likewise.
85414         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85415         for freeing internal storage.
85416         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85417         bitset pieces used as boolean, to avoid undefined behavior
85418         on hosts that do int overflow checking.
85419
85420 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         * config/srclist.txt: Add glibc bugs 1285-1287.
85423
85424 2005-09-01  Jim Meyering  <jim@meyering.net>
85425
85426         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85427         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85428         Require gl_STAT_MACROS, too.
85429
85430 2005-09-01  Bruno Haible  <bruno@clisp.org>
85431
85432         * gnulib-tool (import): In the first-use case, provide defaults.
85433
85434 2005-09-01  Bruno Haible  <bruno@clisp.org>
85435
85436         * gnulib-tool (func_import): Remove the .tmp files.
85437
85438 2005-09-01  Bruno Haible  <bruno@clisp.org>
85439
85440         * gnulib-tool (func_import): Fix handling of symbolic links.
85441
85442 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85445         old glibc regex code mishandles strings longer than 2**31 bytes.
85446         This patch fixes this when the regex code is used in gnulib
85447         (i.e., outside glibc).
85448
85449         This patch should not affect the use of the regex code inside
85450         glibc.  No doubt this problem also needs to be handled for glibc
85451         as well, but the result will be an incompatible change to the
85452         glibc ABI, and the old ABI will have to be supported too.  That
85453         can be the the subject for another patch.
85454
85455         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85456         governing whether the rest of this patch is active.  By default,
85457         the macro is disabled and the patch has no effect.
85458         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85459         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85460         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85461         (re_match_2, re_set_registers): Use the new types.
85462         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85463         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85464         New macros.
85465         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85466         (re_string_context_at, bin_tree_t, re_dfastate_t):
85467         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85468         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85469         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85470         (re_string_char_size_at, re_string_wchar_at):
85471         (re_string_elem_size_at):
85472         Use the new types and macros to port to 64-bit hosts.
85473         Use unsigned types for internal values, so that the code
85474         mostly works even for arrays larger than SSIZE_MAX.
85475         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85476         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85477         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85478         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85479         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85480         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85481         (calc_inveclosure, parse_dup_op, build_range_exp):
85482         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85483         (fetch_number, create_token_tree, mark_opt_subexp):
85484         Likewise.
85485         * lib/regex_internal.c (re_string_construct_common,
85486         create_ci_newstate):
85487         (create_cd_newstate, re_string_allocate, re_string_construct):
85488         (re_string_realloc_buffers, build_wcs_upper_buffer):
85489         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85490         (re_string_reconstruct, re_string_peek_byte_case):
85491         (re_string_fetch_byte_case, re_string_context_at):
85492         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85493         (re_node_set_init_copy, re_node_set_add_intersect):
85494         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85495         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85496         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85497         (re_acquire_state, re_acquire_state_context, register_state):
85498         Likewise.
85499         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85500         search_cur_bkref_entry):
85501         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85502         (re_search_internal, re_search_2_stub, re_search_stub)
85503         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85504         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85505         (update_cur_sifted_state, check_dst_limits):
85506         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85507         (check_subexp_limits, sift_states_bkref, merge_state_array):
85508         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85509         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85510         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85511         (expand_bkref_cache, check_node_accept_bytes):
85512         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85513         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85514         (acquire_init_state_context, check_halt_node_context):
85515         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85516         (sift_states_backward, clean_state_log_if_needed):
85517         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85518         (find_recover_state, transit_state_sb, transit_state_mb):
85519         (transit_state_bkref, build_trtable, match_ctx_clean):
85520         Likewise.
85521         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85522         to work around an assumption that REG_MISSING is negative.
85523
85524         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85525         (seek_collating_symbol_entry) [defined _LIBC]:
85526         (lookup_collation_sequence_value) [defined _LIBC]:
85527         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85528         Use prototypes rather than old-style function definitions.
85529         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85530         (transit_state_sb) [0]:
85531         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85532
85533         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85534         rm_eo.
85535
85536         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85537         (optimize_subexps, lower_subexp):
85538         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85539         since the signed shift might overflow.  Use 1u<<31 instead.
85540         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85541         Likewise.
85542         * lib/regexec.c (check_dst_limits_calc_pos_1,
85543         check_subexp_matching_top): Likewise.
85544
85545         * lib/regcomp.c (optimize_subexps, lower_subexp):
85546         Use CHAR_BIT rather than 8, for clarity.
85547         * lib/regexec.c (check_dst_limits_calc_pos_1):
85548         (check_subexp_matching_top): Likewise.
85549         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85550         have to worry about portability issues when shifting it left.
85551         Remove no-longer-needed test for table_size > 0.
85552         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85553         in a word, as the resulting behavior is undefined.
85554         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85555         in one case, a <= should have been an <, and in another case the
85556         whole test was missing.
85557         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85558         the standard name CHAR_BIT.
85559         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85560         this is not true on one's complement and signed-magnitude hosts.
85561
85562         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85563         next_last_offset.
85564         (struct re_dfa_t): Remove unused member states_alloc.
85565         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85566
85567 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85570         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85571         and large-file glibc and in 32-bit large-file Solaris.
85572
85573 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85574
85575         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85576         lengths fit in regoff_t; this isn't true if regoff_t is the same
85577         width as size_t.
85578         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85579         (= START + RANGE) instead of RANGE.  This avoids overflow
85580         problems when regoff_t is the same width as size_t.
85581         All callers changed.
85582         (re_search_2_stub): Check for overflow when adding the
85583         sizes of the two strings.
85584         (re_search_stub): Check for overflow when adding START
85585         to RANGE; if it occurs, substitute the extreme value.
85586
85587 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85588
85589         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85590
85591 2005-08-31  Jim Meyering  <jim@meyering.net>
85592
85593         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85594         a pointer-to-const.
85595         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85596         (register_state): Likewise.
85597         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85598         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85599         (group_nodes_into_DFAstates): Likewise.
85600
85601 2005-08-31  Jim Meyering  <jim@meyering.net>
85602
85603         * check-module: Add a FIXME comment.
85604
85605 2005-08-31  Eric Blake  <ebb9@byu.net>
85606
85607         * modules/unistd-safer (Files): Add unistd--.h.
85608         * modules/stdio-safer (Files): Add stdio--.h.
85609
85610 2005-08-31  Derek Price  <derek@ximbiot.com>
85611
85612         * lib/getdelim.c (getdelim): Return EOF on EOF.
85613         Reported by Larry Jones <lawrence.jones@ugs.com>.
85614
85615 2005-08-31  Bruno Haible  <bruno@clisp.org>
85616
85617         Avoid unnecessary diffs in the generated lib/Makefile.am.
85618         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85619         the generated files.
85620         (func_import): Don't set cmd.
85621
85622 2005-08-31  Bruno Haible  <bruno@clisp.org>
85623
85624         * lib/strstr.c: Include <stddef.h>, for NULL.
85625         * lib/strcasestr.c: Likewise.
85626         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85627
85628 2005-08-31  Bruno Haible  <bruno@clisp.org>
85629
85630         * gnulib-tool: New option --macro-prefix.
85631         (func_import): Use macro_prefix.
85632         (import): Handle option --macro-prefix.
85633
85634 2005-08-31  Bruno Haible  <bruno@clisp.org>
85635
85636         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85637         Also use new variables cached_lgpl, cached_libtool.
85638
85639 2005-08-31  Bruno Haible  <bruno@clisp.org>
85640
85641         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85642         always instantiating them.
85643
85644 2005-08-31  Bruno Haible  <bruno@clisp.org>
85645
85646         * gnulib-tool (func_import): Read the previous cached settings
85647         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85648         earlier added by gnulib but are now dropped. Warn when a gnulib file
85649         overwrites a non-gnulib file.
85650
85651 2005-08-31  Bruno Haible  <bruno@clisp.org>
85652
85653         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85654         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85655         projects that don't keep autogenerated files in CVS. Put into
85656         actioncmd only the specified modules, not the transitive closure.
85657
85658 2005-08-31  Bruno Haible  <bruno@clisp.org>
85659
85660         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85661         Create directories that shall be filled.
85662         (import): Don't look for gl_* macros in configure.ac. Recurse across
85663         all directories containing a gnulib-cache.m4 files, if meaningful.
85664
85665 2005-08-31  Bruno Haible  <bruno@clisp.org>
85666
85667         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85668         (import): Set seen_libtool when we see gl_LIBTOOL.
85669
85670 2005-08-31  Bruno Haible  <bruno@clisp.org>
85671
85672         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85673         declaration macro definitions from generated gnulib.m4.
85674
85675 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85676
85677         * lib/iconvme.h: Add prototype for iconv_alloc.
85678
85679 2005-08-29  Simon Josefsson  <jas@extundo.com>
85680
85681         * lib/iconvme.c: Fix errno.
85682
85683 2005-08-29  Bruno Haible  <bruno@clisp.org>
85684
85685         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85686         that it works when the directory contains spaces.
85687
85688 2005-08-29  Bruno Haible  <bruno@clisp.org>
85689
85690         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85691
85692 2005-08-29  Bruno Haible  <bruno@clisp.org>
85693
85694         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85695         Emit more advice.
85696
85697 2005-08-29  Bruno Haible  <bruno@clisp.org>
85698         and Stepan Kasal  <kasal@ucw.cz>
85699
85700         * check-module: If more parameters are given, check each of them
85701         separately; add more exceptions, as noted by Jim Meyering.
85702         (check_module): New procedure.
85703         (%exempt_header): Now contains all exceptions.
85704
85705 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85706
85707         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85708
85709 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85710
85711         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85712
85713 2005-08-28  Bruno Haible  <bruno@clisp.org>
85714
85715         * m4/gnulib-tool.m4: New file.
85716
85717 2005-08-27  Jim Meyering  <jim@meyering.net>
85718
85719         * modules/unistd-safer (Files): Add pipe-safer.c.
85720         * modules/fcntl-safer (Files): Add creat-safer.c.
85721
85722 2005-08-27  Jim Meyering  <jim@meyering.net>
85723
85724         * m4/stdlib-safer.m4: New file.  From coreutils.
85725         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85726         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85727         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85728         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85729         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85730
85731 2005-08-27  Jim Meyering  <jim@meyering.net>
85732
85733         * lib/fopen-safer.c: Merge minor changes from coreutils.
85734         * lib/dup-safer.c: Likewise.
85735         * lib/fd-safer.c: Likewise.
85736
85737         Merge from coreutils.
85738         * lib/stdio--.h: New file.
85739         * lib/stdlib--.h: New file.
85740         * lib/mkstemp-safer.c: New file.
85741
85742         GNU tar needs these.
85743         * lib/pipe-safer.c: New file.
85744         * lib/creat-safer.c: New file.
85745         * lib/fcntl--.h (creat): Define to creat_safer.
85746         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85747         * lib/unistd--.h (pipe): Define to pipe_safer.
85748         * lib/unistd-safer.h: Declare pipe_safer.
85749
85750 2005-08-26  Simon Josefsson  <jas@extundo.com>
85751
85752         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85753         Haible <bruno@clisp.org>.
85754
85755 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85756
85757         * lib/regex_internal.h: Remove all references to
85758         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85759         or better.
85760         (bitset_not, bitset_merge, bitset_not_merge):
85761         (bitset_mask, re_string_allocate, re_string_construct):
85762         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85763         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85764         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85765         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85766         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85767         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85768         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85769         (re_acquire_state_context):
85770         Remove unnecessary forward decls.
85771         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85772         Put __attribute at function definition,
85773         now that the function decl has been removed.
85774         * lib/regex_internal.c (re_string_peek_byte_case):
85775         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85776         Likewise.
85777
85778 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85779
85780         * m4/regex.m4: Add AC_PREREQ(2.50).
85781         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85782
85783 2005-08-25  Simon Josefsson  <jas@extundo.com>
85784
85785         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85786         __fsetlocking.
85787
85788 2005-08-25  Simon Josefsson  <jas@extundo.com>
85789
85790         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85791         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85792         GLIBC specific code.
85793
85794 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         Make regex safe for g++.  This fixes one real bug (an "err"
85797         that should have been "*err").  g++ problem reported by
85798         Sam Steingold.
85799         * lib/regex_internal.h (re_calloc): New macro, consistent with
85800         re_malloc etc.  All callers of calloc changed to use re_calloc.
85801         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85802         not int.  All callers changed.
85803         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85804         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85805         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85806         (find_recover_state): Change "err" to "*err"; this fixes what
85807         appears to be a real bug.
85808         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85809         versus int.
85810
85811 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85812
85813         * modules/regex (Depends-on): Add malloc, since the code
85814         assumes that !malloc(0) means failure.
85815
85816 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85817
85818         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85819
85820         alloca modernization/simplification for regex.
85821         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85822         needs to be at the start of the file, and can be moved into
85823         regex_internal.h and simplified.
85824         * lib/regex_internal.h: Include <alloca.h>.
85825         (__libc_use_alloca) [!defined _LIBC]: New macro.
85826         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85827         now works outside glibc.
85828
85829 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85830
85831         * config/srclist.txt: Add glibc bugs 1241, 1245.
85832
85833 2005-08-25  Jim Meyering  <jim@meyering.net>
85834
85835         * lib/open-safer.c: Include <config.h>.
85836         Otherwise, we'd lose LARGEFILE support in any file using
85837         e.g. "fcntl--.h"
85838
85839 2005-08-25  Bruno Haible  <bruno@clisp.org>
85840
85841         * m4/minmax.m4: Require autoconf 2.52.
85842         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85843         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85844         alternatives of translit over the alphabet.
85845         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85846
85847 2005-08-24  Simon Josefsson  <jas@extundo.com>
85848
85849         * tests/test-getpass.c: New file.
85850
85851 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85852
85853         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85854         for GNU regex features.
85855
85856 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85859         * lib/regex.h (regerror): Likewise.
85860
85861         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85862         requires this.  (The code never needed it.)
85863
85864         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85865         All uses of recently-renamed identifiers changed to use the new,
85866         POSIX-compliant names.  The code will build and run just fine
85867         without these changes, but it's better to eat our own dog food
85868         and use the standard-conforming names.
85869
85870         * lib/regex.h: Fix a multitude of POSIX name space violations.
85871         These changes have an effect only for programs that define
85872         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85873         do not change anything for programs compiled in the normal way.
85874         Also, there is no effect on the ABI.
85875
85876         (_REGEX_SOURCE): New macro.
85877         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85878         defined and _GNU_SOURCE is not; this fixes a name space violation.
85879
85880         Rename the following macros to obey POSIX requirements.
85881         The old names are still visible as macros if _REGEX_SOURCE is defined.
85882         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85883         RE_BACKSLASH_ESCAPE_IN_LISTS.
85884         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85885         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85886         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85887         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85888         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85889         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85890         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85891         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85892         (REG_INTERVALS): renamed from RE_INTERVALS.
85893         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85894         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85895         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85896         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85897         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85898         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85899         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85900         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85901         RE_UNMATCHED_RIGHT_PAREN_ORD.
85902         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85903         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85904         (REG_DEBUG): renamed from RE_DEBUG.
85905         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85906         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85907         unusual, since we can't clash with the POSIX REG_ICASE.
85908         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85909         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85910         (REG_NO_SUB): renamed from RE_NO_SUB.
85911         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85912         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85913         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85914         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85915         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85916         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85917         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85918         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85919         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85920         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85921         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85922         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85923         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85924         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85925         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85926         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85927         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85928         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85929         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85930         (REG_FIXED): Renamed from REGS_FIXED.
85931         (REG_NREGS): Renamed from RE_NREGS.
85932
85933         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85934         of other REG_* macros, since POSIX says the user is allowed to
85935         #undef these macros selectively.
85936
85937         (reg_errcode_t): Update comment stating what other tables need
85938         to be consistent.
85939
85940         Rename the following enum values to obey POSIX requirements.
85941         The old names are still visible as macros.
85942         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85943         is not defined, since GNU is supposed to be a superset of POSIX as
85944         much as possible, and since we want reg_errcode_t to be a signed
85945         type for implementation consistency.
85946         (_REG_NOERROR): Renamed from REG_NOERROR.
85947         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85948         (_REG_BADPAT): Renamed from REG_BADPAT.
85949         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85950         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85951         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85952         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85953         (_REG_EBRACK): Renamed from REG_EBRACK.
85954         (_REG_EPAREN): Renamed from REG_EPAREN.
85955         (_REG_EBRACE): Renamed from REG_EBRACE.
85956         (_REG_BADBR): Renamed from REG_BADBR.
85957         (_REG_ERANGE): Renamed from REG_ERANGE.
85958         (_REG_ESPACE): Renamed from REG_ESPACE.
85959         (_REG_BADRPT): Renamed from REG_BADRPT.
85960         (_REG_EEND): Renamed from REG_EEND.
85961         (_REG_ESIZE): Renamed from REG_ESIZE.
85962         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85963         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85964         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85965         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85966         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85967
85968         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85969         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85970         changed.  But support the old name if the new one is not defined
85971         and if _REGEX_SOURCE.
85972
85973         Change the following member names in struct re_pattern_buffer.
85974         The old names are still supported if !_REGEX_SOURCE.
85975         The new names are always supported, regardless of _REGEX_SOURCE.
85976         (re_buffer): Renamed from buffer.
85977         (re_allocated): Renamed from allocated.
85978         (re_used): Renamed from used.
85979         (re_syntax): Renamed from syntax.
85980         (re_fastmap): Renamed from fastmap.
85981         (re_translate): Renamed from translate.
85982         (re_can_be_null): Renamed from can_be_null.
85983         (re_regs_allocated): Renamed from regs_allocated.
85984         (re_fastmap_accurate): Renamed from fastmap_accurate.
85985         (re_no_sub): Renamed from no_sub.
85986         (re_not_bol): Renamed from not_bol.
85987         (re_not_eol): Renamed from not_eol.
85988         (re_newline_anchor): Renamed from newline_anchor.
85989
85990         Change the following member names in struct re_registers.
85991         The old names are still supported if !_REGEX_SOURCE.
85992         The new names are always supported, regardless of _REGEX_SOURCE.
85993         (rm_num_regs): Renamed from num_regs.
85994         (rm_start): Renamed from start.
85995         (rm_end): Renamed from end.
85996
85997         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85998         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85999         Prepend __ to parameter names.
86000
86001         Undo yesterday's changes.
86002
86003 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86004
86005         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86006         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86007         lib/regex.c.
86008
86009 2005-08-24  Jim Meyering  <jim@meyering.net>
86010
86011         Sync from coreutils.
86012         * m4/fcntl-safer.m4: New file.
86013
86014         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86015         and object files for this module.
86016
86017 2005-08-24  Jim Meyering  <jim@meyering.net>
86018
86019         Sync from coreutils.
86020         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86021
86022 2005-08-24  Jim Meyering  <jim@meyering.net>
86023
86024         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86025         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86026
86027 2005-08-24  Jim Meyering  <jim@meyering.net>
86028
86029         * modules/fcntl-safer: New module.
86030         * modules/fts (Depends-on): Add fcntl-safer.
86031         * MODULES.html.sh (File descriptor based Input/Output):
86032         Add fcntl-safer.
86033
86034 2005-08-24  Bruno Haible  <bruno@clisp.org>
86035
86036         Support for unit test modules.
86037         * modules/README: Mention tests modules.
86038         * modules/TEMPLATE-TESTS: New file.
86039         * gnulib-tool: New options --extract-tests-module, --with-tests and
86040         --tests-base (unused for the moment).
86041         (testsbase, inctests): New variables.
86042         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86043         (func_verify_module): Exclude TEMPLATE-TESTS.
86044         (func_verify_nontests_module, func_verify_tests_module): New functions.
86045         (func_get_dependencies): Add implicit dependency for tests modules.
86046         (func_get_tests_module): New function.
86047         (func_modules_transitive_closure): When --with-tests was specified,
86048         include the unit tests as well, unless explicitly avoided.
86049         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86050         (func_emit_tests_Makefile_am): New function.
86051         (func_create_testdir): When --with-tests was specified, emit a
86052         tests/ directory.
86053         * MODULES.html.sh (Future developments): Update.
86054
86055 2005-08-24  Bruno Haible  <bruno@clisp.org>
86056
86057         * modules/tls-tests: New file.
86058         * tests/test-tls.c: New file, from GNU gettext.
86059
86060 2005-08-24  Bruno Haible  <bruno@clisp.org>
86061
86062         * modules/lock-tests: New file.
86063         * tests/test-lock.c: New file, from GNU gettext.
86064
86065 2005-08-24  Bruno Haible  <bruno@clisp.org>
86066
86067         * lib/lock.h: Add multiple inclusion guard.
86068         * lib/tls.h: Add multiple inclusion guard.
86069
86070 2005-08-24  Bruno Haible  <bruno@clisp.org>
86071
86072         * gnulib-tool: Add support for the --aux-dir option to
86073         --create-testdir, --create-megatestdir, --test, --megatest.
86074         (func_create_testdir, func_create_megatestdir): Optionally emit a
86075         AC_CONFIG_AUX_DIR directive.
86076         (create-testdir, create-megatestdir, test, megatest): Provide a
86077         default value for $auxdir.
86078
86079 2005-08-24  Bruno Haible  <bruno@clisp.org>
86080
86081         * gnulib-tool (import): Use compound statement instead of subshell
86082         where possible.
86083
86084 2005-08-24  Bruno Haible  <bruno@clisp.org>
86085
86086         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86087
86088 2005-08-24  Bruno Haible  <bruno@clisp.org>
86089
86090         * gnulib-tool (func_version): Update.
86091
86092 2005-08-24  Bruno Haible  <bruno@clisp.org>
86093
86094         * gnulib-tool (func_import, func_create_testdir,
86095         func_create_megatestdir): Quote all autoconf macro arguments.
86096
86097 2005-08-24  Bruno Haible  <bruno@clisp.org>
86098
86099         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86100         option --force, because --force causes the aclocal.m4 of each
86101         subdirectory to be newer than the corresponding config.h.in.
86102
86103 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86106         All contents moved to gl_REGEX.
86107         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86108         assume that it does.
86109
86110 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86111
86112         * lib/regex.h (REG_NOSYS)
86113         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86114         Define, since POSIX requires it as of 2001.
86115         (_REG_ENOSYS)
86116         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86117         New private symbol, used to keep the enum signed in all cases.
86118         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86119         Youngman in
86120         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86121
86122         * lib/regex_internal.c (re_string_skip_chars, register_state):
86123         (calc_state_hash):
86124         Remove forward decls; no longer needed now that we use prototypes.
86125         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86126         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86127         (clean_state_log_if_needed): Likewise.
86128
86129 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         * config/srclist.txt: Add glibc bugs 1231-1233.
86132
86133 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86134
86135         Fix problems reported by Sam Steingold in
86136         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86137         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86138         assumed that reg_errcode_t is a signed type, which is not
86139         necessarily true if _XOPEN_SOURCE is not defined.
86140         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86141         since some compilers warn about it otherwise.
86142
86143 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86144
86145         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86146         (init_word_char, create_initial_state, duplicate_node_closure):
86147         (fetch_token, peek_token_bracket, build_range_exp):
86148         (build_collating_symbol): Remove forward decls; no longer needed
86149         now that we use prototypes.
86150
86151         * lib/regcomp.c:
86152         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86153         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86154         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86155         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86156         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86157         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86158         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86159         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86160         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86161         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86162         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86163         (build_charclass, build_charclass_op, fetch_number, create_tree):
86164         (create_token_tree, mark_opt_subexp, duplicate_tree):
86165         Use prototypes rather than old-style definitions.
86166
86167         * lib/regex_internal.c:
86168         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86169         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86170         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86171         (re_string_reconstruct, re_string_peek_byte_case):
86172         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86173         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86174         (re_node_set_init_copy, re_node_set_add_intersect):
86175         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86176         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86177         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86178         (re_acquire_state, re_acquire_state_context, register_state):
86179         (create_ci_newstate, create_cd_newstate, free_state):
86180         Likewise.
86181         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86182         re_search_2):
86183         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86184         (re_search_internal, prune_impossible_nodes):
86185         (acquire_init_state_context, check_matching, static):
86186         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86187         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86188         (update_regs, sift_states_backward, build_sifted_states):
86189         (clean_state_log_if_needed, merge_state_array):
86190         (update_cur_sifted_state, add_epsilon_src_nodes):
86191         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86192         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86193         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86194         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86195         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86196         (check_arrival, check_arrival_add_next_nodes):
86197         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86198         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86199         (check_node_accept_bytes, check_node_accept, extend_buffers):
86200         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86201         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86202         (sift_ctx_init):
86203         Likewise.
86204
86205         * lib/regex_internal.h:
86206         (re_string_allocate, re_string_construct, re_string_reconstruct):
86207         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86208         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86209         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86210         (re_string_context_at, re_string_peek_byte_case):
86211         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86212         is defined, since we now use prototypes always.
86213
86214         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86215         C89 or better.  All uses removed.
86216
86217 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86218
86219         * config/srclist.txt: Add glibc bugs 1220-1227.
86220
86221 2005-08-20  Jim Meyering  <jim@meyering.net>
86222
86223         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86224         of unused local, dfa.
86225
86226 2005-08-20  Bruno Haible  <bruno@clisp.org>
86227
86228         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86229
86230 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86233         (re_node_set_insert_last, re_dfa_add_node):
86234         Rename local variables to avoid GCC shadowing warnings.
86235
86236 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86237
86238         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86239         [defined lint]: Suppress bogus uninitialized-variable warnings.
86240
86241         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86242         and let the caller return REG_ESPACE if out of space.  This
86243         removes an uninitialied-variable warning with GCC 4.0.1, and also
86244         avoids taking the address of a local variable.  All callers
86245         changed.
86246
86247 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86248
86249         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86250         $LIBCSRC/posix/regexec.c.
86251         Add glibc bug 1217 for regcomp.c.
86252
86253 2005-08-19  Jim Meyering  <jim@meyering.net>
86254
86255         * lib/regexec.c (proceed_next_node): Redo local variables to
86256         avoid GCC shadowing warnings.
86257
86258 2005-08-18  Bruno Haible  <bruno@clisp.org>
86259
86260         * lib/strstr.c (strstr): Fix return value in multibyte case.
86261         * lib/strcasestr.c (strcasestr): Likewise.
86262
86263 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86264
86265         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86266
86267 2005-08-17  Jim Meyering  <jim@meyering.net>
86268
86269         Make the %s format (seconds since the epoch) work for a negative
86270         number and when used with a zero-padded field width, e.g. %015s.
86271
86272         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86273         label so that it precedes the code to set `digits'.  Otherwise,
86274         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86275         print `00-22'.  Now, it prints `-0022', as it should.
86276
86277 2005-08-17  Bruno Haible  <bruno@clisp.org>
86278
86279         * modules/strstr (Files): Add m4/mbrtowc.m4.
86280         (Depends-on): Add mbuiter.
86281
86282 2005-08-17  Bruno Haible  <bruno@clisp.org>
86283
86284         * modules/strcasestr: New file.
86285         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86286         strcasestr.
86287
86288 2005-08-17  Bruno Haible  <bruno@clisp.org>
86289
86290         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86291
86292 2005-08-17  Bruno Haible  <bruno@clisp.org>
86293
86294         * modules/mbuiter: New file.
86295         * MODULES.html.sh (Extended multibyte and wide character utilities):
86296         Add mbuiter.
86297
86298 2005-08-17  Bruno Haible  <bruno@clisp.org>
86299
86300         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86301         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86302
86303 2005-08-17  Bruno Haible  <bruno@clisp.org>
86304
86305         * m4/strcasestr.m4: New file.
86306
86307 2005-08-17  Bruno Haible  <bruno@clisp.org>
86308
86309         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86310         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86311
86312 2005-08-17  Bruno Haible  <bruno@clisp.org>
86313
86314         * lib/strcasestr.h: New file.
86315         * lib/strcasestr.c: New file.
86316
86317 2005-08-17  Bruno Haible  <bruno@clisp.org>
86318
86319         * lib/strcasecmp.c: Use mbuiter.h.
86320
86321 2005-08-17  Bruno Haible  <bruno@clisp.org>
86322
86323         * lib/mbuiter.h: New file.
86324
86325 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86326
86327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86328         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86329         and gl_GETOPT are both invoked via different paths (as happens
86330         with GNU tar CVS because it uses both argp and getopt), the former
86331         wins.
86332
86333 2005-08-16  Bruno Haible  <bruno@clisp.org>
86334
86335         * modules/tls: New file.
86336         * MODULES.html.sh (Multithreading): Add tls.
86337
86338 2005-08-16  Bruno Haible  <bruno@clisp.org>
86339
86340         * modules/strnlen1: New file.
86341         * MODULES.html.sh (String handling): Add strnlen1.
86342
86343 2005-08-16  Bruno Haible  <bruno@clisp.org>
86344
86345         * modules/strcase (Files): Add m4/mbrtowc.m4.
86346         (Depends-on): Add strnlen1, mbchar.
86347
86348 2005-08-16  Bruno Haible  <bruno@clisp.org>
86349
86350         * modules/mbiter: New file.
86351         * MODULES.html.sh (Extended multibyte and wide character utilities):
86352         Add mbiter.
86353
86354 2005-08-16  Bruno Haible  <bruno@clisp.org>
86355
86356         * modules/mbfile: New file.
86357         * MODULES.html.sh (Extended multibyte and wide character utilities):
86358         Add mbfile.
86359
86360 2005-08-16  Bruno Haible  <bruno@clisp.org>
86361
86362         * modules/mbchar: New file.
86363         * MODULES.html.sh (Extended multibyte and wide character utilities):
86364         New section.
86365
86366 2005-08-16  Bruno Haible  <bruno@clisp.org>
86367
86368         * m4/tls.m4: New file, from GNU gettext.
86369
86370 2005-08-16  Bruno Haible  <bruno@clisp.org>
86371
86372         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86373         always.
86374         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86375
86376 2005-08-16  Bruno Haible  <bruno@clisp.org>
86377
86378         * m4/mbiter.m4: New file.
86379
86380 2005-08-16  Bruno Haible  <bruno@clisp.org>
86381
86382         * m4/mbfile.m4: New file.
86383
86384 2005-08-16  Bruno Haible  <bruno@clisp.org>
86385
86386         * m4/mbchar.m4: New file.
86387
86388 2005-08-16  Bruno Haible  <bruno@clisp.org>
86389
86390         * lib/tls.h: New file, from GNU gettext.
86391         * lib/tls.c: New file, from GNU gettext.
86392
86393 2005-08-16  Bruno Haible  <bruno@clisp.org>
86394
86395         * lib/strnlen1.h: New file.
86396         * lib/strnlen1.c: New file.
86397
86398 2005-08-16  Bruno Haible  <bruno@clisp.org>
86399
86400         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86401         (mbi_init): Update.
86402         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86403         NUL byte, not after it.
86404
86405 2005-08-16  Bruno Haible  <bruno@clisp.org>
86406
86407         * lib/strcase.h (strcasecmp): Add note in comments.
86408         * lib/strncasecmp.c: Use code from strcasecmp.c.
86409         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86410         (strcasecmp): Work correctly in multibyte locales.
86411
86412 2005-08-16  Bruno Haible  <bruno@clisp.org>
86413
86414         * lib/mbiter.h: New file.
86415
86416 2005-08-16  Bruno Haible  <bruno@clisp.org>
86417
86418         * lib/mbfile.h: New file.
86419
86420 2005-08-16  Bruno Haible  <bruno@clisp.org>
86421
86422         * lib/mbchar.h: New file.
86423         * lib/mbchar.c: New file.
86424
86425 2005-08-16  Bruno Haible  <bruno@clisp.org>
86426
86427         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86428         the valid ones. Makes the comparison operations transitive:
86429         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86430         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86431
86432 2005-08-15  Simon Josefsson  <jas@extundo.com>
86433
86434         * modules/ssize_t (License): Change to 'unlimited'.
86435
86436         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86437
86438 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86439
86440         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86441         Add comments for each pending glibc patch.
86442
86443 2005-08-15  Bruno Haible  <bruno@clisp.org>
86444
86445         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86446         __cplusplus is defined.
86447
86448 2005-08-14  Jim Meyering  <jim@meyering.net>
86449
86450         Sync from coreutils.
86451
86452         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86453         Use the hash-table-based cycle-detection code not just when
86454         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86455         Reported by James Youngman in
86456         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86457         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86458         FTS_TIGHT_CYCLE_CHECK.
86459         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86460         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86461         once again.
86462         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86463         * lib/fts.c (fd_safer): Remove decl.
86464         Include fcntl--.h rather than unistd-safer.h
86465         (fts_safe_changedir): Don't call fd_safer; no longer needed
86466         now that we include fcntl--.h.
86467
86468 2005-08-12  Simon Josefsson  <jas@extundo.com>
86469
86470         * modules/getndelim2: Use ssize_t module.
86471         * modules/getnline: Likewise.
86472         * modules/safe-read: Likewise.
86473         * modules/xreadlink: Likewise.
86474
86475         * modules/ssize_t: New file.
86476
86477 2005-08-12  Simon Josefsson  <jas@extundo.com>
86478
86479         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86480
86481 2005-08-12  Simon Josefsson  <jas@extundo.com>
86482
86483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86484         ssize_t.
86485
86486 2005-08-12  Simon Josefsson  <jas@extundo.com>
86487
86488         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86489         readline, getdelim and check_version.
86490         (Support for systems lacking ISO C 99: Sizes of integer types):
86491         Add size_max.
86492
86493 2005-08-12  Bruno Haible  <bruno@clisp.org>
86494
86495         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86496
86497 2005-08-11  Simon Josefsson  <jas@extundo.com>
86498
86499         * modules/readline: New file.
86500
86501         * modules/strnlen (Files): Add strnlen.h.
86502
86503 2005-08-11  Simon Josefsson  <jas@extundo.com>
86504
86505         * m4/readline.m4: New file.
86506
86507 2005-08-11  Simon Josefsson  <jas@extundo.com>
86508
86509         * lib/readline.h, readline.c: New file.
86510
86511 2005-08-11  Simon Josefsson  <jas@extundo.com>
86512
86513         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86514         gl_AVOID.
86515
86516 2005-08-11  Bruno Haible  <bruno@clisp.org>
86517
86518         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86519
86520 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86521
86522         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86523
86524 2005-08-10  Simon Josefsson  <jas@extundo.com>
86525
86526         * tests/test-iconvme.c: New file.
86527
86528 2005-08-10  Simon Josefsson  <jas@extundo.com>
86529
86530         * m4/strnlen.m4: New file.
86531
86532         * m4/strndup.m4: Don't check for strnlen declaration, done in
86533         strnlen.m4.
86534
86535 2005-08-10  Simon Josefsson  <jas@extundo.com>
86536
86537         * lib/strndup.c: Use strnlen.h.
86538
86539         * lib/strnlen.h: New file.
86540
86541 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86542
86543         * README: Typos.
86544
86545 2005-08-02  Simon Josefsson  <jas@extundo.com>
86546
86547         * modules/readline: New file.
86548
86549 2005-08-02  Simon Josefsson  <jas@extundo.com>
86550
86551         * modules/getdelim: New file.
86552
86553         * modules/getline: Rewrite, don't use getndelim2.
86554
86555 2005-08-02  Simon Josefsson  <jas@extundo.com>
86556
86557         * m4/getline.m4: Separate out getdelim stuff into separate module.
86558
86559         * m4/getdelim.m4: New file.
86560
86561 2005-08-02  Simon Josefsson  <jas@extundo.com>
86562
86563         * lib/getline.h, getline.c: Rewrite.
86564
86565         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86566
86567 2005-07-31  Bruno Haible  <bruno@clisp.org>
86568
86569         * lib/lock.h (gl_lock_initializer): New macro.
86570         (gl_lock_define_initialized): Use it.
86571         (gl_rwlock_initializer): New macro.
86572         (gl_rwlock_define_initialized): Use it.
86573         (gl_recursive_lock_initializer): New macro.
86574         (gl_recursive_lock_define_initialized): Use it.
86575
86576 2005-07-30  Karl Berry  <karl@gnu.org>
86577
86578         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86579         Report from Ben Pfaff, regarding getopt.
86580
86581 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86582
86583         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86584         normal way.
86585         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86586         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86587         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86588         (gl_GETOPT): Use the new macros.  Most of the implementation
86589         is moved to the new macros.  This is for programs like Emacs
86590         that don't want all the functionality of gl_GETOPT.
86591
86592 2005-07-26  Bruno Haible  <bruno@clisp.org>
86593
86594         * m4/lock.m4: Update from GNU gettext.
86595
86596 2005-07-26  Bruno Haible  <bruno@clisp.org>
86597
86598         * lib/lock.h: Update from GNU gettext.
86599         * lib/lock.c: Update from GNU gettext.
86600
86601 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86602
86603         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86604         obsolescent AC_TRY_RUN.  Include the default includes files, for
86605         'exit'.
86606
86607 2005-07-24  Bruno Haible  <bruno@clisp.org>
86608
86609         * modules/visibility: New file.
86610         * MODULES.html.sh (Misc): Add visibility.
86611
86612 2005-07-24  Bruno Haible  <bruno@clisp.org>
86613
86614         * m4/visibility.m4: New file.
86615
86616 2005-07-24  Bruno Haible  <bruno@clisp.org>
86617
86618         * doc/visibility.texi: New file.
86619
86620 2005-07-22  Bruno Haible  <bruno@clisp.org>
86621
86622         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86623         $(ALLOCA_H), redundant through BUILT_SOURCES.
86624         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86625         redundant through BUILT_SOURCES.
86626         * modules/byteswap (Makefile.am): Remove explicit dependency on
86627         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86628         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86629         $(FNMATCH_H), redundant through BUILT_SOURCES.
86630         * modules/getopt (Makefile.am): Remove explicit dependency on
86631         $(GETOPT_H), redundant through BUILT_SOURCES.
86632         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86633         redundant through BUILT_SOURCES.
86634         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86635         redundant through BUILT_SOURCES.
86636         * modules/stdbool (Makefile.am): Remove explicit dependency on
86637         $(STDBOOL_H), redundant through BUILT_SOURCES.
86638         * modules/stdint (Makefile.am): Remove explicit dependency on
86639         $(STDINT_H), redundant through BUILT_SOURCES.
86640         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86641         Remove explicit dependency on $(SYSEXITS_H).
86642         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86643
86644 2005-07-18  Simon Josefsson  <jas@extundo.com>
86645
86646         * lib/check-version.c (check_version): Accept identical versions too.
86647
86648 2005-07-18  Bruno Haible  <bruno@clisp.org>
86649
86650         * modules/lock: New file.
86651         * MODULES.html.sh (Multithreading): New section.
86652
86653 2005-07-18  Bruno Haible  <bruno@clisp.org>
86654
86655         * m4/lock.m4: New file, from GNU gettext.
86656
86657 2005-07-18  Bruno Haible  <bruno@clisp.org>
86658
86659         * lib/lock.h: New file, from GNU gettext.
86660         * lib/lock.c: New file, from GNU gettext.
86661
86662 2005-07-18  Bruno Haible  <bruno@clisp.org>
86663
86664         * lib/lock.h (gl_once_t): New type.
86665         (gl_once_define, gl_once): New macros.
86666         * lib/lock.c (fresh_once): New variable.
86667         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86668         functions.
86669
86670 2005-07-16  Simon Josefsson  <jas@extundo.com>
86671
86672         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86673         workaround, suggested by Bruno.
86674
86675 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86676
86677         * modules/xalloc (Depends-on): Add xalloc-die.
86678         * modules/xvasprintf (Depends-on): Add xalloc-die.
86679
86680 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86683         with a minor change.
86684
86685 2005-07-15  Bruno Haible  <bruno@clisp.org>
86686
86687         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86688         When using lib/poll.c, define poll as rpl_poll.
86689
86690 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86691
86692         * modules/argp (Depends-on): Remove unlocked-io.
86693
86694 2005-07-14  Derek Price  <derek@ximbiot.com>
86695
86696         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86697         for glob symlink bug.
86698
86699 2005-07-14  Bruno Haible  <bruno@clisp.org>
86700
86701         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86702         Instead, test for *_unlocked function declarations directly.
86703
86704 2005-07-11  Simon Josefsson  <jas@extundo.com>
86705
86706         * modules/size_max: New file.
86707
86708         * modules/xsize: Depend on size_max module for size_max.m4.
86709
86710 2005-07-11  Simon Josefsson  <jas@extundo.com>
86711
86712         * lib/size_max.h: New file.
86713
86714 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86715
86716         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86717         copyright symbol and the year.
86718         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86719         (version_etc_va): Use parameterized copyright notice.
86720         Reword to conform to the current GNU coding standards.
86721
86722 2005-07-11  Karl Berry  <karl@gnu.org>
86723
86724         * doc/gnulib.texi (Quoting): new node.
86725         (Initial import): more info, from Patrice.
86726
86727 2005-07-11  Bruno Haible  <bruno@clisp.org>
86728
86729         * gnulib-tool (func_usage): Document option --avoid.
86730         (Command line options): Handle --avoid.
86731         (func_acceptable): New function.
86732         (func_modules_transitive_closure): Use it.
86733
86734 2005-07-11  Bruno Haible  <bruno@clisp.org>
86735
86736         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86737         Reported by Jim Meyering.
86738
86739 2005-07-10  Bruno Haible  <bruno@clisp.org>
86740
86741         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86742         Needed when size_t is smaller than 'unsigned int'.
86743         Reported by Paul Eggert.
86744
86745 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86746
86747         * modules/argp (Depends-on): Add unlocked-io
86748
86749 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86750
86751         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86752         block of defines.
86753
86754 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86755
86756         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86757         fix now.
86758
86759 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86760         and Paul Eggert  <eggert@cs.ucla.edu>
86761
86762         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86763         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86764
86765 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86766
86767         * modules/regex (Files): Add lib/regex_internal.c,
86768         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86769         (Depends-on): Add extensions.
86770         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86771
86772 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86775         pathconf.
86776         * m4/same.m4 (gl_SAME): Likewise.
86777         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86778
86779         * m4/regex.m4: Adjust to new libc regex implementation.
86780         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86781         all the .c and .h parts of (the new) regex.
86782         Quote the m4 stuff better.
86783         Check for RE_ICASE bug of old gnulib.
86784         Check for REG_STARTEND of recent libc.
86785         Rename local variables from jm_* to gl_*.
86786         Quote operand of "test -f".
86787         Say "recent enough" version of libc, not "version 2".
86788         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86789         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86790         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86791         Remove check for btowc, isascii.
86792         Require AM_LANGINFO_CODESET.
86793
86794 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86795
86796         * lib/regex.c, regex.h: Sync from libc.
86797         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86798         * lib/regexec.c:
86799         New files, synced from libc, except that regex_internal.h
86800         currently has a small porting fix.
86801
86802 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86803
86804         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86805         regex_internal.c, regexec.c.
86806         Add regex_internal.h too, but as a comment, since the libc version
86807         is currently broken in gnulib mode.
86808
86809 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86810
86811         Support programs like Emacs that use gnulib but not gettext.
86812         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86813         * modules/gettext-h: New file.
86814         * modules/gettext (Files): Remove lib/gettext.h.
86815         (Depends-on): Add gettext-h.
86816         (Makefile.am): Remove lib_SOURCES.
86817         * modules/argmatch, modules/c-stack, modules/closeout:
86818         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86819         * modules/execute, modules/file-type, modules/getaddrinfo:
86820         * modules/getopt, modules/human, modules/javacomp:
86821         * modules/javaexec, modules/mkdir-p, modules/obstack:
86822         * modules/openat, modules/pagealign_alloc, modules/pipe:
86823         * modules/quotearg, modules/regex, modules/rpmatch:
86824         * modules/unicodeio, modules/userspec, modules/version-etc:
86825         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86826         * modules/xsetenv:
86827         Depend on gettext-h, not gettext.
86828
86829 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86830
86831         * gnulib-tool (func_import): Add support for 'public domain' license.
86832         * modules/alloca, modules/atexit, modules/memmove:
86833         Now public domain, not GPL.
86834         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86835         * modules/realloc, modules/strerror, modules/strtod:
86836         Now LGPL, not GPL.
86837
86838 2005-07-05  Bruno Haible  <bruno@clisp.org>
86839
86840         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86841         autoconf CVS. Needed for mingw.
86842
86843 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86844
86845         Remove the dependency of the strftime module on the tzset module.
86846         * modules/strftime (Depends-on): Remove dependency on tzset.
86847
86848 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86849
86850         Remove the dependency of the strftime module on the tzset module.
86851         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86852         gl_FUNC_TZSET_CLOBBER.
86853
86854 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86855
86856         Remove the dependency of the strftime module on the tzset module.
86857         * lib/strftime.c (my_strftime)
86858         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86859         Copy the input structure, to work around some of the bug with
86860         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86861         Solaris releases, you should also use the tzset module, but we won't
86862         require it as a dependency any more since we don't want LGPLed code
86863         to depend on GPLed code.
86864
86865 2005-07-02  Jim Meyering  <jim@meyering.net>
86866
86867         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86868         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86869         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86870         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86871
86872 2005-07-02  Jim Meyering  <jim@meyering.net>
86873
86874         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86875
86876 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86877
86878         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86879         declares only 'struct timespec;' (!).
86880
86881 2005-07-01  Jim Meyering  <jim@meyering.net>
86882
86883         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86884         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86885         * lib/save-cwd.c, tempname.c:
86886         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86887         and don't include <sys/file.h>).
86888
86889 2005-06-29  Jim Meyering  <jim@meyering.net>
86890
86891         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86892         type name.  Use the variable name instead.
86893         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86894         Likewise.
86895
86896 2005-06-28  Simon Josefsson  <jas@extundo.com>
86897
86898         * modules/check-version (Files): Add check-version.m4.
86899
86900 2005-06-28  Simon Josefsson  <jas@extundo.com>
86901
86902         * m4/check-version.m4: New file, suggested by Jim Meyering
86903         <jim@meyering.net>.
86904
86905 2005-06-28  Simon Josefsson  <jas@extundo.com>
86906
86907         * lib/check-version.h, lib/check-version.c: New files.
86908
86909 2005-06-28  Simon Josefsson  <jas@extundo.com>
86910
86911         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86912         collision with global variable.  Better indentation.  Don't
86913         increment buffer pointer beyond buffer end.  Based on comments
86914         from Paul Eggert <eggert@cs.ucla.edu>.
86915
86916         * lib/base64.h: Indent.
86917
86918 2005-06-28  Simon Josefsson  <jas@extundo.com>
86919
86920         * doc/gnulib.texi (Library version handling): New section.
86921
86922 2005-06-28  Jim Meyering  <jim@meyering.net>
86923
86924         * check-module (find_included_lib_files): Hard-code another
86925         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86926         but modules/fts-lgpl (correctly) does not list those files.
86927
86928         * modules/canonicalize (Files): Add lib/pathmax.h.
86929
86930 2005-06-25  Simon Josefsson  <jas@extundo.com>
86931
86932         * modules/check-version: New file.
86933
86934 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86935
86936         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86937         initializer of struct addrinfo, as an indication that we don't
86938         care how many members the structure has.
86939
86940 2005-06-24  Derek Price  <derek@ximbiot.com>
86941         and Bruno Haible  <bruno@clisp.org>
86942
86943         Remove stat module & update lstat.
86944         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86945         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86946         * m4/stat.m4: Remove this file.
86947
86948 2005-06-24  Derek Price  <derek@ximbiot.com>
86949         and Bruno Haible  <bruno@clisp.org>
86950
86951         Remove stat module & update lstat.
86952         * lib/stat.c: Remove this file...
86953         (slash_aware_lstat): ...moving this content and its support...
86954         * lib/lstat.c (rpl_lstat): ...into here.
86955         * lib/lstat.h: New file.
86956
86957 2005-06-24  Derek Price  <derek@ximbiot.com>
86958         and Bruno Haible  <bruno@clisp.org>
86959
86960         Remove stat module & update lstat.
86961         * config/srclist.txt (libc sources): Remove stat.
86962
86963 2005-06-24  Derek Price  <derek@ximbiot.com>
86964         and Bruno Haible  <bruno@clisp.org>
86965
86966         Remove stat module & update lstat.
86967         * MODULES.html.sh (stat): Remove.
86968         * MODULES.html: Regenerated.
86969         * modules/lstat (Description): Correct function name.
86970         (Files): Add "lstat.h".
86971         (Depends-on): Remove stat, add xalloc, stat-macros.
86972         * modules/stat: Remove this file.
86973         (Include): Add "lstat.h", remove <sys/stat.h>.
86974
86975 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86976
86977         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86978         (ranged_convert): Don't save conversion in a temporary struct.
86979         This causes a warning with GCC 4.0.0, and anyway in the typical
86980         case it's not worth the extra 100 bytes or so of code.
86981         (ranged_convert, __mktime_internal): When calling a function via a
86982         pointer P, use P () rather than (*P) (), as we now assume C89 or
86983         better.
86984
86985 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86986
86987         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86988         "who -r" failed to give output.  Problem reported by Tim Waugh.
86989
86990         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86991         (xcalloc): Use it to avoid needless tests.
86992         Problem reported by Jim Meyering.
86993
86994 2005-06-20  Derek Price  <derek@ximbiot.com>
86995
86996         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86997         unnecessary for Autoconfs > 2.59c.
86998
86999 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87000
87001         * lib/argp.h (__option_is_short): Check upper limit of
87002         __key. Isprint() requires its argument to have the value
87003         of an unsigned char or EOF.
87004
87005 2005-06-16  Jim Meyering  <jim@meyering.net>
87006
87007         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87008         when either N or S is zero.
87009
87010 2005-06-16  Derek Price  <derek@ximbiot.com>
87011
87012         * m4/bison.m4: Declare YACC & YFLAGS precious.
87013
87014 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87015
87016         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87017         multibyte string or pattern, fall back on unibyte matching.
87018         Problem reported by James Youngman.
87019
87020 2005-06-08  Bruno Haible  <bruno@clisp.org>
87021
87022         * modules/csharpcomp: New file.
87023         * MODULES.html.sh (C#): Add csharpcomp.
87024
87025 2005-06-08  Bruno Haible  <bruno@clisp.org>
87026
87027         * m4/csharpcomp.m4: New file, from GNU gettext.
87028
87029 2005-06-08  Bruno Haible  <bruno@clisp.org>
87030
87031         * lib/csharpcomp.h: New file, from GNU gettext.
87032         * lib/csharpcomp.c: New file, from GNU gettext.
87033         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87034
87035 2005-06-08  Bruno Haible  <bruno@clisp.org>
87036
87037         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87038         warning on mingw.
87039
87040 2005-06-07  Derek Price  <derek@ximbiot.com>
87041
87042         Sync from CVS.
87043         * lib/glob_.h: Indent nested #ifdef.
87044
87045 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87046
87047         Sync from coreutils.
87048         Use "file name" when talking about file names, instead of "filename"
87049         or "path", as per the GNU coding standards.
87050         * lib/mkdir-p.c: Renamed from makepath.c.
87051         (make_dir_parents): Renamed from make_path.  All callers changed.
87052         * lib/mkdir-p.h: Likewise.  All includers changed.
87053         * lib/filenamecat.c: Renamed from path-concat.c.
87054         (file_name_concat): Renamed from path_concat.  All callers changed.
87055         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87056         * lib/filenamecat.h: Likewise.  All includers changed.
87057         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87058         in comments or local variable names.
87059         * lib/basename.c: Likewise.
87060         * lib/canonicalize.c, canonicalize.h: Likewise.
87061         * lib/dirname.c, dirname.h: Likewise.
87062         * lib/euidaccess.c: Likewise.
87063         * lib/exclude.c: Likewise
87064         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87065         * lib/fsusage.c, fsuage.h: Likewise.
87066         * lib/fts.c, fts_.h: Likewise.
87067         * lib/getcwd.c: Likewise.
87068         * lib/getloadavg.c: Likewise.
87069         * lib/mkstemp.c: Likewise.
87070         * lib/mountlist.c, mountlist.h: Likewise.
87071         * lib/openat.c, openat.h: Likewise.
87072         * lib/readlink-stub.c: Likewise.
87073         * lib/readutmp.c, readutmp.h: Likewise.
87074         * lib/rename.c: Likewise.
87075         * lib/rmdir.c: Likewise.
87076         * lib/same.c: Likewise.
87077         * lib/savedir.c: Likewise.
87078         * lib/stripslash.c: Likewise.
87079         * lib/tempname.c: Likewise.
87080         * lib/xreadlink.c: Likewise.
87081         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87082         All uses changed.
87083         * lib/exclude.h: Likewise.
87084
87085         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87086         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87087         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87088         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87089         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87090         files have been getting away with it for years (MORE/BSD 4.3
87091         is extinct now).
87092         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87093         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87094
87095         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87096         Define to 256, not 255, as per modern POSIX.
87097
87098 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87099
87100         Sync from coreutils.
87101         Use "file name" when talking about file names, instead of "filename"
87102         or "path", as per the GNU coding standards.
87103         * MODULES.html.sh: mkdir-p renamed from makepath.
87104         filenamecat renamed from path-concat.
87105         * modules/filenamecat: Renamed from modules/path-concat.
87106         (Files): filenamecat.h and filenamecat.c renamed from
87107         path-concat.h and path-concat.c.
87108         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87109         (Include): filenamecat.h, not path-concat.h.
87110         * modules/mkdir-p: Renamed from modules/makepath.
87111         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87112         makepath.c.
87113         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87114         (Include): mkdir-p.h, not makepath.h.
87115
87116 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87117
87118         Sync from coreutils.
87119         * m4/mkdir-p.m4: Renamed from makepath.m4.
87120         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87121         Rename files from makepath.c to mkdir-p.c, and from
87122         makepath.h to mkdir-p.h.
87123         * m4/filenamecat.m4: Renamed from path-concat.m4.
87124         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87125         Rename files from path-concat.c to filenamecat.c,
87126         and from path-concat.h to filenamecat.h.
87127         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87128         "file name" in local variables or comments.
87129         * m4/rename.m4: Likewise.
87130
87131 2005-06-01  Bruno Haible  <bruno@clisp.org>
87132
87133         * modules/csharpexec: New file.
87134         * MODULES.html.sh (C#): New section.
87135
87136 2005-06-01  Bruno Haible  <bruno@clisp.org>
87137
87138         * m4/csharp.m4: New file, from GNU gettext.
87139         * m4/csharpexec.m4: New file, from GNU gettext.
87140
87141 2005-06-01  Bruno Haible  <bruno@clisp.org>
87142
87143         * lib/csharpexec.h: New file, from GNU gettext.
87144         * lib/csharpexec.c: New file, from GNU gettext.
87145         * lib/csharpexec.sh.in: New file, from GNU gettext.
87146
87147 2005-05-31  Derek Price  <derek@ximbiot.com>
87148             Paul Eggert  <eggert@cs.ucla.edu>
87149
87150         Sync from cvs.
87151         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87152
87153 2005-05-31  Derek Price  <derek@ximbiot.com>
87154             Paul Eggert  <eggert@cs.ucla.edu>
87155
87156         Sync from cvs.
87157         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87158
87159 2005-05-29  Derek Price  <derek@ximbiot.com>
87160
87161         * config/srclist.txt (glob_.h, glob.c): Add these files.
87162
87163 2005-05-29  Derek Price  <derek@ximbiot.com>
87164
87165         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87166         * modules/glob: New file.
87167         * modules/getlogin_r: Add link to POSIX spec in description.
87168
87169 2005-05-29  Derek Price  <derek@ximbiot.com>
87170             Paul Eggert  <eggert@cs.ucla.edu>
87171
87172         * m4/glob.m4: New file.
87173
87174 2005-05-29  Derek Price  <derek@ximbiot.com>
87175             Paul Eggert  <eggert@cs.ucla.edu>
87176
87177         * lib/glob_.h, lib/glob.c: New files.
87178
87179 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87180
87181         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87182         * modules/fts-lgpl (Depends-on): Remove gettext.
87183
87184 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87185
87186         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87187         and don't require gt_INTTYPES_PRI.
87188
87189 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87190
87191         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87192
87193         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87194         the configuration hassle isn't worth it.
87195         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87196         (LONGEST_MODIFIER, PRIuMAX): Remove.
87197
87198 2005-05-27  Bruno Haible  <bruno@clisp.org>
87199
87200         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87201
87202 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87203
87204         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87205         _POSIX_PTHREAD_SEMANTICS for Solaris.
87206
87207 2005-05-25  Derek Price  <derek@ximbiot.com>
87208
87209         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87210
87211 2005-05-25  Derek Price  <derek@ximbiot.com>
87212             Paul Eggert  <eggert@cs.ucla.edu>
87213
87214         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87215         * lib/getlogin_r.c, getlogin_r.h: New files.
87216
87217 2005-05-25  Bruno Haible  <bruno@clisp.org>
87218             Derek Price  <derek@ximbiot.com>
87219
87220         * lib/getlogin_r.h: Simplify API documentation.
87221
87222 2005-05-23  Derek Price  <derek@ximbiot.com>
87223
87224         * modules/minmax (Files): Add m4/minmax.m4.
87225         (configure.ac): Add gl_MINMAX.
87226
87227 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87228
87229         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87230         so that unistd-safer.h (GPL'ed code) need not be included.
87231
87232 2005-05-22  Bruno Haible  <bruno@clisp.org>
87233
87234         * m4/minmax.m4: New file.
87235         Based on a patch by Derek Price <derek@ximbiot.com>.
87236
87237 2005-05-22  Bruno Haible  <bruno@clisp.org>
87238
87239         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87240         (INT64_MIN): Fix definition.
87241         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87242
87243         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87244         NEED_SIGNED_INT_TYPES.
87245
87246         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87247         HAVE_SYSTEM_INTTYPES.
87248
87249 2005-05-22  Bruno Haible  <bruno@clisp.org>
87250
87251         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87252         Also include <sys/param.h> if it defines MIN, MAX.
87253         Based on a patch by Derek Price <derek@ximbiot.com>.
87254
87255 2005-05-21  Jim Meyering  <jim@meyering.net>
87256
87257         * modules/fts (Files): Add m4/inttypes-pri.m4.
87258         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87259
87260 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87261
87262         New fts module.
87263         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87264         (setup_dir, free_dir): New functions.
87265         (enter_dir, leave_dir): Define trivial
87266         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87267         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87268         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87269         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87270         Move to fts-cycle.c.
87271         (fts_open): Use setup_dir.
87272         (fts_close): Use free_dir.
87273         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87274         This adds a label and some gotos, but the alternatives were messier.
87275         Check for memory allocation failure when entering a dir.
87276         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87277         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87278         (FTS): New member fts_cycle, that is a union that contains the
87279         old active_dir_ht and cycle_state.  All uses changed to mention
87280         fts_cycle.ht and fts_cycle.state.
87281         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87282         fts.c, with the following changes:
87283         (setup_dir, free_dir): New functions.
87284         (enter_dir): Now returns bool.  Return true if successful, false
87285         if memory exhausted.  All callers changed.
87286         Do not bother partly cleaning up on
87287         memory allocation failure; that is free_dir's job.
87288         However, free ad if hash_insert fails, to avoid memory leak.
87289         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87290         fts->fts_options to see which union member to use.
87291
87292 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87293
87294         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87295         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87296
87297 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87298
87299         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87300
87301 2005-05-20  Jim Meyering  <jim@meyering.net>
87302
87303         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87304         Now a macro, to pacify GCC.
87305
87306 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87307
87308         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87309         of -1.
87310
87311 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87312
87313         * lib/chown.c (rpl_chown): Return -1 on failure.
87314
87315 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87316
87317         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87318         Don't check for stddef.h.
87319         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87320         don't use its results.
87321         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87322         since we include them unconditionally.  Don't require
87323         AM_STDBOOL_H, since stdbool is a prerequisite.
87324         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87325         since we assume C89 or better.
87326         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87327         as we don't use their results.
87328         Don't check for fchdir, memmove, memset, strrchr, as we use
87329         them unconditionally.
87330         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87331         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87332
87333 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87334
87335         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87336         Include <stddef.h> unconditionally, since we assume C89 now.
87337         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87338         * lib/fts.c: Include fts_.h first, to check interface.
87339         Do not include intprops.h; no longer needed.
87340         Include cycle-check.h and hash.h, since fts_.h no longer does.
87341         Remove unnecessary casts of closedir to void.
87342         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87343         decide whether to decrement nlinks.
87344         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87345         (FTS): Use struct hash_table * instead of Hash_table, so that
87346         we no longer need to include hash.h here.
87347
87348 2005-05-18  Jim Meyering  <jim@meyering.net>
87349
87350         * modules/dirfd (License): Change to LGPL.  Most of the code
87351         is already in the public domain.
87352
87353 2005-05-18  Jim Meyering  <jim@meyering.net>
87354
87355         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87356         Reported by Yoann Vandoorselaere.
87357
87358 2005-05-17  Jim Meyering  <jim@meyering.net>
87359
87360         * m4/fts.m4: New file, from coreutils.
87361
87362 2005-05-17  Jim Meyering  <jim@meyering.net>
87363
87364         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87365
87366 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87367
87368         Sync from coreutils.
87369         * m4/unlinkdir.m4: New file.
87370
87371 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87372
87373         Sync from coreutils.
87374         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87375         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87376         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87377         White space changes only.
87378         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87379         special.
87380         * lib/yesno.c: Include getline.h, not ctype.h.
87381         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87382         Use getline to remove arbitrary restriction on response length.
87383
87384 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87385
87386         * config/srclist-update: Spell out "Street" in FSF postal
87387         mail address; this is the style the FSF seems to prefer.
87388
87389         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87390         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87391         this updates FSF postal mail address.
87392
87393         Sync from coreutils.
87394         * modules/unlinkdir: New file.
87395         * modules/yesno (Depends-on): Add getline.
87396         * MODULES.html.sh (File system functions): Add unlinkdir.
87397
87398 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87399
87400         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87401         lib/strsep.h:
87402         Change the initial comment to refer to GPL, not LGPL.
87403         gnulib-tool will change it to LGPL as needed.
87404
87405         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87406         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87407         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87408         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87409         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87410         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87411         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87412         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87413         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87414         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87415         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87416         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87417         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87418         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87419         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87420         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87421         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87422         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87423         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87424         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87425         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87426         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87427         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87428         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87429         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87430         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87431         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87432         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87433         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87434         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87435         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87436         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87437         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87438         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87439         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87440         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87441         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87442         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87443         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87444         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87445         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87446         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87447         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87448         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87449         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87450         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87451         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87452         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87453         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87454         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87455         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87456         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87457         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87458         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87459         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87460         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87461         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87462         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87463         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87464         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87465         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87466         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87467         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87468         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87469         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87470         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87471         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87472         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87473         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87474         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87475         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87476         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87477         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87478         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87479         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87480         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87481         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87482         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87483         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87484         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87485         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87486         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87487         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87488         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87489         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87490         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87491         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87492         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87493         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87494         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87495         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87496         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87497         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87498         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87499         lib/yesno.c, lib/yesno.h:
87500         Update FSF postal mail address.
87501
87502 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87505         tests/test-memmem.c, tests/test-stpncpy.c:
87506         Update FSF postal mail address.
87507
87508 2005-05-13  Bruno Haible  <bruno@clisp.org>
87509
87510         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87511         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87512         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87513         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87514         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87515         Add support for 64-bit integers in the MSVC compiler.
87516
87517 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87518
87519         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87520
87521 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87522
87523         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87524
87525 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87526
87527         * doc/getdate.texi (General date syntax): Don't say that date
87528         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87529         Problem reported by Nic Ferrier.
87530
87531 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87532
87533         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87534         specified in ai_socktype. Fix invalid ai_protocol
87535         check. ai_protocol is usually set to 0 or depending on
87536         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87537         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87538         ai_socktype / ai_protocol in the returned addrinfo structure.
87539
87540 2005-05-10  Simon Josefsson  <jas@extundo.com>
87541
87542         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87543         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87544
87545 2005-05-10  Karl Berry  <karl@gnu.org>
87546
87547         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87548         (from http://www.gnu.org/licenses).
87549         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87550         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87551         fdl.texi suffices.
87552
87553 2005-05-10  Karl Berry  <karl@gnu.org>
87554
87555         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87556         (COPYING.DOC): remove.
87557
87558         * config/srclist-update: new FSF address.
87559
87560 2005-05-10  Derek Price  <derek@ximbiot.com>
87561
87562         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87563         possible.
87564
87565 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87566             Bruno Haible  <bruno@clisp.org>
87567
87568         * modules/inet_ntop: New file.
87569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87570         inet_ntop.
87571
87572 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87573             Bruno Haible  <bruno@clisp.org>
87574
87575         * m4/inet_ntop.m4: New file.
87576
87577 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87578             Bruno Haible  <bruno@clisp.org>
87579
87580         * lib/inet_ntop.h: New file.
87581         * lib/inet_ntop.c: New file, from glibc with modifications.
87582
87583 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87584
87585         * modules/time_r (License): Change to LGPL.
87586         * modules/extensions (License): Change to LGPL.  Actually,
87587         the license is more permissive than that, but currently gnulib-tool
87588         doesn't know how to handle more-permissive licenses.
87589
87590         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87591         Problem reported by Dave Love.
87592
87593 2005-05-08  Jim Meyering  <jim@meyering.net>
87594
87595         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87596         blank.
87597
87598 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87599
87600         * modules/argmatch (Depends-on): Add stdbool.
87601         * modules/backupfile (Depends-on): Likewise.
87602         * modules/chdir-long (Depends-on): Likewise.
87603         * modules/closeout (Depends-on): Likewise.
87604         * modules/cycle-check (Depends-on): Likewise.
87605         * modules/dirname (Depends-on): Likewise.
87606         * modules/fnmatch (Depends-on): Likewise.
87607         * modules/fsusage (Depends-on): Likewise.
87608         * modules/fwriteerror (Depends-on): Likewise.
87609         * modules/getcwd (Depends-on): Likewise.
87610         * modules/getloadavg (Depends-on): Likewise.
87611         * modules/hard-locale (Depends-on): Likewise.
87612         * modules/makepath (Depends-on): Likewise.
87613         * modules/mountlist (Depends-on): Likewise.
87614         * modules/nanosleep (Depends-on): Likewise.
87615         * modules/posixtm (Depends-on): Likewise.
87616         * modules/quotearg (Depends-on): Likewise.
87617         * modules/readtokens (Depends-on): Likewise.
87618         * modules/readtokens0 (Depends-on): Likewise.
87619         * modules/readutmp (Depends-on): Likewise.
87620         * modules/save-cwd (Depends-on): Likewise.
87621         * modules/strftime (Depends-on): Likewise.
87622         * modules/userspec (Depends-on): Likewise.
87623         * modules/utimecmp (Depends-on): Likewise.
87624         * modules/xgetcwd (Depends-on): Likewise.
87625         * modules/xnanosleep (Depends-on): Likewise.
87626         * modules/xstrtod (Depends-on): Likewise.
87627         * modules/yesno (Depends-on): Likewise.
87628
87629 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87630
87631         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87632         needless checks.
87633
87634 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87635
87636         Merge from coreutils.  Among other things,
87637         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87638         * lib/fd-safer.c: New file.
87639         * lib/fcntl-safer.h, open-safer.c: Remove.
87640         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87641         * lib/dup-safer.c: Include unistd-safer.h first.
87642         Don't include errno.h.
87643         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87644         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87645         * lib/file-type.c: Rely on file-type.h change.
87646         * lib/getloadavg.c: Include unistd-safer.h.
87647         (getloadavg): Use safer open.
87648         * lib/getusershell.c: Include "stdio-safer.h".
87649         (getusershell): Use safer fopen.
87650         * lib/long-options.c (long_options): Use NULL rather than 0.
87651         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87652         'free'.
87653         * lib/modechange.c: Likewise.
87654         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87655         (MODE_DONE): New constant.
87656         (struct mode_change): Remove 'next' member.
87657         (make_node_op_equals): New function; like the old one of the
87658         same name, except it allocates an array.
87659         (mode_compile, mode_create_from_ref): Use it.
87660         (mode_compile): Allocate result as an array, not a linked list.
87661         Parse octal string ourself, so that we catch mistakes like "+0".
87662         (mode_adjust): Arg is an array, not a linked list.
87663         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87664         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87665         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87666         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87667         Remove.  This is now stat-macros.h's job.
87668         (talloc): Remove.  All callers replaced by xalloc, so that
87669         our invokers don't have to worry about reporting memory failures.
87670         (make_node_op_equals): Remove.
87671         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87672         New constants.
87673         (struct mode_change): Moved here from modechange.h.
87674         (mode_append_entry): Remove.
87675         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87676         apps to have incorrect behavior.  Use simpler algorithm for head
87677         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87678         Detect more invalid usages rather than having somewhat-random behavior.
87679         Don't insert an "a=" action, as that leads to incorrect behavior.
87680         (mode_compile, mode_create_from_ref): Return NULL on error instead
87681         of an enum, since now there's only one way to have an error.  All
87682         callers changed.
87683         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87684         at the correct time.  Simplify calculation of "+u" and its ilk.
87685         Don't mishandle "+X".
87686         (mode_free): Remove "register" and localize decls.
87687         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87688         (struct mode_change): Move to modechange.c; callers don't
87689         need to see this stuff.
87690         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87691         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87692         (mode_change, mode_adjust): Reflect the new signatures noted above.
87693         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87694         that might redefine system include files.
87695         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87696         (my_usleep): Use NULL rather than (void *) 0.
87697         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87698         Use siginterrupt to specify that system calls should be interrupted.
87699         (rpl_nanosleep): Move initialization of suspended closer to call of
87700         my_usleep.
87701         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87702         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87703         (desirable_utmp_entry): New function.
87704         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87705         using x2nrealloc, to simplify logic.
87706         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87707         size calculation.  Do not assume utmp file is a regular file.
87708         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87709         (READ_UTMP_CHECK_PIDS): New constant.
87710         * lib/save-cwd.c: Include unistd-safer.h.
87711         (save_cwd): Use fd_safer.
87712         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87713         [!_LIBC] Include "stat-macros.h" instead.
87714         * lib/unistd-safer.h (fd_safer): New decl.
87715
87716 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87717
87718         * modules/getloadavg (Depends-on): Add unistd-safer.
87719         * modules/getusershell (Depends-on): Add stdio-safer.
87720         * modules/lstat (Depends-on): Remove xalloc.
87721         * modules/mkstemp (Depends-on): Add stat-macros.
87722         * modules/modechange (Depends-on): Remove xstrtol.
87723         Add stat-macros, xalloc.
87724         * modules/save-cwd (Depends-on): Add unistd-safer.
87725         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87726         * modules/unistd-safer (Files): Add lib/fd-safer.c
87727         (Makefile.am): Remove lib_SOURCES.
87728
87729         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87730         Remove fcntl-safer; unistd-safer supersedes it.
87731
87732 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87733
87734         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87735         AC_HEADER_STAT.
87736         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87737         (gl_PREREQ_CHOWN): Remove.
87738         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87739         it.  Don't require AC_HEADER_STAT.
87740         (gl_PREREQ_LSTAT): Remove.
87741         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87742         Don't require AC_HEADER_STAT.
87743         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87744         (gl_PREREQ_RMDIR): Remove.
87745         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87746         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87747         the stat-macros module a prerequisite.
87748         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87749         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87750         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87751         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87752         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87753         variable names.
87754         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87755         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87756         variable prefixes.
87757         * m4/fcntl-safer.m4: Remove.
87758         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87759         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87760         Invoke gl_PREREQ_FD_SAFER.
87761         (gl_PREREQ_FD_SAFER): New macro.
87762         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87763         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87764         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87765         Remove duplicate call to AC_LIBOBJ(readutmp).
87766         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87767
87768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87769         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87770
87771 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87772
87773         * MODULES.html.sh (Misc): Add byteswap.
87774
87775 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87776
87777         * modules/getcwd (Depends-on): Add extensions.
87778         * modules/openat (Depends-on): Likewise.
87779
87780 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87781
87782         * modules/byteswap: New file.
87783
87784 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87785
87786         * m4/byteswap.m4: New file.
87787
87788 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87789
87790         * lib/byteswap_.h: New file.
87791
87792 2005-04-25  Karl Berry  <karl@gnu.org>
87793
87794         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87795
87796 2005-04-25  Albert Chin  <china@thewrittenword.com>
87797
87798         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87799         Toolkit C bug.
87800
87801 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87802
87803         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87804         (func_ln_if_changed): Remove forcibly for no error message
87805         in case file does not exist.
87806
87807 2005-04-19  Simon Josefsson  <jas@extundo.com>
87808
87809         * gnulib-tool (Options): Make --symlink mean --symbolic.
87810
87811 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87812
87813         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87814
87815 2005-04-16  Simon Josefsson  <jas@extundo.com>
87816
87817         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87818
87819 2005-04-15  Simon Josefsson  <jas@extundo.com>
87820
87821         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87822
87823 2005-04-15  Simon Josefsson  <jas@extundo.com>
87824
87825         * gnulib-tool: Rename --symlink to --symbolic.
87826
87827 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87828
87829         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87830         symbolic links to files instead of copying/moving.  Add --aux-dir,
87831         specifying directory relative --dir where auxiliary build tools
87832         are placed.
87833
87834 2005-04-14  Bruno Haible  <bruno@clisp.org>
87835
87836         * modules/allocsa (License): Change to LGPL.
87837         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87838
87839 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87840
87841         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87842         that "UTC +1 second" continues to work.  Problem reported
87843         by Dmitry V. Levin.
87844         (relunit_snumber): New rule.
87845         (relunit): Use it.
87846
87847 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87848
87849         * lib/getdate.y (universal_time_zone_table): New constant.
87850         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87851         universal_time_zone_table.
87852         (lookup_zone): Prefer universal_time_zone_table to
87853         local_time_zone_table, so that "GMT" time stamps are allowed in
87854         London during the summer.  Problem reported by Ian Abbott.
87855
87856 2005-04-12  Jim Meyering  <jim@meyering.net>
87857
87858         * lib/human.c (humblock): Set *options even when returning due to
87859         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87860         warning from gcc-4.
87861
87862 2005-04-09  Jim Meyering  <jim@meyering.net>
87863
87864         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87865         -Wuninitialized: initialize tm0.tm_year.
87866
87867 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87870         count, since there's no maximum.  All uses changed.
87871         Add member dsts_seen.
87872         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87873         not being INT_MAX.
87874         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87875         Use pc_rels_seen to decide whether a date is absolute.
87876
87877         * lib/getdate.y (number): Don't overwrite year.
87878         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87879         check.
87880
87881 2005-04-02  Simon Josefsson  <jas@extundo.com>
87882
87883         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87884         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87885
87886 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87887
87888         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87889         where no absolute path name can be longer than PATH_MAX.
87890
87891 2005-03-27  Jim Meyering  <jim@meyering.net>
87892
87893         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87894
87895 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87896
87897         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87898         "one's complement" -> "ones' complement" in comment, as per Knuth.
87899         "value of type" -> "type or expression" in comment.
87900         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87901
87902 2005-03-26  Jim Meyering  <jim@meyering.net>
87903
87904         Comment nits.
87905         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87906         Correct typos: s/or/of/.
87907
87908 2005-03-26  Jim Meyering  <jim@meyering.net>
87909
87910         * modules/check-include-files: Move to ../ and rename to...
87911         * check-module: ...this.
87912
87913 2005-03-25  Jim Meyering  <jim@meyering.net>
87914
87915         * modules/xvasprintf (Files): Add xalloc.h.
87916
87917 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87918
87919         * modules/gettext (Files): config/config.rpath ->
87920         build-aux/config.rpath
87921         * modules/iconv (Files): Likewise.
87922         Problem reported by Oskar Liljeblad.
87923
87924 2005-03-23  Jim Meyering  <jim@meyering.net>
87925
87926         * modules/check-include-files: New script to check for
87927         missing dependencies, multiple includes, etc.
87928
87929         * modules/c-strtold (Depends-on): Add xalloc.
87930         * modules/c-strtod (Depends-on): Add xalloc.
87931         * modules/hash (Depends-on): Add xalloc.
87932         (Files): Remove lib/xalloc.h.
87933
87934         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87935         * modules/userspec (Files): Add lib/inttostr.h.
87936
87937 2005-03-23  Jim Meyering  <jim@meyering.net>
87938
87939         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87940
87941 2005-03-22  Jim Meyering  <jim@meyering.net>
87942
87943         * modules/stat-macros: New module.
87944         * modules/canonicalize, modules/euidaccess, modules/file-type,
87945         * modules/filemode, modules/lchown, modules/makepath,
87946         * modules/rmdir, modules/stat: Depend on new stat-macros module
87947         rather than listing lib/stat-macros.h manually.
87948         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87949
87950 2005-03-22  Jim Meyering  <jim@meyering.net>
87951
87952         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87953
87954 2005-03-22  Bruno Haible  <bruno@clisp.org>
87955
87956         * config/srclist.txt: Replace target directory 'config' with
87957         'build-aux'.
87958         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87959         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87960         ../build-aux/.
87961
87962 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87963
87964         * modules/chdir-long (Depends-on): Add mempcpy.
87965
87966         * modules/acl, modules/backupfile, modules/c-strtod,
87967         modules/c-strtold, modules/canon-host, modules/canonicalize,
87968         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87969         modules/exclude, modules/exitfail, modules/file-type,
87970         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87971         modules/getdate, modules/getline, modules/getpagesize,
87972         modules/getpass, modules/getugroups, modules/group-member,
87973         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87974         modules/inttostr, modules/long-options, modules/makepath,
87975         modules/md5, modules/memcasecmp, modules/memcoll,
87976         modules/modechange, modules/mountlist, modules/path-concat,
87977         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87978         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87979         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87980         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87981         modules/strftime, modules/strndup, modules/strverscmp,
87982         modules/timespec, modules/unlocked-io, modules/userspec,
87983         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87984         modules/yesno:
87985         Remove lib_SOURCES line from Makefile.am section, as this is now
87986         done automatically by the corresponding Autoconf macro.
87987
87988 2005-03-21  Jim Meyering  <jim@meyering.net>
87989
87990         Changes imported from coreutils.
87991
87992         * lib/cycle-check.c: Don't include xalloc.h.
87993
87994         * lib/path-concat.c: Don't include assert.h.
87995         (path_concat): Remove assertion that would have triggered
87996         for ABASE starting with more than one slash.
87997         Reported by Andreas Schwab.
87998
87999         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88000         properly when ABASE is an absolute file name.
88001         Correct the description of this function.
88002         Include <assert.h>.
88003         Add an assertion and a test driver.
88004         This fixes a bug introduced on 2004-07-02.
88005         Andreas Schwab reported the resulting failure of cp --parents:
88006         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88007
88008 2005-03-21  Jim Meyering  <jim@meyering.net>
88009
88010         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88011         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88012
88013 2005-03-21  Jim Meyering  <jim@meyering.net>
88014         and  Paul Eggert  <eggert@cs.ucla.edu>
88015
88016         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88017         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88018         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88019         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88020         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88021         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88022         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88023         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88024         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88025         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88026         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88027         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88028         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88029         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88030         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88031         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88032         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88033         for these modules.
88034
88035 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88036
88037         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88038         (which shouldn't happen), generate nothing instead of returning 0
88039         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88040
88041 2005-03-16  Bruno Haible  <bruno@clisp.org>
88042
88043         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88044         HAVE_LONGLONG_64BIT.
88045
88046 2005-03-16  Bruno Haible  <bruno@clisp.org>
88047
88048         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88049         HAVE_LONGLONG_64BIT.
88050
88051 2005-03-16  Bruno Haible  <bruno@clisp.org>
88052
88053         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88054         HAVE_LONGLONG_64BIT.
88055
88056 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88057
88058         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88059         reliably distinguish strftime failure from empty output on POSIX
88060         hosts.
88061
88062 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88063
88064         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88065         (iconv_string): Don't guess a size-zero buffer, as that might cause
88066         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88067         result would be 'too large', where 'too large' is (heuristically)
88068         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88069         overflow concerns.  This will prevent some unwanted malloc failures
88070         when the inputs are very large.
88071
88072 2005-03-15  Karl Berry  <karl@gnu.org>
88073
88074         * config/srclist.txt (config.rpath): from gettext.
88075         * config/config.rpath: update.
88076
88077 2005-03-15  Bruno Haible  <bruno@clisp.org>
88078
88079         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88080         to 'negate'.
88081
88082         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88083         variable.
88084
88085         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88086         results.
88087
88088 2005-03-14  Simon Josefsson  <jas@extundo.com>
88089
88090         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88091         <fx@gnu.org>.
88092
88093 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88094
88095         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88096         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88097         intprops.h.
88098         * lib/strtol.c: Likewise.
88099
88100 2005-03-14  Jim Meyering  <jim@meyering.net>
88101
88102         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88103         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88104         to be nonzero so that we (and caller) can detect the difference
88105         between a valid zero-length expansion and an error return, even
88106         when the underlying strftime fails before writing anything into
88107         that location.
88108
88109 2005-03-14  Bruno Haible  <bruno@clisp.org>
88110
88111         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88112         Update from GNU gettext 0.14.3.
88113
88114 2005-03-10  Jim Meyering  <jim@meyering.net>
88115
88116         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88117
88118 2005-03-10  Jim Meyering  <jim@meyering.net>
88119
88120         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88121         so that this module works on systems without fchdir.
88122
88123 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         Factor int-properties macros into a single file, except for
88126         glibc-related files.
88127         * lib/intprops.h: New file.
88128         * lib/getloadavg.c: Include it instead of limits.h.
88129         (INT_STRLEN_BOUND): Remove.
88130         * lib/human.c: Include intprops.h.
88131         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88132         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88133         302/1000.
88134         * lib/inttostr.h: Include intprops.h instead of limits.h.
88135         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88136         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88137         for consistency with intprops.h.
88138         (time_t_is_integer, twos_complement_arithmetic): Use them.
88139         * lib/sig2str.h: Include <signal.h>, intprops.h.
88140         (INT_STRLEN_BOUND): Remove.
88141         * lib/strftime.c (TYPE_SIGNED): Remove.
88142         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88143         * lib/strtol.c: Adjust comments to match intprops.h.
88144         * lib/userspec.c: Include intprops.h.
88145         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88146         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88147         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88148         instead of rolling our own expressions.
88149         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88150
88151         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88152         instead of int.
88153         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88154         the right thing even if adding 1900 would overflow.  Similarly
88155         for tm_mon + 1 and tm_yday + 1.
88156         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88157         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88158         (DO_SIGNED_NUMBER): New macro.
88159         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88160
88161 2005-03-07  Bruno Haible  <bruno@clisp.org>
88162
88163         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88164
88165 2005-03-07  Bruno Haible  <bruno@clisp.org>
88166
88167         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88168
88169 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88170
88171         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88172         (func_import): Only replace files via --import when they have actually
88173         changed.
88174
88175 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88176
88177         * m4/mmap-anon.m4: New file.
88178         * m4/pagealign_alloc.m4: New file.
88179
88180 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88181             Bruno Haible  <bruno@clisp.org>
88182
88183         * modules/pagealign_alloc: New file.
88184         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88185
88186 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88187             Bruno Haible  <bruno@clisp.org>
88188
88189         * lib/pagealign_alloc.h: New file.
88190         * lib/pagealign_alloc.c: New file.
88191
88192 2005-03-03  Bruno Haible  <bruno@clisp.org>
88193
88194         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88195         Use an all-permissive copyright notice, recommended by RMS.
88196
88197 2005-03-02  Bruno Haible  <bruno@clisp.org>
88198
88199         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88200         of AIX, the replacement has to be done only after <string.h> is
88201         included, therefore not in config.h. stpncpy.h does the replacement,
88202         and stpncpy.c uses it.
88203
88204 2005-03-02  Bruno Haible  <bruno@clisp.org>
88205
88206         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88207         stpncpy.c uses it.
88208
88209 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88210
88211         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88212         The workaround isn't strictly needed for POSIX conformance, and
88213         it's too much of a pain to configure and maintain.  We'll ask
88214         people to fix their kernels instead.
88215         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88216         (NANOSLEEP_BUG_WORKAROUND): Remove.
88217         (xnanosleep): Remove the workaround.
88218
88219 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88220
88221         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88222         Reported by Derek Price.
88223         (Include): Add "timespec.h".
88224
88225         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88226
88227 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88228
88229         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88230         to detect nanosleep bug.
88231
88232 2005-03-01  Bruno Haible  <bruno@clisp.org>
88233
88234         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88235
88236 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88237
88238         * modules/gethrxtime: New file.
88239         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88240         (Depends-on): Add gethrxtime.
88241         (configure.ac): Add gl_XNANOSLEEP.
88242         (Makefile.am): Remove lib_SOURCES line.
88243
88244 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88245
88246         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88247         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88248
88249 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88250
88251         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88252         * lib/timespec.h (gettime): Return void, since it always
88253         succeeds now.  All uses changed.
88254         * lib/gettime.c (gettime): Likewise.
88255         [HAVE_NANOTIME]: Prefer nanotime.
88256         Assume gettimeofday succeeds, as POSIX requires.
88257         Assime time () succeeds, since other code already does.
88258         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88259         (timespec_subtract): Remove.
88260         (NANOSLEEP_BUG_WORKAROUND): New constant.
88261         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88262         things considerably.  Use it only on GNU/Linux hosts, since the
88263         workaround shouldn't be needed elsewhere.
88264
88265 2005-02-24  Bruno Haible  <bruno@clisp.org>
88266
88267         * modules/gettext (Files): Add m4/glibc2.m4.
88268
88269 2005-02-24  Bruno Haible  <bruno@clisp.org>
88270
88271         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88272         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88273         * m4/progtest.m4:
88274         Update from GNU gettext 0.14.2.
88275         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88276
88277 2005-02-24  Bruno Haible  <bruno@clisp.org>
88278
88279         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88280         * lib/config.charset: Update from GNU gettext 0.14.2.
88281
88282 2005-02-24  Bruno Haible  <bruno@clisp.org>
88283
88284         * lib/gettext.h: Update from GNU gettext 0.14.2.
88285
88286 2005-02-23  Simon Josefsson  <jas@extundo.com>
88287
88288         * m4/iconvme.m4: New file.
88289
88290 2005-02-23  Jim Meyering  <jim@meyering.net>
88291
88292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88293         change.
88294         Thanks to Bruno Haible for catching it.
88295
88296 2005-02-22  Simon Josefsson  <jas@extundo.com>
88297
88298         * modules/iconvme: New file.
88299
88300         * MODULES.html.sh: Add iconvme.
88301
88302 2005-02-22  Simon Josefsson  <jas@extundo.com>
88303
88304         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88305
88306 2005-02-22  Simon Josefsson  <jas@extundo.com>
88307
88308         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88309
88310 2005-02-22  Jim Meyering  <jim@meyering.net>
88311
88312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88313         s/ifndef/ifdef/.
88314
88315 2005-02-20  Neil Conway  <neilc@samurai.com>
88316
88317         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88318         returned by OSX/Darwin if the specified buffer is not large
88319         enough for the hostname.
88320
88321 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88322
88323         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88324         pass it to _help, otherwise the latter coredumps trying to
88325         dereference state.root_argp.
88326
88327 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88328
88329         * modules/chdir-long (Depends-on): Add memrchr.
88330         * modules/memrchr (Files): Add lib/memrchr.h.
88331         (Include): "memrchr.h".
88332
88333 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88334
88335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88336
88337 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88338
88339         * lib/memrchr.h: New file.
88340         * lib/chdir-long.c: Include it.
88341         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88342         Don't bother including stddef.h.
88343
88344 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88345
88346         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88347         inclusion.
88348         Include <sys/types.h>, for dev_t.
88349         (ME_DUMMY, ME_REMOTE): Move from here....
88350         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88351         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88352         Dmitry V. Levin.
88353         Include mountlist.h first, to test the interface.
88354
88355 2005-01-29  Bruno Haible  <bruno@clisp.org>
88356
88357         * lib/progname.c (program_name): Initialize.
88358         Needed when linking statically on MacOS X.
88359
88360 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88361
88362         Sync from coreutils.
88363         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88364         (Depends-on): Add c-strtod.
88365         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88366
88367 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88368
88369         Sync from coreutils.
88370         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88371
88372         Remove files that are specific to coreutils.
88373         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88374
88375 2005-01-28  Bruno Haible  <bruno@clisp.org>
88376
88377         * modules/javacomp: New file.
88378         * MODULES.html.sh (Java): Add javacomp.
88379
88380 2005-01-28  Bruno Haible  <bruno@clisp.org>
88381
88382         * m4/javacomp.m4: New file, from GNU gettext.
88383
88384 2005-01-28  Bruno Haible  <bruno@clisp.org>
88385
88386         * lib/javacomp.sh.in: New file, from GNU gettext.
88387         * lib/javacomp.h: New file, from GNU gettext.
88388         * lib/javacomp.c: New file, from GNU gettext.
88389
88390 2005-01-26  Simon Josefsson  <jas@extundo.com>
88391
88392         * lib/gai_strerror.c: Use GPL in header.
88393
88394 2005-01-26  Bruno Haible  <bruno@clisp.org>
88395
88396         * modules/javaexec: New file.
88397         * MODULES.html.sh (Java): Add javaexec.
88398
88399 2005-01-26  Bruno Haible  <bruno@clisp.org>
88400
88401         * m4/javaexec.m4: New file, from GNU gettext.
88402
88403 2005-01-26  Bruno Haible  <bruno@clisp.org>
88404
88405         * lib/javaexec.sh.in: New file, from GNU gettext.
88406         * lib/javaexec.h: New file, from GNU gettext.
88407         * lib/javaexec.c: New file, from GNU gettext.
88408
88409 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88410
88411         * modules/lchown (Depends-on): Remove lchown.h
88412
88413 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88414
88415         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88416         must be defined if the header file was not found, in order
88417         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88418
88419 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88420
88421         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88422         initializers for struct pentry_state.
88423         (__argp_error): Check return value of __asprintf
88424         (__argp_failure): Translate error message
88425
88426         * lib/argp-parse.c: Removed braces around the expansion of N_()
88427
88428 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88429
88430         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88431         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88432         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88433         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88434         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88435         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88436         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88437         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88438         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88439         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88440         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88441         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88442         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88443         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88444         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88445         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88446         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88447         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88448         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88449         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88450         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88451         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88452         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88453         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88454         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88455         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88456         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88457         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88458         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88459         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88460         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88461         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88462         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88463         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88464         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88465         Use an all-permissive copyright notice, recommended by RMS.
88466
88467 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88468
88469         * modules/chdir-long (Depends-on): Remove mempcpy.
88470
88471 2005-01-21  Jim Meyering  <jim@meyering.net>
88472
88473         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88474         same value as for Solaris 9.
88475
88476         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88477         component length.  This included changing the parameter to be
88478         of type `char *' rather than `char const *'.
88479         * lib/chdir-long.h (chdir_long): Update prototype.
88480
88481         * lib/openat.c (fdopendir, fstatat): New functions.
88482         * lib/openat.h: Include headers required for use of DIR and struct
88483         stat.
88484         [AT_SYMLINK_NOFOLLOW]: Define.
88485         (fdopendir, fstatat): Add prototypes.
88486
88487 2005-01-21  Bruno Haible  <bruno@clisp.org>
88488
88489         * modules/classpath: New file.
88490         * MODULES.html.sh (Java): Add classpath.
88491
88492 2005-01-21  Bruno Haible  <bruno@clisp.org>
88493
88494         * lib/classpath.h: New file, from GNU gettext.
88495         * lib/classpath.c: New file, from GNU gettext.
88496
88497 2005-01-20  Simon Josefsson  <jas@extundo.com>
88498
88499         * modules/version-etc-fsf: New file.
88500
88501 2005-01-20  Simon Josefsson  <jas@extundo.com>
88502
88503         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88504         * lib/version-etc.c: Remove version_etc_copyright.
88505         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88506         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88507
88508 2005-01-20  Simon Josefsson  <jas@extundo.com>
88509
88510         * lib/base64.h (isbase64): Add.
88511
88512         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88513         using a unsigned prototype, don't inline.
88514         (base64_decode): Use it.
88515
88516 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88517
88518         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88519         it.
88520
88521 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88522
88523         * lib/save-cwd.c (save_cwd): Remove code to support the case
88524         where fchdir is missing or flaky.
88525
88526 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88527
88528         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88529
88530 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88531
88532         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88533         AC_LIBSOURCES now does this.
88534         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88535         with new ullong_max module.
88536
88537 2005-01-19  Bruno Haible  <bruno@clisp.org>
88538
88539         * modules/sh-quote: New file.
88540         * MODULES.html.sh (Executing programs): Add sh-quote.
88541
88542 2005-01-19  Bruno Haible  <bruno@clisp.org>
88543
88544         * lib/sh-quote.h: New file, from GNU gettext.
88545         * lib/sh-quote.c: New file, from GNU gettext.
88546
88547 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88548
88549         Merge from coreutils.
88550         * m4/ullong_max.m4: New file.
88551         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88552         (gl_MACROS): Assume localeconv exists.
88553
88554 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88555
88556         Merge changes from coreutils, as described below in several
88557         changelogs dated today.
88558
88559         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88560         (O_DIRECTORY): Remove; not needed here, since "." must be
88561         a directory.  All uses removed.
88562         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88563         universal on Suns, and we also need to test for IRIX.
88564         Revamp code to use 'if' rather than '#if'.
88565         Avoid unnecessary comparison of cwd->desc to 0.
88566
88567         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88568         for known valid error numbers rather than observed invalid ones.
88569
88570 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88571
88572         * modules/ullong_max: New file.
88573
88574         * modules/chdir-long, modules/openat: New files.
88575         * modules/save-cwd (Depends-on): Depend on chdir-long.
88576         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88577
88578 2005-01-18  Jim Meyering  <jim@meyering.net>
88579
88580         Merge from coreutils.
88581         * m4/chdir-long.m4, m4/openat.m4: New files.
88582         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88583         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88584         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88585         is sane and DOES follow symlinks.  Besides, testing 20 different
88586         systems found no broken chown implementations.
88587         Prompted by a change in rsync's copy of this macro.
88588         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88589
88590         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88591
88592         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88593         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88594         NULL-means-set-to-current-time semantics.
88595         Remove temporary file immediately, rather than waiting
88596         for configure's at-exit trap code to do it.
88597
88598 2005-01-18  Jim Meyering  <jim@meyering.net>
88599
88600         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88601
88602         * lib/utimens.c (futimens): Account for the fact that futimes
88603         can also fail with errno == ENOSYS or errno == ENOENT.
88604         Patch from Dmitry V. Levin.
88605
88606         Change the name of the robust chdir function from chdir to chdir_long.
88607         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88608         (restore_cwd): Use chdir_long, not chdir.
88609         * lib/chdir-long.c: Renamed from chdir.c.
88610         * lib/chdir-long.h: Renamed from chdir.h.
88611         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88612         Hurd.
88613
88614 2005-01-18  Bruno Haible  <bruno@clisp.org>
88615
88616         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88617         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88618         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88619         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88620         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88621         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88622         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88623         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88624         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88625         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88626         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88627         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88628         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88629         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88630         Use an all-permissive copyright notice, recommended by RMS.
88631
88632 2005-01-18  Bob Proulx  <bob@proulx.com>
88633
88634         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88635         simplify offsetof() macro construct to avoid compile failure with
88636         native HP-UX 11.0 ANSI C compiler.
88637
88638 2005-01-17  Bruno Haible  <bruno@clisp.org>
88639
88640         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88641         redundant because stpncpy.m4 takes care of it.
88642
88643 2005-01-17  Bruno Haible  <bruno@clisp.org>
88644
88645         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88646
88647 2005-01-17  Bruno Haible  <bruno@clisp.org>
88648
88649         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88650         used.
88651
88652 2005-01-17  Bruno Haible  <bruno@clisp.org>
88653
88654         * lib/fwriteerror.h (fwriteerror): Change specification to include
88655         fclose.
88656         * lib/fwriteerror.c: Include <stdbool.h>.
88657         (fwriteerror): At the end, close the file stream. Record whether
88658         stdout was already closed.
88659
88660 2005-01-17  Bruno Haible  <bruno@clisp.org>
88661
88662         * lib/execute.c (environ): Declare if needed.
88663         * lib/pipe.c (environ): Likewise.
88664         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88665
88666 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88667
88668         * modules/argp: Depend on vsnprintf
88669
88670 2005-01-10  Jim Meyering  <jim@meyering.net>
88671
88672         * modules/closeout (Depends-on): Add atexit.
88673
88674 2005-01-06  Bruno Haible  <bruno@clisp.org>
88675
88676         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88677
88678 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88679
88680         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88681         definitions to be after all include files, to avoid collisions.
88682         Problem reported by Bob Proulx.
88683
88684 2005-01-04  Jim Meyering  <jim@meyering.net>
88685
88686         Changes imported from coreutils.
88687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88688         as the mkstemp template, use a temporary directory and an
88689         8.3-friendly template to avoid trouble on systems like DJGPP.
88690         Reported by Juan M. Guerrero via Stepan Kasal.
88691         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88692         close. Remove the temporary directory right away, rather than waiting
88693         for configure's at-exit trap code to do it.
88694         Suggestion from Stepan Kasal.
88695
88696 2005-01-01  Simon Josefsson  <jas@extundo.com>
88697
88698         * gnulib-tool: Print #include directives when --import'ing.
88699
88700 2004-12-28  Simon Josefsson  <jas@extundo.com>
88701
88702         * tests/test-base64.c: Include required header files.  Remove
88703         unused variables.
88704
88705 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88706
88707         * modules/error (Depends-on): Remove gettext.
88708
88709 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88710
88711         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88712         not needed.  This removes a dependency on the gettext module.
88713         [defined _LIBC]: Do not include <libintl.h>; not needed.
88714
88715 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88716
88717         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88718         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88719
88720 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88721
88722         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88723         HAVE_DECL_STRTOLD.
88724
88725 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88726
88727         * modules/getdate (Depends-on): Remove alloca-opt.
88728
88729 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88730
88731         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88732
88733 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88734
88735         * lib/argp-parse.c: Include <stddef.h>.
88736         (alignof, alignto): New macros.
88737         (parser_init): Don't assume that void * is aligned sufficiently
88738         for struct option.
88739
88740         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88741         need to extend the stack.
88742         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88743         large.
88744
88745 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88746
88747         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88748
88749 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88750
88751         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88752         (2004-10-24) change.  Apparently this was a false alarm.
88753
88754         * modules/getdate: Depend on alloca-opt, not alloca.
88755
88756 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88757
88758         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88759         Remove now-obsolete comment about AIX.
88760         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88761         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88762         (YYMAXDEPTH): New macro.
88763
88764 2004-12-18  Simon Josefsson  <jas@extundo.com>
88765
88766         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88767
88768 2004-12-18  Bruno Haible  <bruno@clisp.org>
88769
88770         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88771
88772 2004-12-18  Bruno Haible  <bruno@clisp.org>
88773
88774         * lib/fatal-signal.c (fatal_signals): Make non-const.
88775         (init_fatal_signals): New function.
88776         (uninstall_handlers, install_handlers): Ignore signals that were set to
88777         SIG_IGN.
88778         (at_fatal_signal): Call init_fatal_signals.
88779         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88780         SIG_IGN.
88781         Reported by Paul Eggert.
88782
88783 2004-12-18  Bruno Haible  <bruno@clisp.org>
88784
88785         * doc/alloca.texi: New file.
88786         * doc/alloca-opt.texi: New file.
88787
88788 2004-12-17  Jim Meyering  <jim@meyering.net>
88789
88790         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88791         Otherwise, install-sh could exit with improper exit status when
88792         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88793
88794 2004-12-16  Simon Josefsson  <jas@extundo.com>
88795
88796         * tests/test-base64.c: Add license.
88797
88798 2004-12-15  Stepan Kasal  <address@hidden>
88799
88800         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88801
88802 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88803
88804         * modules/getcwd (Files): Add m4/d-ino.m4.
88805         Suggested by Mark D. Baushke.
88806
88807 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88808
88809         * lib/getdate.y (textint): New member "negative".
88810         (time_zone_hhmm): New function.
88811         Expect 14 shift-reduce conflicts, not 13.
88812         (o_colon_minutes): New rule.
88813         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88814         (yylex): Set the "negative" member of signed numbers.
88815
88816 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88817
88818         * doc/getdate.texi (Time of day items, Time zone items):
88819         Describe new formats +00:00, UTC+00:00.
88820
88821 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88822
88823         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88824         spurious "-l"s.  Problem reported by Stepan Kasal.
88825
88826 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88827
88828         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88829         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88830
88831 2004-12-04  Simon Josefsson  <jas@extundo.com>
88832
88833         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88834         Vandoorselaere <yoann@prelude-ids.org>.
88835
88836 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88837
88838         Changes imported from coreutils.
88839         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88840         exist.
88841         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88842
88843 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88844
88845         Changes imported from coreutils.
88846         * lib/hard-locale.c: Assume <locale.h> exists.
88847         Include "strdup.h".
88848         (GLIBC_VERSION): New macro.
88849         (hard_locale): Assume setlocale exists.
88850         Rewrite to avoid #ifdef.
88851         Use strdup rather than malloc + strcpy.
88852         * lib/human.c: Assume <locale.h> exists.
88853         (human_readable): Assume localeconv exists.
88854
88855 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88856
88857         * modules/hard-locale (Depends-on): Add strdup.
88858
88859 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88860
88861         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88862         convert T2, not T.  (Imported from libc.)
88863
88864 2004-11-30  Simon Josefsson  <jas@extundo.com>
88865
88866         * modules/restrict (License): Change to LGPL.
88867
88868 2004-11-30  Simon Josefsson  <jas@extundo.com>
88869
88870         * m4/restrict.m4: Add copyright and copying conditions.
88871
88872 2004-11-30  Simon Josefsson  <jas@extundo.com>
88873
88874         * m4/base64.m4: New file.
88875
88876 2004-11-30  Simon Josefsson  <jas@extundo.com>
88877
88878         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88879         base64.
88880
88881         * tests/test-base64.c: New file.
88882
88883         * modules/base64: New file.
88884
88885 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88886
88887         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88888         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88889
88890         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88891
88892 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88893
88894         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88895         (__getcwd.c): Don't restore errno; glibc doesn't.
88896         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88897         first, falling back to our code only if its results look suspicious.
88898         Ensure that the resulting buffer is only as large as necessary.
88899
88900         * lib/readutmp.c: Include readutmp.h first.
88901         Include <errno.h>, since readutmp.h no longer does that.
88902         * lib/readutmp.h: Don't include <errno.h>,
88903         <sys/param.h>, <time.h>; not needed to establish interface.
88904         (errno): Remove decl.
88905         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88906         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88907         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88908
88909 2004-11-28  Simon Josefsson  <jas@extundo.com>
88910
88911         * lib/base64.h, base64.c: New file.
88912
88913 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88914
88915         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88916
88917 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88918
88919         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88920         (Depends-on): Remove pathmax, same.  Add mempcpy.
88921         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88922         (Makefile.am): Append getcwd.h to lib_SOURCES.
88923         (Include): Add getcwd.h.
88924         (Maintainer): Change from Jim Meyering to "all, glibc",
88925         since getdate now uses intended-for-glibc code.
88926         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88927         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88928
88929 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88930
88931         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88932         HP's ANSI C compiler.
88933         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88934         Declaring int functions causes warnings on some modern systems and
88935         shouldn't be needed to compile on ancient ones.
88936         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88937         defined.
88938
88939         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88940         with the following changes.
88941         (__set_errno): Parenthesize properly.
88942         Include <stdbool.h>.
88943         (MIN, MAX, MATCHING_INO): New macros.
88944         (__getcwd): Define with prototype, not K&R form.
88945         Use heuristics to allocate default buffer on stack if possible.
88946         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88947         behavior, and to avoid the PATH_MAX limit when computing
88948         ../../../../...
88949         Use MATCHING_INO to compare inode number to file.
88950         Check for arithmetic overflow in size calculations.
88951         Fix bug in reallocation of dot array that caused getcwd to fail
88952         on directories nested deeper than 75.
88953         Be more careful about saving errno on error.
88954         Do not use realloc; use only free+malloc, as this is a bit
88955         more flexible and avoids a needless copy operation.
88956         Do not inspect st_dev and st_ino for symbolic links; POSIX
88957         doesn't specify the latter.
88958         Check for closedir errors.
88959         Avoid needless casts.
88960         Use "#ifdef weak_alias" around weak_alias, to be like other
88961         glibc code.
88962         The following changes to getcwd.c have effect only when used in
88963         gnulib; they have no effect inside glibc proper.
88964         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88965         as alloca isn't used.
88966         (alloca, __alloca): Likewise.
88967         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88968         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88969         unconditionally, as gnulib assumes C89 or better.
88970         Do not include <sys/param.h>.
88971         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88972         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88973         better.
88974         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88975         Include <dirent.h> in a way that is compatible with modern Autoconf.
88976         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88977         New macros, if not already defined.
88978         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88979         Use "_LIBC", not "defined _LIBC", for consistency.
88980         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88981         a mempcpy module.
88982         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88983         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88984         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88985         credit only to Jim Meyering and adjust the copyright dates.
88986         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88987         <stdlib.h>, <unistd.h>, "pathmax.h".
88988         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88989         (INITIAL_BUFFER_SIZE): Remove.
88990         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88991
88992 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88993
88994         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88995         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88996         Use the _ONCE methods, for efficiency.
88997         Check for fcntl.h.  In test program, include <errno.h>
88998         and <fcntl.h> if available.  Remove old K&R cruft from
88999         test program.  Check for common errors in GNU/Linux,
89000         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89001         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89002         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89003         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89004         name accordingly.
89005         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89006         accommodate new getcwd.c.
89007         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89008         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89009         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89010         that's all we need now.
89011
89012 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89013
89014         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89015         argp-parse.c depends on getopt internals, that means we should
89016         always use our getopt, to be on the safe side.
89017         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89018         order not to spoil the result of an eventual previous invocation
89019         of gl_GETOPT_SUBSTITUTE.
89020
89021 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89022
89023         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89024         redefinition warnings. To avoid them, include the defines
89025         in `#if !defined __need_getopt ... #endif'. The only place
89026         where __getopt_argv_const is used is in definitions
89027         of getopt_long and getopt_long_only below, which are as well
89028         protected by `#ifndef __need_getopt'.
89029         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89030         __need_getopt after including <stdio.h> and <unistd.h> These
89031         headers might have defined it.
89032
89033 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89034
89035         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89036
89037 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89038
89039         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89040         (futimens): New function, which uses futimes if available.
89041         (futimens, utimens): Support timespec==NULL, with same semantics
89042         as utime and utimens.
89043         * lib/utimens.h (futimens): New decl.
89044
89045 2004-11-23  Jim Meyering  <jim@meyering.net>
89046
89047         * lib/getopt_.h: Remove trailing blanks.
89048
89049 2004-11-23  Jim Meyering  <jim@meyering.net>
89050
89051         * lib/__fpending.c: Add comment.
89052
89053 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89054
89055         * modules/canonicalize (Depends-on): Add xreadlink.
89056         Problem reported by James Youngman.
89057
89058 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89059
89060         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89061         New macros.
89062         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89063         optopt): Use them instead of invoking ## directly; otherwise, the
89064         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89065
89066 2004-11-19  Bruno Haible  <bruno@clisp.org>
89067
89068         * lib/strtok_r.c: Move comments from here...
89069         * lib/strtok_r.h: ... to here.
89070
89071 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89072
89073         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89074         implementations that mishandle size_t overflow.
89075
89076 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89077
89078         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89079         might fail.  Problem reported by Yoann Vandoorselaere.
89080         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89081         implementations that mishandle size_t overflow.
89082
89083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89084
89085         * modules/canon-host (Depends-on): Add strdup.
89086
89087 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89088
89089         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89090
89091 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89092
89093         * lib/canon-host.c: Include "strdup.h".
89094         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89095         Use strdup instead of malloc/strcpy to duplicate strings.
89096
89097         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89098         (human_space_before_unit): New constant.
89099         * lib/human.c (human_readable): Support it.
89100
89101         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89102         (xgetcwd): Set errno correctly when failing.
89103         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89104         the failure is actually due to a PATH_MAX problem.
89105
89106         Further getopt changes to make it more likely that glibc will
89107         buy the changes back.
89108         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89109         (getopt): Use it, so to preserve glibc semantic
89110         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89111         when compiling for libc.
89112         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89113         (getopt_long, getopt_long_only): Use it.
89114
89115         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89116         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89117         (getopt): Argv is now char * const *, as per standard.
89118         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89119         not char *__getopt_argv_const *.
89120         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89121         _getopt_long_only_r): Likewise.
89122         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89123         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89124         _getopt_long_r, _getopt_long_only_r): Likewise.
89125         * lib/getopt_.h (__getopt_argv_const): Remove.
89126         (getopt): Argv is now char * const *, as per standard.
89127
89128         * lib/getdate.y (tORDINAL): New token.
89129         (day, relunit): Allow it for relative times.
89130         (relative_time_table): Use tORDINAL for ordinals.
89131
89132 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89133
89134         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89135         Document that "second" isn't allowed as an ordinal number.
89136
89137 2004-11-16  Jim Meyering  <jim@meyering.net>
89138
89139         * modules/closeout (Depends-on): Add fpending.
89140
89141 2004-11-15  Jim Meyering  <jim@meyering.net>
89142
89143         * lib/closeout.c: Include "__fpending.h" once again.
89144         Include <stdbool.h>.
89145         (close_stdout): Don't fail just because stdout was closed initially,
89146         since some programs don't write to stdout in the normal course of
89147         operation (other than --version and --help), and we don't want this
89148         function to make e.g. `touch file >&-' fail.
89149         But do fail if it was closed and someone has tried to write to it.
89150         E.g., `printf foo >&-' must fail.
89151
89152 2004-11-13  Jim Meyering  <jim@meyering.net>
89153
89154         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89155
89156 2004-11-12  Simon Josefsson  <jas@extundo.com>
89157
89158         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89159         small doc fix is still pending.
89160
89161 2004-11-11  Simon Josefsson  <jas@extundo.com>
89162
89163         * modules/strtok_r: New file.
89164
89165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89166         strtok_r.
89167
89168 2004-11-11  Simon Josefsson  <jas@extundo.com>
89169
89170         * m4/strtok_r.m4: New file.
89171
89172         * m4/getopt.m4: Replace opterr.
89173
89174 2004-11-11  Simon Josefsson  <jas@extundo.com>
89175
89176         * lib/strtok_r.h, strtok_r.c: New file.
89177
89178 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89179
89180         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89181         of replacing opterr, getopt, etc.  This should handle the
89182         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89183
89184 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89187         we can stop lying to compilers about the constness of argv when we
89188         are compiled outside glibc.
89189         (getopt, getopt_long, getopt_long_only): Use it.
89190         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89191         _getopt_internal, getopt): Likewise.
89192         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89193         _getopt_long_only_r): Likewise.
89194         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89195         _getopt_long_r, _getopt_long_only_r): Likewise.
89196
89197         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89198         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89199         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89200         the other external symbols.
89201         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89202         declaration, since the above renaming now works around collisions.
89203
89204 2004-11-11  Jim Meyering  <jim@meyering.net>
89205
89206         * lib/linebreak.c: Remove trailing blanks.
89207         * lib/alloca_.h: Likewise.
89208         * lib/acosl.c: Likewise.
89209         * lib/euidaccess.c: Likewise.
89210         * lib/allocsa.h: Likewise.
89211
89212 2004-11-10  Simon Josefsson  <jas@extundo.com>
89213
89214         * m4/getaddrinfo.m4: New file.
89215
89216 2004-11-10  Simon Josefsson  <jas@extundo.com>
89217
89218         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89219
89220 2004-11-10  Simon Josefsson  <jas@extundo.com>
89221
89222         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89223         getaddrinfo.
89224
89225         * modules/getaddrinfo: New file.
89226
89227 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89228
89229         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89230
89231 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89232
89233         * lib/mktime.c (SHR): New macro, which is a portable
89234         substitute for >> that should work even on Crays.
89235         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89236         Problem reported by Mark D. Baushke in
89237         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89238         * lib/getdate.y (SHR): Likewise.
89239         (tm_diff): Use it.
89240         * lib/strftime.c (SHR): Likewise.
89241         (tm_diff): Use it.
89242         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89243         quote_these_too, so that right shifts are well defined.  All uses
89244         changed.
89245
89246 2004-11-10  Jim Meyering  <jim@meyering.net>
89247
89248         Ensure that no close failure goes unreported.
89249         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89250         return early when it seems there's nothing to flush.
89251         Don't include __fpending.h.
89252
89253 2004-11-10  Jim Meyering  <jim@meyering.net>
89254
89255         * modules/closeout (Depends-on): Remove fpending.
89256
89257 2004-11-10  Jim Meyering  <jim@meyering.net>
89258
89259         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89260
89261 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89262
89263         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89264         gl_FUNC_STRFTIME.
89265         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89266         and AC_REQUIRE when possible, to avoid duplicate checks.
89267         Check for <wchar.h>.
89268
89269 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89270
89271         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89272
89273 2004-11-09  Bruno Haible  <bruno@clisp.org>
89274
89275         * m4/sockpfaf.m4: New file.
89276
89277 2004-11-05  Bruno Haible  <bruno@clisp.org>
89278
89279         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89280         Reported by Mark D. Baushke <mdb@cvshome.org>.
89281
89282 2004-11-04  Bruno Haible  <bruno@clisp.org>
89283
89284         2004-09-11  Bruno Haible  <bruno@clisp.org>
89285                 * allocsa.valgrind: New file.
89286         2004-02-06  Bruno Haible  <bruno@clisp.org>
89287                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89288                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89289                 Reported by Christopher Seip <chris.seip@hp.com>.
89290
89291 2004-11-04  Bruno Haible  <bruno@clisp.org>
89292
89293         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89294         (Makefile.am): Distribute it.
89295
89296 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89297
89298         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89299         with errno == ERANGE if the buffer is too small.
89300         Problem reported by Mark D. Baushke.
89301
89302 2004-11-03  Albert Chin  <china@thewrittenword.com>
89303             Paul Eggert  <eggert@cs.ucla.edu>
89304
89305         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89306         equivalent, substitute $ac_type for equivalent type rather than
89307         blindly using uint32_t *always* which won't work if uint32_t is not
89308         available.  Define _UINT32_T to work around typedef of uint32_t if
89309         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89310         2.5.1.
89311
89312 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89313
89314         * m4/jm-macros.m4: Sync from coreutils.
89315         (gl_MACROS): Check for mbrlen, for pathchk.
89316         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89317
89318 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89319
89320         * lib/xreadlink.c (MAXSIZE): New macro.
89321         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89322         size does not exceed MAXSIZE.  Avoid cast.
89323         As suggested by Mark D. Baushke in
89324         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89325         if readlink fails with buffer size just under MAXSIZE, try again
89326         with MAXSIZE.
89327
89328 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89329
89330         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89331
89332 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89333         and  Paul Eggert  <eggert@cs.ucla.edu>
89334
89335         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89336         (get_date): Overparenthesize to avoid GCC warning.
89337
89338 2004-11-02  Bruno Haible  <bruno@clisp.org>
89339
89340         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89341         returns void.
89342
89343 2004-11-02  Bruno Haible  <bruno@clisp.org>
89344
89345         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89346         function returns void.
89347
89348 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89349
89350         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89351         fflush_unlocked, flockfile, funlockfile, funlockfile,
89352         fputs_unlocked, putc_unlocked.
89353
89354 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89355
89356         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89357         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89358         already declared.
89359
89360 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89361
89362         * modules/getdate (Files): Add doc/getdate.texi.
89363         (Depends-on): Add setenv, xalloc.
89364
89365 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89366
89367         * lib/getdate.y: Add support for TZ="foo" within a date string.
89368         Fix some bugs near time_t boundaries.  Reject dates with
89369         out-of-range components, e.g., "Sept 31".
89370         Include <stdlib.h>, "setenv.h", "xalloc.h".
89371         (ISDIGIT_LOCALE): Remove; unused.
89372         Note that the TZ and time functions used here are not reentrant.
89373         (mktime_ok, get_tz): New functions.
89374         (TZBUFSIZE): New constant.
89375         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89376         This requires that we sometimes generate our own TZ="XXX..." setting.
89377
89378 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89379
89380         * doc/getdate.texi: New file, from coreutils with modifications for
89381         the new TZ parsing.
89382
89383 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89384
89385         * lib/mktime.c (not_equal_tm): Remove redundant check.
89386
89387 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89388
89389         * modules/regex (lib_SOURCES): Add regex.c.
89390         Reported by James Youngman in
89391         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89392
89393 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89394
89395         * lib/getdate.y: Use Bison 1.875 features, and some minor
89396         code cleanups.  This change does not affect semantics.
89397         Don't include <stdlib.h>; no longer needed.
89398         Don't include unlocked-io.h; only the "#if TEST" code uses
89399         stdio, and performance isn't crucial there.
89400         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89401         Bison 1.875 features as described below.
89402         All uses of "PC." replaced by "pc->".
89403         (YYSTYPE): Add a forward declaration.
89404         (yylex, yyerror): Use full prototypes in forward decls.
89405         Use "%pure-parser" rather than obsolescent "%pure_parser".
89406         Use %parse-param and %lex-param instead of obsolescent
89407         YYPARSE_PARAM and YYLEX_PARAM.
89408         (meridian_table, month_and_day_table, time_units_table,
89409         relative_time_table, time_zone_table, military_table,
89410         lookup_zone, lookup_word, get_date):
89411         Use NULL instead of 0 where appropriate.
89412         (to_hour): Avoid abort (), to avoid a dependency on
89413         stdlib.h.
89414         (yyerror, yylex): Now accepts parser_control * arg.
89415         (main) [TEST]: Use '\0' rather than 0 for char.
89416
89417 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89418
89419         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89420
89421 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89422
89423         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89424         It's now the caller's responsibility to handle the case where
89425         !HAVE_GETPAGESIZE && !defined getpagesize.
89426
89427         * lib/mktime.c (leapyear): Arg is long int, not int.
89428
89429 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89430
89431         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89432
89433 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89434
89435         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89436         missing.  Problem reported by James Youngman.
89437
89438 2004-10-16  Simon Josefsson  <jas@extundo.com>
89439
89440         * gnulib-tool: Fix comments.  Fix parse problem.
89441         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89442
89443 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89444
89445         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89446         implementation of getopt_long.  Problem reported by Alexander Taler in:
89447         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89448
89449 2004-10-15  Bruno Haible  <bruno@clisp.org>
89450
89451         * gnulib-tool: Untabify. Initialize supplied_libname.
89452         (func_usage): More homogenous output.
89453         (func_modules_transitive_closure, func_modules_to_filelist,
89454         func_emit_lib_Makefile_am): New functions.
89455         (func_import): New function, extracted from big case statement. Use
89456         func_get_license, func_modules_transitive_closure,
89457         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89458         opt_lgpl. Don't use test -a, as it's not portable.
89459         (func_create_testdir): Use func_modules_transitive_closure,
89460         func_modules_to_filelist, func_emit_lib_Makefile_am.
89461
89462 2004-10-15  Bruno Haible  <bruno@clisp.org>
89463
89464         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89465
89466 2004-10-15  Bruno Haible  <bruno@clisp.org>
89467
89468         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89469         the portions belonging to each module.
89470         Suggested by Derek Robert Price <derek@ximbiot.com>.
89471
89472 2004-10-12  Simon Josefsson  <jas@extundo.com>
89473
89474         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89475         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89476         to real functions.
89477
89478 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89479
89480         * modules/vsnprintf: New file.
89481
89482 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89483
89484         * m4/vsnprintf.m4: New file.
89485
89486 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89487
89488         * lib/vsnprintf.h: New file.
89489         * lib/vsnprintf.c: New file.
89490
89491 2004-10-11  Bruno Haible  <bruno@clisp.org>
89492
89493         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89494         vsnprintf.
89495
89496 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89497
89498         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89499
89500 2004-10-07  Bruno Haible  <bruno@clisp.org>
89501
89502         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89503         fits into the provided buffer.
89504
89505 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89506
89507         * lib/diacrit.c, diacrit.h: Add GPL notice.
89508
89509         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89510         notice.
89511         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89512         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89513         This avoids a potential constant-folding bug.
89514
89515 2004-10-05  Bruno Haible  <bruno@clisp.org>
89516
89517         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89518         for the declaration of strsep.
89519
89520 2004-10-05  Bruno Haible  <bruno@clisp.org>
89521
89522         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89523
89524 2004-10-04  Simon Josefsson  <jas@extundo.com>
89525
89526         * modules/memmem: New file.
89527         * tests/test-memmem.c: New file.
89528         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89529
89530 2004-10-04  Simon Josefsson  <jas@extundo.com>
89531
89532         * m4/memmem.m4: New file.
89533
89534 2004-10-04  Simon Josefsson  <jas@extundo.com>
89535
89536         * lib/memmem.h: New file.
89537         * lib/memmem.c: New file, taken from glibc.
89538
89539 2004-10-04  Simon Josefsson  <jas@extundo.com>
89540
89541         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89542         '#ifdef USE_UNLOCKED_IO'.
89543
89544 2004-10-04  Simon Josefsson  <jas@extundo.com>
89545
89546         * config/srclist.txt: Add memmem from glibc.
89547
89548 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89549
89550         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89551
89552         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89553         modules/exclude, modules/getdate, modules/getline,
89554         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89555         modules/getusershell, modules/linebuffer, modules/md5,
89556         modules/mountlist, modules/posixtm, modules/readtokens,
89557         modules/readutmp, modules/regex, modules/sha1,
89558         modules/version-etc, modules/yesno:
89559         Remove dependency on unlocked-io.
89560
89561 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89562
89563         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89564
89565         * m4/unlocked-io.m4: Add copyright notice.
89566         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89567
89568 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89569
89570         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89571         * lib/xmalloc.c (xmemdup): Likewise.
89572         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89573         XFREE): Remove these long-obsolescent macros.
89574         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89575         * lib/xstrdup.c: Remove.
89576
89577         * lib/regex.c (re_comp): Cast gettext return value to char *,
89578         Problem reported by Martin Neitzel via Mark D. Baushke.
89579
89580 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89581
89582         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89583         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89584         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89585         regex.c, sha1.c, version-etc.c, yesno.c:
89586         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89587         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89588         the includer's responsibility.
89589
89590         Sync from coreutils.
89591
89592         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89593         points to the start of a string, as the C Standard says the
89594         resulting behavior is undefined.
89595
89596         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89597         simple -> simple_backups, numbered_existing ->
89598         numbered_existing_backups, numbered -> numbered_backups
89599         to avoid shadowing problems.  All uses changed.
89600         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89601         * lib/backupfile.c (check_extension, numbered_backup):
89602         Rename locals to avoid shadowing 'basename'.
89603         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89604         once.
89605
89606         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89607         * lib/.cvsignore: Add getopt.h.
89608
89609 2004-10-04  Bruno Haible  <bruno@clisp.org>
89610
89611         * modules/README: New file.
89612         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89613         not a module.
89614
89615 2004-10-02  Jim Meyering  <jim@meyering.net>
89616
89617         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89618
89619 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89620
89621         * modules/strsep: New file.
89622
89623 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89624
89625         * m4/strsep.m4: New file.
89626
89627 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89628
89629         * lib/strsep.h: New file.
89630         * lib/strsep.c: New file.
89631
89632 2004-10-01  Simon Josefsson  <jas@extundo.com>
89633
89634         * lib/snprintf.c (snprintf): Handle size==0.
89635
89636 2004-10-01  Simon Josefsson  <jas@extundo.com>
89637             Bruno Haible  <bruno@clisp.org>
89638
89639         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89640         (snprintf): Declare 'args'.
89641
89642 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89643
89644         * lib/snprintf.c: Remove comments as to why each header is needed.
89645
89646 2004-10-01  Bruno Haible  <bruno@clisp.org>
89647
89648         * MODULES.html.sh: Add strsep.
89649
89650 2004-09-30  Simon Josefsson  <jas@extundo.com>
89651
89652         * modules/snprintf: New file.
89653
89654 2004-09-30  Simon Josefsson  <jas@extundo.com>
89655
89656         * m4/snprintf.m4: New file.
89657
89658 2004-09-30  Simon Josefsson  <jas@extundo.com>
89659
89660         * lib/snprintf.h, lib/snprintf.c: New files.
89661
89662 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89663
89664         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89665         (hol_entry_help): Never translate an empty string.
89666         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89667         * lib/argp.h (OPTION_NO_TRANS): New option.
89668
89669 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89670
89671         * modules/argp (Maintainer): Replace Simon Josefsson
89672         by Sergey Poznyakoff.
89673
89674 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89675
89676         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89677         changes merged back into glibc.
89678
89679 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89680
89681         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89682
89683 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89684
89685         * lib/xvasprintf.c: Include xalloc.h.
89686         (xvasprintf): Use xalloc_die, not xmalloc_die.
89687
89688 2004-09-29  Bruno Haible  <bruno@clisp.org>
89689
89690         * modules/alloca-opt: New file, derived from modules/alloca.
89691         * modules/allocsa: Depend on alloca-opt instead of alloca.
89692         * modules/setenv: Likewise.
89693         * modules/vasnprintf: Likewise.
89694         * MODULES.html.sh: Add alloca-opt.
89695
89696 2004-09-28  Simon Josefsson  <jas@extundo.com>
89697
89698         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89699         LGPL, and to replace license template from GPL to LGPL.
89700
89701 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89702
89703         * modules/dummy: Change license to LGPL.
89704
89705 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89706
89707         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89708
89709 2004-09-24  Simon Josefsson  <jas@extundo.com>
89710
89711         * modules/minmax (License): Change from GPL to LGPL.
89712
89713 2004-09-23  Simon Josefsson  <jas@extundo.com>
89714
89715         * gnulib-tool (--import): Typo.
89716
89717 2004-09-23  Simon Josefsson  <jas@extundo.com>
89718
89719         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89720
89721 2004-09-22  Bruno Haible  <bruno@clisp.org>
89722
89723         * modules/*: Add 'License' field.
89724         * gnulib-tool: Accept --extract-license option.
89725         (func_get_license): New function.
89726
89727 2004-09-21  Bruno Haible  <bruno@clisp.org>
89728
89729         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89730         Reported by Simon Josefsson.
89731
89732 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89733
89734         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89735         gl_AC_TYPE_LONG_LONG.
89736
89737 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89738
89739         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89740
89741 2004-09-18  Simon Josefsson  <jas@extundo.com>
89742         and  Paul Eggert  <eggert@cs.ucla.edu>
89743
89744         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89745         calls with autoreconf.  Define GL_LIB.
89746
89747 2004-09-14  Karl Berry  <karl@gnu.org>
89748
89749         * config/srclist.txt: unsync setenv.c, sigh.
89750
89751 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89752
89753         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89754         Problem reported by Bruno Haible in:
89755         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89756
89757 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89758
89759         * config/srclist.txt: Comment out argp-pvh.c.
89760
89761 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89762
89763         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89764         in case some system header has #define'd it.  Problem reported by
89765         Soeren D. Schulze in
89766         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89767
89768 2004-09-09  Karl Berry  <karl@gnu.org>
89769
89770         * regex.[ch]: delete from the root.  These were supposed to be
89771                 synced with emacs cvs, but this has not happened for about
89772                 a year, and anyway nothing else uses emacs regex.[ch].
89773                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89774                 lib/regex[.ch] is untouched.
89775
89776 2004-09-09  Bruno Haible  <bruno@clisp.org>
89777
89778         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89779
89780 2004-09-09  Bruno Haible  <bruno@clisp.org>
89781
89782         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89783         modifications.
89784         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89785
89786 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89787
89788         * modules/xvasprintf: New file.
89789         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89790
89791 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89792
89793         * lib/xvasprintf.h: New file.
89794         * lib/xvasprintf.c: New file.
89795         * lib/xasprintf.c: New file.
89796
89797 2004-09-08  Bruno Haible  <bruno@clisp.org>
89798
89799         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89800
89801 2004-09-08  Bruno Haible  <bruno@clisp.org>
89802
89803         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89804         length is > INT_MAX.
89805         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89806         more.
89807
89808 2004-09-08  Bruno Haible  <bruno@clisp.org>
89809
89810         * lib/stdint_.h: New file, taken from GNU clisp.
89811
89812 2004-09-08  Bruno Haible  <bruno@clisp.org>
89813             Oskar Liljeblad  <oskar@osk.mine.nu>
89814
89815         * modules/stdint: New file.
89816         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89817
89818 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89819
89820         Import from coreutils.
89821         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89822         strings on unbounded length.  alloca's performance benefits aren't
89823         that important here.
89824         (V_STRDUP): Remove.
89825         (parse_with_separator): New function, with most of the internals
89826         of the old parse_user_spec.  Allow user to omit both user and group,
89827         for compatibility with FreeBSD.
89828         Clone only the user name, not the entire spec.
89829         Do not set *uid, *gid unless entirely successful.
89830         Avoid memory leak in some failing cases.
89831         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89832         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89833         (parse_user_spec): Rewrite to use parse_with_separator.
89834
89835 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89836
89837         * modules/userspec: Don't depend on alloca.
89838
89839 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89840
89841         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89842
89843 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89844
89845         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89846         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89847         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89848
89849 2004-08-16  Simon Josefsson  <jas@extundo.com>
89850
89851         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89852         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89853         Add --dry-run for --import.
89854         Let user provided command line parameters override configure.ac
89855         settings.
89856
89857 2004-08-12  Simon Josefsson  <jas@extundo.com>
89858
89859         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89860         as discussed with Paul Eggert in threads rooted at
89861         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89862         and
89863         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89864         Before, the test was empty, and relied on ELIDE_CODE in source
89865         code.)
89866         (gl_PREREQ_GETOPT): New macro.
89867         (gl_GETOPT): Use them.
89868
89869 2004-08-12  Simon Josefsson  <jas@extundo.com>
89870
89871         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89872         * lib/getopt_.h: Renamed from getopt.h.
89873
89874 2004-08-12  Simon Josefsson  <jas@extundo.com>
89875
89876         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89877         Change default library name from libfoo to libgnu.
89878         Now, if you have a configure.ac that says:
89879                 gl_SOURCE_BASE(gl)
89880                 gl_M4_BASE(gl/m4)
89881                 gl_MODULES(error getopt etcetera)
89882                 gl_INIT
89883         you can import all you need by running:
89884                 ../gnulib/gnulib-tool --import
89885
89886         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89887         (Makefile.am): Rewrite, use logic from argz.
89888         (Include): Use <getopt.h> instead of "getopt.h".
89889
89890 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89891
89892         * modules/argp (Files): Add m4/unlocked-io.m4.
89893         (Depends-on): Add extensions.
89894
89895 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89896
89897         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89898         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89899         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89900         Check for program_invocation_name, program_invocation_short_name,
89901         flockfile, funlockfile, features.h, _getopt_long_only_r.
89902
89903 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89904
89905         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89906         its complicated substitute.
89907         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89908         and program_invocation_name.
89909         (__argp_basename) [!_LIBC]: Remove; the only use was
89910         replaced by its body.
89911         (__argp_short_program_name): Change condition from
89912         !defined __argp_short_program_name to
89913         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89914         to match argp-namefrob.h.
89915         (__argp_failure): Don't assume strerror_r returns char *.
89916         * lib/argp-parse.c (N_): Define unconditionally.
89917         (argp_default_options): Fill out initializers with 0 to avoid
89918         gcc warnings.
89919
89920 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89921
89922         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89923         getopt1.c.
89924
89925 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89926
89927         Merge from coreutils.
89928
89929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89930
89931         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89932         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89933
89934 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89935
89936         Merge from coreutils.
89937
89938         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89939         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89940         for Reliant Unix 5.43.
89941
89942         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89943         (union fooround): Use uintmax_t, not long int.
89944         The rest is a merge from libc:
89945         [defined _LIBC]: Include <shlib-compat.h>.
89946         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89947
89948         * lib/settime.c (settime): Recode to avoid warning with
89949         Sun Forte C 6U2.
89950
89951         * lib/strverscmp.c: Convert to UTF-8.
89952
89953 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89954
89955         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89956         m4/uintmax_t.m4.
89957
89958 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89959
89960         * modules/xalloc-die: New file.
89961         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89962
89963         * modules/md5 (Files): Add m4/uint32_t.m4.
89964         * modules/sha1: Renamed from modules/sha.
89965         (Files):
89966         Rename lib/sha.h to lib/sha1.h.
89967         Rename lib/sha.c to lib/sha1.c.
89968         Rename m4/sha.m4 to m4/sha1.m4.
89969         (lib_SOURCES): Likewise.
89970         (configure.ac): Rename gl_SHA to gl_SHA1.
89971         (Include): sha.h -> sha1.h.
89972
89973 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89974
89975         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89976         * m4/sha1.m4: Renamed from sha.m4.
89977         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89978
89979 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89980
89981         * lib/obstack.h (obstack_empty_p):
89982         Don't assume that chunk->contents is suitably aligned.
89983         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89984         Likewise. Problem reported by Benno in
89985         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89986
89987         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89988         readable.  This could be improved further but it'd take some work.
89989
89990 2004-08-08  Simon Josefsson  <jas@extundo.com>
89991
89992         * modules/xgethostname (Depends-on): Remove exit and error (not
89993         used).
89994
89995         * modules/getpass-gnu: Add getpass.h.
89996         (Depends-on): Add stdbool.
89997         * modules/getpass: Add getpass.h.
89998
89999 2004-08-08  Simon Josefsson  <jas@extundo.com>
90000
90001         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90002         Check getpass declaration.
90003
90004 2004-08-08  Simon Josefsson  <jas@extundo.com>
90005
90006         * lib/xgethostname.c: Don't include error.h (not used).
90007
90008         * lib/getpass.h: Add.
90009         * lib/getpass.c: Include getpass.h first.
90010
90011 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90012
90013         * lib/xalloc-die.c: New file.
90014         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90015         All uses removed.
90016         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90017         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90018         xalloc-die.c.
90019         (_, N_, xalloc_die): Move to xalloc-die.c.
90020         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90021         so that we needn't mess with xalloc_msg_memory_exhausted.
90022
90023         * lib/sha1.h: Renamed from sha.h.
90024         (SHA1_H): Renamed from _SHA_H.
90025         (sha1_ctx): Renamed from sha_ctx.
90026         (sha1_init_ctx): Renamed from sha_init_ctx.
90027         (sha1_process_block): Renamed from sha_process_block.
90028         (sha1_process_bytes): Renamed from sha_process_bytes.
90029         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90030         (sha1_read_ctx): Renamed from sha_read_ctx.
90031         (sha1_stream): Renamed from sha_stream.
90032         (sha1_buffer): Renamed from sha_buffer.
90033         * lib/sha1.c: Likewise; renamed from sha.c.
90034         Do not include <sys/types.h>.
90035         Include <stddef.h> rather than <stdlib.h>.
90036
90037 2004-08-08  Bruno Haible  <bruno@clisp.org>
90038
90039         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90040         FILESYSTEM_PREFIX_LEN.
90041         * lib/progreloc.c: Likewise.
90042         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90043
90044 2004-08-06  Simon Josefsson  <jas@extundo.com>
90045
90046         * modules/progname (Depends-on): Don't depend on stdbool.
90047
90048 2004-08-06  Simon Josefsson  <jas@extundo.com>
90049
90050         * modules/getsubopt: New file.
90051         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90052         getsubopt.
90053
90054 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90055
90056         More merge from coreutils.
90057
90058         * m4/utimens.m4, m4/utimecmp.m4: New files.
90059         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90060         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90061         prereq.m4, sha.m4: Import changes from coreutils.
90062
90063 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90064
90065         More merge from coreutils.
90066         * modules/raise, modules/readtokens0, modules/utimens:
90067         * modules/utimecmp, module/xnanosleep: New files.
90068         * modules/strftime: Add lib/strftime.h.
90069         Change include from <time.h> to "strftime.h".
90070         * modules/yesno: Add lib/yesno.h.
90071         * modules/backupfile: Remove lib/addext.c.
90072         * modules/euidaccess: Add stat-macros.h.
90073         * modules/canonicalize, modules/euidaccess,
90074         modules/filemode, modules/lchown, modules/makepath,
90075         modules/rmdir, modules/stat: Likewise.
90076
90077 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90078
90079         Merge from tar.
90080         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90081         SIZE_MAX is a valid preprocessor constant.
90082         (__argp_basename): Change from "#ifndef _LIBC"
90083         to "#ifndef __argp_short_program_name", so that
90084         we don't compile these functions for tar.
90085
90086         More merges from coreutils.
90087         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90088         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90089         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90090         * lib/addext.c: Remove; no longer needed.
90091         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90092         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90093         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90094         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90095         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90096         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90097         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90098         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90099         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90100         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90101         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90102         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90103         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90104         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90105         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90106         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90107         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90108         Import changes from coreutils.
90109
90110 2004-08-05  Simon Josefsson  <jas@extundo.com>
90111
90112         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90113
90114 2004-08-05  Simon Josefsson  <jas@extundo.com>
90115
90116         * m4/getsubopt.m4: New file.
90117
90118 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90119
90120         Merge from coreutils.
90121
90122         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90123         * m4/getcwd-path-max.m4: New files.
90124
90125         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90126         FILESYSTEM_PREFIX_LEN ->
90127         FILE_SYSTEM_PREFIX_LEN.
90128         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90129         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90130         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90131         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90132
90133         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90134         prerequisite modules now handle the DOS stuff.
90135         Don't check for unistd.h.
90136
90137 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90138
90139         Merge from coreutils.
90140
90141         * lib/.gdb-history: Remove; this doesn't belong here.
90142
90143         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90144         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90145         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90146         * lib/getcwd.c: New files.
90147
90148         * lib/dirname.h: Include <stdbool.h>.
90149         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90150         for consistency with POSIX terminology.  All uses changed.
90151         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90152         (strip_trailing_slashes): Use bool for booleans.
90153         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90154
90155         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90156         sometimes returns a positive errno value even when it succeeds.
90157         (print_errno_message) [!LIBC]: Fall back on strerror if
90158         __strerror_r fails.
90159
90160         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90161         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90162         (longest_relative_suffix): New function.
90163         (path_concat): Use it.  Assume first argument is not NULL.
90164         Port to DOS.  Omit redundant separators.
90165         Report an error instead of returning NULL.
90166         Use mempcpy instead of memcpy.
90167         (xpath_concat): Remove: not declared or used.
90168
90169         * lib/same.h: Include <stdbool.h>
90170         (same_name): Return bool, not int.
90171         * lib/same.c (same_name): Likewise.
90172         (errno): Don't declare; we assume C89 or better now.
90173
90174         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90175         if not already defined.
90176
90177         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90178         * lib/dup-safer.c (errno): Likewise.
90179
90180 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90181
90182         Merge from coreutils.
90183         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90184         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90185         * modules/path-concat: Don't depend on strdup.
90186
90187 2004-08-03  Simon Josefsson  <jas@extundo.com>
90188
90189         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90190         * lib/progname.h: Don't include stdbool.h.
90191
90192 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90193
90194         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90195         * MODULES.html.sh (func_all_modules): Remove fatal.
90196
90197 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90198
90199         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90200
90201 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90202
90203         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90204         working.
90205
90206 2004-08-02  Simon Josefsson  <jas@extundo.com>
90207
90208         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90209         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90210         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90211
90212 2004-08-01  Simon Josefsson  <jas@extundo.com>
90213
90214         * lib/xgetdomainname.c: Include stdlib.h, for free().
90215
90216 2004-07-19  Bruno Haible  <bruno@clisp.org>
90217
90218         * MODULES.html.sh (func_all_modules): Add dummy.
90219
90220 2004-07-16  Simon Josefsson  <jas@extundo.com>
90221
90222         * modules/dummy: New file.
90223
90224 2004-07-16  Simon Josefsson  <jas@extundo.com>
90225
90226         * lib/dummy.c: New file.
90227
90228 2004-07-16  Bruno Haible  <bruno@clisp.org>
90229
90230         * lib/backupfile.h: Add extern "C" for C++.
90231         * lib/closeout.h: Likewise.
90232         * lib/copy-file.h: Likewise.
90233         * lib/findprog.h: Likewise.
90234         * lib/full-write.h: Likewise.
90235         * lib/pathname.h: Likewise.
90236         * lib/progname.h: Likewise.
90237         * lib/stpcpy.h: Likewise.
90238         * lib/stpncpy.h: Likewise.
90239         * lib/strcase.h: Likewise.
90240         * lib/strstr.h: Likewise.
90241         * lib/xalloc.h: Likewise.
90242
90243         * lib/mbswidth.h: Add extern "C" for C++.
90244         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90245
90246 2004-07-13  Robert Millan  <robertmh@gnu.org>
90247
90248         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90249
90250 2004-07-09  Simon Josefsson  <jas@extundo.com>
90251
90252         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90253         failed without this.)
90254
90255 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90256
90257         * modules/chown (Files): Add lib/fchown-stub.c, since
90258         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90259
90260 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90261
90262         * lib/fchown-stub.c: New file.
90263
90264 2004-06-24  Jim Meyering  <jim@meyering.net>
90265
90266         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90267
90268 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90269
90270         * modules/argz: Omit "#include".
90271
90272         * MODULES.html.sh (func_all_modules): Add calloc, to match
90273         2004-06-01 addition of calloc module.
90274
90275 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90276
90277         * m4/argz.m4: New file, which is autoupdated from libtool.
90278
90279 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90280
90281         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90282         libtool.
90283
90284 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90285
90286         * config/srclist-update: Don't insist on "USA." before the
90287         close-comment, as libtool omits the period and puts the */ on a
90288         separate line.
90289         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90290         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90291
90292 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90293
90294         * modules/argz: New file.
90295         * MODULES.html.sh (func_all_modules): Add argz.
90296
90297 2004-06-12  Jim Meyering  <jim@meyering.net>
90298         and  Paul Eggert  <eggert@cs.ucla.edu>
90299
90300         * modules/hash (Files): Add lib/xalloc.h.
90301         * modules/pipe (Depends-on): Add wait-process.
90302         * modules/stat (Depends-on): Add xalloc.
90303         * modules/userspec (Files): Add lib/userspec.h.
90304         * modules/xstrto
90305
90306         Upgrade from gettext-0.13.
90307         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90308         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90309         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90310
90311 2004-06-10  Jim Meyering  <jim@meyering.net>
90312
90313         * lib/calloc.c: New file.
90314
90315 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90316
90317         * lib/getdate.y (yylex): Allow space between sign and number.
90318         Problem reported by Dan Jacobson.
90319
90320 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90321
90322         Merge from coreutils CVS.
90323
90324         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90325         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90326         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90327         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90328         xstrtol.m4: Fix copyright date and/or serial number.
90329
90330         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90331         See if we need an fchown replacement.
90332         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90333         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90334         and use the replacement function if we detect either defect.
90335
90336         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90337         gl_UTIMECMP.
90338
90339 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90340         and  Jim Meyering  <jim@meyering.net>
90341
90342         Merge from coreutils CVS.
90343
90344         * lib/stat-macros.h: New file, with contents from file-type.h
90345         and coreutils' system.h.
90346         * lib/file-type.c: Include "stat-macros.h".
90347         * lib/file-type.h (file_type): Move all macro definitions to new file,
90348         stat-macros.h.
90349
90350         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90351         Wrap old code with this conditional.
90352         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90353         function that does not dereference symlinks.
90354         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90355
90356         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90357         dependency problems.
90358         (xreadlink): Accept new arg SIZE, for efficiency.
90359         All decls and uses changed.
90360         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90361
90362         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90363         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90364
90365         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90366         sysexits.h.
90367
90368 2004-06-01  Jim Meyering  <jim@meyering.net>
90369
90370         * m4/calloc.m4: New file.
90371
90372 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90373
90374         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90375         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90376         Also, fix a typo in a diagnostic.
90377
90378 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90379
90380         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90381         or AC_FUNC_REALLOC.
90382
90383 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90384
90385         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90386         macros to be defined.
90387         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90388         the allocator returns NULL because the requested size is zero.
90389
90390 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90391
90392         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90393         var.  Add comment explaining why libc still defines it.  This
90394         merges the following patch from glibc:
90395         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90396
90397 2004-05-20  Andreas Schwab  <schwab@suse.de>
90398
90399         * m4/free.m4: Replace free if it not known to work, not the other
90400         way round.
90401
90402 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90403
90404         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90405         present in glibc since revision 1.1 of this file.
90406         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90407         obstack_alignment_mask, obstack_alloc, obstack_base,
90408         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90409         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90410         obstack_grow0, obstack_init, obstack_int_grow,
90411         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90412         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90413         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90414         nonexistent functions.
90415
90416 2004-05-18  Karl Berry  <karl@gnu.org>
90417
90418         * config/srclist.txt: break link for vasnprintf.c.
90419
90420 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90421
90422         Port obstack to the AS/400, where pointers are 16 bytes wide and
90423         you cannot cast an integer to a valid pointer.  This patch is
90424         currently waiting to be integrated into glibc; see
90425         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90426
90427         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90428         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90429         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90430         (struct obstack): temp member is now a union of a pointer and
90431         an integer, instead of an integer.  All integer uses changed.
90432         This does not affect the physical layout of struct obstack,
90433         except on hosts (like the AS/400) where the size or alignment of
90434         void * is greater than that of ptrdiff_t.
90435         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90436         __STDC__)]: Store temporary in pointer member of union, not
90437         integer member.
90438         * lib/obstack.c: Include <stddef.h>, for offsetof.
90439         (struct fooalign): Remove; it doesn't need a name.
90440         (union fooround): Change double to long double, and add void *.
90441         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90442         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90443         not a macro.  Hence the values are always int; so remove all
90444         casts-to-int in uses.
90445
90446 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90447
90448         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90449         we can get this patch merged into glibc.
90450
90451 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90452             Paul Eggert  <eggert@cs.ucla.edu>
90453
90454         * m4/argp: Depend on alloca.
90455
90456 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90457             Paul Eggert  <eggert@cs.ucla.edu>
90458
90459         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90460         freecoding.
90461
90462 2004-05-17  Bruno Haible  <bruno@clisp.org>
90463
90464         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90465         precision that consists of a '.' followed by an empty digit string.
90466         Patch by Tor Lillqvist <tml@iki.fi>.
90467
90468 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90469
90470         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90471         for backward compatibility with older code.  We need our own
90472         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90473         it under some other name, and our alloca.h will define it.
90474
90475 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90476             Derek Price  <derek@ximbiot.com>
90477
90478         * lib/alloca.c: Include <alloca.h>, to get our interface.
90479         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90480         include <alloca.h> first.  Use C89 prototype for alloca; this
90481         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90482         Use #elif for simplicity, since we can assume C89 now.
90483         Don't try to source the system alloca.h since it will not be found
90484         and to prevent recursively including its replacement.
90485         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90486         * lib/regex.c: Likewise.
90487
90488 2004-05-16  Derek Price  <derek@ximbiot.com>
90489             Paul Eggert  <eggert@cs.ucla.edu>
90490
90491         getline cleanup.  This changes the getndelim2 API: both order of
90492         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90493         no delimiter).
90494
90495         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90496         interface does that.
90497         (getline): Always use getdelim, so that we don't have two
90498         copies of this code.
90499         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90500         if available.
90501         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90502         (GETNDELIM2_MAXIMUM): New macro.
90503         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90504         instead of the old practice of delim2==0.  All callers changed.
90505         Return -1 on overflow, instead of returning junk.
90506         Do not set *linesize unless allocation succeeds.
90507         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90508         that we include sys/types.h.
90509         * lib/getnline.h: Likewise.
90510         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90511         (getndelim2): Reorder arguments.
90512         * lib/getnline.c (getnline, getndelim):
90513         Don't discard the NMAX argument.
90514         (getnline): Invoke getndelim, to avoid code duplication.
90515         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90516         of (size_t) -1 by callers of the getnline family.
90517
90518 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90519
90520         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90521         Check for gettimeofday.
90522         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90523         Check for settimeofday, stime.
90524
90525 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90526
90527         * lib/nanosleep.c (suspended): Change its type from int to
90528         sig_atomic_t volatile.
90529         (first_call): Make it private to rpl_nanosleep, and have it
90530         be zero initially as that's a bit faster.
90531         (my_usleep): Round up fractional times instead of truncating them,
90532         as this is the usual meaning for 'sleep'.
90533
90534         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90535         doesn't work.
90536         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90537         (ENOSYS): Define if not defined.
90538         (settime): Fall back on stime if it exists and settimeofday fails.
90539         But don't bother with fallbacks if a method fails with errno == EPERM.
90540
90541 2004-05-11  Jim Meyering  <jim@meyering.net>
90542
90543         Prior to this change, the save_cwd caller required read access to the
90544         current directory on most systems (ones with the fchdir function).
90545
90546         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90547         fails, try write-only, and finally, resort to using xgetcwd.
90548
90549 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90550
90551         * lib/obstack.c, obstack.h: Import changes from libc.
90552
90553 2004-04-28  Bruno Haible  <bruno@clisp.org>
90554
90555         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90556         also implicitly appends .exe to executables.
90557         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90558         accepts Windows pathnames.
90559         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90560         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90561         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90562         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90563         Reported by Derek Robert Price <derek@ximbiot.com>.
90564
90565 2004-04-21  Karl Berry  <karl@gnu.org>
90566
90567         * config/srclist.txt (localcharset.c): break sync.
90568
90569 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90570
90571         * m4/host-os.m4: Add a copyright notice.
90572
90573 2004-04-20  Jim Meyering  <jim@meyering.net>
90574
90575         Change UTILS_ to gl_ in AC_DEFINE'd names.
90576         Change utils_- and jm_-prefixed variables, too.
90577         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90578         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90579         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90580
90581         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90582         Don't emit trailing blanks.
90583         Also rename jm_-prefixed variables to have gl_ prefix.
90584
90585         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90586         Also rename jm_-prefixed variables to have gl_ prefix.
90587
90588         * m4/jm-macros.m4: Reflect the renamings.
90589         * m4/prereq.m4: Likewise.
90590
90591 2004-04-20  Jim Meyering  <jim@meyering.net>
90592
90593         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90594         memory.
90595
90596 2004-04-20  Jim Meyering  <jim@meyering.net>
90597             Bruno Haible  <bruno@clisp.org>
90598
90599         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90600         memory when realloc fails.
90601
90602 2004-04-19  Jim Meyering  <jim@meyering.net>
90603
90604         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90605         now that readutmp.c may call `free (0)'.
90606
90607 2004-04-19  Bruno Haible  <bruno@clisp.org>
90608
90609         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90610         * m4/inttypes_h.m4: Likewise.
90611         * m4/stdint_h.m4: Likewise.
90612         * m4/intmax_t.m4: Likewise.
90613         * m4/uintmax_t.m4: Likewise.
90614
90615 2004-04-18  Jim Meyering  <jim@meyering.net>
90616
90617         * m4/prereq.m4: Don't forbid jm_ prefix.
90618
90619         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90620         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90621         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90622         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90623         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90624         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90625         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90626         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90627         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90628         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90629         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90630         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90631         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90632         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90633         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90634         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90635         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90636         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90637         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90638
90639 2004-04-18  Jim Meyering  <jim@meyering.net>
90640
90641         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90642         failure, don't leak memory and do call END_UTMP_ENT.
90643
90644 2004-04-16  Jim Meyering  <jim@meyering.net>
90645
90646         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90647         coreutils' stat program.
90648         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90649
90650 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90651
90652         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90653         C89.
90654         (CHAR_BIT): Remove, since we assume C89.
90655         Include <stdint.h> if available, as per current Autoconf CVS advice.
90656
90657 2004-03-31  Jim Meyering  <jim@meyering.net>
90658
90659         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90660         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90661         * m4/xalloc.m4: Likewise.
90662
90663 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90664
90665         Merge from coreutils.
90666
90667         * m4/inttostr.m4: New file.
90668         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90669         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90670         Require gl_CLOCK_TIME.
90671         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90672
90673 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90674
90675         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90676         not bool, to be more consistent with Unix conventions.
90677         Suggested by Bruno Haible.
90678
90679         Merge from coreutils.
90680
90681         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90682         * lib/umaxtostr.c: New files.
90683
90684         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90685         the usual <time.h> dance.
90686         (get_date): Change signature to support fractional time stamps.
90687         All callers changed.
90688         * lib/getdate.y: Include "getdate.h" first, as we can now
90689         assume C89 and don't need to worry about 'const'.
90690         Similarly, include "unlocked-io.h" near start, not in middle.
90691         Include <limits.h>.
90692         (textint.value): Use long int rather than int.
90693         (textint.digits): Use size_t rather than int.
90694         (BILLION, LOG10_BILLION): New constants.
90695         (parser_control): New member rel_ns.  Members day_ordinal,
90696         time_zone, month, day, hour, minutes, rel_year, rel_month,
90697         rel_day, rel_hour, rel_minutes, rel_seconds
90698         are now long int, not int.  Member seconds is now struct timespec,
90699         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90700         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90701         not int.
90702         (%union.intval): Now long int, not int.
90703         New member timespec.
90704         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90705         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90706         (spec): Now is a timespec or an item list.
90707         (timespec, items): New nonterminals.
90708         (time, rel, relunit, number, get_date):
90709         Add support for fractional seconds.
90710         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90711         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90712         (to_hour): First arg is now long int, not int.
90713         (to_year): Returns long int, not int.
90714         Don't treat year -70 like 70.
90715         (tm_diff): Returns long int, not int.
90716         (lookup_word): Use bool instead of int when appropriate.
90717         (yylex): Use size_t for count, not int.
90718         Detect overflow when parsing large integer constants.
90719         Add support for fractions.
90720         (get_date): Make pointers 'const' if possible.
90721         Use more-portable code to detect integer overflow.
90722         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90723         Don't use ctime; it's not reliable if the year has >4 digits.
90724
90725         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90726         This is for compatibility with BSD.
90727
90728         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90729         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90730         From coreutils' system.h.
90731
90732         * lib/userspec.c: Don't include "posixver.h".
90733         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90734         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90735         compatible extension.  Simplify code by removing a boolean int
90736         that was always nonzero if a string was nonnull.
90737
90738 2004-03-30  Jim Meyering  <jim@meyering.net>
90739
90740         Merge from coreutils.
90741
90742         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90743         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90744         on some systems one must include <grp.h> before it.
90745         Reported by Christian Krackowizer.
90746
90747 2004-03-30  Jim Meyering  <jim@meyering.net>
90748
90749         Merge from coreutils.
90750
90751         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90752
90753         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90754         an empty input stream.
90755
90756         * lib/readtokens.c: Include <stdbool.h>.
90757         (readtoken): Use `size_t' rather than int/long.
90758         All callers adjusted.
90759         Use `bool' rather than `int' where appropriate.
90760         Use memset rather than an explicit loop.
90761         Use x2nrealloc rather than xrealloc.
90762         Allow the use of `\0' as a delimiter.
90763         (readtokens): Likewise.
90764         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90765
90766 2004-03-30  Jim Meyering  <jim@meyering.net>
90767
90768         * m4/realloc.m4: Remove file, since now it does no more than
90769         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90770         the `configure.ac' section of module/realloc.
90771         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90772
90773 2004-03-30  Bruno Haible  <bruno@clisp.org>
90774
90775         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90776         nonnull.
90777
90778 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90779
90780         Merge changes to getloadavg.c from coreutils and Emacs.
90781
90782         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90783         Define to an expression, not to the empty string.
90784         Include cloexec.h and xalloc.h.
90785         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90786         Use set_cloexec_flag rather than rolling our own.
90787         * lib/cloexec.c, lib/cloexec.h: New files.
90788
90789 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90790
90791         * m4/cloexec.m4: New file.
90792
90793 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90794
90795         * lib/getopt.h: Sync with libc CVS.
90796
90797 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90798             Bruno Haible  <bruno@clisp.org>
90799
90800         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90801         mbswidth.
90802
90803 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90804             Bruno Haible  <bruno@clisp.org>
90805
90806         * lib/mbswidth.h: Include <wchar.h> only if
90807         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90808         <wchar.h>.
90809         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90810
90811 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90812
90813         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90814         Sync with libc CVS.
90815         * lib/getopt_int.h: New file, also synced from libc.
90816
90817 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90818
90819         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90820         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90821         Bring back getopt.c, getopt.h, getopt1.c.
90822
90823 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90824
90825         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90826         All uses changed.  Check for sa_sigaction member; this fixes
90827         a bug first reported by Jason Andrade in
90828         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90829
90830 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90831
90832         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90833         '#if' expressions.  Unlike the code it replaces, it does not
90834         depend on (defined _SC_PAGESIZE).  However, it does depend on
90835         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90836         first reported by Jason Andrade in
90837         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90838
90839 2004-02-25  Simon Josefsson  <jas@extundo.com>
90840
90841         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90842
90843 2004-02-25  Simon Josefsson  <jas@extundo.com>
90844
90845         * lib/strdup.h: New file.
90846         * lib/strdup.c: Include it.
90847         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90848         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90849
90850 2004-02-23  Karl Berry  <karl@gnu.org>
90851
90852         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90853         (from fencepost.gnu.org:/gd/gnuorg).
90854
90855 2004-02-23  Karl Berry  <karl@gnu.org>
90856
90857         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90858         * config/srclist.txt: add maintain/standards documents.
90859
90860 2004-02-18  Bruno Haible  <bruno@clisp.org>
90861
90862         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90863         Reported by Derek Robert Price <derek@ximbiot.com>.
90864
90865 2004-02-16  Karl Berry  <karl@gnu.org>
90866
90867         * config/mkinstalldirs, install-sh: update from automake.
90868
90869 2004-02-06  Karl Berry  <karl@gnu.org>
90870
90871         * m4/po.m4: update from gettext 0.14.1.
90872
90873 2004-02-06  Karl Berry  <karl@gnu.org>
90874
90875         * lib/config.charset: update from gettext 0.14.1.
90876
90877 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90878
90879         Add comments and code, prompted by suggestions from Bruno Haible
90880         for sh-quote.
90881         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90882         describing the enum quoting_style values.
90883         * lib/quotearg.c (quotearg_alloc): New function.
90884         (quotearg_buffer_restyled): Treat lone { and } as special.
90885         Treat = as special.  Work around bug with older shells
90886         that "see" a '\' that is really the 2nd byte of a multibyte char.
90887         Quote empty string with shell_quoting_style.
90888
90889 2004-02-03  Bruno Haible  <bruno@clisp.org>
90890
90891         * m4/pipe.m4: New file, from GNU gettext.
90892
90893 2004-02-03  Bruno Haible  <bruno@clisp.org>
90894
90895         * lib/pipe.h: New file, from GNU gettext.
90896         * lib/pipe.c: New file, from GNU gettext.
90897
90898 2004-01-27  Bruno Haible  <bruno@clisp.org>
90899
90900         * m4/execute.m4: New file, from GNU gettext.
90901
90902 2004-01-27  Bruno Haible  <bruno@clisp.org>
90903
90904         * lib/execute.h: New file, from GNU gettext.
90905         * lib/execute.c: New file, from GNU gettext.
90906         * lib/w32spawn.h: New file, from GNU gettext.
90907
90908 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90909
90910         Merge from diffutils.
90911
90912         * lib/file-type.c (file_type): Add typed memory objects.
90913         * lib/file-type.h (S_TYPEISTMO): New macro.
90914
90915         * lib/c-stack.h (c_stack_action): Remove argv argument.
90916         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90917         (die): Don't calculate message unless segv_action returns.
90918         (get_stack_location, min_address_from_argv, max_address_from_argv,
90919         volatile stack_base, volatile_stack_size): Remove.
90920         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90921         that every segmentation violation is a stack overflow.  (Ouch!)
90922         See Debian bug 136249 (still outstanding) for more info about why
90923         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90924
90925 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90926
90927         Exit-status fix from coreutils.
90928
90929         Use exit_failure consistently in place of EXIT_FAILURE,
90930         so that program exit statuses are consistent on failure.
90931
90932         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90933         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90934         * lib/argmatch.h: Comment fix to match the above.
90935         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90936         Now a macro referring to exit_failure, instead of a separate
90937         variable.  Include "exitfail.h" to get it.
90938         * lib/xstrtol.h: Include "exitfail.h".
90939         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90940
90941         * lib/long-options.c (parse_long_options): Use prototype
90942         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90943         for clarity.
90944
90945 2004-01-21  Jim Meyering  <jim@meyering.net>
90946
90947         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90948         so as not to conflict with a different-sized __mktime_internal
90949         function in GNU libc.
90950         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90951         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90952
90953 2004-01-20  Karl Berry  <karl@gnu.org>
90954
90955         * config/config.guess: update from config.
90956
90957         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90958
90959 2004-01-20  Bruno Haible  <bruno@clisp.org>
90960
90961         Safer stack allocation.
90962         * lib/setenv.c: Include allocsa.h.
90963         (alloca): Remove fallback definition.
90964         (freea): Remove macro.
90965         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90966         instead of freea.
90967
90968 2004-01-20  Bruno Haible  <bruno@clisp.org>
90969
90970         * m4/eealloc.m4: New file, from GNU gettext.
90971
90972 2004-01-20  Bruno Haible  <bruno@clisp.org>
90973
90974         * m4/allocsa.m4: New file, from GNU gettext.
90975
90976 2004-01-20  Bruno Haible  <bruno@clisp.org>
90977
90978         * lib/xallocsa.h: New file, from GNU gettext.
90979         * lib/xallocsa.c: New file, from GNU gettext.
90980
90981 2004-01-20  Bruno Haible  <bruno@clisp.org>
90982
90983         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90984
90985 2004-01-20  Bruno Haible  <bruno@clisp.org>
90986
90987         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90988         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90989         specially.
90990
90991 2004-01-20  Bruno Haible  <bruno@clisp.org>
90992
90993         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90994         patch.
90995
90996 2004-01-20  Bruno Haible  <bruno@clisp.org>
90997
90998         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90999
91000 2004-01-20  Bruno Haible  <bruno@clisp.org>
91001
91002         * lib/eealloc.h: New file.
91003
91004 2004-01-20  Bruno Haible  <bruno@clisp.org>
91005
91006         * lib/binary-io.h: Avoid warnings on Cygwin.
91007
91008 2004-01-20  Bruno Haible  <bruno@clisp.org>
91009
91010         * lib/allocsa.h: New file, from GNU gettext.
91011         * lib/allocsa.c: New file, from GNU gettext.
91012
91013 2004-01-18  Karl Berry  <karl@gnu.org>
91014
91015         * doc/gpl.texi, doc/lgpl.texi: new files.
91016
91017 2004-01-18  Karl Berry  <karl@gnu.org>
91018
91019         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91020         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91021
91022 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91023
91024         Merge from coreutils.
91025
91026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91027         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91028         (gl_DEFAULT_POSIX2_VERSION): Move
91029         the documentation from 'configure' into 'config.hin',
91030         so that 'configure --help' isn't burdened by it and
91031         we don't have to worry about its formatting there.
91032         Reword the documentation so that it's more succinct
91033         and can be run together into a single paragraph.
91034         * m4/same.m4 (gl_SAME): Check for pathconf.
91035
91036 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91037
91038         Merge from coreutils.
91039
91040         * lib/posixver.c: Include posixver.h.
91041
91042         * lib/same.c: Include <stdbool.h>, <limits.h>.
91043         (_POSIX_NAME_MAX): Define if not defined.
91044         (MIN): New macro.
91045         (same_name): If file names are silently truncated, report
91046         that the file names are the same if they are the same after
91047         the silent truncation.
91048
91049         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91050         conversion function.
91051         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91052         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91053         longer needed.
91054
91055 2004-01-15  Jim Meyering  <jim@meyering.net>
91056
91057         Merge from coreutils.
91058
91059         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91060         if no library is required.
91061         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91062         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91063         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91064         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91065         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91066         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91067         value, $ac_cv_search_crypt, if it's "none required".
91068         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91069         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91070         not gl_FUNC_GETLOADAVG.
91071         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91072         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91073
91074 2004-01-15  Jim Meyering  <jim@meyering.net>
91075
91076         Merge from coreutils.
91077
91078         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91079         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91080         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91081
91082         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91083         optional configure-time default.
91084
91085         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91086
91087         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91088
91089 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91090
91091         Merge from coreutils.
91092
91093         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91094         value, $ac_cv_search_nanosleep, if it's "none required".
91095
91096 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91097
91098         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91099         with like-named macro in fnmatch.c.
91100         (EXT): Use an internal constant instead.
91101
91102         Merge fnmatch patches from glibc.
91103         * lib/fnmatch.c (mbsinit): Remove define.
91104         Add libc_hidden_ver (__fnmatch, fnmatch).
91105         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91106         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91107
91108 2004-01-14  Karl Berry  <karl@gnu.org>
91109
91110         * config/install-sh: update from automake.
91111
91112 2004-01-13  Karl Berry  <karl@gnu.org>
91113
91114         * config/install-sh: update from automake.
91115
91116 2004-01-09  Karl Berry  <karl@gnu.org>
91117
91118         * config/install-sh: update from automake.
91119
91120 2004-01-05  Karl Berry  <karl@gnu.org>
91121
91122         * config/config.{sub,guess}: update from config.
91123
91124 2003-12-31  Karl Berry  <karl@gnu.org>
91125
91126         * config/depcomp: update from automake.
91127
91128 2003-12-14  Karl Berry  <karl@gnu.org>
91129
91130         * lib/config.charset: update from gettext-runtime.
91131
91132 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91133
91134         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91135         Bug reported by Alfred M. Szmidt.
91136
91137 2003-12-03  Bruno Haible  <bruno@clisp.org>
91138
91139         * m4/gettext.m4: Upgrade from gettext-0.13.
91140         * m4/po.m4: Upgrade from gettext-0.13.
91141         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91142         * m4/intmax.m4: New file, from gettext-0.13.
91143         * m4/printf-posix.m4: New file, from gettext-0.13.
91144
91145 2003-11-29  Karl Berry  <karl@gnu.org>
91146
91147         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91148
91149 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91150             Bruno Haible  <bruno@clisp.org>
91151
91152         * lib/printf-parse.h: Don't include sys/types.h.
91153         (ARG_NONE): New macro.
91154         (char_directive): Change type of *arg_index fields to size_t.
91155         * lib/printf-parse.c: Don't include sys/types.h.
91156         (SSIZE_MAX): Remove macro.
91157         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91158         Remove unnecessary overflow check.
91159         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91160         fields.
91161
91162 2003-11-25  Bruno Haible  <bruno@clisp.org>
91163
91164         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91165
91166 2003-11-25  Bruno Haible  <bruno@clisp.org>
91167
91168         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91169         gt_TYPE_SSIZE_T.
91170
91171 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91172
91173         * modules/alloca: Remove dependency on xalloc.
91174
91175 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91176
91177         * lib/alloca.c: Remove dependency on xalloc module.
91178         (xalloc_die): Remove.
91179         (memory_full) [!defined emacs]: New macro.
91180         [!defined emacs]: Don't include xalloc.h.
91181         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91182         address arithmetic overflows.  Change datatypes a bit to avoid
91183         unnecessary casts.
91184
91185 2003-11-22  Jim Meyering  <jim@meyering.net>
91186
91187         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91188         s/size/size_t/.
91189
91190 2003-11-21  Karl Berry  <karl@gnu.org>
91191
91192         * config/config.{sub,guess}: update from config.
91193
91194 2003-11-18  Karl Berry  <karl@gnu.org>
91195
91196         * config/config.{sub,guess}: update from config.
91197
91198         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91199
91200 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91201
91202         * README: Mention that S+T cannot overflow if S is the size of
91203         an existing object and T is sufficiently small.
91204
91205 2003-11-17  Jim Meyering  <jim@meyering.net>
91206
91207         On systems without utime and without a utimes function capable of
91208         dealing with a NULL struct utimbuf* argument, this utime replacement
91209         could -- in unusual circumstances -- leak a file descriptor.
91210         * lib/utime.c: Include <unistd.h> and <errno.h>.
91211         (utime_null): Be sure to close `fd' and to preserve errno.
91212         Reported by Geoff Collyer via Arnold Robbins.
91213
91214 2003-11-17  Bruno Haible  <bruno@clisp.org>
91215
91216         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91217         (Depends-on): Add xsize.
91218
91219 2003-11-17  Bruno Haible  <bruno@clisp.org>
91220
91221         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91222
91223 2003-11-17  Bruno Haible  <bruno@clisp.org>
91224
91225         * lib/vasnprintf.c (alloca): Remove fallback definition.
91226         (freea): Remove definition.
91227         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91228         Reported by Paul Eggert.
91229
91230 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91231             Bruno Haible  <bruno@clisp.org>
91232
91233         Protect against address arithmetic overflow.
91234         * lib/printf-args.h: Include stddef.h.
91235         (arguments): Change type of field 'count' to size_t.
91236         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91237         'unsigned int' where appropriate.
91238         * lib/printf-parse.h: Include sys/types.h.
91239         (char_directive): Change type of *arg_index fields to ssize_t.
91240         (char_directives): Change type of fields 'count', max_*_length to
91241         size_t.
91242         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91243         (SSIZE_MAX): Define fallback value.
91244         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91245         instead of 'int' where appropriate. Check a_allocated, d_allocated
91246         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91247         * lib/vasnprintf.c: Include xsize.h.
91248         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91249         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91250         overflow. Avoid wraparound when converting a width or precision from
91251         decimal to binary.
91252
91253 2003-11-16  Bruno Haible  <bruno@clisp.org>
91254
91255         Update from GNU gettext.
91256         * lib/printf-parse.c: Generalize to it can be compiled for wide
91257         strings.
91258         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91259         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91260         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91261         SNPRINTF): New macros.
91262         Don't include <alloca.h> if the file is used inside libintl.
91263         (local_wcslen): New function, for Solaris 2.5.1.
91264         (VASNPRINTF): Use it instead of wcslen.
91265
91266 2003-11-16  Bruno Haible  <bruno@clisp.org>
91267
91268         * lib/xsize.h (xmax): New function.
91269         (xsum, xsum3, xsum4): Declare as "pure" functions.
91270
91271 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91272
91273         * modules/xalloc (Files): Undo latest change, since xalloc.h
91274         no longer needs SIZE_MAX or PTRDIFF_MAX.
91275
91276 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91277
91278         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91279         gl_PTRDIFF_MAX.
91280
91281 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91282
91283         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91284         "return", to pacify some unknown compiler.  Problem reported
91285         by Joerg Schilling.
91286
91287 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91288
91289         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91290         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91291         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91292         heuristic is just as accurate as far as we know, and it removes a
91293         dependency on size_max.m4 and ptrdiff_max.m4.
91294
91295 2003-11-11  Bruno Haible  <bruno@clisp.org>
91296
91297         * modules/xsize (Files): Add m4/size_max.m4.
91298         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91299
91300 2003-11-11  Bruno Haible  <bruno@clisp.org>
91301
91302         * m4/size_max.m4: New file.
91303         * m4/ptrdiff_max.m4: New file.
91304         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91305         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91306         (gl_XALLOC): Invoke it.
91307
91308 2003-11-11  Bruno Haible  <bruno@clisp.org>
91309
91310         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91311         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91312         defined.
91313
91314 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91315
91316         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91317         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91318         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91319         From Bruno Haible.
91320         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91321         not (size_t) -1, since it's defined here.
91322
91323 2003-11-09  Karl Berry  <karl@gnu.org>
91324
91325         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91326
91327 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91328
91329         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91330         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91331         Reject sizes of exactly SIZE_MAX bytes.
91332         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91333         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91334
91335 2003-11-05  Bruno Haible  <bruno@clisp.org>
91336
91337         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91338         SIZE_MAX defined in <limits.h> on Solaris.
91339
91340 2003-11-04  Jim Meyering  <jim@meyering.net>
91341
91342         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91343         variable names, rather than @VAR@.
91344         * modules/poll: Likewise.
91345
91346 2003-11-04  Bruno Haible  <bruno@clisp.org>
91347
91348         * modules/xsize: New file.
91349         * modules/linebreak: Depend on xsize.
91350         * MODULES.html.sh (func_all_modules): Add xsize.
91351
91352 2003-11-04  Bruno Haible  <bruno@clisp.org>
91353
91354         * m4/xsize.m4: New file.
91355
91356 2003-11-04  Bruno Haible  <bruno@clisp.org>
91357
91358         * lib/xsize.h: New file.
91359         * lib/linebreak.c: Include xsize.h.
91360         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91361         argument for overflow.
91362         Suggested by Paul Eggert.
91363
91364 2003-11-03  Karl Berry  <karl@gnu.org>
91365
91366         * config/config.{guess,sub}: update from config.
91367
91368 2003-11-03  Jim Meyering  <jim@meyering.net>
91369
91370         * modules/userspec (lib_SOURCES): Add userspec.h.
91371         (Include): Add "userspec.h".
91372         Improve description.
91373
91374 2003-11-03  Jim Meyering  <jim@meyering.net>
91375
91376         * lib/userspec.c: Include "userspec.h".
91377         * lib/userspec.h: New file.
91378
91379 2003-11-03  Bruno Haible  <bruno@clisp.org>
91380
91381         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91382
91383 2003-11-03  Bruno Haible  <bruno@clisp.org>
91384
91385         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91386         available, to avoid (extremely rare) race condition.
91387         Suggested by Paul Eggert.
91388
91389 2003-11-02  Karl Berry  <karl@gnu.org>
91390
91391         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91392
91393 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91394
91395         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91396         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91397         (read_filesystem_list): Set and use me_type_malloced.
91398         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91399         whatever the type happens to be), for brevity and consistency.
91400         Check for size calculation overflow on Alphas running OSF/1.
91401
91402 2003-10-31  Jim Meyering  <jim@meyering.net>
91403
91404         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91405
91406         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91407
91408 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91409             Bruno Haible  <bruno@clisp.org>
91410
91411         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91412         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91413
91414 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91415
91416         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91417         netbsd*-gnu*.  Suggested by Robert Millan.
91418
91419 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91420
91421         * modules/group-member: Depend on stdbool.
91422
91423 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91424
91425         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91426
91427 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91428
91429         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91430         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91431         after the 'gnu' in these cases.  This fixes some bugs in the
91432         previous change, and is based on suggestions by Robert Millan.
91433
91434 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91435
91436         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91437         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91438         no longer needed.
91439         * lib/quotearg.c (quotearg_n_options): Use it.
91440         * lib/group-member.c: Include <stdbool.h>.
91441         (free_group_info): Arg is now const *; don't free arg.
91442         (get_group_info): Now returns bool and accepts struct group_info *,
91443         rather than returning a malloc'ed struct group_info *.
91444         All uses changed.  Check for overflow in internal size calculation.
91445
91446         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91447         rather than xmalloc/xrealloc.
91448         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91449         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91450         conformance bug: the old code used a pointer after freeing the
91451         storage that it addressed.
91452         * lib/hash.c (hash_initialize): Simplify the code by using
91453         xalloc_oversized rather than doing it by hand.
91454         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91455         the buffer preserved.  Use free and xmalloc instead.
91456         * lib/quotearg.c (quotearg_n_options): Likewise.
91457         Use a simpler test for size overflow.  Don't use xalloc_oversized
91458         because unsigned int might be wider than size_t (!); this suggests
91459         that we should switch from unsigned int to size_t for slot numbers.
91460
91461 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91462
91463         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91464         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91465         NetBSD kernels.  Requested by Richard Stallman.
91466
91467 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91468
91469         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91470         to allocate the returned structure.  Do not allocate a subarray,
91471         as x2nrealloc will do that.
91472         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91473         instead of xnrealloc.
91474         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91475
91476 2003-10-27  Bruno Haible  <bruno@clisp.org>
91477
91478         * lib/stdbool_.h: Better support for BeOS.
91479
91480 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91481
91482         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91483         now uses inline.
91484
91485 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91486
91487         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91488         callers that want to do their own size-overflow checking.  Include
91489         <stdbool.h>, since xalloc_oversized returns bool.
91490         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91491         to use xalloc_oversized.
91492
91493         Add two functions x2realloc, x2nrealloc, for programs that grow
91494         arrays dynamically by doubling their sizes.
91495         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91496         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91497         New functions.
91498
91499         Port to C99 semantics for 'inline' of external functions.
91500         Bug reported by Bruno Haible.
91501         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91502         with the old contents of xnmalloc.
91503         (xnmalloc, xmalloc): Use it.
91504         (xnrealloc_inline): New static inline function,
91505         with the old contents of xnrealloc.
91506         (xnrealloc, xrealloc): Use it.
91507
91508         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91509         that.
91510
91511 2003-10-26  Karl Berry  <karl@gnu.org>
91512
91513         * config/srclist.txt (COPYING.DOC): no longer available from
91514         /gd/gnuorg; don't know where the ultimate source is.
91515
91516 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91517
91518         Fix several address-calculation bugs in the hash modules,
91519         plus some minor code cleanup.
91520
91521         * lib/hash.h: Include <stdbool.h>, for bool.
91522         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91523         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91524         hash_get_n_entries, hash_get_max_bucket_length,
91525         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91526         hash_rehash): Use size_t rather than unsigned.
91527         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91528         hash_get_n_buckets_used, hash_get_n_entries,
91529         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91530         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91531         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91532         Likewise.
91533         (SIZE_MAX): Define if not defined.
91534         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91535         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91536         hash_print):
91537         Use const * when possible.
91538         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91539         (check_tuning): Fix bug: if tuning parameters were very close to
91540         0 or 1, rounding errors could have caused subscript violations.
91541         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91542         (hash_initialize): Add 'fail:' label
91543         to free table and return NULL, and use it to simplify code.
91544         Use calloc rather than clearing the storage ourself.
91545         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91546         buffer size calculations.
91547         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91548         Include <stddef.h>, for size_t.
91549         * lib/hash-pjw.c (hash_pjw): Likewise.
91550         Switch to method described by Bruno Haible.
91551         Include <limits.h>, for CHAR_BIT.
91552         (SIZE_BITS): New macro.
91553
91554 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91555
91556         * m4/getline.m4 (AM_FUNC_GETLINE):
91557         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91558         hosts.  Problem reported by Derek Robert Price in
91559         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91560         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91561         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91562
91563 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91564
91565         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91566         ceiling the allocation at NMAX bytes rather than silently
91567         discarding input bytes before NMAX is reached.  This makes
91568         a difference only if NMAX exceeds SIZE_MAX / 2.
91569
91570         * lib/obstack.c: Merge from glibc.
91571         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91572         Add libc_hidden_def (_obstack_newchunk).
91573         (_obstack_free) [! defined _LIBC]: Remove.
91574         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91575         a clone of the function body.
91576         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91577         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91578
91579         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91580         glibc.
91581         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91582         arg to memcpy.
91583
91584         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91585         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91586         Don't use lvalue casts, as GCC plans to remove support for them
91587         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91588         was also present in the non-GCC version, indicating that this
91589         code had always been buggy and had never been widely used.
91590         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91591         Use the fast variant of each macro, rather than copying the
91592         definiens of the fast variant; that way, we'll be more likely to
91593         catch future bugs in the fast variants.
91594
91595 2003-10-20  Bruno Haible  <bruno@clisp.org>
91596
91597         * modules/wait-process: New file.
91598         * MODULES.html.sh (func_all_modules): Add wait-process.
91599
91600 2003-10-20  Bruno Haible  <bruno@clisp.org>
91601
91602         * m4/wait-process.m4: New file.
91603
91604 2003-10-20  Bruno Haible  <bruno@clisp.org>
91605
91606         * lib/wait-process.h: New file, from GNU gettext.
91607         * lib/wait-process.c: New file, from GNU gettext.
91608
91609 2003-10-19  Jim Meyering  <jim@meyering.net>
91610
91611         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91612         HPUX 10.20.
91613
91614 2003-10-18  Karl Berry  <karl@gnu.org>
91615
91616         * config/config.guess: update from config.
91617
91618 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91619
91620         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91621         (getgroups): First arg is int, not size_t.
91622         Don't let 'free' mangle errno.
91623
91624 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91625
91626         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91627
91628 2003-10-16  Karl Berry  <karl@gnu.org>
91629
91630         * config/config.{guess,sub}: update from config.
91631
91632 2003-10-16  Jim Meyering  <jim@meyering.net>
91633
91634         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91635         memcpy.
91636
91637 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91638
91639         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91640         (SIZE_MAX): Remove.
91641         (new_exclude, add_exclude_file): Initial size no longer needs to
91642         be a power of 2.
91643         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91644         our own address arithmetic overflow checking.
91645
91646         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91647         (fnmatch): Do not alloca more than 2000 wide characters;
91648         instead, use malloc for large buffers.
91649         Check for address arithmetic overflow, and return -1
91650         with errno set to ENOMEM in that case.
91651         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91652         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91653         instead, return -1.  Check for address arithmetic overflow.
91654
91655 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91656
91657         Handle invalid suffixes and overflow independently, so that
91658         callers can treat them independently as needed.  Fix some bugs in
91659         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91660         suffix for a human-readable blocksize.  The major caller-visible
91661         change is the addition of a new
91662         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91663         that both overflow and suffix chars were found.
91664
91665         * lib/human.c (humblock): Don't check separately for invalid suffix
91666         char; that is xstrtoumax's job (now that its bug is fixed).
91667         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91668         INTMAX_MAX]: New macros.
91669         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91670         TYPE_MAXIMUM): New macros.
91671         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91672         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91673         if overflow occurs, as it's what __strtol does and it's more useful
91674         in practice.
91675         (__xstrtol): If __strtol reports some error other than ERANGE,
91676         reflect it to the caller as LONGINT_INVALID.  If it reports
91677         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91678         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91679         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91680         value.
91681         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91682         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91683         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91684         [defined UINTMAX_MAX]: New macros.
91685
91686 2003-10-14  Bruno Haible  <bruno@clisp.org>
91687
91688         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91689
91690 2003-10-14  Bruno Haible  <bruno@clisp.org>
91691
91692         * m4/sig_atomic_t: New file, from GNU gettext.
91693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91694
91695 2003-10-14  Bruno Haible  <bruno@clisp.org>
91696
91697         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91698         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91699         Also use volatile where needed.
91700
91701 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91702
91703         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91704         Change maintainer from Bruno Haible to 'all'.
91705
91706 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91707
91708         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91709
91710 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91711
91712         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91713         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91714         and define in terms of the other primitives.
91715         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91716         (SIZE_MAX): Define if not already defined.
91717         (array_size_overflow): New function.
91718         (xalloc_die): Abort instead of exiting if 'error' returns.
91719         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91720         (xmalloc, xrealloc): Use them.
91721         (xcalloc): Check for address arithmetic overflow.
91722         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91723         a bit faster than strcpy.
91724
91725 2003-10-10  Simon Josefsson  <jas@extundo.com>
91726
91727         * modules/argp (Depends-on): Add restrict and strcase.
91728
91729 2003-10-10  Simon Josefsson  <jas@extundo.com>
91730
91731         * m4/argp.m4: Add AC_C_INLINE.
91732
91733 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91734
91735         Merge getpass from libc, plus a few fixes.
91736
91737         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91738         Include <stdbool.h>.
91739         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91740         __fsetlocking to empty.
91741         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91742         do include <bits/libc-lock.h>.
91743         Do not include <fcntl.h>; not needed.
91744         [_LIBC]: Include <wchar.h>.
91745         (NOTCANCEL_MODE): New macro.
91746         (flockfile, funlockfile) [_LIBC]: New macros.
91747         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91748         [!_LIBC]: New macros.
91749         (call_fclose): New function.
91750         (getpass): Use it.  Save tty stream separately; this simplifies the
91751         code and makes it more reliable if stdin happens to equal stdout.
91752         Invoke __fsetlocking on tty.
91753         Handle thread cancellation if needed.
91754         Namespace cleanup (use __tcgetattr, __getline).
91755         Use bool for Booleans.
91756         [USE_IN_LIBIO]: Handle wide streams.
91757         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91758         stream might go where.
91759
91760         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91761         doesn't have to include <stdio.h> before us.
91762         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91763         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91764         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91765         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91766         if not declared, so that we can use getpass.c code from libc without
91767         rewriting it.
91768         (flockfile, ftrylockfile, funlockfile): New macros.
91769
91770 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91771
91772         * modules/getpass: Depend on stdbool.
91773
91774 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91775
91776         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91777
91778 2003-10-07  Karl Berry  <karl@gnu.org>
91779
91780         * config/config.{guess,sub}: update from config.
91781
91782 2003-10-06  Jim Meyering  <jim@meyering.net>
91783             Bruno Haible  <bruno@clisp.org>
91784
91785         This lets translators provide better translations for the
91786         "Written by ..." part of --version output.
91787         * lib/version-etc.h: Include stdarg.h.
91788         (version_etc_copyright): Declare as readonly.
91789         (version_etc): Make this function variadic with a NULL-terminated list
91790         of author name strings.
91791         (version_etc_va): New declaration.
91792         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91793         (version_etc_copyright): Declare as readonly.
91794         (version_etc_va): New function. Provide a different translatable string
91795         for each possible number of authors < 10. Abbreviate when there are 10
91796         authors or more.
91797         (version_etc): Make this function variadic. Call version_etc_va.
91798         Suggestion from Gary V. Vaughan.
91799
91800         * lib/long-options.h (parse_long_options): Change prototype: the
91801         authors string is moved to the end and becomes variadic.
91802         * lib/long-options.c: Include stdarg.h.
91803         (parse_long_options): Make this function variadic, too.
91804         Call version_etc_va, not version_etc.
91805
91806 2003-10-06  Bruno Haible  <bruno@clisp.org>
91807
91808         * modules/version-etc-2: Remove file.
91809         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91810
91811 2003-10-06  Bruno Haible  <bruno@clisp.org>
91812
91813         * modules/fatal-signal: New file.
91814         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91815
91816 2003-10-06  Bruno Haible  <bruno@clisp.org>
91817
91818         * m4/fatal-signal.m4: New file.
91819         * m4/signalblocking.m4: New file, from GNU gettext.
91820
91821 2003-10-06  Bruno Haible  <bruno@clisp.org>
91822
91823         * lib/version-etc-2.h: Remove file.
91824         * lib/version-etc-2.c: Remove file.
91825
91826 2003-10-06  Bruno Haible  <bruno@clisp.org>
91827
91828         * lib/fatal-signal.h: New file, from GNU gettext.
91829         * lib/fatal-signal.c: New file, from GNU gettext.
91830
91831 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91832
91833         * README: Rework advice for preventing empty .o files.
91834         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91835         not <sys/types.h>.
91836
91837 2003-10-04  Karl Berry  <karl@gnu.org>
91838
91839         * lib/argp*: update from libc.
91840
91841 2003-10-04  Karl Berry  <karl@gnu.org>
91842
91843         * config/config.{guess,sub}: update from config.
91844
91845 2003-10-02  Bruno Haible  <bruno@clisp.org>
91846
91847         * modules/lchown (Include): Add lchown.h.
91848         * modules/time_r (Include): Use "..." syntax.
91849         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91850
91851 2003-10-01  Simon Josefsson  <jas@extundo.com>
91852
91853         * MODULES.html.sh (func_all_modules): Move gethostname from section
91854         'based on' to section 'lacking' POSIX:2001.
91855
91856 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91857
91858         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91859         to output mode on the same stream.
91860
91861 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91862
91863         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91864         Fix arg typo in previous patch.
91865
91866 2003-09-28  Jim Meyering  <jim@meyering.net>
91867
91868         * lib/error.c: Correct cpp indentation.
91869
91870 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91871
91872         * modules/free: New file.
91873
91874 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91875
91876         * m4/free.m4: New file.
91877
91878 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91879
91880         * lib/minmax.h (MIN, MAX)
91881         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91882         Omit the special code that used __typeof__, since we worry that
91883         it could be more trouble than it's worth.  See:
91884         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91885         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91886
91887         * lib/free.c: New file.
91888
91889 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91890
91891         Trivial fixes to Makefile.am parts of module listings.
91892         * modules/strstr: Append strstr.h to lib_SOURCES.
91893         * modules/strcase: Likewise, for strcase.h.
91894
91895 2003-09-27  Karl Berry  <karl@gnu.org>
91896
91897         * config/mkinstalldirs: update from automake.
91898
91899 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91900
91901         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91902         (error_tail): Do not loop, reallocating temporary buffer, since
91903         the output cannot contain more wide characters than the input
91904         contains bytes, the size must be big enough already.  This avoids
91905         one potential size overflow calculation.  Check for size overflow
91906         when calculating temporary buffer size.  Free temporary buffer
91907         when done, if it was allocated with malloc; this plugs a memory
91908         leak.  Remove casts from void * to pointers, that are no longer
91909         needed now that we're assuming C89 or better.
91910
91911         Merge error changes from glibc.
91912
91913         * lib/error.c, error.h: Update copyright notice header to match glibc.
91914         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91915         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91916         Disable cancellation while printing error.
91917         * lib/error.h: Prepend __ to parameter names.
91918
91919 2003-09-26  Jim Meyering  <jim@meyering.net>
91920
91921         * lib/error.c (error_tail): Move some declarations
91922         into inner scope where the local variables are used.
91923
91924 2003-09-26  Bruno Haible  <bruno@clisp.org>
91925
91926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91927         stpncpy().
91928         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91929
91930 2003-09-26  Bruno Haible  <bruno@clisp.org>
91931
91932         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91933         (stpncpy): Define as alias for gnu_stpncpy.
91934         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91935
91936 2003-09-25  Simon Josefsson  <jas@extundo.com>
91937
91938         * lib/xgetdomainname.h: New file.
91939         * lib/xgetdomainname.c: New file.
91940
91941 2003-09-25  Simon Josefsson  <jas@extundo.com>
91942             Bruno Haible  <bruno@clisp.org>
91943
91944         * modules/getdomainname: New file.
91945         * modules/xgetdomainname: New file.
91946         * MODULES.html.sh (func_all_modules): Add getdomainname,
91947         xgetdomainname.
91948
91949 2003-09-25  Simon Josefsson  <jas@extundo.com>
91950             Bruno Haible  <bruno@clisp.org>
91951
91952         * m4/getdomainname.m4: New file.
91953
91954 2003-09-25  Simon Josefsson  <jas@extundo.com>
91955             Bruno Haible  <bruno@clisp.org>
91956
91957         * lib/getdomainname.h: New file.
91958         * lib/getdomainname.c: New file.
91959
91960 2003-09-25  Karl Berry  <karl@gnu.org>
91961
91962         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91963
91964 2003-09-25  Karl Berry  <karl@gnu.org>
91965
91966         * config/install-sh: update from automake.
91967
91968 2003-09-25  Bruno Haible  <bruno@clisp.org>
91969
91970         * modules/version-etc-2: New file, from modules/version-etc with
91971         modifications.
91972         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91973
91974 2003-09-25  Bruno Haible  <bruno@clisp.org>
91975
91976         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91977         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91978
91979 2003-09-24  Simon Josefsson  <jas@extundo.com>
91980
91981         * modules/xgethostname: Add xgethostname.h.
91982
91983 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91984
91985         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91986         the buffer associated with the argument.  Bug reported by
91987         Simon Josefsson.
91988
91989 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91990
91991         * README: Document assumptions that 'int' is at least 32 bits
91992         wide, that integer arithmetic is 2's complement without overflow,
91993         that there are no holes in integer values, that adding sizes of
91994         two nonoverlapping objects can't overflow, and that all-bits-zero
91995         yields scalar zero.  Fix spelling and capitalization typos.
91996
91997 2003-09-19  Karl Berry  <karl@gnu.org>
91998
91999         * lib/argp.h: update from libc.
92000
92001 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92002
92003         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92004         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92005         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92006
92007 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92008
92009         * gnulib-tool: Use "test -h", not "test -L", for portability
92010         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92011         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92012         (sed_extract_prog): Issue s commands one-by-one, rather than
92013         using \| in one s command.
92014
92015 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92016
92017         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92018         input error, instead of returning NULL the next time we are called
92019         (and therefore losing track of errno).
92020
92021 2003-09-16  Bruno Haible  <bruno@clisp.org>
92022
92023         * gnulib-tool (func_create_testdir): Warn about duplicated
92024         dependencies.
92025
92026 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92027
92028         * modules/argmatch, modules/fatal, modules/obstack,
92029         modules/xalloc, modules/xgethostname: Sort dependencies by
92030         importance, not alphabetically.
92031
92032 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92033
92034         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92035         fails, so that the caller gets the proper errno.
92036
92037         * lib/readutmp.c (read_utmp): Likewise.
92038         Check for fstat error.  Close stream and free storage
92039         when failing.
92040
92041 2003-09-14  Karl Berry  <karl@gnu.org>
92042
92043         * config/srclist.txt (strdup.c): disable for c89 changes.
92044
92045 2003-09-14  Jim Meyering  <jim@meyering.net>
92046
92047         * lib/getloadavg.c: Correct cpp indentation.
92048         * lib/strdup.c: Likewise.
92049         * lib/vasnprintf.c: Likewise.
92050
92051 2003-09-14  Bruno Haible  <bruno@clisp.org>
92052
92053         * modules/fwriteerror: New file.
92054         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92055
92056 2003-09-14  Bruno Haible  <bruno@clisp.org>
92057
92058         * lib/fwriteerror.h: New file.
92059         * lib/fwriteerror.c: New file.
92060
92061 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92062
92063         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92064         modules/xgethostname, modules/xalloc: Depend on exit.
92065
92066 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92067
92068         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92069
92070         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92071         and AC_MINIX, too, so that their extensions are available.
92072
92073         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92074         This macro has been superseded by gl_BACKUPFILE.
92075
92076         More patches to assume C89 or better.
92077
92078         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92079
92080         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92081         unconditionally.
92082         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92083         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92084         Include <string.h>, <stdlib.h> unconditionally.
92085         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92086         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92087         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92088         headers or for string.h.
92089         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92090         or strtoul.
92091
92092         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92093         headers.
92094         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92095         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92096         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92097         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92098         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92099         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92100         memcpy, memset.
92101         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92102         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92103         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92104         strtol.
92105         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92106         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92107         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92108         strtoul.
92109
92110 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92111
92112         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92113         * lib/obstack.c [!defined _LIBC]: Likewise.
92114         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92115         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92116         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92117
92118         More changes to assume C89 or better.
92119
92120         * lib/error.c (error_tail): Assume vprintf.
92121
92122         * lib/argmatch.c (getenv): Remove decl.
92123         * lib/progreloc.c (get_full_program_name): Define via prototype.
92124         * lib/setenv.c (clearenv): Likewise.
92125         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92126         needed.
92127         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92128         (malloc, memcpy): Remove decls.
92129         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92130         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92131         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92132         (memcpy): Remove macro.
92133         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92134         (__P): Remove.  All uses removed.
92135         (PTR): Remove.  All uses changed to void *.
92136         (CHAR_BIT, NULL): Remove.
92137         (spaces, zeros, memset_space, memset_zero)
92138         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92139         Remove.
92140         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92141         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92142         Define with prototype.
92143         Remove now-unnecessary prototype decl.
92144         (extra_args_spec): Assume ANSI C.  All uses changed.
92145         (extra_args_spec_iso): Remove.
92146         (my_strftime, emacs_strftimeu): Define via prototype.
92147         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92148         unconditionally.
92149         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92150         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92151         (strtoul, strtol): Remove decls.
92152         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92153         LONG_MAX): Remove.
92154         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92155         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92156         (LOCALE_PARAM_PROTO): New macro.
92157         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92158         (INTERNAL (strtol), strtol): Define with a prototype.
92159         (PARAMS): Remove.  All uses removed.
92160         * lib/tempname.c: Include <string.h> unconditionally.
92161         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92162         * lib/xgethostname.c (main): Define with a prototype.
92163         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92164         Include <stdlib.h> unconditionally.
92165         (calloc, malloc, realloc, free): Remove decls.
92166         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92167         Include <stdlib.h> unconditionally.  Sort include file names.
92168         (strtod): Remove.
92169         (xstrtod): Define with a prototype.
92170         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92171         (strtol, strtoul): Remove decls.
92172
92173 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92174
92175         More patches to assume C89 or better.
92176         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92177         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92178         string.h, memchr, STDC_HEADERS.
92179
92180 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92181
92182         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92183         Include <stdlib.h>, <string.h> unconditionally.
92184         Remove now-unnecessary cast to char *.
92185         * lib/strnlen.c: Include <string.h> unconditionally.
92186         * lib/yesno.c (yesno): Define with a prototype.
92187
92188 2003-09-11  Bruno Haible  <bruno@clisp.org>
92189
92190         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92191
92192 2003-09-10  Jim Meyering  <jim@meyering.net>
92193
92194         * lib/error.c: Correct indentation of cpp directives.
92195
92196 2003-09-10  Bruno Haible  <bruno@clisp.org>
92197
92198         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92199         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92200         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92201         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92202         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92203         <stdlib.h> and <string.h> checks.
92204         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92205         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92206
92207 2003-09-10  Bruno Haible  <bruno@clisp.org>
92208
92209         * lib/strcspn.c: Include <string.h> unconditionally.
92210         * lib/strpbrk.c: Include <string.h> unconditionally.
92211         * lib/strstr.c: Include <string.h> unconditionally.
92212         * lib/unicodeio.c: Include <string.h> unconditionally.
92213         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92214         * lib/unsetenv.c: Likewise.
92215         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92216         * lib/yesno.c: Include <stdlib.h> unconditionally.
92217         (rpmatch): Add prototype.
92218
92219 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92220
92221         More patches to assume C89 or better.
92222         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92223         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92224         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92225         or for string.h.
92226         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92227         stdlib.h.
92228         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92229         C headers.
92230         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92231         string.h.
92232         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92233         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92234         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92235         or for string.h.
92236         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92237         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92238         C headers.
92239         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92240         memcpy.
92241         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92242         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92243         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92244         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92245         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92246         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92247         string.h, free.
92248         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92249         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92250         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92251         C headers, or for string.h.
92252         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92253         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92254         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92255         headers, memory.h, stdlib.h, string.h, strings.h.
92256         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92257         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92258         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92259         strchr.
92260         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92261         headers, memory.h, string.h.
92262         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92263         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92264         free.
92265         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92266         headers.
92267         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92268         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92269         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92270         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92271         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92272
92273 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92274
92275         More K&R removal.
92276
92277         * lib/acosl.c (main): Use a prototype.
92278         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92279         tanl.c: Likewise.
92280
92281         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92282
92283         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92284         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92285         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92286         with a prototype.
92287         * lib/getopt.c (const): Remove macro.
92288         Include <string.h> unconditionally.
92289         (my_index): Remove; all uses changed to strchr.
92290         (strlen): Remove decl.
92291         (exchange): Remove forward decl; no longer needed.
92292         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92293         Define with prototype.
92294         * lib/getopt1.c (const): Remove macro.
92295         (getopt_long, getopt_long_only, main): Define with prototype.
92296
92297         * lib/getugroups.c: Include <string.h> unconditionally.
92298
92299         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92300         (getusershell, setusershell, endusershell, readname, main):
92301         Define with prototypes.
92302
92303         * lib/group-member.c: Include group-member.h first.
92304         Include <stdlib.h> unconditionally.
92305
92306         * lib/hard-locale.c: Include hard-locale.h first.
92307         Include <stdlib.h>, <string.h> unconditionally.
92308
92309         * lib/hash.c (free, malloc): Remove decls.
92310         Include <stdlib.h> unconditionally.
92311
92312         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92313         (getenv): Do not declare.
92314
92315         * lib/idcache.c: Include <string.h> unconditionally.
92316
92317         * lib/long-options.c: Include long-options.h first, to test interface.
92318         Include <stdlib.h> unconditionally.
92319
92320         * lib/makepath.c: Include makepath.h first, to test interface.
92321         Include <stdlib.h> and <string.h> unconditionally.
92322
92323         * lib/linebuffer.c: Include <stdlib.h>.
92324         (free): Remove decl.
92325
92326         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92327         stddef.h. rpl_malloc returns void *, not char *.
92328         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92329         prototype.
92330
92331         * lib/md5.h: Include <limits.h> unconditionally.
92332         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92333         (__P): Remove; all uses removed.
92334         * lib/md5.c: Include "md5.h" first.
92335         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92336         md5_buffer, md5_process_bytes, md5_process_block):
92337         Define with prototypes.
92338         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92339         * lib/sha.c: Include "sha.h" first.
92340         Include <stdlib.h>, <string.h> unconditionally.
92341
92342         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92343         * lib/memcmp.c (__ptr_t): Likewise.
92344         * lib/memrchr.c (__ptr_t): Likewise.
92345         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92346         Include <string.h> unconditionally.
92347         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92348         * lib/memchr.c: Include <stdlib.h> unconditionally.
92349         * lib/memchr.c (LONG_MAX): Remove.
92350         * lib/memrchr.c (LONG_MAX): Likewise.
92351         * lib/memchr.c (__memchr): Define via a prototype.
92352         * lib/memrchr.c (__memrchr): Likewise.
92353         * lib/memcmp.c (__P): Remove, and remove all uses.
92354         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92355         Remove forward decls; no longer needed.
92356         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92357         Use types required by C89 in prototype.
92358
92359         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92360         * lib/savedir.c: Likewise.
92361         * lib/mkdir.c (free): Remove decl.
92362         * lib/rmdir.c (rmdir): Define with a prototype.
92363         * lib/savedir.c: Include savedir.h first, to test interface.
92364
92365         * lib/mktime.c (STDC_HEADERS): Remove.
92366         Include <stdlib.h>, <string.h> unconditionally.
92367
92368         * lib/modechange.c: Include <stdlib.h> unconditionally.
92369         (malloc): Remove decl.
92370
92371         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92372         (free): Remove decl.
92373
92374         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92375         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92376         (This type really should be intptr_t, but that's a C99ism.)
92377         (_obstack_memcpy): Remove: all uses changed to memcpy.
92378         Include <string.h> unconditionally.
92379         (struct obstack): Assume __STDC__ for types of members
92380         chunkfun, freefun, extra_arg.
92381         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92382         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92383         obstack_begin, obstack_specify_allocation,
92384         obstack_specify_allocation_with_arg, obstack_chunkfun,
92385         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92386         Remove unprototyped decls and the macros that use them.
92387         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92388         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92389         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92390         (defined __STDC__ && __STDC__)]:
92391         Remove nonprototyped code.
92392         Include <stdlib.h> unconditionally.
92393         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92394         _obstack_allocated_p, _obstack_free, obstack_free,
92395         _obstack_memory_used, print_and_abort):
92396         Define using prototypes.
92397         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92398         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92399         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92400         obstack_next_free, obstack_object_size, obstack_room) [0]:
92401         Remove unused, unprototyped code.
92402
92403         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92404
92405         * lib/physmem.c (physmem_total, physmem_available, main): Define
92406         with prototypes.
92407
92408         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92409         (main): Define with a prototype.
92410
92411         * lib/posixver.c (getenv): Remove decl.
92412
92413         * lib/putenv.c (malloc): Returns void *, not char *.
92414         Include <string.h> unconditionally.
92415         (strchr, memcpy, NULL): Do not define.
92416
92417         * lib/readtokens.c: Include readtokens.h first, to test interface.
92418         Include <stdlib.h>, <string.h> unconditionally.
92419         (init_tokenbuffer): Define with a prototype.
92420
92421         * lib/regex.c (PARAMS): Remove.  All uses removed.
92422         All uses of _RE_ARGS removed, too.
92423         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92424         unconditionally.
92425         (bzero): Assume memset exists.
92426         (memcmp, memcpy, NULL): Remove.
92427         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92428         char, or assignments to local vars of type signed char.
92429         (init_syntax_once, PREFIX(extract_number_and_incr),
92430         PREFIX(print_partial_compiled_pattern),
92431         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92432         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92433         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92434         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92435         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92436         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92437         wcs_compile_range, byte_compile_range, truncate_wchar,
92438         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92439         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92440         count_mbs_length, wcs_re_match_2_internal,
92441         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92442         PREFIX(alt_match_null_string_p),
92443         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92444         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92445         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92446         now-unnecessary declaration, if any.
92447         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92448         regcomp, regexec):
92449         Remove now-unnecessary casts among pointer types.
92450         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92451
92452         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92453         (free): Remove decl.
92454
92455         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92456
92457         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92458         (free): Remove decl.
92459
92460         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92461         * lib/xgetcwd.c: Likewise.
92462
92463         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92464         (free): Remove decl.
92465
92466         * lib/strchrnul.c (strchrnul): Define with a prototype.
92467         Fix bug: c_in was not converted to char before searching.
92468
92469         The following changes are not K&R related:
92470
92471         * lib/group-member.h: Include <sys/types.h>, so that this file is
92472         self-contained.
92473         * lib/makepath.h: Likewise.
92474
92475         * lib/getusershell.c (readname, default_index, line_size, readname):
92476         Use size_t, not int, for sizes.
92477         (readname): If the size overflows, report an error instead of
92478         looping forever.
92479
92480 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92481
92482         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92483         libc.
92484
92485 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92486
92487         * README: New section: portability guidelines.
92488
92489 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92490
92491         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92492         C89 spec.
92493
92494 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92495
92496         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92497
92498 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92499
92500         Assume C89 or better; remove K&R cruft.
92501         A few of these changes were first proposed by Derek Robert Price
92502         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92503
92504         * lib/addext.c: Include <string.h> unconditionally.
92505         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92506         Don't declare getenv or malloc.
92507
92508         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92509         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92510         (NULL): Remove.
92511         (find_stack_direction, alloca): Use prototypes.
92512
92513         * lib/atexit.c (atexit): Define using a prototype.
92514
92515         * lib/basename.c, dirname.c, stripslash.c:
92516         Include <string.h> unconditionally.
92517
92518         * lib/bcopy.c: Include <stddef.h>.
92519         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92520
92521         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92522
92523         * lib/error.h (error, error_at_line, error_print_progname)
92524         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92525         * lib/error.c: Include error.h first, to check interface.
92526         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92527         (VA_START): Remove; all uses changeed to va_start.
92528         (exit, strerror): Remove decls.
92529         (error_print_progname): Prototype uncondionally.
92530         Don't include <errno.h>; no longer needed.
92531         (private_strerror): Remove.
92532         (error_tail): Always define.
92533         (error, error_at_line): Assume C89 or better; always use prototypes.
92534         * lib/fatal.c: Include "fatal.h" first, to test interface.
92535         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92536         (VA_START): Remove; all uses changed to va_start.
92537         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92538         this case.
92539         (exit): Remove decl.
92540         (fatal): Prototype unconditionally.  Assume va_start works.
92541         Abort at end, to pacify gcc.
92542
92543         * lib/euidaccess.c (main): Define with a prototype.
92544
92545         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92546
92547         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92548
92549         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92550         prototypes.
92551         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92552         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92553         (getenv): Remove decl.
92554         (fnmatch): Define using a prototype.
92555         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92556         (FCT): Define using a prototype.
92557
92558         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92559
92560         * lib/gethostname.c: Include <stddef.h>.
92561         (gethostname): Define with prototype.  Length is size_t, not int.
92562
92563 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92564
92565         Assume C89 or better; remove K&R cruft.
92566         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92567         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92568         string.h, getenv, malloc.
92569         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92570         headers.
92571         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92572         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92573         do not check for strerror.
92574         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92575         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92576         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92577         do not check for doprnt or vprintf.
92578         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92579         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92580
92581 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92582
92583         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92584         getversion.c should have been removed then, but was accidentally
92585         preserved.
92586
92587         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92588         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92589
92590 2003-09-08  Karl Berry  <karl@gnu.org>
92591
92592         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92593                 config, forget about prep.
92594
92595         * config/depcomp, missing: update from automake.
92596
92597 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92598
92599         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92600         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92601
92602 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92603
92604         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92605         copy_tm_result.  Bug reported by Simon Josefsson in
92606         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92607
92608 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92609
92610         * m4/time_r.m4: New file.
92611         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92612         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92613         is. Check for timegm declaration.
92614         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92615         Do not check for gmtime_r.
92616         Replace mktime if __mktime_internal does not exist and if mktime
92617         hasn't been replaced already.
92618
92619 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92620
92621         * lib/time_r.c, lib/time_r.h: New files.
92622
92623         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92624         __localtime_r.
92625         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92626         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92627
92628         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92629         __gmtime_r.
92630         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92631         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92632         Include <time_r.h>.
92633
92634         * lib/timegm.c: Switch to glibc implementation, with the following
92635         changes:
92636         [defined HAVE_CONFIG_H]: Include <config.h>.
92637         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92638         (__mktime_internal) [!defined _LIBC]: New decl.
92639         (__gmtime_r) [!defined _LIBC]: New macro and function.
92640         (timegm): Use a prototype, since gnulib assumes C89.
92641         Do not bother declaring tmp to be const, as it's not really usefu.
92642         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92643         (timegm): Declare only if HAVE_DECL_TIMEGM.
92644
92645 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92646
92647         * MODULES.html.sh (func_all_modules): Add time_r.
92648         * modules/time_r: New file.
92649         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92650         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92651
92652 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92653
92654         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92655         Bug reported by Lute Kamstra in
92656         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92657
92658         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92659         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92660         course with correspondingly smaller numbers for tomorrow and
92661         yesterday.  From Tadayoshi Funaba.  Originally installed into
92662         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92663         coreutils merge?).
92664
92665 2003-08-31  Simon Josefsson  <jas@extundo.com>
92666
92667         * modules/timegm: New file.
92668         * MODULES.html.sh (func_all_modules): Add timegm.
92669
92670 2003-08-31  Simon Josefsson  <jas@extundo.com>
92671
92672         * m4/timegm.m4: New file.
92673
92674 2003-08-31  Simon Josefsson  <jas@extundo.com>
92675
92676         * lib/timegm.h: New file.
92677         * lib/timegm.c: New file.  Based on
92678         wget-1.8.2/src/http.c:mktime_from_utc.
92679
92680 2003-08-31  Karl Berry  <karl@gnu.org>
92681
92682         * lib/argp.h: update from libc.
92683
92684 2003-08-28  Bruno Haible  <bruno@clisp.org>
92685
92686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92687         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92688         followed by '#define fnmatch fnmatch_posix' gives an error.
92689
92690 2003-08-28  Bruno Haible  <bruno@clisp.org>
92691
92692         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92693         warning on QNX, which defines O_BINARY to 000000.
92694
92695 2003-08-27  Jim Meyering  <jim@meyering.net>
92696
92697         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92698         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92699         would fail after 32.  Reported by Danny Levinson.  Details here:
92700         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92701
92702 2003-08-24  Bruno Haible  <bruno@clisp.org>
92703
92704         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92705         MSVC7 <stdio.h> is included later.
92706
92707 2003-08-22  Simon Josefsson  <jas@extundo.com>
92708
92709         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92710
92711 2003-08-20  Karl Berry  <karl@gnu.org>
92712
92713         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92714
92715 2003-08-20  Bruno Haible  <bruno@clisp.org>
92716
92717         * modules/progname: New file.
92718         * MODULES.html.sh (func_all_modules): Add progname.
92719
92720 2003-08-20  Bruno Haible  <bruno@clisp.org>
92721
92722         * lib/progname.h: New file, from GNU gettext.
92723         * lib/progname.c: New file, from GNU gettext.
92724         * lib/progreloc.c: New file, from GNU gettext.
92725
92726 2003-08-19  Jim Meyering  <jim@meyering.net>
92727
92728         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92729         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92730
92731 2003-08-19  Bruno Haible  <bruno@clisp.org>
92732
92733         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92734         more.
92735
92736 2003-08-19  Bruno Haible  <bruno@clisp.org>
92737
92738         * lib/xstrdup.c: Assume <string.h> exists.
92739
92740 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92741
92742         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92743         in makefile rules.
92744
92745 2003-08-18  Jim Meyering  <jim@meyering.net>
92746
92747         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92748         * m4/lib-ld.m4: Likewise.
92749
92750 2003-08-18  Jim Meyering  <jim@meyering.net>
92751
92752         * lib/setenv.h: Indent nested cpp directive.
92753         * lib/vasnprintf.c: Remove trailing blanks.
92754
92755 2003-08-17  Simon Josefsson  <jas@extundo.com>
92756
92757         * modules/xstrndup: New file.
92758         * MODULES.html.sh (func_all_modules): Add xstrndup.
92759
92760 2003-08-17  Simon Josefsson  <jas@extundo.com>
92761
92762         * modules/argp: Fix autoconf macro name. Add more dependencies.
92763
92764 2003-08-17  Simon Josefsson  <jas@extundo.com>
92765
92766         * m4/xstrndup.m4: New file.
92767
92768 2003-08-17  Simon Josefsson  <jas@extundo.com>
92769
92770         * m4/argp.m4: New file.
92771
92772 2003-08-17  Simon Josefsson  <jas@extundo.com>
92773             Bruno Haible  <bruno@clisp.org>
92774
92775         * lib/xstrndup.h: New file.
92776         * lib/xstrndup.c: New file.
92777
92778 2003-08-17  Bruno Haible  <bruno@clisp.org>
92779
92780         * modules/strndup (Files, Include): Add lib/strndup.h.
92781
92782 2003-08-17  Bruno Haible  <bruno@clisp.org>
92783
92784         * modules/euidaccess (Files): Add lib/euidaccess.h.
92785
92786 2003-08-17  Bruno Haible  <bruno@clisp.org>
92787
92788         * lib/strndup.h: New file.
92789
92790 2003-08-17  Bruno Haible  <bruno@clisp.org>
92791
92792         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92793         like AC_GNU_SOURCE.
92794         * modules/extensions (configure.ac): Comment out the invocation of
92795         gl_USE_SYSTEM_EXTENSIONS.
92796
92797 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92798
92799         Merges from coreutils, etc.
92800         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92801         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92802         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92803         fixing a typo.
92804         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92805         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92806
92807 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92808
92809         Document merge from coreutils.
92810         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92811         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92812         * modules/utime: Add m4/utimes-null.m4.
92813
92814 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92815
92816         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92817         space, undoing this 2003-08-12 change:
92818         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92819
92820 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92821
92822         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92823         strtoul.c from libc, undoing this 2003-08-12 change:
92824         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92825
92826 2003-08-16  Jim Meyering  <jim@meyering.net>
92827
92828         Merges from coreutils.
92829         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92830         prefix.  Adjust cache variables similarly.  Create 500 rather than
92831         just 300 files, to exercise bug on Darwin6.5, too.
92832         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92833         $missing_dir.
92834         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92835         AM_SYS_POSIX_TERMIOS.
92836         Reported by mkc@mathdogs.com.
92837         Also change use of $am_cv_sys_posix_termios
92838         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92839         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92840         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92841         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92842         in /proc/mounts until it finds one with matching device number.  This
92843         is unnecessary when the FILE argument *is* a mount point.  No stat call
92844         is necessary in that case.  So, disable the statvfs-testing code on
92845         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92846         as RedHat bug# 84846.
92847         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92848         to 1MB, so as not to render systems with no stack size limit (e.g.,
92849         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92850         Include <unistd.h>.  On some systems,
92851         it is required for the definition of _SC_PAGESIZE.
92852
92853 2003-08-16  Jim Meyering  <jim@meyering.net>
92854
92855         Merge from coreutils.
92856         * lib/xstrtoimax.c: #else #if -> #elif.
92857         * lib/xstrtoumax.c: Likewise.
92858
92859 2003-08-16  Jim Meyering  <jim@meyering.net>
92860
92861         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92862         * m4/utimes.m4: Removed.
92863         * m4/utimes-null.m4: Renamed from utimes.m4.
92864
92865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92866         to 1MB, so as not to render systems with no stack size limit (e.g.,
92867         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92868         Include <unistd.h>.  On some systems,
92869         it is required for the definition of _SC_PAGESIZE.
92870
92871 2003-08-16  Jim Meyering  <jim@meyering.net>
92872         and Paul Eggert  <eggert@cs.ucla.edu>
92873
92874         Merges from coreutils, etc.
92875
92876         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92877         using the latest version from cvs.  This avoids problems with #line
92878         directives using a vendor (Sun) compiler.
92879         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92880         Don't set GETGROUPS_LIB here; now it's
92881         done via getgroups.m4's wrapper function.
92882         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92883         rather than just in sh-util/configure.in, so that the
92884         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92885         same.
92886         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92887         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92888         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92889         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92890         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92891         Remove code that is now done by the newly-required macros.
92892         Append $(EXEEXT) to DF_PROG.
92893         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92894         Do not invoke or require the following here,
92895         since prereq.m4 or some gnulib .m4 now does this for us:
92896         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92897         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92898         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92899         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92900         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92901         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92902         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92903         AC_FUNC_OBSTACK.
92904         Do not replace the following functions, as this is now the job
92905         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92906         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92907         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92908         atexit getpass, strdup, getpagesize.
92909         Replace 'raise'.
92910         Do not check for the following functions, as this is now the job
92911         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92912         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92913         setregid.
92914         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92915         Check for sys/sysctl.h.
92916         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92917         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92918         of checking for ssize_t ourselves.
92919
92920         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92921         Require every macro that gnulib/modules/* suggests for us.
92922         (jm_PREREQ_ADDEXT): New macro.
92923         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92924         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92925
92926         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92927         (gl_PHYSMEM): Use it.
92928         Also check for `table' function.
92929         Check for new headers and functions.
92930         Add check for sys/sysmp.h.
92931         With suggestions from Kaveh Ghazi.
92932         Ignore headers that are present but cannot be compiled.  This
92933         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92934         C 5.4.
92935
92936 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92937
92938         Document merge from coreutils.
92939         * modules/userspec: Depend on posixver.
92940         * modules/strftime: Depend on tzset.
92941
92942 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92943
92944         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92945         rather than tab, after '#' in shell-script copyright notices.
92946         Suggested by Bruno Haible.
92947
92948 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92949
92950         * config/srclist-update: Use three spaces, rather than tab, after '#'
92951         in shell-script copyright notices.  Suggested by Bruno Haible.
92952         Remove unnecessary parenthesization in regular expression.
92953
92954 2003-08-15  Jim Meyering  <jim@meyering.net>
92955
92956         Merge from coreutils.
92957         * lib/xgethostname.c: Include <stdlib.h>.
92958         (xghostname): Don't exit for anything other than memory-related
92959         failure; just return NULL.
92960         * lib/userspec.c: Include "posixver.h".
92961         (parse_user_spec): Accept `.' as a separator only
92962         in pre-POSIX-200112 mode.
92963         * lib/strtoimax.c: Use #elif rather than #else #if.
92964         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92965         Remove function, now that we can rely on a working tzset function.
92966         [!_LIBC]: Ensure that the required autoconf test has been run.
92967         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92968         Use underlying_strftime for %r.
92969         * lib/sha.c: Merge in some clean-up and optimization changes from
92970         glibc.
92971         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92972         Ensure that it is a multiple of 64.
92973         Rearrange loop exit tests so as to avoid performing an
92974         additional fread after encountering an error or EOF.
92975         * lib/realloc.c: Update copyright date.
92976
92977 2003-08-15  Jim Meyering  <jim@meyering.net>
92978         and Paul Eggert  <eggert@twinsun.com>
92979
92980         Merge from coreutils.
92981         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92982         member but strut utmpx does not.  Needed for AIX 4.3.3.
92983         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92984
92985 2003-08-15  Jim Meyering  <jim@meyering.net>
92986         and Paul Eggert  <eggert@cs.ucla.edu>
92987
92988         Merges from coreutils, etc.
92989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92990         Require gl_FUNC_TZSET_CLOBBER.
92991         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92992         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92993         members.
92994
92995 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92996
92997         Help the merge from coreutils.
92998         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92999         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93000         * m4/tzset.m4: Use it too.
93001
93002 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93003
93004         * modules/tzset: New file.
93005
93006 2003-08-14  Jim Meyering  <jim@meyering.net>
93007
93008         Merges from coreutils.
93009         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93010         variable names, rather than @FNMATCH_H@.
93011         * modules/alloca: Likewise for $(ALLOCA_H).
93012
93013         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93014         the three copies of the literal target, `fnmatch.h'.
93015         * modules/alloca (alloca.h): Likewise.
93016
93017 2003-08-14  Jim Meyering  <jim@meyering.net>
93018
93019         Merge from coreutils.
93020         * m4/tzset.m4: New file.
93021         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93022         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93023         otherwise, AIX 5.1 systems would end up using the latter.
93024         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93025         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93026         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93027         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93028
93029 2003-08-14  Jim Meyering  <jim@meyering.net>
93030
93031         Merge from coreutils.
93032         * lib/obstack.h: Whitespace changes.
93033         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93034         and xcalloc return values.
93035         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93036         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93037         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93038         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93039         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93040         error from mntctl.
93041         Use mntctl's return value to drive the entry-processing loop, since
93042         we can't rely on the value of the vmt_length member in the last
93043         entry.  On some systems doing so could result in exhausting
93044         virtual memory.  Based in part on a patch from Mike Jetzer.
93045
93046 2003-08-14  Jim Meyering  <jim@meyering.net>
93047         and Paul Eggert  <eggert@twinsun.com>
93048
93049         Merges from coreutils, plus other fixes.
93050         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93051         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93052         for credits and details.  Thanks to Kaveh Ghazi for helping
93053         to keep these files in sync.
93054         (ARRAY_SIZE): Define it.
93055         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93056         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93057         (memcasecmp): Don't assume size_t fits in unsigned int.
93058         Remove casts and duplicate code.
93059         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93060         (memcpy): Remove definition.
93061         Merge in some clean-up and optimization changes from glibc.
93062         [BLOCKSIZE]: Move definition to top of file.
93063         Ensure that it is a multiple of 64.
93064         Rearrange loop exit tests so as to avoid performing an
93065         additional fread after encountering an error or EOF.
93066         * lib/md5.h (md5_uintptr): Define.
93067         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93068         return to the initial working directory.  Preserve errno
93069         for caller.
93070         * lib/idcache.c: Include "xalloc.h".
93071         (xmalloc, xrealloc): Remove decls.
93072         (getuser): Remove casts no longer required in C89.
93073         * lib/human.c: Include stdio.h, for sprintf.
93074         * lib/group-member.c: Include "xalloc.h".
93075         (xmalloc, xrealloc): Remove decls.
93076         (get_group_info): Remove casts no longer required in C89.
93077         * lib/getusershell.c (readname): Remove casts no longer required in
93078         C89.
93079         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93080         * lib/getline.c: Whitespace fix, from coreutils.
93081
93082 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93083
93084         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93085         Check for isascii.
93086
93087         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93088         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93089         Undo previous (whitespace-only) change.
93090
93091 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93092
93093         * lib/exclude.c: Include <ctype.h>
93094         (IN_CTYPE_DOMAIN): New macro.
93095         (is_space): New fn.
93096         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93097         and empty lines.
93098
93099         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93100         Undo previous (whitespace-only) change.
93101
93102 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93103
93104         * config/srclist-update: Change update back to the old behavior,
93105         leaving whitespace alone.  Use one 'sed' command rather than a
93106         pipeline.
93107         (fixlicense): Now a variable, not a function.
93108         (remove_trailing_blanks): Remove.
93109         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93110         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93111         Undo previous (whitespace-only) change.
93112
93113 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93114
93115         Merge from coreutils.
93116         * modules/euidaccess: Add lib_SOURCES, include for new
93117         file euidaccess.h
93118
93119 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93120
93121         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93122         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93123         Normalize leading white space and remove trailing white space.
93124
93125         Merge from coreutils
93126         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93127
93128         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93129         0.12.1.  These files are now being upgraded automatically by
93130         ../config/srclist-update.
93131
93132 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93133
93134         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93135         Normalize leading white space and remove trailing white space.
93136         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93137         notice, as per ../config/srclist-update.
93138
93139         Merge from coreutils.
93140         * lib/euidaccess.h: New file.
93141         * lib/euidaccess.c: Include it.
93142         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93143         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93144         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93145
93146 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93147
93148         * config/srclist-update: Add copyright notice.
93149         (remove_id_lines, remove_trailing_blanks): New constants.
93150         (fixfile): Use them to normalize spacing a bit in copied files.
93151         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93152         Normalize leading white space and remove trailing white space.
93153
93154         * config/texinfo.tex: Sync with texinfo.
93155
93156         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93157         strtoul.c from libc, to merge coreutils whitespace changes.
93158
93159         * config/srclist.txt: Get the following m4 files from gettext:
93160         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93161         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93162         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93163         wint_t.m4.
93164
93165 2003-08-12  Karl Berry  <karl@gnu.org>
93166
93167         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93168         been made.
93169
93170 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93171
93172         * modules/gnu-source, m4/gnu-source.m4:
93173         Remove; we're assuming Autoconf 2.54 or later now.
93174         Suggested by Bruno Haible.
93175         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93176
93177 2003-08-11  Bruno Haible  <bruno@clisp.org>
93178
93179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93180
93181 2003-08-11  Bruno Haible  <bruno@clisp.org>
93182
93183         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93184         (vasnprintf): Use it instead of wcslen.
93185
93186 2003-08-11  Bruno Haible  <bruno@clisp.org>
93187
93188         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93189         value to ensure that _Bool promotes to int. Use #define for _Bool when
93190         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93191
93192 2003-08-10  Karl Berry  <karl@gnu.org>
93193
93194         * lib/regex.h: update from libc (whitespace fix).
93195
93196 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93197
93198         Merge some files from coreutils.  These changes were
93199         originally made by Jim Meyering.
93200         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93201         many older Unixes require this.
93202         * lib/alloca.c (alloca): Remove cast to argument of free;
93203         no longer needed in C89.
93204         * lib/alloca_.h, regex.h: Fix white space to match
93205         what GNU indent does.
93206
93207 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93208
93209         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93210         apparently Emacs's Unicode mode got confused before my 2003-08-05
93211         checkin.
93212
93213 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93214
93215         * m4/extensions.m4: New file.
93216         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93217         Require gl_USE_SYSTEM_EXTENSIONS.
93218         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93219         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93220
93221 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93222
93223         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93224         * modules/extensions, modules/gnu-source: New files.
93225         * modules/timespec, modules/unlocked-io: Depend on extensions.
93226
93227 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93228
93229         * modules/restrict: New file.
93230         * MODULES.html.sh (func_all_modules): Add restrict.
93231         * modules/regex: Depend on restrict.
93232
93233 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93234
93235         * m4/restrict.m4: New file.
93236         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93237
93238 2003-08-07  Bruno Haible  <bruno@clisp.org>
93239
93240         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93241         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93242
93243 2003-08-07  Bruno Haible  <bruno@clisp.org>
93244
93245         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93246         makes the module 'getndelim2' compatible with the module 'getline'.
93247
93248 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93249
93250         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93251         byte with "\201" to avoid glitches when editing that source file
93252         with multi-gnome-terminal.
93253
93254 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93255
93256         * lib/bumpalloc.h: Remove.
93257
93258 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93259
93260         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93261         * modules/bumpalloc: Remove.
93262
93263 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93264
93265         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93266         GNU coding style.
93267
93268         Merge from coreutils.
93269         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93270         1. From glibc.
93271         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93272         from Karl Berry, implemented by Jim Meyering.
93273         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93274         from Dmitry V. Levin.
93275         Remove anachronistic cast of xrealloc.
93276         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93277         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93278         type. Otherwise, it wouldn't compile with at least /bin/cc on
93279         ymp-cray-unicos9.0.2.X.
93280         Combine two mostly-identical uses of alloca into one.
93281         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93282
93283 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93284
93285         [From Emacs.]
93286
93287         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93288         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93289         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93290         obsolete NLIST_NAME_UNION.
93291         [__GNU__]: Undef BSD and FSCALE.
93292         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93293
93294 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93295
93296         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93297         an enum type, so that it's guaranteed to promote to int.  See:
93298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93299
93300 2003-08-03  Karl Berry  <karl@gnu.org>
93301
93302         * config/depcomp: update from automake.
93303
93304 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93305
93306         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93307         (strerror): Don't assume that a printable int fits in 14 bytes.
93308
93309 2003-07-31  Bruno Haible  <bruno@clisp.org>
93310
93311         * modules/getpass-gnu: New file.
93312         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93313
93314 2003-07-31  Bruno Haible  <bruno@clisp.org>
93315
93316         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93317
93318 2003-07-24  Karl Berry  <karl@gnu.org>
93319
93320         * config/missing: update from automake.
93321
93322 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93323             Bruno Haible  <bruno@clisp.org>
93324
93325         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93326         * lib/getline.c (getline, getdelim): Likewise.
93327         Remove _GNU_SOURCE define; now it's defined in config.h through
93328         m4/getline.m4.
93329
93330 2003-07-23  Karl Berry  <karl@gnu.org>
93331
93332         * config/config.sub: update from prep.
93333
93334 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93335
93336         * modules/xalloc (Depends-on): Add exitfail.
93337         * modules/xmemcoll: Likewise.
93338
93339 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93340
93341         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93342         over-parenthesization in macros.
93343
93344         Sync with coreutils.
93345
93346         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93347         required by C99.
93348
93349         Use `exit_failure' for xalloc and xmemcoll instead of their own
93350         private exit-failure variables.
93351         * lib/xalloc.h (xalloc_exit_failure): Remove.
93352         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93353         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93354         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93355         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93356         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93357
93358 2003-07-20  Jim Meyering  <jim@meyering.net>
93359
93360         * modules/closeout (Depends-on): Add exitfail.
93361         Suggestion from Bruno Haible.
93362
93363 2003-07-19  Karl Berry  <karl@gnu.org>
93364
93365         * config/config.sub: update from prep.
93366
93367 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93368
93369         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93370         Remove.
93371         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93372         to test that it can stand by itself.  Include "exitfail.h".
93373         Clients should set exit_failure instead.
93374         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93375
93376 2003-07-18  Bruno Haible  <bruno@clisp.org>
93377
93378         * modules/getndelim2: New file.
93379         * modules/getline: Share files with module getndelim2.
93380         * modules/getnline: Depend on getndelim2 instead of sharing files with
93381         it. Add getnline.c to lib_SOURCES.
93382         * MODULES.html.sh (func_all_modules): Add getndelim2.
93383
93384 2003-07-18  Bruno Haible  <bruno@clisp.org>
93385
93386         * m4/getndelim2.m4: New file.
93387         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93388         invoke gl_PREREQ_GETNDELIM2.
93389         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93390         gl_PREREQ_GETNDELIM2.
93391         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93392         gl_GETNDELIM2.
93393
93394 2003-07-18  Bruno Haible  <bruno@clisp.org>
93395
93396         * lib/getndelim2.h: New file.
93397         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93398         getndelim2.h.
93399         (getndelim2): Make non-static. Change return type to ssize_t.
93400         * lib/getline.h: Change argument names.
93401         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93402         * lib/getnline.c: Include getndelim2.h.
93403
93404 2003-07-18  Andreas Schwab  <schwab@suse.de>
93405
93406         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93407
93408 2003-07-17  Karl Berry  <karl@gnu.org>
93409
93410         * config/config.sub: update from prep.
93411
93412 2003-07-17  Bruno Haible  <bruno@clisp.org>
93413
93414         * modules/getnline: New file.
93415         * modules/getline: Add lib/getndelim2.c to source file list.
93416         * MODULES.html.sh (func_all_modules): Add getnline.
93417
93418 2003-07-17  Bruno Haible  <bruno@clisp.org>
93419
93420         * m4/getnline.m4: New file.
93421
93422 2003-07-17  Bruno Haible  <bruno@clisp.org>
93423
93424         * m4/Makefile.am.in: Remove file.
93425         * m4/Makefile.am: Remove file.
93426         * m4/Makefile.in: Remove file.
93427
93428 2003-07-17  Bruno Haible  <bruno@clisp.org>
93429
93430         * lib/getnline.h: New file.
93431         * lib/getnline.c: New file.
93432         * lib/getndelim2.c: New file, extracted from getline.c.
93433         (getndelim2): Renamed from getdelim2, with added nmax argument.
93434         * lib/getline.c: Include getndelim2.c.
93435         (getdelim2): Moved out to getndelim2.c.
93436         (getline, getdelim): Update.
93437
93438 2003-07-17  Bruno Haible  <bruno@clisp.org>
93439
93440         * lib/Makefile.am: Remove file.
93441         * lib/Makefile.in: Remove file.
93442
93443 2003-07-17  Bruno Haible  <bruno@clisp.org>
93444
93445         * configure.in: Remove file.
93446         * Makefile.in: Remove file.
93447
93448 2003-07-17  Bruno Haible  <bruno@clisp.org>
93449
93450         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93451
93452 2003-07-16  Karl Berry  <karl@gnu.org>
93453
93454         * config/srclist-update: was running fixlicense twice, which caused
93455                 texinfo.tex to be nullified for some reason.  Simplify,
93456                 $gplsrc is no longer needed as far as I can see?
93457
93458 2003-07-16  Jim Meyering  <jim@meyering.net>
93459
93460         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93461
93462 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93463
93464         * config/srclist.txt: Get the following files from gettext-runtime/intl
93465         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93466         ref-del.sin.  From Bruno Haible.
93467         * config/srclist-update (fixfile): Change grep pattern again, since the
93468         previous fix didn't work (there was another trailing $).  Use
93469         '[$]' to escape the $s.
93470
93471 2003-07-15  Karl Berry  <karl@gnu.org>
93472
93473         * lib/vasnprintf.c: update from gettext.
93474
93475 2003-07-15  Karl Berry  <karl@gnu.org>
93476
93477         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93478         gets expanded when surrounded by '$'.
93479
93480 2003-07-15  Jim Meyering  <jim@meyering.net>
93481
93482         * modules/save-cwd: Don't depend on error.  From Derek Price.
93483
93484 2003-07-15  Jim Meyering  <jim@meyering.net>
93485
93486         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93487
93488 2003-07-14  Simon Josefsson  <jas@extundo.com>
93489
93490         * modules/mempcpy: New file.
93491         * MODULES.html.sh (func_all_modules): Add mempcpy.
93492
93493 2003-07-14  Simon Josefsson  <jas@extundo.com>
93494
93495         * m4/mempcpy.m4: New file.
93496
93497 2003-07-14  Simon Josefsson  <jas@extundo.com>
93498
93499         * lib/mempcpy.h: New file.
93500         * lib/mempcpy.c: New file.
93501
93502 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93503
93504         * modules/getdate, modules/posixtm: Depend on mktime.
93505
93506 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93507
93508         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93509         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93510         unicodeio.c, unicodeio.h, unlocked-io.h:
93511         Switch from LGPL to GPL.
93512
93513 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93514
93515         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93516         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93517         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93518         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93519         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93520         updated automatically by ../config/srclist-update.  This changes
93521         their license from LPGL to GPL.
93522
93523 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93524
93525         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93526         assumed to refer to the root of the most recent stable gettext version.
93527         * config/srclistvars.sh: Add defaults for eggert.
93528         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93529         Match "This program" as well as "The program".  This is needed
93530         for gettext.
93531
93532 2003-07-14  Jim Meyering  <jim@meyering.net>
93533
93534         Don't emit diagnostics.  Let callers do that.
93535         * lib/save-cwd.c: Don't include "error.h".
93536         (save_cwd): Don't call error.  Ensure that errno is valid
93537         when returning nonzero.
93538
93539         * lib/save-cwd.h (restore_cwd): Update prototype.
93540         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93541         Simplify.  Don't call error upon failure.  Let callers do that.
93542         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93543         when auditing is enabled.  But don't bother updating the #if.
93544
93545 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93546
93547         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93548         it breaks C++ compilation.
93549         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93550
93551 2003-07-10  Simon Josefsson  <jas@extundo.com>
93552
93553         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93554
93555 2003-07-10  Jim Meyering  <jim@meyering.net>
93556
93557         * m4/clock_time.m4: Remove trailing blank.
93558         * m4/intmax_t.m4: Likewise.
93559
93560 2003-07-10  Jim Meyering  <jim@meyering.net>
93561
93562         * lib/vasnprintf.c: Remove trailing blanks.
93563         Make cpp indentation consistent.
93564
93565 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93566
93567         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93568         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93569         Switch from LGPL to GPL.
93570
93571 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93572
93573         * config/srclist.txt: Sort sublists.  Add
93574         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93575         that differ from gnulib for one reason or another; we'd like this list
93576         to be smaller but for now let's document what we have.
93577
93578 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93579
93580         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93581         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93582         and sweeter "eval x=$x".
93583         * config/srclist.txt: Get lib/argp* from glibc.
93584
93585 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93586
93587         * lib/mktime.c: Fix some boundary cases and remove need for floating
93588         point.
93589
93590         Issue a compile-time diagnostic if time_t is floating point, or if
93591         two's complement arithmetic is not in effect, or if arithmetic
93592         right shift does not propagate the sign.  These assumptions were
93593         all in the original code but they weren't checked.
93594
93595         (TIME_T_MIDPOINT, verify): New macros.
93596         (__isleap): Remove; it has integer overflow problems.
93597         (leapyear): New function, without those problems.
93598         (ydhms_tm_diff): Remove; splitting into two parts.
93599         (ydhms_diff): New function, containing the arithmetic part of
93600         the old ydhms_tm_diff function.  Issue a compile-time
93601         diagnostic if we are not using C99 integer division.
93602         Avoid casts when possible.
93603         (guess_time_tm): New function, containing the checking part of
93604         the old ydhms_tm_diff function.  Return the new value, rather than
93605         the difference between it and the old.  Accept a new argument T
93606         so that *T specifies the old value.  Check for overflow in the result.
93607
93608         (__mktime_internal): Use a time_t offset, not a long int offset.
93609         This undoes the 2003-06-04 change, which is no longer needed now
93610         that we have better overflow checking.
93611         (localtime_offset): Likewise.
93612
93613         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93614         and long are 64-bit but int is only 32-bit.
93615         (ydhms_diff): Use long int to store year1 and yday1.
93616         Issue a compile-time diagnostic if long int is not wide enough.
93617
93618         (__mktime_internal): Use long int to store adjusted year and yday.
93619         Use plain C rather than preprocessor commands, if that doesn't
93620         affect efficiency.
93621         Check for overflow (and try to repair) after each probe
93622         rather than checking only at the very end.  This avoids some bugs
93623         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93624         does not equal GMT offset at maximum time).
93625         Use integer to check for overflow rather than floating point; this
93626         is more portable to non-IEEE hosts, and is a tad faster.
93627         When we detect that we are oscillating between two values,
93628         don't check whether tm_isdst has the requested value, since
93629         we already know the answer.  When tm_isdst has the wrong value,
93630         use a different heuristic to find the right one, based on the
93631         extreme values actually observed in practice in tz2003a,
93632         rather than the (overly optimistic) "previous 3 calendar quarters".
93633
93634         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93635         "T const" to accommodate glibc style.
93636         (check_result): Use less-confusing report format.  "long" -> "long int.
93637         (main): Likewise.
93638         Don't loop if the iteration overflows time_t.
93639         Allow a negative step in the iteration.
93640
93641 2003-07-06  Karl Berry  <karl@gnu.org>
93642
93643         * config/depcomp: update from automake.
93644         * config/config.sub: update from prep.
93645
93646 2003-07-03  Karl Berry  <karl@gnu.org>
93647
93648         * config/config.guess: update from prep.
93649
93650 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93651
93652         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93653         xreadlink.c now includes it unconditionally.
93654
93655 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93656
93657         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93658         having it depend on HAVE_SYS_TYPES_H.
93659
93660 2003-07-01  Bruno Haible  <bruno@clisp.org>
93661
93662         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93663         <sys/types.h> should be sufficient.
93664         Reported by Paul Eggert.
93665
93666 2003-06-26  Karl Berry  <karl@gnu.org>
93667
93668         * config/depcomp: update from automake.
93669
93670 2003-06-26  Bruno Haible  <bruno@clisp.org>
93671
93672         * modules/human: Depend on module stdbool.
93673
93674 2003-06-25  Bruno Haible  <bruno@clisp.org>
93675
93676         * modules/readlink: New file.
93677         * modules/xreadlink: Depend on it.
93678         * MODULES.html.sh (func_all_modules): Add readlink.
93679
93680 2003-06-25  Bruno Haible  <bruno@clisp.org>
93681
93682         * m4/readlink.m4: New file.
93683
93684 2003-06-25  Bruno Haible  <bruno@clisp.org>
93685
93686         * lib/readlink.c: New file.
93687
93688 2003-06-22  Karl Berry  <karl@gnu.org>
93689
93690         * config/srclist.txt: update mkinstalldirs from automake.
93691         * config/mkinstalldirs: update.
93692
93693 2003-06-22  Bruno Haible  <bruno@clisp.org>
93694
93695         Portability to mingw32.
93696         * m4/ssize_t.m4: New file, from GNU gettext.
93697         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93698         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93699
93700 2003-06-22  Bruno Haible  <bruno@clisp.org>
93701
93702         * modules/safe-read: Add m4/ssize_t.m4.
93703         * modules/xreadlink: Add m4/ssize_t.m4.
93704
93705 2003-06-20  Bruno Haible  <bruno@clisp.org>
93706
93707         Assume C89, so PARAMS isn't needed.
93708         * lib/unicodeio.h (PARAMS): Remove.
93709         * lib/unicodeio.c: Don't use PARAMS.
93710
93711 2003-06-18  Karl Berry  <karl@gnu.org>
93712
93713         * config/config.{guess,sub}: update from prep.
93714
93715 2003-06-18  Jim Meyering  <jim@meyering.net>
93716
93717         Merge changes from coreutils.
93718         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93719         Remove explicit declarations of xmalloc and realloc.
93720         Include xalloc.h.
93721         (read_utmp): Remove anachronistic cast of xmalloc.
93722
93723 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93724
93725         Assume C89, so PARAMS isn't needed.
93726         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93727         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93728         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93729         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93730         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93731         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93732         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93733         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93734         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93735         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93736         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93737         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93738         no longer needed. Anyway, config.h should always be included before any
93739         other file.
93740
93741 2003-06-11  Simon Josefsson  <jas@extundo.com>
93742
93743         * modules/sysexits: New file.
93744         * MODULES.html.sh (func_all_modules): Add sysexits.
93745
93746 2003-06-11  Simon Josefsson  <jas@extundo.com>
93747
93748         * lib/sysexit_.h: New file.
93749
93750 2003-06-11  Derek Price  <derek@ximbiot.com>
93751
93752         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93753         necessary.
93754
93755 2003-06-11  Bruno Haible  <bruno@clisp.org>
93756
93757         * m4/sysexits.m4: New file.
93758
93759 2003-06-10  Simon Josefsson  <jas@extundo.com>
93760
93761         * lib/argp.h: New file, from glibc.
93762         * lib/argp-ba.c: New file, from glibc.
93763         * lib/argp-eexst.c: New file, from glibc.
93764         * lib/argp-fmtstream.c: New file, from glibc.
93765         * lib/argp-fmtstream.h: New file, from glibc.
93766         * lib/argp-fs-xinl.c: New file, from glibc.
93767         * lib/argp-help.c: New file, from glibc.
93768         * lib/argp-namefrob.h: New file, from glibc.
93769         * lib/argp-parse.c: New file, from glibc.
93770         * lib/argp-pv.c: New file, from glibc.
93771         * lib/argp-pvh.c: New file, from glibc.
93772         * lib/argp-xinl.c: New file, from glibc.
93773
93774 2003-06-10  Simon Josefsson  <jas@extundo.com>
93775
93776         * modules/strchrnul: New file.
93777
93778 2003-06-10  Simon Josefsson  <jas@extundo.com>
93779
93780         * modules/argp: New file.
93781
93782 2003-06-10  Simon Josefsson  <jas@extundo.com>
93783
93784         * m4/strchrnul.m4: New file.
93785
93786 2003-06-10  Simon Josefsson  <jas@extundo.com>
93787
93788         * lib/strchrnul.h: New file.
93789         * lib/strchrnul.c: New file.
93790
93791 2003-06-10  Bruno Haible  <bruno@clisp.org>
93792
93793         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93794
93795 2003-06-07  Karl Berry  <karl@gnu.org>
93796
93797         * config/config.{guess,sub}: update from prep.
93798
93799 2003-06-07  Jim Meyering  <jim@meyering.net>
93800
93801         * modules/strtod: Use $(...) notation, not @...@ for
93802         AC_REPLACE'd variables.
93803         * modules/localcharset: Likewise.
93804
93805 2003-06-07  Jim Meyering  <jim@meyering.net>
93806
93807         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93808         in place of my name in the copyright comment.
93809         Remove definition and uses of __P.
93810
93811         From coreutils.
93812         * lib/stat.c: Don't declare xmalloc explicitly.
93813         Instead, include "xalloc.h".
93814         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93815         xrealloc, and xcalloc return values.
93816         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93817         Improve comment.
93818         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93819
93820 2003-06-07  Bruno Haible  <bruno@clisp.org>
93821
93822         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93823         avoid AC_CONFIG_LINKS.
93824         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93825         fnmatch.h, to avoid AC_CONFIG_LINKS.
93826         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93827
93828 2003-06-07  Bruno Haible  <bruno@clisp.org>
93829
93830         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93831         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93832         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93833         directory.
93834         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93835         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93836         directory.
93837
93838 2003-06-06  Jim Meyering  <jim@meyering.net>
93839
93840         Merge from coreutils.
93841         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93842         Consolidate declarations and initializations of *_base* locals.
93843
93844         Merge from coreutils.
93845         This avoids a core dump on systems without GNU putenv,
93846         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93847         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93848         (unsetenv): New static function, from GNU libc.
93849         (rpl_putenv): Use it.
93850
93851         * lib/modechange.c: Remove trailing blanks.
93852
93853         Merge from coreutils.
93854         * lib/fsusage.c: Remove declaration of statfs.
93855         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93856
93857         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93858
93859 2003-06-06  Jim Meyering  <jim@meyering.net>
93860
93861         * lib/stdbool_.h: Renamed from stdbool.h.in.
93862
93863 2003-06-06  Jim Meyering  <jim@meyering.net>
93864             Bruno Haible  <bruno@clisp.org>
93865
93866         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93867         Adjust Makefile.am snippet not to redirect directly to target.
93868         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93869
93870 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93871
93872         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93873         mismatch, look in future quarters as well as past.  This fixes a
93874         bug when processing fall-backwards gaps immediately after a long
93875         period of daylight-saving time.
93876
93877         * lib/mktime.c: Assume freestanding C89 or better.
93878         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93879         (__P): Remove; not used.
93880         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93881         (mktime, not_equal_tm, print_tm, check_result,
93882         main): Use prototypes.  Use const * where appropriate.
93883         (main): Fix typo in testing code that uncovered by above changes.
93884         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93885
93886 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93887
93888         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93889         locale.h, localeconv.  This merges changes from coreutils.
93890
93891         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93892         It can be removed after the next Autoconf is released.
93893         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93894         needed.
93895
93896 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93897
93898         * lib/mktime.c: Fix Debian bug 177940
93899         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93900         (localtime_offset): Now long int, not time_t, because we want it
93901         to be guaranteed to be signed.  All uses changed.
93902         (__mktime_internal): If overflow would occur when adding offset,
93903         don't add it.
93904
93905         Merge 'human' changes from coreutils.  Rewrite to support
93906         locale-specific notations like thousands separators.
93907         * lib/human.c: Simplify authorship notice.
93908         Include human.h immediately after config.h.
93909         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93910         <limits.h>: Do not include, since human.h does.
93911         (SIZE_MAX, UINTMAX_MAX): New macros.
93912         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93913         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93914         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93915         (power_letter): Renamed from suffixes.
93916         (generate_suffix_backwards): Remove.
93917         (adjust_value): Now takes int style (because of human.h changes)
93918         and long double value (for greater precision on some platforms).
93919         (group_number): New function.
93920         (human_readable): Use it.  Use integer options, not enum.
93921         Put the options before the sizes in the arg list.
93922         Support all the new options.
93923         The old human_readable function has been removed;
93924         use inttostr.h instead.
93925         (human_readable, default_block_size, humblock):
93926         Use uintmax_t, not int, for block sizes.
93927         (human_readable_inexact, block_size_types): Remove.
93928         (block_size_opts): New constant.
93929         (human_options): Renamed from human_block_size, with new signature
93930         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93931         * lib/human.h: Add copyright and authorship notice.
93932         Include <limits.h> and <stdbool.h> unconditionally.
93933         (PARAMS): Remove.  All uses removed.
93934         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93935         (enum human_inexact_style): Remove tag; now a nameless enum.
93936         (human_floor, human_ceiling, human_round_to_even): Now have
93937         values 2, 0, 1 rather than -1, 1, 0.
93938         (human_group_digits, human_suppress_point_zero, human_autoscale,
93939         human_base_1024, human_SI, human_B): New constants.
93940         (human_readable_inexact, human_block_size): Remove.
93941         (human_readable): Size args are now uintmax_t, not int.
93942         (human_options): New decl.
93943
93944         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93945         unnecessary now that we assume C89 or better.  This change
93946         imported from coreutils.
93947
93948         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93949         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93950         in the 2003-05-30 sync from glibc.
93951
93952         .h files should stand alone, but we shouldn't include <sys/types.h>
93953         if we can get away with just <stddef.h>.
93954
93955         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93956         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93957         rather than <sys/types.h>, as we merely need size_t.
93958         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93959         to get size_t.
93960         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93961         Include <stdio.h>, to get FILE.
93962         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93963         memcasecmp.h has included <stddef.h> and all we need is size_t.
93964         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93965         our interface, instead of including <sys/types.h>
93966
93967 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93968
93969         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93970         now, as glibc mktime is buggy on non-glibc systems.
93971
93972 2003-06-03  Karl Berry  <karl@gnu.org>
93973
93974         * config/config.sub: update from prep.
93975
93976 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93977
93978         [from coreutils]
93979         Fix some minor time-related bugs with POSIX time arguments.
93980         Some valid time stamps were being rejected (notably -1, and
93981         time stamps before 1900 on 64-bit hosts).  And some invalid
93982         time stamps were being accepted, e.g. September 31.
93983
93984         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93985         that we can return (time_t) -1 successfully.
93986         * lib/posixtm.c: Likewise.
93987         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93988         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93989         (t): Remove static var.
93990         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93991         of static var.  All uses changed.
93992         (year): Do not reject years before 1900; they can occur with
93993         64-bit time_t.
93994         (posix_time_parse): Do not check for out-of-range components;
93995         that is now the caller's responsibility, since our checks were
93996         only approximations.
93997         (posixtime): Use mktime to check for out-of-range components,
93998         since it knows them exactly.
93999         If mktime returns (time_t) -1, check whether an error actually occurred
94000         by invoking localtime on -1.
94001         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94002         posixtime failures better.
94003         Improve the test data (in comments only).
94004
94005 2003-06-02  Karl Berry  <karl@gnu.org>
94006
94007         * config/mkinstalldirs (version): new variable.
94008         (--version): new option.
94009         (usage): improve message.
94010
94011 2003-05-30  Karl Berry  <karl@gnu.org>
94012
94013         * lib/mktime.c: update from libc.
94014
94015 2003-05-30  Bruno Haible  <bruno@clisp.org>
94016
94017         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94018         * config/config.rpath: Upgrade to gettext-0.12.1.
94019
94020 2003-05-30  Bruno Haible  <bruno@clisp.org>
94021
94022         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94023         * m4/nls.m4: New file, from gettext-0.12.1.
94024         * m4/po.m4: New file, from gettext-0.12.1.
94025         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94026
94027 2003-05-30  Bruno Haible  <bruno@clisp.org>
94028
94029         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94030         * lib/localcharset.h: Likewise.
94031         * lib/localcharset.c: Likewise.
94032
94033 2003-05-29  Karl Berry  <karl@gnu.org>
94034
94035         * config/config.rpath: update from gettext.
94036
94037 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94038
94039         Assume the headers required for C89 freestanding compilers.
94040         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94041         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94042         * m4/human.m4 (gl_HUMAN): Likewise.
94043         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94044         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94045         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94046         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94047         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94048         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94049
94050 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94051
94052         Assume the headers required for C89 freestanding compilers.
94053         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94054         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94055         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94056         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94057         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94058         define, since <limits.h> is guaranteed to do that.
94059         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94060         * lib/exclude.c: Include <stdbool.h> unconditionally.
94061         * lib/tempname.c: Include <stddef.h> unconditionally.
94062         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94063         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94064         <stddef.h> does that.
94065         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94066         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94067         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94068         needed.
94069         * lib/xstrtol.c: Likewise.
94070         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94071         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94072
94073         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94074         warnings on some platforms.
94075
94076         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94077         arbitrarily.
94078
94079 2003-05-26  Jim Meyering  <jim@meyering.net>
94080
94081         Merge in a change from coreutils:
94082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94083         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94084         that condition, rather than `-1' which is slightly misleading.
94085         Change the name of the cache variable to have the gl_ prefix.
94086         Prompted by a patch from Richard Dawe for DJGPP.
94087
94088 2003-05-24  Karl Berry  <karl@gnu.org>
94089
94090         * config/config.guess: update from prep.
94091
94092 2003-05-22  Karl Berry  <karl@gnu.org>
94093
94094         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94095
94096 2003-05-20  Karl Berry  <karl@gnu.org>
94097
94098         * config/config.guess: update from prep.
94099
94100 2003-05-18  Karl Berry  <karl@gnu.org>
94101
94102         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94103         might actually be set by the user.
94104
94105         * config/depcomp, install-sh, mdate-sh: update from automake.
94106
94107 2003-05-17  Bruno Haible  <bruno@clisp.org>
94108
94109         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94110         invalid expansion for AC_EGREP_CPP.
94111         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94112         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94113         Suggested by Akim Demaille <akim@epita.fr> in
94114         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94115
94116 2003-05-12  Jim Meyering  <jim@meyering.net>
94117
94118         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94119         the space-padded-by-default conversion specifiers, %e, %k, %l.
94120
94121 2003-05-12  Bruno Haible  <bruno@clisp.org>
94122
94123         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94124         the string is longer than 4 KB.
94125
94126 2003-05-11  Karl Berry  <karl@gnu.org>
94127
94128         * config/config.{guess,sub}: update from prep.
94129
94130 2003-05-09  Bruno Haible  <bruno@clisp.org>
94131
94132         * modules/error: Add m4/strerror_r.m4 to file list.
94133
94134 2003-05-03  Bruno Haible  <bruno@clisp.org>
94135
94136         Upgrade to Unicode-4.0.
94137         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94138         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94139         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94140         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94141         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94142         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94143         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94144         Change width of U+E0100..U+E01EF from 1 to 0.
94145
94146 2003-04-25  Jim Meyering  <jim@meyering.net>
94147
94148         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94149         of type size_t, not int.
94150
94151 2003-04-25  Bruno Haible  <bruno@clisp.org>
94152
94153         * lib/copy-file.c: Include <stddef.h>, for size_t.
94154
94155 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94156
94157         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94158         code which expansion is under static control.  Patch imported from
94159         Akim Demaille's patch to Bison; see
94160         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94161
94162 2003-04-14  Bruno Haible  <bruno@clisp.org>
94163
94164         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94165
94166 2003-04-11  Jim Meyering  <jim@meyering.net>
94167
94168         Merge changes from Coreutils.
94169
94170         2003-03-22  Jim Meyering  <jim@meyering.net>
94171
94172         * lib/strftime.c (widen): Cast alloca return value to proper type.
94173
94174         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94175
94176         From GNU libc.
94177         * lib/strftime.c (my_strftime): Handle very large width
94178         specifications for numeric values correctly.  Improve checks for
94179         overflow.
94180
94181         2003-01-19  Jim Meyering  <jim@meyering.net>
94182
94183         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94184         definitions.
94185         (nl_get_alt_digit) [! defined my_strftime]: Define.
94186         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94187         _nl_get_alt_digit and _nl_get_walt_digit.
94188
94189         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94190         libc. These changes have no effect outside of _LIBC.
94191
94192 2003-04-10  Bruno Haible  <bruno@clisp.org>
94193
94194         * modules/findprog: New file.
94195         * MODULES.html.sh (func_all_modules): Add it.
94196
94197 2003-04-10  Bruno Haible  <bruno@clisp.org>
94198
94199         * m4/findprog.m4: New file.
94200         * m4/eaccess.m4: New file.
94201
94202 2003-04-10  Bruno Haible  <bruno@clisp.org>
94203
94204         * lib/findprog.h: New file, from GNU gettext.
94205         * lib/findprog.c: New file, from GNU gettext.
94206
94207 2003-04-05  Jim Meyering  <jim@meyering.net>
94208
94209         Merge changes from Coreutils.
94210
94211         * lib/exclude.h (PARAMS): Remove definition and uses.
94212         * lib/exclude.c: Remove uses of `PARAMS'.
94213
94214         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94215         Add test-cases for DOS filenames. Declare program_name.
94216         (main): Set up program_name.  Patch by Rich Dawe.
94217
94218         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94219         error from mntctl.
94220         Use mntctl's return value to drive the entry-processing loop, since
94221         we can't rely on the value of the vmt_length member in the last
94222         entry.  On some systems doing so could result in exhausting
94223         virtual memory.  Based in part on a patch from Mike Jetzer.
94224
94225 2003-04-04  Bruno Haible  <bruno@clisp.org>
94226
94227         * modules/linebreak: New file.
94228         * MODULES.html.sh (func_all_modules): Add it.
94229
94230 2003-04-04  Bruno Haible  <bruno@clisp.org>
94231
94232         * m4/linebreak.m4: New file.
94233
94234 2003-04-04  Bruno Haible  <bruno@clisp.org>
94235
94236         * lib/linebreak.h: New file, from GNU gettext.
94237         * lib/linebreak.c: New file, from GNU gettext with slight
94238         modifications.
94239         * lib/lbrkprop.h: New file, from GNU gettext.
94240
94241 2003-04-03  Bruno Haible  <bruno@clisp.org>
94242
94243         * modules/utf8-ucs4: New file.
94244         * modules/utf16-ucs4: New file.
94245         * modules/ucs4-utf8: New file.
94246         * modules/ucs4-utf16: New file.
94247         * MODULES.html.sh (func_all_modules): Add them.
94248
94249 2003-04-03  Bruno Haible  <bruno@clisp.org>
94250
94251         * m4/utf-ucs4.m4: New file.
94252         * m4/ucs4-utf.m4: New file.
94253
94254 2003-04-03  Bruno Haible  <bruno@clisp.org>
94255
94256         * lib/utf8-ucs4.h: New file, from GNU gettext.
94257         * lib/utf16-ucs4.h: New file, from GNU gettext.
94258         * lib/ucs4-utf8.h: New file, from GNU gettext.
94259         * lib/ucs4-utf16.h: New file, from GNU gettext.
94260
94261 2003-04-02  Bruno Haible  <bruno@clisp.org>
94262
94263         * modules/binary-io: New file.
94264         * MODULES.html.sh (func_all_modules): Add it.
94265
94266 2003-04-02  Bruno Haible  <bruno@clisp.org>
94267
94268         * lib/binary-io.h: New file, from GNU gettext.
94269
94270 2003-04-01  Bruno Haible  <bruno@clisp.org>
94271
94272         * modules/pathname: New file.
94273         * MODULES.html.sh (func_all_modules): Add it.
94274
94275 2003-04-01  Bruno Haible  <bruno@clisp.org>
94276
94277         * lib/pathname.h: New file, from GNU gettext.
94278         * lib/concatpath.c: New file, from GNU gettext.
94279
94280 2003-03-30  Bruno Haible  <bruno@clisp.org>
94281
94282         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94283
94284 2003-03-30  Bruno Haible  <bruno@clisp.org>
94285
94286         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94287         function chown() doesn't exist.
94288
94289 2003-03-28  Bruno Haible  <bruno@clisp.org>
94290
94291         * modules/copy-file: New file.
94292         * MODULES.html.sh (func_all_modules): Add it.
94293
94294 2003-03-28  Bruno Haible  <bruno@clisp.org>
94295
94296         * m4/copy-file.m4: New file.
94297
94298 2003-03-28  Bruno Haible  <bruno@clisp.org>
94299
94300         * lib/copy-file.h: New file, from GNU gettext.
94301         * lib/copy-file.c: New file, from GNU gettext.
94302
94303 2003-03-18  Jim Meyering  <jim@meyering.net>
94304
94305         * lib/quote.c (quote_n): Fix typo in comment.
94306
94307 2003-03-18  Bruno Haible  <bruno@clisp.org>
94308
94309         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94310         checking.
94311         * m4/onceonly_2_57.m4: Likewise.
94312
94313 2003-03-17  Bruno Haible  <bruno@clisp.org>
94314
94315         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94316         (m4_quote): Remove macro.
94317         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94318
94319 2003-03-14  Jim Meyering  <jim@meyering.net>
94320
94321         Merge changes from Coreutils.
94322         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94323         to be const, in order to avoid warnings.
94324         (obstack_room): Likewise.
94325         (obstack_empty_p): Likewise.
94326
94327 2003-03-14  Bruno Haible  <bruno@clisp.org>
94328
94329         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94330         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94331
94332 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94333
94334         Merge changes from Bison.
94335         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94336         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94337         when compiling Bison 1.875's `bitset bset = obstack_alloc
94338         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94339         * lib/hash.c: Include <stdbool.h> unconditionally.
94340
94341 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94342
94343         * m4/onceonly.m4 (m4_quote): New macro.
94344         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94345         Quote AC_FOREACH variable-expansions properly.
94346
94347 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94348
94349         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94350
94351 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94352
94353         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94354         Reported by Bruce Becker; see:
94355         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94356
94357 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94358             Bruno Haible  <bruno@clisp.org>
94359
94360         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94361         Reported by John Hughes, see
94362         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94363
94364 2003-02-20  Bruno Haible  <bruno@clisp.org>
94365
94366         * MODULES.html.sh (func_all_modules): Add poll.
94367
94368 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94369
94370         * modules/poll: New file.
94371
94372 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94373
94374         * lib/poll_.h: New file.
94375         * lib/poll.c: New file.
94376
94377 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94378
94379         * m4/poll.m4: New file.
94380
94381 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94382
94383         * modules/mathl: New file.
94384
94385 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94386
94387         * lib/mathl.h: New file.
94388         * lib/acosl.c: New file.
94389         * lib/asinl.c: New file.
94390         * lib/atanl.c: New file.
94391         * lib/ceill.c: New file.
94392         * lib/cosl.c: New file.
94393         * lib/expl.c: New file.
94394         * lib/floorl.c: New file.
94395         * lib/frexpl.c: New file.
94396         * lib/ldexpl.c: New file.
94397         * lib/logl.c: New file.
94398         * lib/sincosl.c: New file.
94399         * lib/sinl.c: New file.
94400         * lib/sqrtl.c: New file.
94401         * lib/tanl.c: New file.
94402         * lib/trigl.c: New file.
94403         * lib/trigl.h: New file.
94404
94405 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94406
94407         * m4/mathl.m4: New file.
94408
94409 2003-02-18  Bruno Haible  <bruno@clisp.org>
94410
94411         * MODULES.html.sh (func_all_modules): Add mathl.
94412
94413 2003-02-17  Bruno Haible  <bruno@clisp.org>
94414
94415         * modules/mkdtemp: New module.
94416         * MODULES.html.sh (func_all_modules): Add it.
94417
94418 2003-02-17  Bruno Haible  <bruno@clisp.org>
94419
94420         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94421
94422 2003-02-17  Bruno Haible  <bruno@clisp.org>
94423
94424         * lib/mkdtemp.h: New file, from GNU gettext.
94425         * lib/mkdtemp.c: New file, from GNU gettext.
94426
94427 2003-02-02  Jim Meyering  <jim@meyering.net>
94428
94429         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94430         e.g. glibc-2.2.93.
94431
94432 2003-01-31  Bruno Haible  <bruno@clisp.org>
94433
94434         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94435         'rpl_rename'.
94436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94437         'rpl_strnlen'.
94438         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94439         'rpl_strtod'.
94440         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94441         'rpl_utime'.
94442
94443 2003-01-31  Bruno Haible  <bruno@clisp.org>
94444
94445         * lib/rename.c: #undef rename before defining rpl_rename.
94446         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94447
94448 2003-01-30  Bruno Haible  <bruno@clisp.org>
94449
94450         * modules/vasnprintf, modules/vasprintf: New modules.
94451         * MODULES.html.sh (func_all_modules): Add them.
94452
94453 2003-01-30  Bruno Haible  <bruno@clisp.org>
94454
94455         * m4/signed.m4: New file, from GNU gettext.
94456         * m4/longdouble.m4: New file, from GNU gettext.
94457         * m4/wchar_t.m4: New file, from GNU gettext.
94458         * m4/wint_t.m4: New file, from GNU gettext.
94459         * m4/vasnprintf.m4: New file.
94460         * m4/vasprintf.m4: New file.
94461
94462 2003-01-30  Bruno Haible  <bruno@clisp.org>
94463
94464         * lib/printf-args.h: New file, from GNU gettext.
94465         * lib/printf-args.c: New file, from GNU gettext.
94466         * lib/printf-parse.h: New file, from GNU gettext.
94467         * lib/printf-parse.c: New file, from GNU gettext.
94468         * lib/vasnprintf.h: New file, from GNU gettext.
94469         * lib/vasnprintf.c: New file, from GNU gettext.
94470         * lib/asnprintf.c: New file, from GNU gettext.
94471         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94472         * lib/vasprintf.c: New file, from GNU gettext.
94473         * lib/asprintf.c: New file, from GNU gettext.
94474
94475 2003-01-29  Bruno Haible  <bruno@clisp.org>
94476
94477         * modules/stpncpy: New module.
94478         * MODULES.html.sh (func_all_modules): Add it.
94479
94480 2003-01-29  Bruno Haible  <bruno@clisp.org>
94481
94482         * m4/stpncpy.m4: New file.
94483
94484 2003-01-29  Bruno Haible  <bruno@clisp.org>
94485
94486         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94487         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94488
94489 2003-01-28  Bruno Haible  <bruno@clisp.org>
94490
94491         * modules/c-ctype: New module.
94492         * MODULES.html.sh (func_all_modules): Add it.
94493
94494 2003-01-28  Bruno Haible  <bruno@clisp.org>
94495
94496         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94497         Paul Eggert.
94498         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94499         Paul Eggert.
94500
94501 2003-01-27  Bruno Haible  <bruno@clisp.org>
94502
94503         * modules/xsetenv: New module.
94504         * MODULES.html.sh (func_all_modules): Add it.
94505
94506 2003-01-27  Bruno Haible  <bruno@clisp.org>
94507
94508         * lib/xsetenv.h: New file, from GNU gettext.
94509         * lib/xsetenv.c: New file, from GNU gettext.
94510
94511 2003-01-23  Jim Meyering  <jim@meyering.net>
94512
94513         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94514         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94515
94516 2003-01-23  Bruno Haible  <bruno@clisp.org>
94517
94518         * modules/minmax: New module.
94519         * MODULES.html.sh (func_all_modules): Add it.
94520
94521 2003-01-23  Bruno Haible  <bruno@clisp.org>
94522
94523         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94524         Eggert.
94525
94526 2003-01-22  Bruno Haible  <bruno@clisp.org>
94527
94528         * modules/exit: New module.
94529         * MODULES.html.sh (func_all_modules): Add it.
94530
94531 2003-01-22  Bruno Haible  <bruno@clisp.org>
94532
94533         * lib/exit.h: New file, from GNU gettext.
94534
94535 2003-01-19  Bruno Haible  <bruno@clisp.org>
94536
94537         * gnulib-tool: Recognize option --extract-maintainer.
94538         (func_get_maintainer): New function.
94539         * modules/*: Add Maintainer entry.
94540
94541 2003-01-16  Jim Meyering  <jim@meyering.net>
94542
94543         * m4/regex.m4: The `regex' struct is both input and output.
94544         Initialize it before each use.  Patch by Tim Waugh.
94545
94546 2003-01-16  Bruno Haible  <bruno@clisp.org>
94547
94548         * MODULES.html.sh: Add a table of contents. Add the module name as
94549         leftmost column. Add hyperlinks.
94550
94551 2003-01-15  Bruno Haible  <bruno@clisp.org>
94552
94553         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94554
94555 2003-01-15  Bruno Haible  <bruno@clisp.org>
94556
94557         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94558         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94559         suffix.
94560
94561 2003-01-15  Bruno Haible  <bruno@clisp.org>
94562
94563         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94564
94565 2003-01-15  Bruno Haible  <bruno@clisp.org>
94566
94567         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94568         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94569
94570 2003-01-14  Jim Meyering  <jim@meyering.net>
94571
94572         * lib/same.c (same_name): Tweak a comment.
94573
94574 2003-01-14  Bruno Haible  <bruno@clisp.org>
94575
94576         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94577         when a string comparison is sufficient.
94578
94579 2003-01-14  Bruno Haible  <bruno@clisp.org>
94580
94581         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94582         'unsigned int'.
94583
94584 2003-01-14  Bruno Haible  <bruno@clisp.org>
94585
94586         * lib/hash-pjw.c: Add comment about low quality of this function.
94587
94588 2003-01-13  Bruno Haible  <bruno@clisp.org>
94589
94590         * modules/stpcpy: Distribute lib/stpcpy.h.
94591         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94592
94593 2003-01-13  Bruno Haible  <bruno@clisp.org>
94594
94595         * modules/*: Add a description.
94596         * modules/strpbrk: Fix Makefile.am snippet.
94597         * modules/strtoimax: Fix dependencies.
94598         * modules/strtoumax: Likewise.
94599
94600 2003-01-13  Bruno Haible  <bruno@clisp.org>
94601
94602         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94603         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94604         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94605
94606 2003-01-13  Bruno Haible  <bruno@clisp.org>
94607
94608         * gnulib-tool (func_create_testdir): Store config/* files in the main
94609         directory.
94610         * config.rpath: Move to ...
94611         * config/config.rpath: ... here.
94612         * modules/gettext: Contains config/config.rpath, not config.rpath.
94613         * modules/iconv: Likewise.
94614
94615 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94616
94617         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94618         to avoid collisions with libcurses and libreadline.
94619
94620         * m4/getstr.m4: Remove.
94621         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94622
94623 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94624
94625         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94626         to avoid collisions with libcurses and libreadline.
94627
94628         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94629         * lib/getstr.h, getstr.c: Remove.
94630         * lib/getline.c: Include "getline.h", to check interface.
94631         Move body of old getstr.c here: this defines MIN_CHUNK and
94632         declares getdelim2, which is renamed from getstr.
94633         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94634
94635         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94636         All uses changed.
94637         * lib/linebuffer.h: Likewise.
94638         (readline): Remove backward-compatibility macro.
94639
94640 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94641
94642         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94643         to avoid collisions with libcurses and libreadline.
94644         * getstr: Remove.
94645         * MODULES.html.sh: Remove getstr.
94646         * modules/getline: Depend on unlocked-io, not getstr.
94647
94648 2003-01-12  Jim Meyering  <jim@meyering.net>
94649
94650         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94651
94652 2003-01-10  Bruno Haible  <bruno@clisp.org>
94653
94654         * modules/alloca: Change Makefile.am requirements. Simplify Include
94655         requirements. Add lib/alloca_.h to file list.
94656
94657 2003-01-10  Bruno Haible  <bruno@clisp.org>
94658
94659         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94660
94661 2003-01-10  Bruno Haible  <bruno@clisp.org>
94662
94663         * lib/alloca_.h: New file.
94664         * lib/getdate.y: Unconditionally include alloca.h.
94665         * lib/makepath.c: Likewise.
94666         * lib/setenv.c: Likewise.
94667         * lib/userspec.c: Likewise.
94668
94669 2003-01-09  Karl Berry  <karl@gnu.org>
94670
94671         * MODULES.html.sh: include `dirname $0` in PATH, to find
94672         gnulib-tool.
94673
94674 2003-01-09  Bruno Haible  <bruno@clisp.org>
94675
94676         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94677         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94678
94679 2003-01-09  Bruno Haible  <bruno@clisp.org>
94680
94681         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94682
94683 2003-01-09  Bruno Haible  <bruno@clisp.org>
94684
94685         * lib/stdbool.h.in: New file.
94686
94687 2003-01-09  Bruno Haible  <bruno@clisp.org>
94688
94689         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94690         * MODULES.html.sh: Likewise.
94691
94692 2003-01-08  Jim Meyering  <jim@meyering.net>
94693
94694         * lib/full-write.c: Undefine and define-away `const' after inclusion
94695         of errno.h, not before.  Suggestion from Bruno Haible.
94696
94697 2003-01-08  Bruno Haible  <bruno@clisp.org>
94698
94699         * modules/full-read: Depend on full-write.
94700
94701 2003-01-08  Bruno Haible  <bruno@clisp.org>
94702
94703         * lib/safe-read.c: Include specification header first, to ensure its
94704         selfcontainedness.
94705         * lib/full-write.c: Likewise.
94706
94707 2003-01-07  Jim Meyering  <jim@meyering.net>
94708
94709         * lib/full-write.c: Rework so that it may serve to define full_read,
94710         too.
94711         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94712
94713 2003-01-07  Bruno Haible  <bruno@clisp.org>
94714
94715         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94716         <inttypes.h>.
94717         * lib/xstrtol.h: Likewise.
94718         * lib/xstrtoimax.c: Likewise.
94719         * lib/xstrtoumax.c: Likewise.
94720         * lib/human.h: Likewise.
94721
94722         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94723         on systems that have <inttypes.h> but not <stdint.h>.
94724
94725 2003-01-07  Bruno Haible  <bruno@clisp.org>
94726
94727         * MODULES.html.sh: Add copyright notice.
94728         (missed_files): Omit CVS directory entries.
94729         (func_module): Make it work with sed-3.02.
94730         * MODULES.txt: Remove file.
94731
94732 2003-01-06  Jim Meyering  <jim@meyering.net>
94733
94734         * lib/version-etc.c: Update year in translatable copyright string.
94735
94736 2003-01-03  Karl Berry  <karl@gnu.org>
94737
94738         * config/config.{guess,sub}: update from prep.
94739
94740 2003-01-02  Karl Berry  <karl@gnu.org>
94741
94742         * doc/COPYING.DOC: belatedly updated to 1.2.
94743
94744 2003-01-01  Karl Berry  <karl@gnu.org>
94745
94746         * gnulib-tool (func_verify_module): report module name $module in
94747         error message, not $1.
94748         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94749         be created, only if it doesn't exist.
94750         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94751
94752 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94753
94754         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94755
94756 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94757
94758         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94759         memcmp if strcoll doesn't work.
94760
94761 2002-12-31  Bruno Haible  <bruno@clisp.org>
94762
94763         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94764         nonempty.
94765
94766 2002-12-31  Bruno Haible  <bruno@clisp.org>
94767
94768         * lib/memcoll.c (STRCOLL): New macro.
94769         (memcoll): Use it.
94770
94771 2002-12-31  Bruno Haible  <bruno@clisp.org>
94772
94773         * lib/localcharset.h: New file.
94774         * lib/localcharset.c: Include it.
94775         * lib/unicodeio.c: Likewise.
94776
94777 2002-12-31  Bruno Haible  <bruno@clisp.org>
94778
94779         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94780         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94781
94782 2002-12-31  Bruno Haible  <bruno@clisp.org>
94783
94784         * lib/getline.h: Include <stddef.h>, for size_t.
94785
94786         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94787         * lib/unicodeio.c: Don't include <stddef.h>.
94788
94789 2002-12-31  Bruno Haible  <bruno@clisp.org>
94790
94791         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94792         HAVE_TM_ZONE.
94793
94794 2002-12-24  Karl Berry  <karl@gnu.org>
94795
94796         * config/config.guess: update from prep.
94797
94798 2002-12-24  Bruno Haible  <bruno@clisp.org>
94799
94800         General infrasructure.
94801         * m4/README: Rewritten.
94802         * m4/onceonly.m4: New file.
94803         * m4/onceonly_2_57.m4: New file.
94804
94805         Module atexit.
94806         * m4/atexit.m4: New file.
94807
94808         Module strtod.
94809         * m4/strtod.m4: New file.
94810
94811         Module strtol.
94812         * m4/strtol.m4: New file.
94813
94814         Module strtoul.
94815         * m4/strtoul.m4: New file.
94816
94817         Module memchr.
94818         * m4/memchr.m4: New file.
94819
94820         Module memcmp.
94821         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94822         (jm_FUNC_MEMCMP): Invoke it.
94823
94824         Module memcpy.
94825         * m4/memcpy.m4: New file.
94826
94827         Module memmove.
94828         * m4/memmove.m4: New file.
94829
94830         Module memset.
94831         * m4/memset.m4: New file.
94832
94833         Module strcspn.
94834         * m4/strcspn.m4: New file.
94835
94836         Module strpbrk.
94837         * m4/strpbrk.m4: New file.
94838
94839         Module strstr.
94840         * m4/strstr.m4: New file.
94841
94842         Module strerror.
94843         * m4/strerror.m4: New file.
94844
94845         Module mktime.
94846         * m4/mktime.m4: Renamed from jm-mktime.m4.
94847         (gl_PREREQ_MKTIME): New macro.
94848         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94849
94850         Module malloc.
94851         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94852         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94853         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94854
94855         Module realloc.
94856         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94857         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94858         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94859
94860         Module strftime.
94861         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94862         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94863         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94864         gl_TM_GMTOFF.
94865         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94866
94867         Module xalloc.
94868         * m4/xalloc.m4: New file.
94869
94870         Module alloca.
94871         * m4/alloca.m4: New file.
94872
94873         Module putenv.
94874         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94875         (jm_FUNC_PUTENV): Invoke it.
94876
94877         Module setenv.
94878         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94879         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94880         when invoked twice.
94881         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94882         gt_FUNC_SETENV.
94883
94884         Module memrchr.
94885         * m4/memrchr.m4: New file.
94886
94887         Module stpcpy.
94888         * m4/stpcpy.m4: New file.
94889
94890         Module strcase.
94891         * m4/strcase.m4: New file.
94892
94893         Module strdup.
94894         * m4/strdup.m4: New file.
94895
94896         Module strnlen.
94897         * m4/strnlen.m4: New file.
94898
94899         Module strndup.
94900         * m4/strndup.m4: New file.
94901
94902         Module xstrtod.
94903         * m4/xstrtod.m4: New file.
94904
94905         Module xstrtol.
94906         * m4/xstrtol.m4: New file.
94907
94908         Module getdate.
94909         * m4/getdate.m4: New file.
94910
94911         Module unlocked-io.
94912         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94913         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94914         * m4/jm-glibc-io.m4n: Remove file.
94915
94916         Module long-options.
94917         * m4/long-options.m4: New file.
94918
94919         Module md5.
94920         * m4/md5.m4: New file.
94921
94922         Module sha.
94923         * m4/sha.m4: New file.
94924
94925         Module getstr.
94926         * m4/getstr.m4: New file.
94927
94928         Module getline.
94929         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94930         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94931         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94932         simply getline. Infoke gl_PREREQ_GETLINE.
94933
94934         Module obstack.
94935         * m4/obstack.m4: New file.
94936
94937         Module hash.
94938         * m4/hash.m4: New file.
94939
94940         Module readtokens.
94941         * m4/readtokens.m4: New file.
94942
94943         Module strverscmp.
94944         * m4/strverscmp.m4: New file.
94945
94946         Module stdbool.
94947         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94948         OSF/1.
94949
94950         Module strtoll.
94951         * m4/strtoll.m4: New file.
94952
94953         Module strtoull.
94954         * m4/strtoull.m4: New file.
94955
94956         Module strtoimax.
94957         * m4/strtoimax.m4: New file.
94958
94959         Module strtoumax.
94960         * m4/strtoumax.m4: New file.
94961
94962         Module xstrtoimax.
94963         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94964         jm_AC_PREREQ_XSTRTOIMAX.
94965         Moved the strtol prerequisites to strtol.m4.
94966         Moved the strtoll prerequisites to strtoll.m4.
94967         Moved the strtoimax prerequisites to strtoimax.m4.
94968
94969         Module xstrtoumax.
94970         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94971         jm_AC_PREREQ_XSTRTOUMAX.
94972         Moved the strtoul prerequisites to strtoul.m4.
94973         Moved the strtoull prerequisites to strtoull.m4.
94974         Moved the strtoumax prerequisites to strtoumax.m4.
94975
94976         Module chown.
94977         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94978         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94979
94980         Module dup2.
94981         * m4/dup2.m4: New file.
94982
94983         Module ftruncate.
94984         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94985         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94986
94987         Module getgroups.
94988         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94989         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94990
94991         Module gettimeofday.
94992         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94993         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94994         gl_PREREQ_GETTIMEOFDAY.
94995
94996         Module mkdir.
94997         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94998         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94999
95000         Module mkstemp.
95001         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95002         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95003         jm_AC_TYPE_UINTMAX_T.
95004         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95005
95006         Module stat.
95007         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95008         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95009
95010         Module lstat.
95011         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95012         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95013
95014         Module timespec.
95015         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95016         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95017         * m4/st_mtim.m4: Indentation.
95018
95019         Module nanosleep.
95020         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95021         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95022         gl_PREREQ_NANOSLEEP.
95023
95024         Module regex.
95025         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95026         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95027         (gl_REGEX): New macro.
95028
95029         Module rename.
95030         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95031         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95032
95033         Module rmdir.
95034         * m4/rmdir.m4: New file.
95035
95036         Module utime.
95037         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95038         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95039         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95040
95041         Module dirname.
95042         * m4/dirname.m4: New file.
95043
95044         Module getopt.
95045         * m4/getopt.m4: New file.
95046
95047         Module unistd-safer.
95048         * m4/unistd-safer.m4: New file.
95049
95050         Module fnmatch.
95051         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95052         declaration.
95053         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95054         (gl_FUNC_FNMATCH_POSIX): New macro.
95055         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95056         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95057         simply fnmatch.
95058
95059         Module exclude.
95060         * m4/exclude.m4: New file.
95061
95062         Module human.
95063         * m4/human.m4: New file.
95064
95065         Module acl.
95066         * m4/acl.m4: Nop.
95067
95068         Module backupfile.
95069         * m4/backupfile.m4: New file.
95070         * m4/d-ino.m4: Indentation.
95071
95072         Module fsusage.
95073         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95074         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95075         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95076
95077         Module dirfd.
95078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95079         requirements.
95080
95081         Module euidaccess.
95082         * m4/euidaccess.m4: New file.
95083
95084         Module file-type.
95085         * m4/file-type.m4: New file.
95086
95087         Module fileblocks.
95088         * m4/fileblocks.m4: New file.
95089
95090         Module filemode.
95091         * m4/filemode.m4: New file.
95092
95093         Module isdir.
95094         * m4/isdir.m4: New file.
95095
95096         Module lchown.
95097         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95098         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95099
95100         Module makepath.
95101         * m4/makepath.m4: New file.
95102
95103         Module modechange.
95104         * m4/modechange.m4: New file.
95105
95106         Module mountlist.
95107         * m4/mountlist.m4: New file.
95108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95109         Indentation.
95110
95111         Module path-concat.
95112         * m4/path-concat.m4: New file.
95113
95114         Module pathmax.
95115         * m4/pathmax.m4: New file.
95116
95117         Module same.
95118         * m4/same.m4: New file.
95119
95120         Module save-cwd.
95121         * m4/save-cwd.m4: New file.
95122
95123         Module savedir.
95124         * m4/savedir.m4: New file.
95125
95126         Module xgetcwd.
95127         * m4/xgetcwd.m4: New file.
95128         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95129
95130         Module xreadlink.
95131         * m4/xreadlink.m4: New file.
95132
95133         Module safe-read.
95134         * m4/safe-read.m4: New file.
95135
95136         Module safe-write.
95137         * m4/safe-write.m4: New file.
95138
95139         Module closeout.
95140         * m4/closeout.m4: New file.
95141
95142         Module stdio-safer.
95143         * m4/stdio-safer.m4: New file.
95144
95145         Module getpass.
95146         * m4/getpass.m4: New file.
95147
95148         Module getugroups.
95149         * m4/getugroups.m4: New file.
95150
95151         Module group-member.
95152         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95153         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95154
95155         Module idcache.
95156         * m4/idcache.m4: New file.
95157
95158         Module userspec.
95159         * m4/userspec.m4: New file.
95160
95161         Module gettime.
95162         * m4/clock_time.m4: New file.
95163         * m4/gettime.m4: New file.
95164
95165         Module settime.
95166         * m4/settime.m4: New file.
95167
95168         Module posixtm.
95169         * m4/posixtm.m4: New file.
95170
95171         Module gethostname.
95172         * m4/gethostname.m4: New file.
95173
95174         Module canon-host.
95175         * m4/canon-host.m4: New file.
95176
95177         Module gettext.
95178         * m4/codeset.m4: New file, from gettext-0.11.5.
95179         * m4/gettext.m4: New file, from gettext-0.11.5.
95180         * m4/glibc21.m4: New file, from gettext-0.11.5.
95181         * m4/iconv.m4: New file, from gettext-0.11.5.
95182         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95183         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95184         * m4/inttypes.m4: New file, from gettext-0.11.5.
95185         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95186         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95187         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95188         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95189         * m4/lib-link.m4: New file, from gettext-0.11.5.
95190         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95191         * m4/progtest.m4: New file, from gettext-0.11.5.
95192         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95193         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95194         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95195
95196         Module localcharset.
95197         * m4/localcharset.m4: New file.
95198
95199         Module hard-locale.
95200         * m4/hard-locale.m4: New file.
95201
95202         Module mbswidth.
95203         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95204         onceonly macros.
95205         * m4/mbrtowc.m4: Add comment.
95206
95207         Module memcasecmp.
95208         * m4/memcasecmp.m4: New file.
95209
95210         Module memcoll.
95211         * m4/memcoll.m4: New file.
95212
95213         Module unicodeio.
95214         * m4/unicodeio.m4: New file.
95215
95216         Module rpmatch.
95217         * m4/rpmatch.m4: New file.
95218
95219         Module yesno.
95220         * m4/yesno.m4: New file.
95221
95222         Module exitfail.
95223         * m4/exitfail.m4: New file.
95224
95225         Module c-stack.
95226         * m4/c-stack.m4 (gl_C_STACK): New macro.
95227         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95228
95229         Module error.
95230         * m4/error.m4 (gl_ERROR): New macro.
95231         (jm_PREREQ_ERROR): Use onceonly macros.
95232
95233         Module fatal.
95234         * m4/fatal.m4: New file.
95235
95236         Module getloadavg.
95237         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95238         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95239
95240         Module getpagesize.
95241         * m4/getpagesize.m4: New file.
95242
95243         Module getusershell.
95244         * m4/getusershell.m4: New file.
95245
95246         Module physmem.
95247         * m4/physmem.m4: New file.
95248
95249         Module posixver.
95250         * m4/posixver.m4: New file.
95251
95252         Module quotearg.
95253         * m4/quotearg.m4: New file.
95254
95255         Module quote.
95256         * m4/quote.m4: New file.
95257
95258         Module readutmp.
95259         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95260
95261         Module sig2str.
95262         * m4/sig2str.m4: New file.
95263
95264         Other.
95265         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95266         ulonglong.m4.
95267         * m4/intmax_t.m4: New file.
95268         * m4/d-type.m4: Indentation.
95269         * m4/jm-macros.m4: Update.
95270         * m4/prereq.m4 (jm_PREREQ): Update.
95271         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95272         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95273         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95274         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95275         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95276         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95277         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95278         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95279         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95280         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95281         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95282         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95283         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95284         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95285         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95286         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95287         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95288         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95289         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95290
95291 2002-12-24  Bruno Haible  <bruno@clisp.org>
95292
95293         * MODULES.txt: Update according to m4/ changes.
95294
95295         Module gettext.
95296         * config.rpath: New file, from gettext-0.11.5.
95297
95298         * modules/*: New module descriptions.
95299         * gnulib-tool: New file.
95300         * MODULES.html.sh: New file.
95301
95302 2002-12-21  Karl Berry  <karl@gnu.org>
95303
95304         * doc/fdl.texi: update to version 1.2.
95305
95306 2002-12-19  Karl Berry  <karl@gnu.org>
95307
95308         * config/config.guess: update from prep.
95309
95310 2002-12-18  Bruno Haible  <bruno@clisp.org>
95311
95312         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95313         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95314
95315 2002-12-17  Bruno Haible  <bruno@clisp.org>
95316
95317         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95318         stdlib.h, string.h.
95319
95320 2002-12-17  Bruno Haible  <bruno@clisp.org>
95321
95322         * lib/canon-host.c (strdup): Remove unused declaration.
95323
95324         * lib/fsusage.c: Include full_read.h.
95325         (get_fs_usage): Use full_read instead of safe_read.
95326
95327         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95328
95329 2002-12-12  Karl Berry  <karl@gnu.org>
95330
95331         * config/config.guess: update from prep.
95332
95333 2002-12-11  Bruno Haible  <bruno@clisp.org>
95334
95335         * m4/setenv.m4: New file, from gettext-0.11.5.
95336
95337 2002-12-11  Bruno Haible  <bruno@clisp.org>
95338
95339         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95340         not unsetenv().
95341         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95342         modifications:
95343
95344         2002-12-11  Bruno Haible  <bruno@clisp.org>
95345
95346                 * setenv.c (alloca): Fall back to malloc.
95347                 (freea): New macro.
95348                 (setenv): Use freea() to free memory allocated with alloca().
95349
95350         2002-11-13  Bruno Haible  <bruno@clisp.org>
95351
95352                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95353                 function declarations.
95354                 * unsetenv.c (unsetenv): Likewise.
95355
95356         2002-03-04  Bruno Haible  <bruno@clisp.org>
95357
95358                 Portability to AIX 4.3.3.
95359                 * unsetenv.c: New file, extracted from setenv.c.
95360                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95361
95362         2001-12-20  Bruno Haible  <bruno@clisp.org>
95363
95364                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95365                 use malloc instead. For SunOS 4.
95366
95367         2001-12-11  Bruno Haible  <bruno@clisp.org>
95368
95369                 * setenv.c: Declare alloca.
95370                 (compar_fn_t): New typedef.
95371                 (KNOWN_VALUE, STORE_VALUE): Use it.
95372
95373         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95374         setenv.h.
95375
95376 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95377
95378         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95379         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95380         Choose values that are less likely to collide with system fnmatch
95381         options.
95382         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95383         defined (e.g., a pure POSIX system).
95384         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95385         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95386
95387 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95388
95389         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95390         a pain in practice to deal with generated m4 files.  This change
95391         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95392
95393         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95394         and jm-glibc-io.m4, as they are no longer a special case.
95395         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95396         kludge and the auto-generation stuff.  Check only whether the
95397         functions are declared, not whether they exist, since older hosts
95398         that don't declare the functions can't use the optimization anyway.
95399
95400 2002-12-06  Jim Meyering  <jim@meyering.net>
95401
95402         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95403
95404         Merge in changes from libc's misc/error.c, in preparation
95405         for the merge of gnulib's changes back into libc.
95406
95407         * lib/error.c (_): Define only if not already defined.
95408         Move definition to follow all #include directives.
95409         Include unlocked-io.h only if !_LIBC.
95410         [_LIBC]: Include <libio/libioP.h>.
95411         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95412         (fflush): Tweak definition to use INTUSE.
95413         (putc): Define.
95414
95415 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95416
95417         * lib/alloca.c [defined emacs]: Include "lisp.h".
95418         (xalloc_die) [defined emacs]: New macro.
95419         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95420         [! defined emacs]: Include <xalloc.h>.
95421         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95422         (pointer): Typedef to POINTER_TYPE *.
95423         (malloc): Remove decl; we now always use xmalloc.
95424         (alloca): Use old-style definition, since Emacs needs this.
95425         Check for arithmetic overflow when computing combined size.
95426
95427 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95428
95429         Do not generate unlocked-io.h automatically, since it's easier to
95430         maintain it by hand.
95431
95432         * lib/unlocked-io.h: New file, from GNU diffutils,
95433         but with proper copyright notice and attribution.
95434         * lib/gen-uio: Remove.
95435         * lib/Makefile.am: Add copyright notice.
95436         (libfetish_a_SOURCES): Add unlocked-io.h.
95437         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95438         (DISTCLEANFILES, io_functions): Remove macros.
95439         (EXTRA_DIST): Remove gen_uio.
95440         (unlocked-io.h): Remove rule.
95441
95442 2002-12-04  Jim Meyering  <jim@meyering.net>
95443
95444         Reflect the fact that stat.c and lstat.c are no longer generated.
95445         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95446         (DISTCLEANFILES): Likewise.
95447         (EXTRA_DIST): Likewise.
95448         (all_local): Don't depend on stat.c or lstat.c.
95449         (stat.c, lstat.c): Remove rules.
95450         (EXTRA_DIST): Remove xstat.in.
95451
95452         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95453         * lib/stat.c: New file.  Contents mostly from xstat.in.
95454         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95455         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95456
95457         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95458         too.
95459         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95460
95461 2002-12-03  Jim Meyering  <jim@meyering.net>
95462
95463         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95464         but not semantics, to minimize the differences between these two files.
95465         (safe_read): Change comment to mention SAFE_READ_ERROR.
95466
95467         * lib/safe-read.c (IS_EINTR): Define.
95468         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95469
95470 2002-12-02  Jim Meyering  <jim@meyering.net>
95471
95472         * lib/safe-read.c (EINTR): Define.
95473         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95474         (INT_MAX): Provide fallback.
95475         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95476
95477         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95478
95479 2002-12-02  Bruno Haible  <bruno@clisp.org>
95480
95481         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95482         Define, taken from safe-read.c.
95483         (INT_MAX): Provide fallback.
95484         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95485         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95486
95487         * lib/safe-read.c (EINTR): Remove definition.
95488         (safe_read): Don't use EINTR if it is absent.
95489
95490 2002-12-01  Jim Meyering  <jim@meyering.net>
95491
95492         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95493         zero.
95494         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95495
95496 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95497
95498         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95499         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95500         with `if (! (value < limit)) abort ();', for readability.
95501
95502 2002-11-26  Karl Berry  <karl@gnu.org>
95503
95504         * lib/strdup.c: copy from libc again, with jim's ok.
95505         * lib/.cppi-disable: re-add strdup.c
95506
95507 2002-11-25  Karl Berry  <karl@gnu.org>
95508
95509         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95510         instead of "strtol.c".
95511
95512 2002-11-25  Karl Berry  <karl@gnu.org>
95513
95514         * config/install-sh: update from automake for variable quoting, $0 in
95515         error msgs, etc.
95516
95517         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95518         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95519         entry.
95520
95521 2002-11-25  Jim Meyering  <jim@meyering.net>
95522
95523         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95524
95525 2002-11-24  Karl Berry  <karl@gnu.org>
95526
95527         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95528         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95529
95530 2002-11-24  Jim Meyering  <jim@meyering.net>
95531
95532         Update from coreutils:
95533
95534         * lib/mktime.c: Merge in changes from libc.
95535
95536         Avoid a link-time failure on some Linux systems.
95537         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95538         (otherwise).
95539         (__mon_yday): Declare with the STATIC attribute.
95540         (__mktime_internal): Likewise.
95541         Based on a report from Greg Schafer.
95542
95543 2002-11-23  Jim Meyering  <jim@meyering.net>
95544
95545         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95546         Use `unsigned', not `int', as type of index.
95547
95548         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95549
95550         * lib/fsusage.c: Remove unneeded parentheses around operands of
95551         `defined'.
95552
95553 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95554
95555         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95556         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95557         so that we can be included first.
95558         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95559         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95560         No need to include stddef.h or sys/types.h any more.
95561         Surround local include files with "", not "<>".
95562         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95563         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95564         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95565         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95566         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95567         (ISPRINT): Remove; no longer needed now that we assume C89.
95568
95569         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95570         Preserve errno.
95571
95572         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95573         quotearg_char): Use SIZE_MAX rather than
95574         (size_t) -1 when we are talking about "infinity".
95575
95576         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95577
95578 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95579
95580         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95581         hint that one should use `if (! x) abort ();' rather than `assert
95582         (x);', and anyway it's one less thing to worry about configuring.
95583         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95584         hash_rehash, hash_insert): Use abort rather than assert.
95585
95586 2002-11-22  Bruno Haible  <bruno@clisp.org>
95587
95588         * lib/safe-read.h: Assume C89. Add comments.
95589         (safe_read): Change return type to size_t.
95590         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95591         byte counts > SSIZE_MAX correctly.
95592         * lib/safe-write.h: New file.
95593         * lib/safe-write.c: New file.
95594         * lib/full-read.h: New file.
95595         * lib/full-read.c: New file.
95596         * lib/full-write.h: Assume C89. Add comments.
95597         * lib/full-write.c: Include safe-write.h.
95598         (full_write): Rewritten to use safe_write.
95599         Suggested by Jim Meyering and Paul Eggert.
95600
95601 2002-11-21  Jim Meyering  <jim@meyering.net>
95602
95603         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95604
95605         Merge in changes from the coreutils.
95606
95607         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95608         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95609         <stdint.h>.
95610         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95611         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95612         int.  Work more efficiently if X is the same width as uintmax_t.
95613         Do not compare X to -1, to avoid bogus compiler warning.
95614         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95615         Don't assume that f_frsize and f_bsize are the same type.
95616
95617         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95618         warning on FreeBSD.
95619
95620         * lib/makepath.c (make_path): Restore umask *before* creating the final
95621         component.
95622         (make_path): Minor reformatting.
95623
95624         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95625         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95626         HAVE_MALLOC/HAVE_REALLOC.
95627
95628         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95629         dummy ones.  At least on GNU/Linux systems, `auto' means something
95630         else.
95631         From Michael Stone.
95632
95633 2002-11-21  Bruno Haible  <bruno@clisp.org>
95634
95635         Remove case insensitive option matching.
95636         * lib/argmatch.h (argcasematch): Remove declaration.
95637         (ARGCASEMATCH): Remove macro.
95638         (__xargmatch_internal): Remove case_sensitive argument.
95639         (XARGMATCH): Update.
95640         (XARGCASEMATCH): Remove macro.
95641         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95642         case_sensitive argument.
95643         (argcasematch): Remove function.
95644         (__xargmatch_internal): Remove case_sensitive argument.
95645         (main): Use XARGMATCH instead of XARGCASEMATCH.
95646
95647         * lib/xmalloc.c: Change compile-time error message. Add comment about
95648         required autoconf version.
95649
95650 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95651
95652         Merge argmatch cleanups from Bison.  Assume C89.
95653
95654         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95655         Include stdlib.h, for EXIT_FAILURE.
95656         Always include <string.h>, since we assume C89.
95657         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95658         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95659         Include <stddef.h> instead, since it's all we need for size_t.
95660         (PARAMS): Remove.  All uses removed.
95661         (ARRAY_CARDINALITY): Do not bother to #undef.
95662         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95663         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95664         Remove unnecessary parentheses.
95665         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95666         Insert necessary parentheses.
95667         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95668         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95669
95670 2002-11-19  Bruno Haible  <bruno@clisp.org>
95671
95672         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95673         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95674
95675         * lib/mbswidth.h (PARAMS): Remove macro.
95676         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95677         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95678
95679         * lib/gcd.h (PARAMS): Remove macro.
95680         (gcd): Use ANSI C function declarations.
95681         * lib/gcd.c (gcd): Likewise.
95682
95683 2002-11-15  Bruno Haible  <bruno@clisp.org>
95684
95685         * lib/strcspn.c: Include <stddef.h>.
95686         (strcspn): Use ANSI C function declaration. Change return type to
95687         size_t. Use NULL.
95688         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95689         (strpbrk): Use NULL.
95690         * lib/strpbrk.h (PARAMS): Remove macro.
95691         (strpbrk): Use ANSI C function declaration.
95692         * lib/strstr.c: Don't include <sys/types.h>.
95693         * lib/strstr.h (PARAMS): Remove macro.
95694         (strstr): Use ANSI C function declarations.
95695
95696 2002-11-14  Karl Berry  <karl@gnu.org>
95697
95698         * config/mkinstalldirs: `do' on separate line, instead of
95699         `for var; do'.
95700
95701 2002-11-06  Bruno Haible  <bruno@clisp.org>
95702
95703         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95704         * lib/gcd.c (gcd): Likewise.
95705
95706 2002-11-05  Bruno Haible  <bruno@clisp.org>
95707
95708         * lib/gcd.h: New file, from gettext-0.11.5.
95709         * lib/gcd.c: New file, from gettext-0.11.5.
95710
95711 2002-11-05  Bruno Haible  <bruno@clisp.org>
95712
95713         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95714         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95715         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95716         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95717
95718         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95719         <libintl.h>.
95720         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95721         <libintl.h>.
95722
95723         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95724         * lib/human.c: Include gettext.h instead of <libintl.h>.
95725         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95726         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95727         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95728         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95729         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95730         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95731         (textdomain): Remove definition.
95732         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95733
95734         * lib/long-options.c: Remove include of <libintl.h> and definition of
95735         _.
95736         * lib/same.c: Remove include of <libintl.h> and definition of _.
95737
95738 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95739
95740         * lib/config.charset: A few additions for Solaris.
95741
95742 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95743
95744         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95745         * lib/localcharset.c (locale_charset): Declare as extern "C".
95746
95747 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95748
95749         * lib/config.charset: msdos in uk_UA uses CP1125.
95750
95751 2002-11-04  Bruno Haible  <bruno@clisp.org>
95752
95753         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95754         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95755         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95756         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95757         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95758
95759 2002-11-04  Bruno Haible  <bruno@clisp.org>
95760
95761         * lib/localcharset.c (locale_charset): Don't return an empty string.
95762
95763 2002-11-04  Bruno Haible  <bruno@clisp.org>
95764
95765         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95766         aliases.
95767
95768 2002-11-04  Bruno Haible  <bruno@clisp.org>
95769
95770         * lib/config.charset: Update for newest glibc. Add canonical names
95771         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95772
95773 2002-11-04  Bruno Haible  <bruno@clisp.org>
95774
95775         * lib/config.charset: Add support for NetBSD.
95776
95777 2002-11-04  Bruno Haible  <bruno@clisp.org>
95778
95779         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95780
95781 2002-11-01  Bruno Haible  <bruno@clisp.org>
95782
95783         * configure.in: Add AC_CONFIG_AUX_DIR call.
95784         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95785         test/Makefile.
95786         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95787
95788 2002-09-28  Karl Berry  <karl@gnu.org>
95789
95790         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95791         installed automake until the next release, since changes have been
95792         made.
95793
95794 2002-09-25  Karl Berry  <karl@gnu.org>
95795
95796         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95797         * lib/getopt*: copy from libc/posix.
95798         * lib/gettext.h: copy from gettext.
95799         * lib/.cppi-disable: add strdup.c, gettext.h.
95800
95801 2002-09-25  Karl Berry  <karl@gnu.org>
95802
95803         * config/srclist.txt: enable gettext.h check.
95804         * config/config.{guess,sub}: update from prep.
95805         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95806                 from automake 1.6.3.
95807         See srclist*.
95808
95809 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95810
95811         * regex.c (PATFETCH): Remove the translating fetch.
95812         (PATFETCH_RAW): Rename to PATFETCH.
95813         (set_image_of_range): New fun.
95814         (SET_RANGE_TABLE_WORK_AREA): Use it.
95815         (regex_compile): Don't translate the pattern chars so eagerly.
95816         Only do it when inserting an `exactn' bytecode or when handling
95817         a char-range.
95818         (mutually_exclusive_p): Avoid empty statement.
95819
95820 2002-07-06  Jim Meyering  <meyering@lucent.com>
95821
95822         * m4/README: Don't mention Makefile.am.in.
95823         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95824
95825 2002-07-01  Jim Meyering  <meyering@lucent.com>
95826
95827         * lib/c-stack.c: Include sys/time.h.
95828         From Volker Borchert.
95829
95830 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95831
95832         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95833
95834 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95835
95836         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95837         New macro.  Use it uniformly instead of
95838         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95839         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95840         reported by Vin Shelton.
95841
95842 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95843
95844         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95845         Do not assume SA_SIGINFO behavior.
95846         Bug reported by Jim Meyering on NetBSD 1.5.2.
95847
95848 2002-06-22  Jim Meyering  <meyering@lucent.com>
95849
95850         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95851         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95852
95853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95854         now that configure.ac uses AC_GNU_SOURCE.
95855         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95856         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95857
95858         Update to latest tools.  Suggestions from Paul Eggert.
95859         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95860         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95861         * m4/fnmatch.m4: Likewise.
95862         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95863         to AC_HEADER_STDBOOL
95864
95865 2002-06-22  Jim Meyering  <meyering@lucent.com>
95866
95867         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95868         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95869
95870 2002-06-22  Jim Meyering  <meyering@lucent.com>
95871
95872         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95873
95874         * lib/exitfail.c, exitfail.h: Likewise.
95875         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95876
95877         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95878         of fnmatch.h.
95879         (EXTRA_DIST): Add fnmatch_loop.c.
95880         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95881
95882         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95883         * lib/fnmatch.c: Update from diffutils-2.8.2.
95884         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95885         * lib/fnmatch.h: Remove file.
95886
95887 2002-06-21  Jim Meyering  <meyering@lucent.com>
95888
95889         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95890         * m4/mbrtowc.m4: Likewise.
95891
95892         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95893         * m4/mbswidth.m4: Reflect name change:
95894         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95895         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95896
95897         * m4/lib-link.m4: Update from gettext-0.11.2.
95898         * m4/gettext.m4: Likewise.
95899
95900         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95901         From Alfred M. Szmidt.
95902
95903 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95904
95905         * lib/file-type.h: Report an error if neither S_ISREG nor
95906         S_IFREG is defined, instead of using a test specific to glibc
95907         2.2.  This should be safe, since POSIX requires S_ISREG and
95908         Unix Version 7 had S_IFREG.  We don't need to check for
95909         <sys/types.h> since we don't use any symbols that it defines.
95910
95911 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95912
95913         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95914         $@-t, so that each temporary file name is unique and valid in the first
95915         8 characters, for operation under DOS.
95916
95917 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95918
95919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95920
95921 2002-06-15  Jim Meyering  <meyering@lucent.com>
95922
95923         Work even with DJGPP 2.03, which lacks support for symlinks.
95924         From Richard Dawe.
95925         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95926         is defined.
95927         * lib/lchown.c (S_ISLNK): Likewise.
95928
95929 2002-06-15  Jim Meyering  <meyering@lucent.com>
95930
95931         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95932         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95933         have been included before this file.
95934
95935 2002-06-14  Jim Meyering  <meyering@lucent.com>
95936
95937         * lib/file-type.h: Use the version from diffutils-2.8.2.
95938         * lib/file-type.c: Likewise.
95939
95940 2002-06-07  Jim Meyering  <meyering@lucent.com>
95941
95942         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95943         They're needed at least for NetBSD 1.5.2.
95944         ($statxfs_includes): Include those same headers.
95945         ($statxfs_includes): Include sys/vfs.h if available.
95946         ($statxfs_includes): Likewise for sys/statvfs.h.
95947         Check for the following members in both structs statfs and statvfs:
95948         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95949
95950 2002-06-01  Jim Meyering  <meyering@lucent.com>
95951
95952         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95953         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95954
95955 2002-05-28  Jim Meyering  <meyering@lucent.com>
95956
95957         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95958         Reported by Volker Borchert.
95959
95960 2002-05-27  Jim Meyering  <meyering@lucent.com>
95961
95962         Fix a problem seen only on nonconforming systems whereby ls.c's
95963         use of localtime, and then of gettimeofday would cause trouble:
95964         the localtime call used to initialize rpl_gettimeofday's save
95965         mechanism would clobber ls's current local time information so
95966         that in any long listing the first file would always be listed
95967         with date 1970-01-01.  Analysis by Volker Borchert.
95968
95969         * lib/gettimeofday.c (localtime): Undefine.
95970         (rpl_localtime): New function.
95971
95972 2002-05-27  Jim Meyering  <meyering@lucent.com>
95973
95974         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95975         localtime.
95976
95977         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95978         use the replacement function; it wouldn't resolve at link time.
95979         Reported by Volker Borchert.
95980
95981 2002-05-22  Jim Meyering  <meyering@lucent.com>
95982
95983         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95984         file-type.h.
95985         * lib/file-type.h: New file.
95986         * lib/file-type.c (file_type): New file/function.  Extracted from
95987         diffutils.
95988
95989 2002-04-30  Jim Meyering  <meyering@lucent.com>
95990
95991         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95992
95993 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95994
95995         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95996
95997 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95998
95999         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96000         Do not check for alloca.h (no longer used) or stdbool.h (was never
96001         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96002
96003 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96004
96005         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96006
96007 2002-04-29  Jim Meyering  <meyering@lucent.com>
96008
96009         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96010         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96011         Use AC_FUNC_STRNLEN here instead.
96012
96013         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96014         With autoconf-2.53a, it's part of AC_PROG_CC.
96015
96016 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96017
96018         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96019         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96020
96021 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96022
96023         * lib/sig2str.h, lib/sig2str.c: New files.
96024         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96025
96026 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96027
96028         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96029         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96030         of 127, since 64 is the largest conceivable number for ancient
96031         nonstandard hosts.
96032         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96033
96034 2002-04-28  Jim Meyering  <meyering@lucent.com>
96035
96036         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96037
96038 2002-04-24  Jim Meyering  <meyering@lucent.com>
96039
96040         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96041         (jm_PREREQ): Use it.
96042
96043         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96044         mach/mach.h fcntl.h.
96045         Check for this function: setlocale.
96046
96047 2002-04-24  Jim Meyering  <meyering@lucent.com>
96048
96049         * lib/gettext.h: New file, from Gettext.
96050         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96051         (libfetish_a_SOURCES): Add gettext.h.
96052
96053 2002-04-16  Jim Meyering  <meyering@lucent.com>
96054
96055         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96056         ut_pid, ut_id, ut_exit.
96057
96058 2002-04-16  Jim Meyering  <meyering@lucent.com>
96059
96060         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96061         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96062         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96063
96064 2002-04-12  Jim Meyering  <meyering@lucent.com>
96065
96066         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96067         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96068         existence of the getmntinfo function.  Needed for Darwin 5.3.
96069
96070         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96071         This is necessary at least on Darwin 5.3.
96072
96073         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96074         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96075         strnlen.o in the library, and that makes some versions of ranlib
96076         object.
96077
96078 2002-04-12  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96081
96082 2002-04-09  Jim Meyering  <meyering@lucent.com>
96083
96084         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96085         to be more precise.  Rather than saying we're checking whether the
96086         function `works', say what we're testing.
96087         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96088         Reported by Bruno Haible.
96089
96090 2002-03-10  Jim Meyering  <meyering@lucent.com>
96091
96092         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96093         Suggestion from Santiago Vila.
96094
96095 2002-03-08  Jim Meyering  <meyering@lucent.com>
96096
96097         * lib/rename.c: Mention that this wrapper is needed also on
96098         mips-dec-ultrix4.4 systems.
96099
96100 2002-03-02  Jim Meyering  <meyering@lucent.com>
96101
96102         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96103         not HAVE_CLOCK_SETTIME.
96104
96105 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96106
96107         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96108         Check for clock_settime.
96109
96110 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96111
96112         * lib/nanosleep.h: Rename to....
96113         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96114
96115         * lib/gettime.c: New file.
96116         * lib/settime.c: New file.
96117         * lib/stime.c: Remove.
96118
96119         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96120         timespec.h.  Remove nanosleep.h.
96121
96122 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96123
96124         * m4/acl.m4: New file.
96125         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96126         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96127
96128 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96129
96130         * lib/acl.c, lib/acl.h: New files.
96131         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96132
96133 2002-02-24  Jim Meyering  <meyering@lucent.com>
96134
96135         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96136         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96137         cause trouble.  Reported by Nelson Beebe.
96138
96139 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96140
96141         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96142         compilers that don't know that xalloc_die never returns.
96143
96144 2002-02-20  Jim Meyering  <meyering@lucent.com>
96145
96146         * lib/getdate.c: Regenerate using bison-1.33.
96147
96148 2002-02-17  Jim Meyering  <meyering@lucent.com>
96149
96150         * config/config.guess (main): Don't use `head -1'; it's no longer
96151         portable. Use `sed 1q' instead.
96152
96153 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96154
96155         * m4/codeset.m4: Upgrade to gettext-0.11.
96156         * m4/gettext.m4: Upgrade to gettext-0.11.
96157         * m4/glibc21.m4: Upgrade to gettext-0.11.
96158         * m4/iconv.m4: Upgrade to gettext-0.11.
96159         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96160         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96161         * m4/lib-ld.m4: New file, from gettext-0.11.
96162         * m4/lib-link.m4: New file, from gettext-0.11.
96163         * m4/lib-prefix.m4: New file, from gettext-0.11.
96164         * m4/progtest.m4: Upgrade to gettext-0.11.
96165
96166 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96167
96168         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96169         (jm_PREREQ): Use it.
96170
96171 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96172
96173         * lib/posixver.c, lib/posixver.h: New files.
96174         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96175
96176 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96177             Bruno Haible  <bruno@clisp.org>
96178
96179         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96180         (fwrite_success_callback): New declaration.
96181         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96182         print_unicode_char. Call failure callback instead of error.
96183         (fwrite_success_callback): New function.
96184         (exit_failure_callback): New function.
96185         (fallback_failure_callback): New function.
96186         (print_unicode_char): Call unicode_to_mb.
96187
96188 2002-01-26  Jim Meyering  <meyering@lucent.com>
96189
96190         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96191         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96192
96193 2002-01-26  Jim Meyering  <meyering@lucent.com>
96194
96195         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96196
96197 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96198
96199         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96200
96201 2002-01-22  Jim Meyering  <meyering@lucent.com>
96202
96203         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96204         Otherwise, some versions of automake would omit the rule that makes
96205         Makefile from Makefile.in.
96206
96207 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96208
96209         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96210         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96211         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96212         (memcoll): Set errno to zero if there is no error.
96213
96214         * lib/quotearg.c (quotearg_buffer_restyled):
96215         Fix bug with quoting buffers containing NUL when backslashing escapes.
96216         This bug was exposed by the other changes in this patch.
96217         (quotearg_n_options): New arg ARGSIZE.
96218         All callers changed.
96219         (quoting_options_from_style): New function.
96220         (quotearg_n_style): Use it.
96221         (quotearg_n_style_mem): New function.
96222
96223         * lib/quotearg.h (quotearg_n_style_mem): New function.
96224
96225 2002-01-19  Jim Meyering  <meyering@lucent.com>
96226
96227         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96228         Remove useless quotes: DF_PROG="df".
96229         * m4/strnlen.m4: New file.
96230
96231 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96232
96233         * lib/backupfile.c (ISDIGIT): Comment fix.
96234         * lib/getdate.y (ISDIGIT): Likewise.
96235         * lib/posixtm.c (ISDIGIT, year): Likewise.
96236         * lib/strverscmp.c (ISDIGIT): Likewise.
96237         * lib/userspec.c (ISDIGIT): Likewise.
96238
96239 2002-01-16  Jim Meyering  <meyering@lucent.com>
96240
96241         * lib/getdate.y: Add three semicolons, each just before a closing
96242         brace. Bison (as of version 1.31) no longer papers over that mistake.
96243
96244 2002-01-05  Jim Meyering  <meyering@lucent.com>
96245
96246         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96247
96248 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96249
96250         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96251         not silently exit merely because the output buffer happens to
96252         have nothing pending.
96253
96254 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96255
96256         See the big note in ../ChangeLog.
96257         * lib/human.c (suffixes): Prefer K to k for 1024.
96258         (generate_suffix_backwards): New function.
96259         (human_readable_inexact): Use it.
96260         * lib/xstrtol.c (__xstrtol): If there is no number but there
96261         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96262         Accept 'K' as well as 'k'.
96263
96264 2001-12-15  Jim Meyering  <meyering@lucent.com>
96265
96266         * lib/regex.h (__restrict_arr): Update from libc.
96267
96268         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96269         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96270         (STREQ): Define.
96271
96272 2001-12-14  Jim Meyering  <meyering@lucent.com>
96273
96274         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96275         Suggestion from Bruno Haible.
96276
96277 2001-12-10  Jim Meyering  <meyering@lucent.com>
96278
96279         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96280         xrealloc, Instead, include "xalloc.h".
96281         (initbuffer): Don't cast xmalloc return value to char*.
96282         (readline): Reword comment.
96283         Don't cast xrealloc return value to char*
96284         Return NULL, not 0.
96285
96286 2001-12-09  Jim Meyering  <meyering@lucent.com>
96287
96288         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96289         about `signed and unsigned type in conditional expression'.
96290         * lib/posixtm.c (posix_time_parse): Likewise.
96291
96292         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96293
96294         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96295         to avoid a pedantic warning.
96296
96297         * lib/getstr.c: Don't include assert.h.
96298         (getstr): Remove warning-evoking assertions.
96299         Return -1 if offset parameter is out of bounds.
96300         Change the type of a local from int to size_t.
96301
96302         * lib/strftime.c (my_strftime_localtime_r): Include this function
96303         definition in the `#if ! HAVE_TM_GMTOFF' block.
96304
96305         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96306         Include xalloc.h instead.
96307
96308 2001-12-02  Jim Meyering  <meyering@lucent.com>
96309
96310         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96311         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96312         included.
96313
96314         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96315         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96316
96317 2001-11-30  Akim Demaille  <akim@epita.fr>
96318
96319         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96320         before being defined.
96321
96322 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96323
96324         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96325         First arg is int, not unsigned.
96326         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96327         (SIZE_MAX, UINT_MAX): New macros.
96328         (quotearg_n_options): Abort if N is negative.
96329         Avoid overflow check on hosts where size_t is 64 bits and int
96330         is 32 bits, as overflow is impossible there.
96331         Fix off-by-one typo that caused unnecessary reallocation.
96332
96333 2001-11-27  Jim Meyering  <meyering@lucent.com>
96334
96335         * lib/tempname.c: Merge with version from libc.
96336         * lib/regex.c: Likewise.
96337
96338         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96339         systems for which STDC_HEADERS is 0, it was not included, resulting in
96340         a warning about an integer-to-pointer conversion problem with getenv.
96341         Reported by Volker Borchert.
96342
96343 2001-11-26  Jim Meyering  <meyering@lucent.com>
96344
96345         * lib/gtod.h: Remove file.
96346         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96347         * lib/gettimeofday.c: Don't include gtod.h.
96348         (GTOD_init): Remove function.
96349         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96350         Suggestion from Volker Borchert.
96351
96352 2001-11-23  Jim Meyering  <meyering@lucent.com>
96353
96354         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96355         it.
96356         * lib/hash.c (struct hash_table): Define it here instead.
96357
96358 2001-11-22  Jim Meyering  <meyering@lucent.com>
96359
96360         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96361
96362 2001-11-20  Jim Meyering  <meyering@lucent.com>
96363
96364         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96365         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96366
96367 2001-11-19  Jim Meyering  <meyering@lucent.com>
96368
96369         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96370         directory.  Use "conftestXXXXXX" as the template.
96371         Suggestion from Paul Eggert.
96372
96373         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96374         immediately, so the test doesn't mistakenly hit the max-open-files
96375         limit.
96376
96377 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96378
96379         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96380         (TEMPORARIES): New macro.
96381         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96382         removes an artificial limitation (e.g. HP-UX 10.20, where
96383         TMP_MAX is 17576).
96384
96385 2001-11-18  Jim Meyering  <meyering@lucent.com>
96386
96387         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96388
96389 2001-11-18  Jim Meyering  <meyering@lucent.com>
96390
96391         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96392         on SunOS 4.
96393
96394         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96395         files will be created before anything else.
96396
96397 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96398
96399         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96400         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96401
96402 2001-11-17  Jim Meyering  <meyering@lucent.com>
96403
96404         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96405         Prompted by a report from Bob Proulx.
96406
96407         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96408         Instead, require UTILS_FUNC_MKSTEMP.
96409
96410 2001-11-17  Jim Meyering  <meyering@lucent.com>
96411
96412         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96413         Now, that's done as part of AC_FUNC_STRTOD.
96414
96415 2001-11-17  Jim Meyering  <meyering@lucent.com>
96416
96417         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96418         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96419         rather than group writable.  Patch by Juan F. Codagnone.
96420
96421         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96422         xrealloc, Instead, include "xalloc.h".
96423
96424         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96425         Remove explicit declarations of xmalloc, xrealloc,
96426         and xstrdup.  Instead, include "xalloc.h".
96427
96428         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96429         unlocked-io.h.
96430         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96431         Likewise.
96432         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96433
96434         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96435         Reported by Padraig Brady.
96436
96437         * lib/mkstemp.c: #undef mkstemp.
96438         Include config.h.
96439         (rpl_mkstemp): Rename from mkstemp.
96440         Protoize.
96441
96442 2001-11-16  Jim Meyering  <meyering@lucent.com>
96443
96444         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96445         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96446         determine the amount of total physical memory, use pstat_getstatic.
96447         HPUX-11 doesn't define _SC_PHYS_PAGES.
96448         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96449         If sysconf couldn't be used to determine the amount of available
96450         physical memory, use both pstat_getstatic and pstat_getdynamic.
96451         Based on a patch from Bob Proulx.
96452
96453 2001-11-10  Jim Meyering  <meyering@lucent.com>
96454
96455         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96456         (jm_PREREQ): Use it.
96457
96458 2001-11-09  Jim Meyering  <meyering@lucent.com>
96459
96460         * m4/jm-macros.m4: Require autoconf-2.52f.
96461         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96462         Use these AC_-prefixed names, not the AM_-prefixed ones.
96463
96464         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96465
96466 2001-11-05  Jim Meyering  <meyering@lucent.com>
96467
96468         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96469
96470 2001-11-04  Jim Meyering  <meyering@lucent.com>
96471
96472         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96473         $DEFS.
96474
96475 2001-11-03  Jim Meyering  <meyering@lucent.com>
96476
96477         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96478         of AC_DEFUN.
96479
96480         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96481         know the name of the variable in the macro definition.
96482
96483 2001-11-03  Jim Meyering  <meyering@lucent.com>
96484
96485         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96486         in argmatch_to_argument call.
96487
96488         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96489         argument.
96490
96491         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96492         e.g., a fault due to an attempt to free a NULL pointer.
96493
96494 2001-11-01  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96497         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96498
96499 2001-11-01  Jim Meyering  <meyering@lucent.com>
96500
96501         * lib/dirfd.c, lib/dirfd.h: New files.
96502         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96503
96504         * lib/hash.c (hash_print) [TESTING]: Clean up.
96505
96506 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96507
96508         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96509         to avoid a warning if -Wall.
96510
96511 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96512
96513         * README: New file
96514         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96515         (per RMS's instructions, this is now the canonical source)
96516         * lgpl/, gpl/: New directories.
96517
96518 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96519
96520         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96521
96522 2001-10-21  Jim Meyering  <meyering@lucent.com>
96523
96524         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96525         this code would end up calling gettext even in packages built
96526         with --disable-nls.
96527         * lib/getopt.c (_): Likewise.
96528         * lib/regex.c (_): Likewise.
96529
96530 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96531
96532         * m4/error.m4 (jm_PREREQ_ERROR):
96533         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96534         AC_FUNC_STRERROR_R does that.
96535         Check for strerror declaration.
96536
96537         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96538         are supposed to have them these days.
96539         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96540         Merge changes from latest Autoconf CVS.
96541         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96542         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96543         POSIX decided to standardize on the int flavor of strerror_r.
96544
96545 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96546
96547         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96548         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96549         Use strerror_r that is only a macro, even if it is not a function.
96550         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96551         (private_strerror): Use prototypes, not old-style function definition.
96552         (print_errno_message): New function.
96553         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96554         char*-flavored one.
96555         (error_tail, error, error_at_line): Use it.
96556
96557 2001-10-11  Jim Meyering  <meyering@lucent.com>
96558
96559         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96560         and quote_n (1, ... to avoid clobbering a buffer.
96561
96562 2001-10-05  Jim Meyering  <meyering@lucent.com>
96563
96564         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96565         hash-pjw.h.
96566         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96567         * lib/hash-pjw.h: New file.
96568
96569 2001-09-30  Jim Meyering  <meyering@lucent.com>
96570
96571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96572         `struct fsstat' has the `f_fstypename' member.
96573         Use that to define FS_TYPE, which is now used to make
96574         the getfsstat link test tighter.
96575
96576 2001-09-30  Jim Meyering  <meyering@lucent.com>
96577
96578         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96579         Include <sys/ucred.h>, for Apple Darwin.
96580         Include sys/mount.h and sys/fs_types.h only if available.
96581         (FS_TYPE): Define.
96582         (read_filesystem_list): Use FS_TYPE.
96583
96584 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96585
96586         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96587         a boolean context.
96588
96589 2001-09-29  Jim Meyering  <meyering@lucent.com>
96590
96591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96592         [one-argument getmntent function]): Include stdio.h before mntent.h.
96593         SunOS 4.1.x needs it for the declaration of `FILE'.
96594         Patch by Volker Borchert.
96595
96596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96597         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96598         sys/fs_types.h, and make the link-test for getfsstat guard #include
96599         directives with appropriate #if HAVE_*_H tests so that we can
96600         detect getfsstat on Apple Darwin1.3.7 systems.
96601         Reported by Nelson Beebe.
96602         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96603
96604 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96605
96606         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96607         #defines strtoimax.  Also treat the other strto* functions
96608         like strtoimax.
96609
96610         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96611         Check for strtoul and strtoumax,
96612         as those declarations are made even in the signed case.
96613         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96614         Likewise, for strtol and strtoimax.
96615
96616 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96617
96618         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96619         #defines strtoimax.  Also treat the other strto* functions
96620         like strtoimax.
96621
96622         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96623         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96624         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96625
96626 2001-09-26  Jim Meyering  <meyering@lucent.com>
96627
96628         Most macros in unlocked-io.h had the wrong number of arguments.
96629         * lib/gen-uio: New script.
96630         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96631         * lib/unlocked-io.hin: Remove file.
96632         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96633         rather than trying to embed it here.
96634         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96635         Reported by Padraig Brady.
96636
96637 2001-09-25  Volker Borchert  <bt@teknon.de>
96638
96639         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96640         `result'.
96641
96642 2001-09-24  Jim Meyering  <meyering@lucent.com>
96643
96644         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96645
96646 2001-09-23  Jim Meyering  <meyering@lucent.com>
96647
96648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96649         instead of the mere test for existence of mntent.h.  The latter
96650         would get a false-positive on AIX 3.4 systems.
96651         In the outer getmntent if-block, don't die if neither of the getmntent
96652         tests succeeds.  Instead, just fall through and continue with the
96653         remaining tests.
96654
96655 2001-09-23  Jim Meyering  <meyering@lucent.com>
96656
96657         * lib/mountlist.c: Remove useless parentheses in #if directives.
96658         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96659         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96660
96661 2001-09-22  Jim Meyering  <meyering@lucent.com>
96662
96663         * m4/gettext.m4: New file.  From gettext.
96664         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96665         * m4/progtest.m4: Likewise
96666         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96667         * m4/glibc21.m4: Likewise.
96668
96669         * m4/libintl.m4: Remove.  No longer used.
96670
96671 2001-09-22  Jim Meyering  <meyering@lucent.com>
96672
96673         * lib/localcharset.c: Update from latest gettext.
96674         * lib/config.charset: Likewise.
96675
96676 2001-09-20  Jim Meyering  <meyering@lucent.com>
96677
96678         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96679         strtoimax.
96680         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96681         strtoumax.
96682
96683 2001-09-20  Jim Meyering  <meyering@lucent.com>
96684
96685         * lib/xstrtol.c (strtoimax): Guard declaration with
96686         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96687         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96688         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96689         (strtoumax): Likewise, for completeness (it wasn't necessary).
96690
96691 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96692
96693         * lib/strtoimax.c (HAVE_LONG_LONG):
96694         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96695         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96696         to work around bug in IBM C compiler.
96697
96698 2001-09-17  Jim Meyering  <meyering@lucent.com>
96699
96700         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96701         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96702         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96703         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96704         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96705         whenever the right hand side need not be expanded by the shell.
96706
96707 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96708
96709         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96710         library.  It's not correct, as some older glibcs are buggy.
96711         fnmatch wasn't fixed until glibc 2.2.
96712
96713         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96714         special shell magic here.
96715
96716 2001-09-16  Jim Meyering  <meyering@lucent.com>
96717
96718         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96719         * m4/jm-macros.m4: Require it.
96720
96721 2001-09-16  Jim Meyering  <meyering@lucent.com>
96722
96723         * lib/mkdir.c: New file.
96724
96725 2001-09-15  Jim Meyering  <meyering@lucent.com>
96726
96727         * m4/jm-macros.m4: Check for help2man.
96728
96729 2001-09-11  Jim Meyering  <meyering@lucent.com>
96730
96731         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96732         The body, by Paul Eggert, was moved here from configure.in.
96733         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96734
96735 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96736
96737         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96738         (jm_PREREQ): Use it.
96739
96740 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96741
96742         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96743         Use ssize_t, not int, to store result of readlink.
96744         Check for ssize_t overflow as well as size_t overflow,
96745         as POSIX says the result of readlink is implementation-defined
96746         when ssize_t overflows.
96747         Remove unnecessary cast to char*.
96748         Use free+malloc instead of realloc, as the storage doesn't need
96749         to be preserved and it's clearer and can be more efficient that way.
96750         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96751         * lib/xreadlink.h (xreadlink): Update prototype.
96752
96753 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96754
96755         * lib/xgetcwd.c: Revert some of the previous change; intead,
96756         fix the HAVE_GETCWD_NULL code to behave more like the
96757         !HAVE_GETCWD_NULL code used to.
96758
96759         Include "xalloc.h".
96760         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96761         invoke xalloc_die.
96762
96763 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96764
96765         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96766         sys/param.h, as pathmax.h includes them.
96767
96768 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96769
96770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96771         (jm_PREREQ_XGETCWD): New macro.
96772
96773         * m4/getcwd.m4: New file.
96774
96775 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96776
96777         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96778         like the HAVE_GETCWD_NULL code.
96779         Include pathmax.h if not HAVE_GETCWD.
96780         Do not include xalloc.h.
96781         (INITIAL_BUFFER_SIZE): New symbol.
96782         Do not use xmalloc / xrealloc, since the caller is responsible for
96783         handling errors.  Preserve errno around `free' during failure.
96784         Do not overrun buffer when using getwd.
96785
96786 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96787
96788         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96789         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96790         getcwd (NULL, 0).
96791
96792 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96793
96794         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96795         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96796         spotted by Jim Meyering.
96797
96798 2001-09-03  Jim Meyering  <meyering@lucent.com>
96799
96800         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96801         failure.
96802
96803 2001-09-02  Jim Meyering  <meyering@lucent.com>
96804
96805         * lib/error.c: Update from GNU libc.
96806
96807 2001-09-01  Jim Meyering  <meyering@lucent.com>
96808
96809         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96810         Used by df.
96811
96812 2001-09-01  Jim Meyering  <meyering@lucent.com>
96813
96814         * lib/xreadlink.c: New file.
96815         * lib/xreadlink.h: New file.
96816         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96817         xreadlink.h.
96818
96819         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96820         doesn't conflict with sparc Solaris 7's definition in
96821         /usr/include/sys/int_types.h.
96822
96823         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96824         files.
96825         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96826         and strncasecmp as r-values.  Unixware didn't have declarations.
96827
96828 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96829
96830         * lib/xstrtol.h: Add copyright notice.
96831         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96832         LONGINT_INVALID_SUFFIX_CHAR.
96833
96834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96835
96836         * lib/xstrtol.c (strtoimax): New decl.
96837
96838 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96839
96840         * lib/xgetcwd.c: Don't include pathmax.h.
96841         Include stdlib.h and unistd.h if available.
96842         Include xalloc.h.
96843         (xmalloc, xstrdup, free): Remove decls.
96844         (xgetcwd): Don't assume sizes fit in unsigned.
96845         Check for overflow when computing sizes.
96846         Simplify reallocation code.
96847
96848 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96849
96850         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96851         a directory's st_size can have an arbitrary value, so the old
96852         usage could waste an arbitrary amount of memory.  All uses
96853         changed.
96854         * lib/savedir.h: Update prototype.
96855
96856 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96857
96858         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96859
96860         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96861         old strtoimax.c.
96862
96863         Also, make the following further changes to make this file's
96864         configuration more similar to that of strtol.c:
96865         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96866         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96867         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96868         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96869         changed to signed values.
96870
96871         And make the following changes as well:
96872         Fix copyright notice, as 1999 was missing.
96873         (verify): New macro.
96874         (strtoimax): Check sizes at compile-time, not run-time.
96875         Prefer strtol to strtoll if both work.
96876         (main): Remove; it was not that useful and was a pain to maintain.
96877
96878         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96879
96880 2001-08-31  Jim Meyering  <meyering@lucent.com>
96881
96882         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96883         Use an initial, malloc'd, buffer of length 128 rather than
96884         a statically allocated one of length 1024.
96885
96886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96887
96888         Simplify code, partly by assuming autoconf 2.52 semantics.
96889
96890         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96891
96892         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96893         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96894         All uses removed.
96895         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96896         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96897         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96898         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96899         jm_AC_HEADER_INTTYPES_H.
96900         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96901
96902         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96903
96904         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96905         Quote first arg of AC_DEFUN.
96906         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96907         since they are needed to parse the include file even if we need
96908         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96909         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96910         but with opposite signedness.
96911
96912 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96913
96914         Merge 'exclude' changes from tar 1.13.22.
96915         This fixes one or two unlikely storage allocation overflow bugs,
96916         but doesn't change user-visible behavior otherwise.
96917
96918 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96919
96920         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96921         (jm_PREREQ_EXCLUDE): New macro.
96922
96923 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96924
96925         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96926         tm to be declared.
96927
96928 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96929
96930         * lib/hash.c: Remove '2001' from copyright notice.
96931
96932 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96933
96934         * lib/full-write.h: New file.
96935         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96936         * lib/full-write.c: Correct credits, as cccp.c no longer
96937         exists and anyway it was so heavily changed from the old cccp
96938         code as to be unrecognizable.  Include full-write.h.
96939         (full_write): Return size_t, with short writes meaning failure.
96940         All callers changed.  This fixes a bug with large buffers
96941         on 64-bit hosts.
96942         * lib/utime.c: Include full-write.h.
96943
96944 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96945
96946         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96947         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96948         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96949         Include if available.
96950         (<xalloc.h>): Include
96951         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96952         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96953         collide with FNM macros.
96954         (struct patopts): New struct.
96955         (struct exclude): Use it, as exclude patterns now come with options.
96956         (new_exclude): Support above changes.
96957         (new_exclude, add_exclude_file):
96958         Initial size must now be a power of two to simplify overflow checking.
96959         (free_exclude, fnmatch_no_wildcards): New function.
96960         (excluded_filename): No longer requires options arg, as the options
96961         are determined by add_exclude.  Now returns bool, not int.
96962         (excluded_filename, add_exclude):
96963         Add support for the fancy new exclusion options.
96964         (add_exclude, add_exclude_file): Now takes int options arg.
96965         Check for arithmetic overflow when computing sizes.
96966         (add_exclude_file): xrealloc might modify errno, so don't
96967         realloc until after errno might be used.
96968
96969         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96970         New macros.
96971         (free_exclude): New decl.
96972         (add_exclude, add_exclude_file): Now takes int options arg.
96973         (excluded_filename): No longer requires options arg, as the options
96974         are determined by add_exclude.  Now returns bool, not int.
96975
96976 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96977
96978         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96979
96980 2001-08-27  Jim Meyering  <meyering@lucent.com>
96981
96982         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96983
96984         * lib/version-etc.c (N_): Remove definition.
96985         Revert most of last change.
96986         Instead, simply don't mark the `Copyright...' string for translation.
96987         Based on advice from Paul Eggert.
96988
96989         * lib/strtoxmax.c: Tweak comment.
96990
96991 2001-08-26  Jim Meyering  <meyering@lucent.com>
96992
96993         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96994
96995         * m4/xstrtoimax.m4: New file.
96996         * m4/xstrtoumax.m4: Add comments explaining why we
96997         AC_REPLACE_FUNCS(strtol).
96998
96999 2001-08-26  Jim Meyering  <meyering@lucent.com>
97000
97001         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97002         of copyright with `%s' so translators don't get an untranslated
97003         message in 2002.
97004         (COPYRIGHT_YEAR): Define.
97005         (version_etc): Use fprintf rather than fputs.
97006         Suggestion from Ulrich Drepper.
97007
97008         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97009
97010         * lib/strtoll.c: New file, from GNU libc.
97011         * lib/xstrtoimax.c: New file.
97012
97013         * lib/xstrtol.h: Add xstrtoimax.
97014         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97015         * lib/strtoimax.c: New file.  Likewise, but first define
97016         STRTOUXMAX_SIGNED.
97017
97018         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97019         ...
97020         * lib/strtoxmax.c: ... then renamed to this.
97021
97022 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97023
97024         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97025         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97026         (jm_AC_TYPE_INTMAX_T): New macro.
97027         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97028
97029         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97030
97031         * m4/longlong.m4: Renamed from ulonglong.m4.
97032         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97033         * m4/uintmax_t.m4: Removed.
97034
97035 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97036
97037         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97038         Port to Solaris 8, where 'sed' requires a space after the 'r'
97039         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97040         Redirect output to $tmp just once.
97041
97042 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97043
97044         * lib/addext.c (<errno.h>): Include.
97045         (errno): Declare if not defined.
97046         (addext): Work correctly when pathconf returns -1 and leaves
97047         errno alone because there is no limit.  Also, work even if
97048         pathconf returns a value greater than SIZE_MAX.
97049
97050 2001-08-12  Jim Meyering  <meyering@lucent.com>
97051
97052         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97053         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97054         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97055         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97056         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97057         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97058         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97059         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97060         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97061         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97062         utime.m4, utimes.m4, xstrtoumax.m4:
97063         Quote the first argument in each use of AC_DEFUN.
97064
97065 2001-08-12  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97068         Simply `return getcwd (NULL, 0);'.
97069         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97070         Use 1300 as initial value for length, not PATH_MAX.
97071
97072         * lib/pathmax.h: Clean up cpp syntax.
97073
97074 2001-08-12  Jim Meyering  <meyering@lucent.com>
97075
97076         * lib/gettimeofday.c: New file.
97077         * lib/gtod.h: New file.
97078         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97079
97080 2001-08-05  Jim Meyering  <meyering@lucent.com>
97081
97082         * m4/jm-macros.m4: Require autoconf-2.52.
97083
97084 2001-08-04  Jim Meyering  <meyering@lucent.com>
97085
97086         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97087         stmt, to get in sync with glibc.
97088
97089 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97090
97091         The following changes are from gettext 0.10.39 as maintained by
97092         Bruno Haible.
97093
97094         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97095         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97096         with inverted sense.  All uses changed.
97097
97098         * lib/mbswidth.c: Don't include <limits.h>.
97099         Include <stdlib.h> and <string.h> unconditionally.
97100         (iswcntrl, mbsinit, ISCNTRL): New macros.
97101         (mbsnwidth): Use K&R style function declarations.
97102         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97103         can optimize it when MB_CUR_MAX == 1.
97104         The width of control characters is zero, not 1.
97105
97106 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97107
97108         The following changes are from gettext 0.10.39 as maintained by
97109         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97110
97111         * m4/codeset.m4: Upgrade to serial AM1.
97112         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97113         all uses changed.  Quote first arg of AC_DEFUN.
97114         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97115
97116         * m4/iconv.m4: Upgrade to serial AM2.
97117         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97118         Add --with-libconv-prefix.
97119         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97120         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97121         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97122         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97123         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97124
97125         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97126         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97127         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97128         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97129         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97130         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97131         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97132         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97133         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97134
97135         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97136         string.h any more.
97137
97138         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97139         not the default value.
97140
97141         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97142         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97143         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97144         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97145         Also check for iswcntrl, used for wcwidth fallback.
97146         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97147         to Autoconf 2.13.
97148
97149 2001-08-03  Jim Meyering  <meyering@lucent.com>
97150
97151         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97152         as it was in the original.  Reported by Paul Eggert.
97153
97154 2001-07-16  Jim Meyering  <meyering@lucent.com>
97155
97156         * m4/gettimeofday.m4: New file.
97157         Prompted by a report from Bernhard Baehr.
97158
97159 2001-07-15  Jim Meyering  <meyering@lucent.com>
97160
97161         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97162         stuff. Now it's in ../Makefile.cfg.
97163
97164 2001-07-15  Jim Meyering  <meyering@lucent.com>
97165
97166         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97167         (BUILT_SOURCES): Add unlocked-io.h.
97168         (io_functions): Define.
97169         (unlocked-io.h): New rule.
97170         (DISTCLEANFILES): Add unlocked-io.h.
97171         (all-local): Depend on unlocked-io.h, to ensure it is created.
97172
97173         * lib/unlocked-io.hin: New file
97174
97175         * lib/regex.c: Update from glibc.
97176
97177 2001-07-05  Jim Meyering  <meyering@lucent.com>
97178
97179         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97180         recommendation.
97181         (libfetish_a_SOURCES): Put all .h files here instead.
97182         Remove a thus-exposed (better checks in automake) duplicate and
97183         two unnecessary .h files.
97184
97185 2001-07-04  Jim Meyering  <meyering@lucent.com>
97186
97187         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97188         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97189         distcheck failure.
97190
97191 2001-07-02  Jim Meyering  <meyering@lucent.com>
97192
97193         The following changes were prompted by suggestions from Bruno Haible.
97194
97195         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97196         is now generated.
97197         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97198         definition of EXTRA_DIST.
97199         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97200         ensure that the generated file is created/updated whenever the list
97201         of $(unlocked_functions) is changed.
97202         (jm-glibc-io.m4): New rule.
97203         (unlocked-io.h): New rule -- currently unused.
97204
97205 2001-06-24  Jim Meyering  <meyering@lucent.com>
97206
97207         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97208         unmatched right bracket, rather than kludging it with an extra,
97209         falsely-matching quote in a comment.  Patch by Akim Demaille.
97210
97211 2001-06-11  Jim Meyering  <meyering@lucent.com>
97212
97213         * lib/regex.c: Update from GNU libc.
97214
97215 2001-05-27  Jim Meyering  <meyering@lucent.com>
97216
97217         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97218         Check for ut_type in struct utmp.
97219
97220 2001-05-27  Jim Meyering  <meyering@lucent.com>
97221
97222         * lib/readutmp.h (UT_TYPE): Define.
97223
97224 2001-05-24  Jim Meyering  <meyering@lucent.com>
97225
97226         * lib/argmatch.c: Include "quote.h".
97227         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97228         quote function.  Reported by Göran Uddeborg.
97229
97230 2001-05-22  Jim Meyering  <meyering@lucent.com>
97231
97232         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97233         now that we use the package-supplied version unconditionally.
97234         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97235
97236 2001-05-21  Jim Meyering  <meyering@lucent.com>
97237
97238         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97239         shell syntax errors.
97240
97241 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97242
97243         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97244
97245 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97246
97247         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97248         Don't bother to check library strftime, since
97249         we'll be using our own my_strftime function anyway.
97250         Define my_strftime instead of strftime.
97251
97252 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97253
97254         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97255         which is not yet declared.
97256
97257 2001-05-15  Jim Meyering  <meyering@lucent.com>
97258
97259         * m4/regex.m4: Use proper quoting so brackets appear in the test
97260         program.
97261         Reported by, and with help from, Bruno Haible.
97262
97263 2001-05-13  Jim Meyering  <meyering@lucent.com>
97264
97265         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97266         undefined.
97267
97268 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97269
97270         dirname code cleanup.  base_name now behaves more compatibly
97271         with POSIX basename when given file names that have trailing
97272         slashes, and similarly for dir_name.  Add new primitives
97273         base_len and dir_len.  Put the directory-name-related decls
97274         into dirname.h.
97275
97276         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97277         * lib/backupfile.c (base_name): Likewise.
97278         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97279         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97280         * lib/makepath.c (strip_trailing_slashes): Likewise.
97281         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97282         ISSLASH): Likewise.
97283         * lib/rename.c (strip_trailing_slashes): Likewise.
97284         * lib/same.c (base_name): Likewise.
97285         * lib/stripslash.c (ISSLASH): Likewise.
97286
97287         * lib/addext.c: Include <dirname.h> after size_t is defined.
97288         * lib/backupfile.c: Likewise.
97289
97290         * lib/addext.c (addext): Use base_len to trim redundant
97291         trailing slashes instead of doing it ourselves.
97292         But do not trim the last slash if it is not redundant.
97293
97294         * lib/backupfile.c (find_backup_file_name,
97295         max_backup_version): Use base_len instead of rolling it ourselves.
97296         Handle the case of "" and (on DOS) "C:" correctly.
97297
97298         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97299         needed. Include <string.h>, <dirname.h>.
97300         (base_name): Allow file names ending in slashes, other than names
97301         that are all slashes.  In this case, return the basename followed
97302         by the slashes.  This is more general, and can be used in places
97303         where the original base_name purposely had an assertion failure.
97304         (base_len): New function.
97305
97306         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97307         Do not include <assert.h>; no longer needed.
97308         Include xalloc.h.
97309         (memrchr): Remove decl.
97310         (dir_name_r): Remove.
97311         (dir_len): Renamed from dirlen.  All callers changed.
97312         Rewrite in terms of base_name, for simplicity and consistency.
97313         (dir_name): Never return NULL.  All callers changed.
97314         Do not include <stdlib.h> in test program; no longer needed.
97315         return 0; is fine for test program.
97316
97317         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97318         New macros.
97319         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97320
97321         * lib/path-concat.c (path_concat): Use base_len to compute
97322         base length, not strlen; this means we cannot rely on memcpy
97323         to null-terminate.
97324
97325         * lib/same.c (STREQ): Remove.
97326         (same_name): Handle the case where the basename ends in trailing '/'.
97327
97328         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97329         a slash was stripped.  Do not strip the last slash after a
97330         file system prefix.
97331
97332 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97333
97334         * lib/Makefile.am (libfetish_a_SOURCES):
97335         Add strftime.c, since we now compile it on all hosts.
97336
97337         * lib/strftime.c (my_strftime):
97338         Define to nstrftime if emacs, but only if my_strftime is not defined.
97339         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97340         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97341         Add one more extra argument: a nanoseconds value.
97342         All uses changed.
97343         (ns): New macro.
97344         (my_strftime function): Add %N format.
97345         (emacs_strftimeu): Renamed from emacs_strftime,
97346         with extra ut argument.
97347
97348 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97349
97350         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97351
97352 2001-04-21  Jim Meyering  <meyering@lucent.com>
97353
97354         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97355         doesn't interfere.
97356
97357 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97358
97359         * m4/ftruncate.m4: Check for chsize.
97360         Link with ftruncate.o unconditionally if ftruncate is missing.
97361         This was required when cross-compiling to i586-mingw32msvc.
97362
97363 2001-04-08  Jim Meyering  <meyering@lucent.com>
97364
97365         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97366         recomputed; that's necessary when the offset spans a DST transition.
97367         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97368
97369 2001-04-02  Jim Meyering  <meyering@lucent.com>
97370
97371         * lib/regex.h, regex.c: Update from GNU libc.
97372
97373 2001-03-24  Jim Meyering  <meyering@lucent.com>
97374
97375         * m4/jm-macros.m4: Require autoconf-2.49d.
97376
97377 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97378
97379         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97380
97381 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97382
97383         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97384
97385 2001-03-17  Jim Meyering  <meyering@lucent.com>
97386
97387         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97388         now that the version in autoconf is equivalent.
97389         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97390
97391         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97392         Suggestion from Akim Demaille.
97393
97394         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97395         (jm_PREREQ_TEMPNAME): New function.
97396
97397 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97398
97399         * lib/tempname.c (uint64_t): Define to uintmax_t if
97400         not defined, and if UINT64_MAX is not defined.
97401         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97402         Reported by John David Anglin.
97403
97404 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97405
97406         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97407         resolve alias if codeset is empty.
97408         * lib/config.charset (BeOS): Use wildcard syntax.
97409
97410 2001-03-13  Jim Meyering  <meyering@lucent.com>
97411
97412         * lib/path-concat.c (path_concat)
97413         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97414         concatenating e.g., `C:' and `foo'.
97415         From Bruno Haible.
97416
97417 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97418
97419         * lib/localcharset.c (locale_charset): Don't use
97420         setlocale(LC_CTYPE,NULL). Don't return NULL.
97421         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97422
97423 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97424
97425         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97426         support for DOS/DJGPP.
97427
97428 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97429
97430         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97431         lacks mkstemp.  Compile our own tempname.c if we compile our own
97432         mkstemp.c, as mkstemp relies on tempname.
97433
97434 2001-03-01  Jim Meyering  <meyering@lucent.com>
97435
97436         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97437         AH_VERBATIM really does output its argument verbatim.
97438
97439 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97440
97441         * lib/Makefile.am (libfetish_a_SOURCES):
97442         Add dup-safer.c, fopen-safer.c.
97443         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97444
97445         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97446         * lib/unistd-safer.h: New files.
97447
97448 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97449
97450         The mkstemp replacement is taken from glibc 2.2.2, with some
97451         portability fixes for use outside glibc, as follows:
97452
97453         * lib/tempname.c (struct_stat64): New macro.
97454         (direxists, __gen_tempname): Use it.
97455         This avoids a portability problem with Solaris 8.
97456
97457         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97458         (<stddef.h>, <stdint.h>, <string.h>):
97459         Include only if STDC_HEADERS || _LIBC.
97460         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97461         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97462         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97463         (__set_errno): Define this macro if <errno.h> doesn't.
97464         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97465         Define these macros if <stdio.h> doesn't.
97466         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97467         Define these macros if <sys/stat.h>
97468         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97469         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97470         __xstat64): Define if not _LIBC.
97471         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97472         (__gen_tempname): Invoke gettimeofday only if
97473         HAVE_GETTIMEOFDAY || _LIBC;
97474         otherwise, fall back on plain "time".
97475         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97476
97477         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97478
97479         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97480
97481 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97482
97483         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97484
97485 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97486
97487         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97488         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97489         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97490         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97491
97492 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97493
97494         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97495         Remove workaround macros for hosts that have mbrtowc but not
97496         mbstate_t, as we now insist on proper declarations for both
97497         before using mbrtowc.
97498
97499 2001-02-17  Jim Meyering  <meyering@lucent.com>
97500
97501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97502         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97503         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97504         UnixWare 7.1.1.
97505
97506         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97507         rather than AC_CACHE_VAL.
97508
97509 2001-02-17  Jim Meyering  <meyering@lucent.com>
97510
97511         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97512         around included file name.
97513
97514         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97515
97516         * lib/strftime.c: Update from GNU libc (the only changes were to
97517         comments).
97518
97519 2001-02-17  Jim Meyering  <meyering@lucent.com>
97520
97521         * lib/regex.c: Update from libc.
97522
97523 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97524
97525         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97526         clash.
97527
97528 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97529
97530         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97531         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97532         Reported by Mark Hounschell via Paul Eggert.
97533
97534 2001-02-07  Jim Meyering  <meyering@lucent.com>
97535
97536         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97537
97538 2001-02-05  Jim Meyering  <meyering@lucent.com>
97539
97540         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97541         it includes the patch required for `large file' support with at least
97542         HP-UX's 10.20 /bin/cc.
97543
97544 2001-02-03  Jim Meyering  <meyering@lucent.com>
97545
97546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97547         AS_IF, now that it works once again (mysteriously).
97548         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97549
97550 2001-01-30  Jim Meyering  <meyering@lucent.com>
97551
97552         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97553         * m4/chown.m4: Rename conftestchown to conftest.chown.
97554         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97555         s/conftestdir2/conftest.d2/.
97556         * m4/utimes.m4: s/conftestdata/conftest.data/
97557         Inspired by Pavel Roskin's change in autoconf.
97558
97559 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97560
97561         * lib/config.charset: Update for FreeBSD 4.2.
97562
97563 2001-01-27  Jim Meyering  <meyering@lucent.com>
97564
97565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97566         a use of AS_IF.
97567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97568
97569 2001-01-26  Jim Meyering  <meyering@lucent.com>
97570
97571         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97572         quotearg.c includes it.
97573
97574 2001-01-26  Jim Meyering  <meyering@lucent.com>
97575
97576         * lib/quotearg.c: Include stddef.h.
97577         * lib/quote.c: Include stddef.h.
97578         Reported by Axel Kittenberger.
97579
97580         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97581         line in double quotes so that it evokes a better diagnostic.
97582         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97583         Reported by Axel Kittenberger.
97584
97585 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97586
97587         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97588         as if it was a `charset'.
97589
97590 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97591
97592         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97593         has const.
97594
97595 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97596
97597         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97598         to avoid a warning.  Add back 'const' to inptr.
97599
97600 2001-01-20  Jim Meyering  <meyering@lucent.com>
97601
97602         Be sure that headers are checked before used in code compiled
97603         for the type checks.
97604         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97605         In place of that, invoke jm_CHECK_ALL_TYPES.
97606         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97607         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97608         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97609         The check for ssize_t was mistakenly run before the test for unistd.h.
97610
97611         The configure-time check for stdbool.h was missing.
97612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97613         (jm_PREREQ_HASH): New function.
97614
97615 2001-01-17  Jim Meyering  <meyering@lucent.com>
97616
97617         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97618         for autoconf-2.49c.
97619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97620
97621 2001-01-16  Jim Meyering  <meyering@lucent.com>
97622
97623         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97624         From Bruno Haible.
97625
97626 2001-01-14  Jim Meyering  <meyering@lucent.com>
97627
97628         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97629         foo and bar.  Create conftestdir/ in the script, not in the C code.
97630         Remove directories in the script, not in the C code.
97631         Remove conftestdir{,2} before trying to create the directory.
97632         Make the entire configure script fail if the mkdir fails.
97633
97634 2001-01-14  Jim Meyering  <meyering@lucent.com>
97635
97636         * lib/rename.c: New file.  From Volker Borchert.
97637         Include stdlib.h, string.h or strings.h, and xalloc.h.
97638         Use strip_trailing_slashes rather than open-coding it.
97639
97640 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97641
97642         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97643
97644 2001-01-03  Jim Meyering  <meyering@lucent.com>
97645
97646         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97647         of local `inptr' to avoid warning with some system declarations of
97648         iconv.
97649
97650 2001-01-02  Volker Borchert  <bt@teknon.de>
97651
97652         * m4/rename.m4: New file.
97653         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97654
97655 2001-01-01  Jim Meyering  <meyering@lucent.com>
97656
97657         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97658         even on systems with utmpx.h.  It's necessary for the declaration of
97659         utmp's ut_user member.  Reported by Andreas Jaeger.
97660
97661         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97662         available. They are required for the declarations of getgrgid and
97663         getpwuid resp.
97664         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97665         Reported by Andreas Jaeger.
97666
97667 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97668
97669         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97670         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97671         so `make install' also works in VPATH builds.
97672
97673 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97674
97675         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97676         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97677         can be used in subdirectories.
97678
97679 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97680
97681         * lib/modechange.c: Do not assume that mode_t uses the
97682         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97683         the other-execute bit of FOO even if S_IXOTH != 1.
97684
97685         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97686         WOTH, XOTH, ALLM): New macros.
97687         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97688          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97689         Use them.
97690         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97691         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97692         (mode_compile):
97693         No need to use uintmax_t; unsigned long is long enough.
97694         Don't bother to get suffix since we don't use it.
97695
97696 2000-12-26  Jim Meyering  <meyering@lucent.com>
97697
97698         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97699         better with autoheader.
97700
97701 2000-12-24  Jim Meyering  <meyering@lucent.com>
97702
97703         * lib/hash.c (is_prime): Return explicit boolean values.
97704         (hash_get_first): Return NULL to appease Irix5.6's 89.
97705         Reported by Nelson Beebe.
97706
97707 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97708
97709         * lib/localcharset.c (locale_charset): Add support for Win32.
97710
97711 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97712
97713         * lib/physmem.h, lib/physmem.c: New files.
97714
97715         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97716         (noinst_HEADERS): Add physmem.h.
97717
97718         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97719         't' for compatibility with Solaris 8 sort.
97720
97721 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97722
97723         * lib/config.charset: Add support for BeOS.
97724
97725 2000-12-17  Jim Meyering  <meyering@lucent.com>
97726
97727         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97728         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97729
97730 2000-12-16  Jim Meyering  <meyering@lucent.com>
97731
97732         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97733         N and M) would have treated it like `chown N:N FILE'.
97734
97735         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97736
97737 2000-12-16  Jim Meyering  <meyering@lucent.com>
97738
97739         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97740         SHELLS_FILE to a file name that's useful on djgpp systems.
97741         Include stdlib.h.
97742         (ADDITIONAL_DEFAULT_SHELLS): Define.
97743         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97744         Based mostly on a patch from Prashant TR.
97745
97746 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97747
97748         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97749         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97750         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97751
97752 2000-12-08  Andreas Schwab  <schwab@suse.de>
97753
97754         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97755         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97756
97757 2000-12-07  Jim Meyering  <meyering@lucent.com>
97758
97759         * lib/stripslash.c (ISSLASH): Define.
97760         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97761         `/'.
97762         From Prashant TR.
97763
97764         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97765         (dir_name_r): Declare this function as static.
97766         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97767         manifest itself on a name containing a mix of slashes and
97768         backslashes.
97769         Make this function work with names starting with a DOS-style
97770         drive letter and colon prefix.
97771         (dir_name): Append `.' if necessary.
97772         Based mostly on patches from Prashant TR and Eli Zaretskii.
97773
97774         * lib/dirname.h (dir_name_r): Remove prototype.
97775
97776 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97777
97778         * m4/off_t-format.m4: Remove this file.
97779         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97780
97781 2000-12-06  Jim Meyering  <meyering@lucent.com>
97782
97783         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97784         replacement strtoull, we may well need the replacement strtoul, too.
97785         Check for declarations of strtoul and strtoull.
97786         Check for strtol.  Mainly as a cue to cause automake to include
97787         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97788         Check for limits.h -- strtol.c needs it.
97789
97790 2000-12-05  Jim Meyering  <meyering@lucent.com>
97791
97792         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97793
97794 2000-12-04  Jim Meyering  <meyering@lucent.com>
97795
97796         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97797         Also include memory.h, stdlib.h, unistd.h if appropriate.
97798         Reported by Andreas Jaeger (conflicting declaration of malloc).
97799
97800 2000-12-02  Jim Meyering  <meyering@lucent.com>
97801
97802         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97803         * m4/jm-macros.m4 (jm_MACROS): require it.
97804
97805 2000-12-02  Jim Meyering  <meyering@lucent.com>
97806
97807         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97808
97809 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97810
97811         * lib/memrchr.c: Include <config.h> before any system include file.
97812
97813 2000-11-30  Jim Meyering  <meyering@lucent.com>
97814
97815         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97816
97817 2000-11-30  Jim Meyering  <meyering@lucent.com>
97818
97819         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97820
97821 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97822
97823         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97824
97825 2000-11-26  Jim Meyering  <meyering@lucent.com>
97826
97827         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97828
97829 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97830
97831         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97832         size of (size_t) -1; it's not portable.
97833
97834 2000-11-17  Jim Meyering  <meyering@lucent.com>
97835
97836         * lib/strstr.c: Update from GNU libc.
97837
97838 2000-11-17  Akim Demaille  <akim@epita.fr>
97839
97840         * lib/obstack.h: Formatting changes.
97841         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97842         prevent type checking.
97843         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97844         cast the value to (void *): assigning a `foo *' to a `void *'
97845         variable is valid.
97846         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97847
97848 2000-11-16  Jim Meyering  <meyering@lucent.com>
97849
97850         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97851
97852 2000-11-11  Jim Meyering  <meyering@lucent.com>
97853
97854         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97855
97856 2000-11-10  Jim Meyering  <meyering@lucent.com>
97857
97858         * lib/obstack.h: Update from GNU libc.
97859         * lib/obstack.c: Likewise.
97860
97861 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97862
97863         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97864
97865 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97866
97867         * lib/getusershell.c (setusershell): Use rewind rather than
97868         fseek/fseeko, to avoid configuration hassles with fseeko.
97869         Don't bother opening SHELLS_FILE if shellstream is NULL;
97870         it's not necessary.
97871
97872 2000-11-05  Jim Meyering  <meyering@lucent.com>
97873
97874         * lib/makepath.h (make_dir): Declare.
97875         * lib/makepath.c (make_dir): Remove `static' attribute.
97876         Tweak a comment.
97877
97878 2000-11-04  Jim Meyering  <meyering@lucent.com>
97879
97880         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97881
97882 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97883
97884         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97885         last one in a bucket, advance to the next bucket.
97886
97887 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97888
97889         * lib/fnmatch.c: Do not comment out all the code if we are using
97890         the GNU C library, because in some cases we are replacing buggy
97891         code in the GNU C library itself.
97892
97893 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97894
97895         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97896         (regex_compile): Catch bogus \(\1\).
97897
97898 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97899
97900         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97901         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97902         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97903
97904 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97905
97906         * lib/error.h, getline.h, modechange.h:
97907         Remove "2000" from Copyright line, as the file hasn't been
97908         changed this year other than in the copyright notice.
97909
97910         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97911         was changed this year.
97912
97913 2000-10-29  Jim Meyering  <meyering@lucent.com>
97914
97915         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97916         renaming.
97917         * m4/ls-mntd-fs.m4: Likewise
97918
97919 2000-10-29  Jim Meyering  <meyering@lucent.com>
97920
97921         * lib/xstat.in: Fix grammar in comment.
97922
97923 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97924
97925         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97926         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97927         doesn't define __restrict_arr.
97928
97929 2000-10-28  Jim Meyering  <meyering@lucent.com>
97930
97931         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97932         (jm_PREREQ_MEMCHR): New function.
97933
97934 2000-10-28  Jim Meyering  <meyering@lucent.com>
97935
97936         * lib/memchr.c: Update from libc.
97937         Adjust for portability:
97938         [HAVE_STDLIB_H]: Include stdlib.h.
97939         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97940         Undef __memchr, too.
97941         [!weak_alias]: Define __memchr to memchr.
97942
97943         * lib/regex.c: Update from libc.
97944         * lib/regex.h: Likewise.
97945         * lib/getopt1.c: Likewise.
97946         * lib/memcmp.c: Likewise.
97947
97948         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97949         Avoid using fseek, when possible -- it's broken by design.
97950         Patch by Ulrich Drepper.
97951
97952 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97953
97954         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97955         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97956         Giving in to popular pressure to shut up the compiler with casts.
97957
97958 2000-10-26  Jim Meyering  <meyering@lucent.com>
97959
97960         * lib/strftime.c: Update from libc.
97961
97962 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97963
97964         * regex.c: More `unsigned char' -> `re_char' changes.
97965         Also change several `int' into `re_wchar_t'.
97966         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97967         (PUSH_FAILURE_POINTER): Don't cast any more.
97968         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97969         We want GCC to complain, since this piece of code makes
97970         re_match non-reentrant, which *should* be fixed.
97971         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97972         (EXTEND_BUFFER): Use RETALLOC.
97973         (SET_LIST_BIT): Don't cast.
97974         (re_wchar_t): New type.
97975         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97976         that those two functions will always properly return.
97977         (IMMEDIATE_QUIT_CHECK): Cast to void.
97978         (analyse_first): Use recursion rather than an explicit stack.
97979         (re_compile_fastmap): Can't fail anymore.
97980         (re_search_2): Don't check re_compile_fastmap for failure.
97981         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97982         Now also sets the new value (passed in a new argument).
97983         (re_match_2_internal): Use it.
97984         Also, use a new var `reg' of type size_t when looping through regs
97985         rather than reuse the inappropriate `mcnt'.
97986
97987 2000-10-25  Jim Meyering  <meyering@lucent.com>
97988
97989         * lib/obstack.c: Update from libc.
97990
97991 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97992
97993         * regex.c (regex_compile): Change the way of handling a range from
97994         a char less than 256 to a char not less than 256.
97995
97996 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97997
97998         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97999         NT-Emacs only.
98000         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98001         so that re_search functions only quit when callers expect them to.
98002
98003 2000-10-23  Jim Meyering  <meyering@lucent.com>
98004
98005         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98006         wrong.  That set_locale call must not have any side effects.
98007         From Paul Eggert.
98008
98009 2000-10-22  Jim Meyering  <meyering@lucent.com>
98010
98011         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98012         [CYCLIC]: Remove now-unused definition.
98013
98014         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98015         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98016         Suggestion from Ulrich Drepper.
98017
98018 2000-10-21  Jim Meyering  <meyering@lucent.com>
98019
98020         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98021         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98022         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98023
98024 2000-10-21  Jim Meyering  <meyering@lucent.com>
98025
98026         * lib/dirname.c (memrchr): Declare if necessary.
98027         (dir_name): Remove the restriction that there be no
98028         trailing slashes.  Now, this code skips past them, effectively
98029         ignoring them.
98030         [TEST_DIRNAME] (main): New unit tests.
98031
98032         * lib/memrchr.c: New file from GNU libc.
98033         Undef __memrchr, too.
98034         [!weak_alias]: Define __memrchr to memrchr.
98035         Guard weak_alias use with `#ifdef weak_alias'.
98036
98037 2000-10-21  Jim Meyering  <meyering@lucent.com>
98038
98039         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98040         (dir_name): Use dir_name_r.
98041         * lib/dirname.h (dir_name_r): Declare it.
98042
98043 2000-10-17  Jim Meyering  <meyering@lucent.com>
98044
98045         * lib/quote.h (PARAMS): Define and use.
98046         Reported by Akim Demaille.
98047
98048         * lib/getopt.c: Update from libc.
98049
98050 2000-10-16  Jim Meyering  <meyering@lucent.com>
98051
98052         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98053         setlocale.
98054         From Jan Fedak.
98055
98056 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98057
98058         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98059
98060 2000-09-25  Jim Meyering  <meyering@lucent.com>
98061
98062         * lib/md5.h (rol): Define (from GnuPG).
98063
98064         * lib/sha.c: Give credit (GnuPG) where due.
98065         (M): Use rol rather than open-coding it.
98066         Add a FIXME comment.
98067
98068 2000-09-21  Jim Meyering  <meyering@lucent.com>
98069
98070         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98071         Reported by Michael Stone.
98072
98073 2000-09-20  Jim Meyering  <meyering@lucent.com>
98074
98075         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98076         (noinst_HEADERS): Add sha.h.
98077         Based on code from Scott G. Miller and from GnuPG.
98078
98079 2000-09-18  Jim Meyering  <meyering@lucent.com>
98080
98081         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98082         LIBS. Otherwise, everyone ends up linking with -lelf for some
98083         configurations.
98084         Reported by Mike Stone.
98085
98086 2000-09-15  Jim Meyering  <meyering@lucent.com>
98087
98088         * lib/regex.c: Update from libc.
98089
98090 2000-09-10  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/getopt.c (_getopt_internal): Update from glibc.
98093
98094 2000-09-09  Jim Meyering  <meyering@lucent.com>
98095
98096         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98097         think it should be used as a general replacement for isascii.
98098         * lib/fnmatch.c: Likewise.
98099         * lib/mbswidth.c: Likewise
98100         * lib/regex.c: Likewise.
98101
98102         Don't use atoi.
98103         * lib/userspec.c: Include sys/param.h and limits.h.
98104         Include xstrtol.h.
98105         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98106         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98107         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98108         UID, GID.  Check range.
98109
98110 2000-09-06  Jim Meyering  <meyering@lucent.com>
98111
98112         * lib/getopt.c (_getopt_internal): Update from glibc.
98113
98114 2000-08-30  Jim Meyering  <meyering@lucent.com>
98115
98116         * lib/strftime.c: Merge in changes from GNU libc.
98117
98118 2000-08-26  Jim Meyering  <meyering@lucent.com>
98119
98120         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98121         * m4/fpending.m4: New file.
98122
98123 2000-08-26  Jim Meyering  <meyering@lucent.com>
98124
98125         * lib/closeout.c: Include "__fpending.h".
98126         (close_stdout_status): Return right away if there's nothing to flush.
98127
98128         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98129         * lib/__fpending.c: New file.
98130         * lib/__fpending.h: New file.
98131
98132 2000-08-20  Jim Meyering  <meyering@lucent.com>
98133
98134         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98135         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98136         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98137
98138 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98139
98140         Improve fileutils installation on systems where running
98141         programs (like install) can't be unlinked.
98142         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98143         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98144
98145 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98146
98147         Standardize on "memory exhausted" instead of "Memory exhausted"
98148         or "virtual memory exhausted".
98149         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98150         "virtual memory exhausted".
98151         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98152         our own message.
98153         * lib/userspec.c (parse_user_spec): Likewise.
98154         * lib/bumpalloc.h: comment fix
98155         * lib/same.c, userspec.c: Include xalloc.h.
98156
98157         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98158         not char *const and pointing to a constant array.
98159         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98160         (xrealloc): Comment fix.
98161
98162         * lib/userspec.c (parse_user_spec):
98163         Don't translate a message until just before returning,
98164         to avoid unnecessary translation.
98165
98166 2000-08-07  Jim Meyering  <meyering@lucent.com>
98167
98168         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98169         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98170         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98171         getgroups.c, gethostname.c, getopt.h, group-member.c,
98172         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98173         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98174         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98175         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98176         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98177         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98178         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98179         yesno.c: Back out Copyright date changes for each file with no change
98180         this year.  This eases coordination with other programs using the same
98181         source code modules.  From Paul Eggert.
98182
98183 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98184
98185         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98186         not char, for compatibility with glibc 2.1.3 strftime.c.
98187
98188 2000-08-03  Greg McGary  <greg@mcgary.org>
98189
98190         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98191         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98192         (EXTEND_BUFFER): Use them.
98193
98194 2000-08-01  Jim Meyering  <meyering@lucent.com>
98195
98196         * lib/dirname.c (ISSLASH): Define.
98197         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98198         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98199         both `\' and `/' may be use as path separators.
98200         Based on a patch from Prashant TR.
98201
98202 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98203
98204         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98205         slot vector a constant, since it might get modified.
98206
98207 2000-07-31  Jim Meyering  <meyering@lucent.com>
98208
98209         * lib/xmalloc.c: Use `virtual memory exhausted', not
98210         `Memory exhausted'.
98211         * lib/obstack.c (print_and_abort): Likewise.
98212
98213 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98214
98215         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98216         buffer, so that the caller can always quote one small
98217         component of a "memory exhausted" message in slot 0.
98218         From a suggestion by Jim Meyering.
98219
98220 2000-07-30  Jim Meyering  <meyering@lucent.com>
98221
98222         * lib/makepath.c (make_path): Quote the other instance, too.
98223
98224         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98225         (STATIC_BUF_SIZE): Define.
98226         (quotearg_n_options): Use only statically allocated storage when
98227         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98228         than STATIC_BUF_SIZE.
98229
98230 2000-07-29  Jim Meyering  <meyering@lucent.com>
98231
98232         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98233         * lib/dirname.c (dir_name): Likewise.
98234
98235         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98236         `/'.
98237
98238         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98239         (dir_name): Assert that there are no trailing slashes.
98240
98241 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98242
98243         * lib/mbswidth.h (mbswidth): Add a flags argument.
98244         (mbswidth): New declaration.
98245         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98246         * lib/mbswidth.c (mbswidth): Add a flags argument.
98247         (mbsnwidth): New function.
98248
98249 2000-07-24  Jim Meyering  <meyering@lucent.com>
98250
98251         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98252
98253 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98254
98255         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98256
98257 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98258
98259         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98260         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98261         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98262         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98263         invoke multibyte primitives.
98264
98265 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98266
98267         * lib/quotearg.c:
98268         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98269         so that mbstate_t is always defined.
98270
98271         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98272         be 1 in at least one GCC installation, and this configuration
98273         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98274         performance on hosts that have mbrtowc but have only unibyte
98275         locales, but I assume these hosts are rare.
98276
98277 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98278
98279         * lib/mbswidth.c (_XOPEN_SOURCE):
98280         Don't define; this causes problems on Solaris 7.
98281         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98282
98283 2000-07-23  Jim Meyering  <meyering@lucent.com>
98284
98285         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98286         too: getgrgid, getpwuid, getuid.
98287
98288 2000-07-23  Jim Meyering  <meyering@lucent.com>
98289
98290         * lib/basename.c (base_name): Add an assertion.
98291
98292 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98293
98294         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98295         shadow its mbsinit function.
98296
98297 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98298
98299         * lib/mbswidth.h: New file.
98300         * lib/mbswidth.c: New file.
98301         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98302         (noinst_HEADERS): Add mbswidth.h.
98303
98304 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98305
98306         * lib/config.charset: Add support for FreeBSD. Improve support for
98307         HP-UX and IRIX 6.
98308
98309 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98310
98311         * m4/mbswidth.m4: New file.
98312         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98313
98314 2000-07-15  Jim Meyering  <meyering@lucent.com>
98315
98316         * lib/makepath.c: Include quote.h.
98317         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98318         corresponding argument in a `quote (...)' call.
98319         Give better diagnostics.
98320
98321         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98322         (noinst_HEADERS): Add quote.h.
98323
98324         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98325         from tar's src/misc.c.
98326         * lib/quote.h: New file.  Prototypes for same.
98327
98328 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98329
98330         From a suggestion by Bruno Haible.
98331         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98332         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98333         to decide whether to define the BeOS workaround macro;
98334         this adjusts to the change to AC_MBSTATE_T.
98335
98336 2000-07-14  Jim Meyering  <meyering@lucent.com>
98337
98338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98339         jm_AC_TYPE_UINTMAX_T.
98340
98341 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98342
98343         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98344
98345         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98346         quotearg_buffer_restyled): Add support for
98347         clocale_quoting_style.  Undo previous change to
98348         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98349         and "{RIGHT QUOTATION MARK}" msgids.
98350
98351 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98352
98353         From a suggestion by Bruno Haible.
98354         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98355         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98356         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98357         and mbstate_t, to a single-part test that simply defines mbstate_t.
98358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98359         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98360
98361 2000-07-10  Jim Meyering  <meyering@lucent.com>
98362
98363         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98364
98365         * m4/gnu-source.m4: Output to confdefs.h directly.
98366         Suggestion from Akim Demaille.
98367
98368 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98369
98370         The old behavior of quoting `like this' doesn't look good with
98371         newer, ISO-style fonts.  See:
98372         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98373
98374         Instead, quote "like this" by default.  Let the translator
98375         tailor the locale-specific quoting behavior by providing
98376         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98377
98378         * lib/quotearg.c (N_): New macro.
98379         (gettext_default): New function.
98380         (quotearg_buffer_restyled): Use
98381         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98382         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98383
98384 2000-07-09  Jim Meyering  <meyering@lucent.com>
98385
98386         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98387         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98388
98389         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98391
98392 2000-07-09  Jim Meyering  <meyering@lucent.com>
98393
98394         * lib/Most files: Update copyright dates to include 2000.
98395
98396 2000-07-08  Jim Meyering  <meyering@lucent.com>
98397
98398         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98399         if not defined.
98400         (xgethostname): Remove now-unnecessary #ifdef.
98401         Move declaration of `err' into loop where it's used.
98402
98403 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98404         and Bruno Haible  <haible@clisp.cons.org>
98405
98406         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98407         only if the test for an object-type mbstate_t fails.  This
98408         prevents us from mistakenly reporting that mbstate_t is a
98409         system object type after we "#define mbstate_t int" to work
98410         around its lack.
98411
98412 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98413         and Bruno Haible  <haible@clisp.cons.org>
98414
98415         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98416
98417 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98418
98419         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98420         to strerror_r.
98421         Include <ctype.h> for use of isalpha.
98422
98423 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98424
98425         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98426         by allocating a larger buffer. Test the gethostname return value for
98427         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98428         returns an error and ENAMETOOLONG isn't defined.
98429
98430 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98431
98432         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98433         dimension.
98434
98435 2000-07-04  Jim Meyering  <meyering@lucent.com>
98436
98437         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98438         of the deprecated AC_CHECKING.
98439
98440 2000-07-04  Jim Meyering  <meyering@lucent.com>
98441
98442         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98443         Reported by Bruno Haible.
98444
98445 2000-07-04  Jim Meyering  <meyering@lucent.com>
98446
98447         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98448         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98449         lacks mbrtowc.
98450
98451 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98452
98453         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98454         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98455
98456 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98457         and Bruno Haible  <haible@clisp.cons.org>
98458
98459         * lib/quotearg.c (mbrtowc):
98460         Assign to *pwc, and return 1 only if result is nonzero.
98461         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98462
98463 2000-07-03  Jim Meyering  <meyering@lucent.com>
98464
98465         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98466
98467 2000-07-03  Jim Meyering  <meyering@lucent.com>
98468
98469         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98470         This is necessary to get a definition of e.g., UTMP_FILE on
98471         HP-UX 10.20.
98472         From Bob Proulx.
98473
98474 2000-07-02  Jim Meyering  <meyering@lucent.com>
98475
98476         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98477
98478         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98479         AC_LIBOBJ(function_name).
98480         * m4/chown.m4: Likewise.
98481         * m4/fnmatch.m4: Likewise.
98482         * m4/ftruncate.m4: Likewise.
98483         * m4/getgroups.m4: Likewise.
98484         * m4/getline.m4: Likewise.
98485         * m4/group-member.m4: Likewise.
98486         * m4/jm-macros.m4: Likewise.
98487         * m4/lstat.m4: Likewise.
98488         * m4/malloc.m4: Likewise.
98489         * m4/memcmp.m4: Likewise.
98490         * m4/nanosleep.m4: Likewise.
98491         * m4/putenv.m4: Likewise.
98492         * m4/realloc.m4: Likewise.
98493         * m4/regex.m4: Likewise.
98494         * m4/stat.m4: Likewise.
98495         * m4/strftime.m4: Likewise.
98496
98497 2000-07-02  Jim Meyering  <meyering@lucent.com>
98498
98499         * lib/quotearg.c (mbstate_t): Don't define here.
98500
98501 2000-07-02  Jim Meyering  <meyering@lucent.com>
98502
98503         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98504
98505 2000-07-01  Jim Meyering  <meyering@lucent.com>
98506
98507         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98508
98509 2000-07-01  Jim Meyering  <meyering@lucent.com>
98510
98511         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98512         problem.
98513
98514 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98515
98516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98517         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98518
98519 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98520
98521         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98522         per change in ../m4/ls-mntd-fs.m4.
98523         (read_filesystem_list): Ignore symbolic links.
98524
98525 2000-06-29  Jim Meyering  <meyering@lucent.com>
98526
98527         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98528         for declaration of strcmp.
98529
98530         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98531
98532         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98533         Avoid warning by casting result to `char *' to remove `const'.
98534
98535 2000-06-28  Jim Meyering  <meyering@lucent.com>
98536
98537         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98538         included by quotearg.c, for which we perform this test.  From
98539         Bruno Haible.
98540
98541 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98542
98543         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98544         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98545         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98546
98547 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98548
98549         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98550
98551 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98552
98553         savedir now sets errno on failure and invokes xmalloc to get memory.
98554         Fix a couple of other minor bugs while we're at it.
98555
98556         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98557         (NAMLEN): Remove macro.
98558         (malloc, realloc): Remove decls.
98559         (stpcpy): Likewise.
98560         ("xalloc.h"): Include.
98561         (NAME_SIZE_DEFAULT): New macro.
98562         (savedir): Use xmalloc / xrealloc to allocate memory.
98563         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98564         Skip "" directory entries.
98565         Use strlen to calculate directory entry length, since the old method
98566         is rarely used these days and isn't worth supporting.
98567         Don't use a pointer after freeing it.
98568         Check for integer overflow when calculating allocation size.
98569         Use memcpy to copy entries, instead of stpcpy.
98570         Set errno properly when returning NULL.
98571         Check for readdir error.
98572
98573 2000-06-26  Jim Meyering  <meyering@lucent.com>
98574
98575         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98576
98577 2000-06-25  Jim Meyering  <meyering@lucent.com>
98578
98579         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98580         Linux header bug when _XOPEN_SOURCE is defined to 500.
98581
98582 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98583
98584         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98585         deficiency.
98586
98587 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98588
98589         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98590         Include xalloc.h.
98591         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98592
98593 2000-06-24  Jim Meyering  <meyering@lucent.com>
98594
98595         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98596         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98597         for which strerror does return char*, but which lacks a conveniently
98598         accessible declaration of the function.  If the compile-test says
98599         strerror_r doesn't work, then resort to a `run'-test that works on
98600         BeOS and segfaults on DEC Unix.
98601
98602 2000-06-24  Jim Meyering  <meyering@lucent.com>
98603
98604         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98605
98606 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98607
98608         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98609         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98610
98611 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98612
98613         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98614         (mbrtowc, mbstate_t): Define substitutes if
98615         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98616         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98617         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98618
98619 2000-06-23  Jim Meyering  <meyering@lucent.com>
98620
98621         * m4/afs.m4: Add missing AC_MSG_RESULT.
98622         Reported by Bruno Haible.
98623
98624         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98625         Suggestion from Bruno Haible.
98626
98627 2000-06-23  Jim Meyering  <meyering@lucent.com>
98628
98629         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98630
98631 2000-06-21  Jim Meyering  <meyering@lucent.com>
98632
98633         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98634
98635 2000-06-21  Jim Meyering  <meyering@lucent.com>
98636
98637         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98638         (noinst_HEADERS): Add getstr.h.
98639
98640         * lib/getline.c (getstr): Move into a separate file.
98641         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98642         the following changes: new parameter, delim2; both delim[12]
98643         parameters have type `int', not `char'.  The latter would lose
98644         with 8-bit delimiters.
98645         * lib/getstr.h: New file.
98646
98647 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98648
98649         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98650         than 1024, return a memory chunk of least possible size, instead
98651         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98652         Use free/xmalloc instead of xrealloc to avoid copying for very long
98653         paths.
98654
98655 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98656
98657         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98658         the empty string.
98659
98660 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98661
98662         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98663         address, not strdup.  Include <stdlib.h> and don't declare free().
98664
98665 2000-06-19  Jim Meyering  <meyering@lucent.com>
98666
98667         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98668
98669 2000-06-18  Jim Meyering  <meyering@lucent.com>
98670
98671         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98672
98673         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98674         `checking whether...' message to be consistent with that of the
98675         lstat test.
98676
98677 2000-06-18  Jim Meyering  <meyering@lucent.com>
98678
98679         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98680         Besides, these days every porting target provides a mkdir function.
98681
98682         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98683         needed. (this snippet comes from src/system.h).
98684
98685 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98686
98687         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98688
98689 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98690
98691         * lib/human.c (adjust_value): New function.
98692         (human_readable_inexact): Apply rounding style even when
98693         printing approximate values.
98694
98695 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98696
98697         * lib/human.c (human_readable_inexact): Allow an input block
98698         size that is not a multiple of the output block size, and vice versa.
98699         Reported by Piergiorgio Sartor.
98700
98701 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98702
98703         * lib/getdate.y (get_date): Apply relative times after time
98704         zone indicator, not before.  Reported by Todd A. Jacobs.
98705
98706 2000-06-13  Jim Meyering  <meyering@lucent.com>
98707
98708         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98709
98710         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98711
98712 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98713
98714         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98715
98716 2000-06-12  Jim Meyering  <meyering@lucent.com>
98717
98718         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98719         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98720         optional argument.
98721         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98722         the optional argument, `lib'.
98723
98724 2000-06-08  Jim Meyering  <meyering@lucent.com>
98725
98726         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98727
98728 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98729
98730         Rewrite largefile configuration so that we don't need to run
98731         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98732         AC_CANONICAL_HOST in configure.in -- jmm]
98733
98734         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98735         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98736         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98737         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98738         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98739         All uses changed.
98740         Instead of inspecting the output of getconf, try to compile the
98741         test program without and with the macro definition.
98742         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98743         for getconf.  Instead, check for the needed flags by compiling
98744         test programs.
98745
98746 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98747
98748         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98749
98750 2000-06-04  Jim Meyering  <meyering@lucent.com>
98751
98752         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98753         SunOS 4.1.4 for which gid_t is an unsigned type.
98754
98755 2000-06-03  Jim Meyering  <meyering@lucent.com>
98756
98757         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98758         now that autoconf requires that.
98759
98760         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98761         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98762         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98763
98764 2000-06-03  Jim Meyering  <meyering@lucent.com>
98765
98766         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98767
98768 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98769
98770         * m4/glibc21.m4: New file.
98771         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98772
98773 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98774
98775         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98776         newer, don't install charset.alias.
98777         * lib/config.charset: Change the Linux/glibc rules so they become empty
98778         on glibc-2.1 or newer.
98779
98780 2000-06-02  Jim Meyering  <meyering@lucent.com>
98781
98782         * lib/mountlist.c: Back out last change.  Instead, do this...
98783         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98784         me_dummy member using the same `ignore'-testing code.
98785         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98786         fs_type strings.
98787         From Mark D. Roth.
98788
98789 2000-05-29  Jim Meyering  <meyering@lucent.com>
98790
98791         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98792         mounts with the `ignore' attribute.  Based on a patch from
98793         Mark D. Roth.
98794
98795 2000-05-28  Jim Meyering  <meyering@lucent.com>
98796
98797         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98798         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98799         * m4/stat.m4: Likewise.
98800         * m4/lstat.m4: Likewise.
98801         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98802
98803         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98804         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98805
98806 2000-05-26  Jim Meyering  <meyering@lucent.com>
98807
98808         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98809
98810 2000-05-24  Jim Meyering  <meyering@lucent.com>
98811
98812         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98813         autoconf requires that.
98814         * m4/lib-check.m4: Likewise.
98815         * m4/jm-macros.m4: Likewise.
98816         * m4/strftime.m4: Likewise.
98817
98818         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98819         AC_CHECK_DECLS, now that autoconf requires that.
98820
98821 2000-05-22  Jim Meyering  <meyering@lucent.com>
98822
98823         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98824         * m4/lstat.m4: Likewise.
98825
98826 2000-05-22  Jim Meyering  <meyering@lucent.com>
98827
98828         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98829
98830 2000-05-20  Jim Meyering  <meyering@lucent.com>
98831
98832         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98833         (jm_PREREQ): Use it.
98834
98835 2000-05-18  Jim Meyering  <meyering@lucent.com>
98836
98837         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98838         back, too, since it may have been modified by allocate_entry.
98839         (hash_delete): Rewrite to use neither the assignment operator
98840         nor the comma operator in an if-expression.
98841
98842 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98843
98844         * lib/closeout.c:
98845         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98846         Remove; no longer needed.
98847         "quotearg.h": Add include.
98848         (file_name): Do not bother to explicitly initialize to NULL; it's less
98849         efficient on some hosts.
98850         (close_stdout_status): Remove test as to whether stdout was already
98851         closed; it breaks for the case "echo x | sort >&-".
98852         Quote file name colons.
98853         Do not assume that _("write error") lacks format strings.
98854
98855 2000-05-15  Jim Meyering  <meyering@lucent.com>
98856
98857         * lib/version-etc.c (version_etc_copyright): Update the copyright
98858         string used in all --version output.
98859
98860 2000-05-14  Jim Meyering  <meyering@lucent.com>
98861
98862         * lib/closeout.c (close_stdout_set_file_name): New function.
98863         (close_stdout_status): Use new file-scoped global.
98864         Return right away if fstat says the stdout file descriptor is invalid.
98865         * lib/closeout.h (close_stdout_set_file_name): Declare.
98866
98867 2000-05-10  Jim Meyering  <meyering@lucent.com>
98868
98869         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98870         (close_stdout_set_status): New function.
98871         * lib/closeout.h (close_stdout_set_status): Declare.
98872
98873 2000-05-09  Jim Meyering  <meyering@lucent.com>
98874
98875         * m4/gettext.m4: Rename this...
98876         * m4/libintl.m4: ...to this.
98877
98878 2000-05-08  Jim Meyering  <meyering@lucent.com>
98879
98880         * lib/long-options.c: Don't include closeout.h.
98881         (parse_long_options): Don't call close_stdout for --version.
98882
98883 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98884
98885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98886         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98887         2.1.3 bug.  This avoids a clash when files like regex.c define
98888         _GNU_SOURCE.
98889
98890 2000-05-06  Jim Meyering  <meyering@lucent.com>
98891
98892         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98893         (AC_REPLACE_FUNCS): Add strnlen.
98894
98895         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98896         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98897
98898         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98899         AC_SEARCH_LIBS call for nanosleep.
98900         (LIB_NANOSLEEP): Set and AC_SUBST.
98901
98902 2000-05-06  Jim Meyering  <meyering@lucent.com>
98903
98904         * lib/strnlen.c: Undefine __strnlen and strnlen.
98905         [!weak_alias]: Define __strnlen to strnlen.
98906
98907         * lib/atexit.c: New file, from libiberty.
98908
98909 2000-05-06  Jim Meyering  <meyering@lucent.com>
98910
98911         * lib/closeout.c (close_stdout_status): Also check for errors on the
98912         stderr stream.
98913
98914 2000-05-05  Jim Meyering  <meyering@lucent.com>
98915
98916         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98917         AC_SEARCH_LIBS call for clock_gettime.
98918         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98919
98920         * m4/search-libs.m4: Update from autoconf.
98921
98922         su doesn't work on Solaris 2.6.
98923         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98924         <shadow.h>.  Reported by Dragos Harabor.
98925
98926 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98927
98928         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98929         memcpy instead of xmalloc, xrealloc, path_concat.
98930         (locale_charset): Treat empty environment variables as absent.
98931         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98932
98933 2000-05-04  Jim Meyering  <meyering@lucent.com>
98934
98935         * lib/getopt.c: Update from glibc.
98936         * lib/obstack.c: Likewise.
98937         * lib/obstack.h: Likewise.
98938         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98939         file
98940
98941         * lib/regex.h: Likewise.
98942         * lib/strndup.c: Likewise.
98943         * lib/strnlen.c: New file, from glibc.
98944
98945 2000-05-03  Jim Meyering  <meyering@lucent.com>
98946
98947         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98948
98949 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98950
98951         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98952         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98953         compile-time test, rather than inspecting host and OS, to
98954         decide whether to define _LARGEFILE_SOURCE.
98955
98956 2000-05-01  Jim Meyering  <meyering@lucent.com>
98957
98958         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98959
98960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98961         Based on a patch from Bruno Haible.
98962
98963 2000-05-01  Jim Meyering  <meyering@lucent.com>
98964
98965         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98966
98967 2000-04-29  Jim Meyering  <meyering@lucent.com>
98968
98969         * lib/path-concat.c: Declare strdup only if it's not defined.
98970         * lib/canon-host.c: Likewise.
98971
98972 2000-04-28  Jim Meyering  <meyering@lucent.com>
98973
98974         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98975         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98976         is included first, then limits.h is included by locale.h by libintl.h.
98977         From John David Anglin.
98978
98979 2000-04-25  Jim Meyering  <meyering@lucent.com>
98980
98981         * lib/makepath.c (S_IRWXUGO): Define.
98982         (make_path): Always perform explicit chmod if MODE specifies any
98983         of the `special' permission bits.  Prompted by a bug report against
98984         install from Mate Wierdl and Joost van Baal.
98985
98986 2000-04-18  Jim Meyering  <meyering@lucent.com>
98987
98988         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98989         (jm_PREREQ): Use it.
98990
98991 2000-04-18  Jim Meyering  <meyering@lucent.com>
98992
98993         * lib/README: New file.
98994
98995         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98996         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98997
98998 2000-04-17  Jim Meyering  <meyering@lucent.com>
98999
99000         Get it right :-)
99001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99002         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99003         Suggestion from Akim Demaille.
99004
99005 2000-04-17  Jim Meyering  <meyering@lucent.com>
99006
99007         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99008         the definition of it to rpl_strftime also defined-away the system's
99009         declaration.
99010
99011 2000-04-15  Jim Meyering  <meyering@lucent.com>
99012
99013         Use `C' to denote so-called `contiguous' files, the same way
99014         that tar does.
99015         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99016         (ftypelet): Use S_ISCTG.
99017         From Michael Deutschmann.
99018
99019 2000-04-14  Jim Meyering  <meyering@lucent.com>
99020
99021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99022         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99023         clobbered.
99024
99025 2000-04-14  Jim Meyering  <meyering@lucent.com>
99026
99027         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99028
99029 2000-04-13  Jim Meyering  <meyering@lucent.com>
99030
99031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99032         AH_VERBATIM to insert required #ifndef into config.h.in.
99033         Suggestion from Akim Demaille.
99034
99035 2000-04-12  Jim Meyering  <meyering@lucent.com>
99036
99037         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99038         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99039         Christian Krackowizer.
99040
99041         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99042         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99043         (AC_SYS_LARGEFILE): Require.
99044         (AM_C_PROTOTYPES): Require.
99045
99046 2000-04-08  Jim Meyering  <meyering@lucent.com>
99047
99048         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99049         names don't conflict.  Reported by Eli Zaretskii.
99050
99051 2000-04-07  Jim Meyering  <meyering@lucent.com>
99052
99053         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99054         sys/types.h, to work around system header problems on AIX 3.2.5.
99055         From Bruno Haible.
99056
99057 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99058
99059         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99060         bug.  Deal with the different error behavior of Irix iconv.
99061
99062 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99063
99064         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99065         IRIX if the installer said otherwise.
99066
99067 2000-04-05  Jim Meyering  <meyering@lucent.com>
99068
99069         Portability tweaks required for ultrix4.3.
99070         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99071         (jm_CHECK_DECLS): Add getutent to the list of functions.
99072         (_jm_DECL_HEADERS): Add utmpx.h.
99073         From John David Anglin.
99074
99075         * m4/strftime.m4: Back out the 2000-04-02 change.
99076         Instead of that change, simply undefine putenv in the test program.
99077
99078 2000-04-05  Jim Meyering  <meyering@lucent.com>
99079
99080         Portability tweaks required for ultrix4.3.
99081         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99082         getutent.
99083         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99084         * lib/canon-host.c: Declare strdup.
99085         * lib/path-concat.c: Likewise.
99086         From John David Anglin.
99087
99088 2000-04-04  Jim Meyering  <meyering@lucent.com>
99089
99090         Be more DOS 8.3-friendly.
99091         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99092         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99093         * lib/Makefile.am: Reflect renaming.
99094         Reported by Eli Zaretskii.
99095
99096         Use a temporary file name that won't clash with `charset.alias'
99097         in the DOS 8.3 name space.
99098         * lib/Makefile.am (charset_tmp): Define.
99099         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99100         (uninstall-local): Likewise.
99101         Reported by Eli Zaretskii.
99102
99103 2000-04-03  Jim Meyering  <meyering@lucent.com>
99104
99105         * m4/gettext.m4: Fix typo in comment.
99106
99107         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99108         textutils/configure.in).  Suggestion from Paul Eggert.
99109         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99110
99111 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99112
99113         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99114         variable in the shell rather than using putenv, which isn't
99115         portable.  This avoids the configure-time inter-test dependency
99116         on the potentially-renamed putenv function.
99117
99118 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99119
99120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99121         before checking struct stat.st_blksize, so that
99122         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99123
99124 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99125
99126         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99127         since strftime.c uses HAVE_STRFTIME to decide whether to use
99128         the underlying strftime.
99129
99130 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99131
99132         * lib/time/strftime.c (my_strftime): Make sure we call the system
99133         strftime, not ourselves, when invoking the underlying strftime.
99134
99135 2000-03-24  Jim Meyering  <meyering@lucent.com>
99136
99137         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99138         (charset_alias): Define.
99139         (install-exec-local): Factor out common code.
99140         (uninstall-local): Split lines longer than 80.
99141         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99142         (SUFFIXES): Define.
99143         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99144         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99145
99146 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99147
99148         * lib/config.charset: Output a line containing "Packages using this
99149         file".
99150         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99151         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99152         ref-del.sed): New rules.
99153
99154 2000-03-17  Jim Meyering  <meyering@lucent.com>
99155
99156         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99157         Otherwise, include <strings.h>
99158
99159 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99160
99161         * lib/unicodeio.c (utf8_wctomb): New function.
99162         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99163         format instead of in UCS-4 with platform dependent endianness.
99164
99165 2000-03-10  Jim Meyering  <meyering@lucent.com>
99166
99167         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99168         From Marco Franzen.
99169
99170 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99171
99172         * lib/savedir.c (savedir): Work even if directory size is
99173         negative; this can happen with some screwy NFS configurations.
99174
99175 2000-03-06  Jim Meyering  <meyering@lucent.com>
99176
99177         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99178         if it's NULL (because we ran out of memory).  From Bruno Haible.
99179
99180 2000-03-05  Jim Meyering  <meyering@lucent.com>
99181
99182         * lib/localcharset.c ("path-concat.h"): Include.
99183         (get_charset_aliases): Use path_concat instead of ANSI string
99184         concatenation.
99185
99186         * lib/unicodeio.h (PARAMS): Define.
99187         Use it to guard prototype.
99188
99189 2000-03-04  Jim Meyering  <meyering@lucent.com>
99190
99191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99192         for lib/localcharset.c.
99193
99194 2000-03-04  Jim Meyering  <meyering@lucent.com>
99195
99196         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99197         installing into it.
99198         (uninstall-local): Uncomment this rule so `make distcheck' works
99199         once again.
99200
99201         * lib/unicodeio.c (<errno.h>): Include it.
99202         (errno): Declare if not defined.
99203
99204         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99205
99206         * lib/config.charset: New version, incorporating remarks from a linux
99207         i18n mailing list.  From Bruno Haible.
99208
99209 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99210
99211         * m4/codeset.m4: New file.
99212         * m4/iconv.m4: New file.
99213         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99214
99215 2000-03-03  Jim Meyering  <meyering@lucent.com>
99216
99217         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99218
99219 2000-03-02  Jim Meyering  <meyering@lucent.com>
99220
99221         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99222         the messages come out on separate lines.
99223
99224         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99225         rather than jm_CHECK_DECLARATIONS.
99226         * m4/decl.m4: Remove now-unused file.
99227
99228         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99229         geteuid.
99230
99231 2000-03-02  Jim Meyering  <meyering@lucent.com>
99232
99233         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99234
99235 2000-03-01  Jim Meyering  <meyering@lucent.com>
99236
99237         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99238         * lib/unicodeio.c: Likewise.
99239
99240 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99241
99242         * lib/config.charset: New file.
99243         * lib/localcharset.c: New file.
99244         * lib/unicodeio.h, lib/unicodeio.c: New files.
99245         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99246         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99247         (noinst_HEADERS): Add unicodeio.h.
99248         (all-local, install-exec-local, charset.alias): New targets.
99249
99250 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99251
99252         * lib/quotearg.c (ALERT_CHAR): New macro.
99253         (quotearg_buffer_restyled): Use it.
99254
99255 2000-02-27  Jim Meyering  <meyering@lucent.com>
99256
99257         * m4/check-decl.m4: Add getenv to the list.
99258
99259 2000-02-27  Jim Meyering  <meyering@lucent.com>
99260
99261         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99262         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99263
99264         * lib/backupfile.c: Guard inclusion of stdlib.h with
99265         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99266         Declare malloc if needed.
99267
99268         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99269         `#ifndef HAVE_DECL..'
99270         now that autoconf always defines the HAVE_DECL_ symbols.
99271         * lib/human.c: Likewise.
99272         * lib/same.c: Likewise.
99273         * lib/strtoumax.c: Likewise.
99274
99275         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99276         declaration check was not run.
99277         * lib/hash.c: Likewise.
99278         * lib/human.c: Likewise.
99279         * lib/same.c: Likewise.
99280         * lib/strtoumax.c: Likewise.
99281
99282         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99283         `.', then first look up the entire `.'-containing string as a login
99284         name.
99285
99286 2000-02-23  Jim Meyering  <meyering@lucent.com>
99287
99288         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99289         in place of my hack.
99290
99291 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99292
99293         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99294         (textint): New typedef.
99295         (parser_control): Member year changed from int to textint.
99296         All uses changed.
99297         (YYSTYPE): Removed; replaced by %union with int and textint members.
99298         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99299         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99300         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99301         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99302         (date, number, to_year): Use width of number in digits, not its value,
99303         to determine whether it's a 2-digit year, or a 2-digit time.
99304         (yylex): Store number of digits of numeric tokens.
99305         Reported by John Kendall.
99306
99307         (parser_control): Changed from struct parser_control to typedef (for
99308         consistency).  All uses changed.
99309
99310         (tID): Removed; not used.
99311         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99312
99313 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99314
99315         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99316         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99317
99318 2000-02-12  Jim Meyering  <meyering@lucent.com>
99319
99320         * lib/userspec.c (ISDIGIT): Define it.
99321         (isdigit): Remove definition.
99322         (is_number): Use ISDIGIT, not isdigit.
99323         <libintl.h>: Include.
99324         (_ and N_): Define.
99325         (parse_user_spec): Mark translatable strings.
99326
99327 2000-02-10  Jim Meyering  <meyering@lucent.com>
99328
99329         With these changes, nanosleep.[ch] are finally enough like the other
99330         lib/* replacement files to compile on a few more losing systems.
99331
99332         * lib/nanosleep.h: Don't include config.h.
99333         Remove prototype from declaration of nanosleep.
99334         (PARAMS): Remove now-unneeded definition.
99335         * lib/nanosleep.c: #undef nanosleep.
99336         (rpl_nanosleep): Rename from nanosleep.
99337
99338 2000-02-10  Jim Meyering  <meyering@lucent.com>
99339
99340         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99341         gnu_nanosleep to rpl_nanosleep.
99342
99343 2000-02-09  Jim Meyering  <meyering@lucent.com>
99344
99345         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99346         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99347
99348 2000-02-08  Akim Demaille  <akim@epita.fr>
99349
99350         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99351         `[' and `]' and remove uses of `changequote'.
99352         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99353         (AC_SYS_LARGEFILE): Likewise.
99354         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99355         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99356         of changequote.
99357         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99358         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99359         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99360         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99361
99362 2000-02-05  Jim Meyering  <meyering@lucent.com>
99363
99364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99365         Remove explicit use of AC_HEADER_TIME.  It is required by
99366         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99367         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99368         in autoconf whereby the expansion of the latter ended up preceding
99369         the expansion of its prerequisite, AC_HEADER_TIME.
99370         Reported by Volker Borchert.
99371
99372 2000-02-03  Jim Meyering  <meyering@lucent.com>
99373
99374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99375
99376 2000-02-03  Jim Meyering  <meyering@lucent.com>
99377
99378         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99379         rather than with `#if HAVE_UTMPNAME'.
99380
99381 2000-02-02  Jim Meyering  <meyering@lucent.com>
99382
99383         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99384         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99385         Reported by Eli Zaretskii.
99386
99387 2000-02-01  Jim Meyering  <meyering@lucent.com>
99388
99389         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99390
99391 2000-01-31  Jim Meyering  <meyering@lucent.com>
99392
99393         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99394         functions.  Add the time.h and sys/time.h headers along with the
99395         AC_REQUIRE'ment of AC_HEADER_TIME.
99396
99397 2000-01-31  Jim Meyering  <meyering@lucent.com>
99398
99399         * lib/nanosleep.h (nanosleep): Guard declaration with
99400         `#if ! HAVE_DECL_NANOSLEEP'.
99401         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99402         the declaration in that vendor's sys/timers.h.
99403         Reported by Christian Krackowizer.
99404
99405         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99406         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99407         (ISPRINT): Likewise.
99408         Reported by Tom Tromey.
99409
99410 2000-01-30  Jim Meyering  <meyering@lucent.com>
99411
99412         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99413
99414         * m4/prereq.m4 (utmp_includes): Define.
99415         Check for ut_user and ut_name members in both struct utmpx
99416         and struct utmp.
99417
99418 2000-01-30  Jim Meyering  <meyering@lucent.com>
99419
99420         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99421         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99422         header files where only utmpx.ut_user is declared.
99423
99424         * lib/readutmp.h (UT_USER): Define.
99425
99426 2000-01-29  Jim Meyering  <meyering@lucent.com>
99427
99428         * m4/lib-check.m4: New file containing library-related checks from
99429         fileutils and sh-utils (textutils had none).
99430
99431 2000-01-28  Jim Meyering  <meyering@lucent.com>
99432
99433         * m4/perl.m4: Change format of warning message to look more like that
99434         from the missing script.  Suggestion from François Pinard.
99435
99436 2000-01-25  Jim Meyering  <meyering@lucent.com>
99437
99438         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99439         well as time.h in the compile check.
99440         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99441         Fix typo in cross-compiling case: s/yes/no/.
99442
99443 2000-01-23  Jim Meyering  <meyering@lucent.com>
99444
99445         * m4/jm-macros.m4: Move df-related tests here from
99446         fileutils/configure.in
99447
99448         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99449         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99450
99451         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99452         s/space/ac_fsusage_space/.
99453         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99454
99455         * m4/ftruncate.m4: New file (derived from part of
99456         fileutils/configure.in).
99457         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99458         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99459
99460         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99461         AC_SUBST these here, rather than just in sh-util/configure.in, so
99462         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99463         all the same.
99464         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99465         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99466         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99467         (AC_SUBST(POW_LIBM)): Likewise.
99468         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99469
99470 2000-01-23  Jim Meyering  <meyering@lucent.com>
99471
99472         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99473         obstack.c.
99474
99475 2000-01-22  Jim Meyering  <meyering@lucent.com>
99476
99477         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99478
99479         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99480
99481         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99482         configure.in
99483         (AC_CHECK_HEADERS): Likewise for sh-utils.
99484         (AC_CHECK_HEADERS): Likewise for textutils.
99485         Merge the three lists of headers.
99486
99487         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99488         from fileutils' configure.in.
99489
99490         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99491         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99492         check-decl.m4.
99493
99494         * m4/check-decl.m4: Use #if rather than #ifdef.
99495         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99496         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99497         (_jm_DECL_HEADERS): Define new function.
99498         (jm_CHECK_DECLARATIONS): Require it.
99499
99500 2000-01-22  Jim Meyering  <meyering@lucent.com>
99501
99502         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99503         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99504         Required for some AIX systems.  Reported by Christian Krackowizer.
99505         [TESTING] (main): New function.
99506
99507         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99508         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99509         letters.
99510
99511         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99512         iswprint.
99513
99514         * lib/strverscmp.c (ISDIGIT): Define.
99515         (strverscmp): Use ISDIGIT, not isdigit.
99516
99517 2000-01-19  Jim Meyering  <meyering@lucent.com>
99518
99519         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99520         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99521         defines `struct timespec' in <sys/time.h>
99522
99523         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99524         Thanks to Akim for explaining.
99525
99526 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99527
99528         * lib/nanosleep.c (nanosleep):
99529         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99530         POSIX.1 doesn't require SA_INTERRUPT and some systems
99531         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99532         it's been part of POSIX.1 since day 1 (in 1988).
99533
99534 2000-01-17  Jim Meyering  <meyering@lucent.com>
99535
99536         * lib/interlock: Remove unused file.  Reported by François Pinard.
99537
99538 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99539
99540         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99541         alert, backslash, formfeed, and vertical tab unnecessarily in
99542         shell quoting style.
99543
99544 2000-01-16  Jim Meyering  <meyering@lucent.com>
99545
99546         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99547         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99548         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99549         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99550
99551 2000-01-16  Jim Meyering  <meyering@lucent.com>
99552
99553         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99554         because the latter didn't work.
99555
99556 2000-01-15  Jim Meyering  <meyering@lucent.com>
99557
99558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99559         (AC_REPLACE_FUNCS): Add memcpy and memset.
99560         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99561         Add strpbrk.
99562         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99563
99564 2000-01-12  Jim Meyering  <meyering@lucent.com>
99565
99566         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99567         (jm_PREREQ): Use it.
99568         (jm_PREREQ_READUTMP): New macro.
99569         (jm_PREREQ): Use it.
99570
99571 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99572
99573         Quote multibyte characters correctly.
99574         * m4/c-bs-a.m4: New file.
99575         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99576         (jm_PREREQ): Use it.
99577
99578 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99579
99580         * m4/uintmax_t.m4: Port to autoconf 2.13.
99581
99582 2000-01-08  Jim Meyering  <meyering@ascend.com>
99583
99584         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99585         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99586
99587 2000-01-04  Jim Meyering  <meyering@ascend.com>
99588
99589         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99590         jm_STRUCT_DIRENT_D_TYPE.
99591         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99592         jm_STRUCT_DIRENT_D_INO.
99593         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99594         jm_STRUCT_UTIMBUF.
99595         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99596         renamings.
99597         * m4/utime.m4: Likewise.
99598
99599         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99600         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99601
99602 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99603
99604         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99605         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99606
99607 2000-01-02  Jim Meyering  <meyering@ascend.com>
99608
99609         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99610         remember if this is necessary.
99611
99612 1999-12-26  Jim Meyering  <meyering@ascend.com>
99613
99614         * m4/jm-macros.m4: Use it here.
99615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99616
99617 1999-12-23  Jim Meyering  <meyering@ascend.com>
99618
99619         * m4/jm-macros.m4: Check for clock_gettime (moved from
99620         fileutils/configure.in)
99621         Check for gettimeofday.
99622
99623 1999-12-20  Jim Meyering  <meyering@ascend.com>
99624
99625         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99626         autoconf-2.14a-1999-12-20.
99627
99628 1999-12-19  Jim Meyering  <meyering@ascend.com>
99629
99630         * m4/lstat-slash.m4: New file.
99631         * m4/jm-macros.m4: Use the new macro:
99632         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99633
99634 1999-12-07  Jim Meyering  <meyering@ascend.com>
99635
99636         * m4/perl.m4: Require that File::Compare be available, too.
99637         Too many systems seem to lack it.
99638
99639         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99640         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99641
99642 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99643
99644         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99645         problem with the QNX 4.25 shell, which doesn't propagate exit
99646         status of failed commands inside shell assignments.
99647
99648 1999-11-17  Jim Meyering  <meyering@ascend.com>
99649
99650         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99651
99652 1999-11-07  Jim Meyering  <meyering@ascend.com>
99653
99654         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99655
99656 1999-11-06  Jim Meyering  <meyering@ascend.com>
99657
99658         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99659         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99660
99661 1999-11-05  Jim Meyering  <meyering@ascend.com>
99662
99663         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99664         configure.in of textutils, fileutils, and sh-utils into this one
99665         (shared between those packages) file.
99666         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99667         AC_STRUCT_ST_BLKSIZE.
99668
99669 1999-11-03  Jim Meyering  <meyering@ascend.com>
99670
99671         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99672         of AC_CHECK_TYPE checks includes unistd.h.
99673         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99674         Suggestion from Akim Demaille.
99675
99676 1999-10-30  Jim Meyering  <meyering@ascend.com>
99677
99678         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99679         m4-quoted string.
99680         * m4/ls-mntd-fs.m4: Likewise.
99681         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99682         * m4/jm-winsz1.m4: Likewise.
99683
99684         * m4/const.m4: Remove file, since the fix made it into the experimental
99685         version of autoconf.
99686         * m4/mktime.m4: Likewise.
99687
99688         * m4/check-type.m4: Remove file, now that the latest version of
99689         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99690
99691         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99692         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99693         AC_CHECK_TYPE.
99694
99695 1999-10-04  Jim Meyering  <meyering@ascend.com>
99696
99697         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99698
99699 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99700
99701         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99702         2.95.1 bug with HP-UX 10.20.
99703
99704 1999-09-17  Jim Meyering  <meyering@ascend.com>
99705
99706         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99707         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99708         due to missing strdup (against sh-utils-2.0).
99709
99710 1999-08-29  Jim Meyering  <meyering@ascend.com>
99711
99712         * m4/jm-macros.m4: Require jm_BISON.
99713         * m4/bison.m4: New file.
99714
99715 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99716
99717         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99718         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99719
99720 1999-08-05  Jim Meyering  <meyering@ascend.com>
99721
99722         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99723         to avoid conflicts with `conftest' on 8+3 filesystems.
99724         Suggestion from Eli Zaretskii.
99725
99726 1999-08-04  Jim Meyering  <meyering@ascend.com>
99727
99728         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99729         fileutils and sh-utils (textutils's getline test was inadequate).
99730         (AM_FUNC_GETLINE): Run this test.
99731         (AC_CHECK_FUNCS): Check for getdelim.
99732         Reported by Bob Proulx.
99733
99734 1999-08-02  Jim Meyering  <meyering@ascend.com>
99735
99736         * m4/jm-macros.m4: Add a comment.
99737
99738 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99739
99740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99741         <inttypes.h> defines strtoumax as a macro (and not as a
99742         function).
99743
99744 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99745
99746         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99747         that we can shift, multiply and divide unsigned long long
99748         values; Ultrix cc can't do it.
99749
99750 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99751
99752         * m4/mktime.m4: New file, which is a preview of what should appear
99753         in the next public autoconf release.
99754
99755 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99756
99757         * m4/lfs.m4: Remove this file.
99758         * m4/largefile.m4: New file.  It contains the old contents of
99759         lfs.m4, except that all names with prefix AC_LFS have been
99760         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99761         compatible with future autoconf versions.  Also, some minor m4
99762         quoting problems have been fixed.
99763
99764 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99765
99766         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99767         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99768         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99769         and simplify the shell code.
99770
99771 1999-08-01  Jim Meyering  <meyering@ascend.com>
99772
99773         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99774         m4.
99775
99776 1999-07-20  Jim Meyering  <meyering@ascend.com>
99777
99778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99779
99780 1999-07-15  Jim Meyering  <meyering@ascend.com>
99781
99782         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99783
99784 1999-05-22  Jim Meyering  <meyering@ascend.com>
99785
99786         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99787
99788 1999-05-20  Jim Meyering  <meyering@ascend.com>
99789
99790         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99791         Add a colon after each `then' in case $4 is empty.
99792
99793 1999-05-16  Jim Meyering  <meyering@ascend.com>
99794
99795         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99796
99797 1999-05-10  Jim Meyering  <meyering@ascend.com>
99798
99799         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99800
99801         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99802         AC_FUNC_MKTIME.
99803
99804 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99805
99806         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99807
99808 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99809
99810         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99811         not CPPFLAGS, so that linking works correctly in IRIX.
99812
99813 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99814
99815         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99816
99817 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99818
99819         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99820         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99822         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99823         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99824
99825         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99826
99827 1999-04-20  Jim Meyering  <meyering@ascend.com>
99828
99829         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99830         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99831         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99832
99833 1999-04-18  Jim Meyering  <meyering@ascend.com>
99834
99835         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99836         * m4/jm-macros.m4: Use it.
99837
99838 1999-04-06  Jim Meyering  <meyering@ascend.com>
99839
99840         * m4/strftime.m4: Remove test for %f.
99841
99842 1999-03-29  Jim Meyering  <meyering@ascend.com>
99843
99844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99845         superset of the AC_TYPE_* checks in the textutils, fileutils,
99846         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99847         AC_TYPE_PID_T.
99848
99849 1999-03-28  Jim Meyering  <meyering@ascend.com>
99850
99851         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99852         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99853         replaced e.g., in the *.sh files of the sh-utils.
99854
99855 1999-03-20  Jim Meyering  <meyering@ascend.com>
99856
99857         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99858         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99859         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99860
99861 1999-03-19  Jim Meyering  <meyering@ascend.com>
99862
99863         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99864
99865 1999-03-12  Jim Meyering  <meyering@ascend.com>
99866
99867         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99868
99869 1999-03-07  Jim Meyering  <meyering@ascend.com>
99870
99871         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99872         declared.
99873
99874 1999-02-17  Jim Meyering  <meyering@ascend.com>
99875
99876         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99877         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99878
99879 1999-02-07  Jim Meyering  <meyering@ascend.com>
99880
99881         * m4/group-member.m4: New file -- extracted from sh-utils'
99882         configure.in.
99883
99884         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99885         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99886
99887 1999-02-06  Jim Meyering  <meyering@ascend.com>
99888
99889         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99890         * m4/fnmatch.m4: Likewise.
99891         * m4/getgroups.m4: Likewise.
99892         * m4/lstat.m4: Likewise.
99893         * m4/malloc.m4: Likewise.
99894         * m4/putenv.m4: Likewise.
99895         * m4/realloc.m4: Likewise.
99896         * m4/regex.m4: Likewise.
99897         * m4/stat.m4: Likewise.
99898         * m4/strftime.m4: Likewise.
99899         Suggestion from Alain Magloire.
99900
99901         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99902         * m4/fnmatch.m4: Likewise.
99903         * m4/getgroups.m4: Likewise.
99904         * m4/getline.m4: Likewise.
99905         * m4/lstat.m4: Likewise.
99906         * m4/malloc.m4: Likewise.
99907         * m4/memcmp.m4: Likewise.
99908         * m4/putenv.m4: Likewise.
99909         * m4/realloc.m4: Likewise.
99910         * m4/regex.m4: Likewise.
99911         * m4/stat.m4: Likewise.
99912         * m4/strftime.m4: Likewise.
99913         Suggestion from Alain Magloire.
99914
99915         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99916         an argument.
99917
99918         * m4/regex.m4: Add a run-time Test for proper operation of
99919         re_compile_pattern.
99920
99921 1999-01-31  Jim Meyering  <meyering@ascend.com>
99922
99923         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99924
99925 1999-01-30  Jim Meyering  <meyering@ascend.com>
99926
99927         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99928
99929         * m4/jm-mktime.m4: Make this a wrapper around the official
99930         AM_FUNC_MKTIME rather than my private copy, now that the official one
99931         is up to date.
99932         * m4/mktime.m4: Remove file.
99933
99934         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99935         * m4/uptime.m4: Likewise.
99936         * m4/uintmax_t.m4: Likewise.
99937
99938 1999-01-28  Jim Meyering  <meyering@ascend.com>
99939
99940         * m4/jm-macros.m4: Use jm_AFS.
99941         * m4/afs.m4: New file (from fileutils' configure.in).
99942
99943         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99944         * m4/chown.m4: Likewise.
99945         * m4/d-ino.m4: Likewise.
99946         * m4/d-type.m4: Likewise.
99947         * m4/fnmatch.m4: Likewise.
99948         * m4/getgroups.m4: Likewise.
99949         * m4/gettext.m4: Likewise.
99950         * m4/jm-mktime.m4: Likewise.
99951         * m4/jm-winsz2.m4: Likewise.
99952         * m4/lcmessage.m4: Likewise.
99953         * m4/ls-mntd-fs.m4: Likewise.
99954         * m4/malloc.m4: Likewise.
99955         * m4/memcmp.m4: Likewise.
99956         * m4/putenv.m4: Likewise.
99957         * m4/realloc.m4: Likewise.
99958         * m4/st_mtim.m4: Likewise.
99959         * m4/strftime.m4: Likewise.
99960
99961 1999-01-16  Jim Meyering  <meyering@ascend.com>
99962
99963         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99964         (ARGMATCH_DIE_DECL): Define.
99965
99966 1999-01-12  Jim Meyering  <meyering@ascend.com>
99967
99968         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99969         Reported by Lars Hecking.
99970
99971 1999-01-10  Jim Meyering  <meyering@ascend.com>
99972
99973         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99974         gross kludge.
99975         * m4/inttypes_h.m4: Likewise.
99976         * m4/lstat.m4: Likewise.
99977         * m4/malloc.m4: Likewise.
99978         * m4/readdir.m4: Likewise.
99979         * m4/realloc.m4: Likewise.
99980         * m4/st_dm_mode.m4: Likewise.
99981         * m4/stat.m4: Likewise.
99982         * m4/utimbuf.m4: Likewise.
99983         * m4/utimes.m4: Likewise.
99984
99985         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99986         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99987         comments in config.h.in are meaningful.
99988
99989         * m4/jm-macros.m4: Require autoconf-2.13 here.
99990
99991         * m4/regex.m4: By default, don't use the included regex.c on systems
99992         with glibc 2.  Suggestion from Uli Drepper.
99993
99994 1999-01-02  Jim Meyering  <meyering@ascend.com>
99995
99996         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99997
99998 1998-12-18  Jim Meyering  <meyering@ascend.com>
99999
100000         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100001         Based on a suggestion from Lars Hecking.
100002
100003 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100004
100005         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100006
100007 1998-11-16  Jim Meyering  <meyering@ascend.com>
100008
100009         * m4/lfs.m4: Double-quote the `uname...` expression.
100010
100011 1998-11-14  Jim Meyering  <meyering@ascend.com>
100012
100013         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100014         * m4/stat.m4: Likewise.
100015
100016 1998-11-03  Jim Meyering  <meyering@ascend.com>
100017
100018         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100019         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100020
100021 1998-10-18  Jim Meyering  <meyering@ascend.com>
100022
100023         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100024
100025 1998-10-17  Jim Meyering  <meyering@ascend.com>
100026
100027         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100028         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100029         calls for those previously hard-coded headers.  Instead, take a new
100030         parameter.
100031         (jm_CHECK_DECLARATIONS): Reflect interface change.
100032         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100033         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100034
100035         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100036
100037 1998-10-14  Jim Meyering  <meyering@ascend.com>
100038
100039         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100040         instead of "TZ=America/Vancouver".  From Paul Eggert.
100041
100042 1998-10-11  Jim Meyering  <meyering@ascend.com>
100043
100044         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100045         This adds a test for a recently added compatibility fix for mktime.c.
100046         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100047
100048 1998-09-27  Jim Meyering  <meyering@ascend.com>
100049
100050         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100051
100052         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100053         ../configure.in, including a change from Gordon Matzigkeit to allow
100054         cross-compiling for the Hurd.
100055
100056         * m4/glibc.m4: New file/macro to test for the GNU C Library
100057         versions 1 and 2.  From Gordon Matzigkeit.
100058         Indent.
100059
100060 1998-09-21  Jim Meyering  <meyering@ascend.com>
100061
100062         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100063
100064 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100065
100066         Port nanosecond-resolution times to UnixWare 2.1.2 and
100067         pedantic Solaris 2.6.
100068
100069         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100070         AC_STRUCT_ST_MTIM.
100071         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100072         Generate name of ns member, instead of just 1 or undef.
100073         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100074
100075 1998-08-15  Jim Meyering  <meyering@ascend.com>
100076
100077         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100078         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100079         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100080         instead of jm_TYPE_SSIZE_T.
100081
100082 1998-08-12  Jim Meyering  <meyering@ascend.com>
100083
100084         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100085
100086 1998-08-02  Jim Meyering  <meyering@ascend.com>
100087
100088         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100089         in acconfig.h manually.
100090
100091 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100092
100093         * m4/st_mtim.m4: New file.
100094
100095 1998-07-28  Jim Meyering  <meyering@ascend.com>
100096
100097         * m4/utimes.m4: Undef stat.
100098
100099 1998-07-25  Jim Meyering  <meyering@ascend.com>
100100
100101         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100102         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100103
100104 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100105
100106         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100107         uid and gid actually remain unchanged.
100108
100109 1998-07-07  Jim Meyering  <meyering@ascend.com>
100110
100111         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100112
100113 1998-07-04  Jim Meyering  <meyering@ascend.com>
100114
100115         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100116         to prove that this macro can be used in packages without regex.c.
100117
100118 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100119
100120         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100121         is to be used.
100122
100123 1998-07-03  Jim Meyering  <meyering@ascend.com>
100124
100125         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100126
100127         * m4/gettext.m4: New file -- from gettext-0.10.35.
100128         * m4/lcmessage.m4: Likewise.
100129         * m4/progtest.m4: Likewise.
100130
100131         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100132         * m4/jm-macros.m4: Require the new macro.
100133
100134 1998-06-29  Jim Meyering  <meyering@ascend.com>
100135
100136         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100137         for the definition of NGROUPS (used in a system header included
100138         by sys/mount.h).
100139
100140 1998-06-28  Jim Meyering  <meyering@ascend.com>
100141
100142         * m4/ls-mntd-fs.m4: New file.
100143         * m4/fstypename.m4: New file.
100144
100145         * m4/jm-macros.m4: Require the new macro.
100146         * m4/jm-glibc-io.m4: New file.
100147
100148 1998-05-19  Jim Meyering  <meyering@ascend.com>
100149
100150         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100151         * m4/lchown.m4: New file.
100152
100153         * m4/Makefile.am.in: New file.
100154         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100155
100156 1998-05-14  Jim Meyering  <meyering@ascend.com>
100157
100158         * m4/Makefile.am (EXTRA_DIST): Add them.
100159         * m4/jm-macros.m4: New file.
100160         * m4/utimbuf.m4: New file.
100161
100162 1998-05-12  Jim Meyering  <meyering@ascend.com>
100163
100164         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100165
100166 1998-05-11  Jim Meyering  <meyering@ascend.com>
100167
100168         * m4/isc-posix.m4: New file.
100169
100170 1998-05-10  Jim Meyering  <meyering@ascend.com>
100171
100172         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100173
100174 1998-05-09  Jim Meyering  <meyering@ascend.com>
100175
100176         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100177         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100178         with automake.
100179
100180         * m4/ssize_t.m4: New file.
100181         * m4/mktime.m4: Remove file -- the new automake has this now.
100182
100183 1998-04-26  Jim Meyering  <meyering@ascend.com>
100184
100185         * m4/assert.m4: New file.
100186         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100187
100188 1998-04-05  Jim Meyering  <meyering@ascend.com>
100189
100190         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100191         (jm_PREREQ): Use it here.
100192
100193 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100194
100195         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100196         in acconfig.h.
100197
100198 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100199
100200         * m4/prereq.m4: New file.
100201         * m4/error.m4: New file.
100202         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100203
100204 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100205
100206         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100207         cache-check for the same variable -- that defeated the purpose of
100208         the test; the test program was never run.  This was a problem only
100209         on systems with losing getline functions -- HP-UX 10.20 is one.
100210         Reported by Bjorn Helgaas.
100211
100212 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100213
100214         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100215
100216 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100217
100218         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100219
100220         * m4/const.m4: New file.  Use an initializer in this declaration
100221         typedef int charset[2]; const charset x;
100222         Reported by Bob Glickstein.
100223
100224 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100225
100226         * m4/chown.m4: Fix reversed types on -1 args to chown.
100227         From Kaveh Ghazi.
100228
100229 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100230
100231         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100232         Add lseek and memchr.
100233
100234         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100235         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100236         have a 20-character limit on names.
100237
100238 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100239
100240         * m4/inttypes_h.m4: New file.
100241         * m4/uintmax_t.m4: New file.
100242         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100243
100244
100245         -----
100246
100247         Local Variables:
100248         coding: utf-8
100249         End:
100250
100251         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100252
100253         Copying and distribution of this file, with or without
100254         modification, are permitted provided the copyright notice
100255         and this notice are preserved.